/* Kyou Kanji promo pages (site/*.html). Same colors and fonts as the app; follows the device's light or dark setting. */
:root {
  --bg: #EFEDE6; --surface: #FFFFFF; --sunk: #E6E3DA; --line: #DAD6CB; --text: #1A1A1A; --muted: #575F73;
  --navy: #1D2B4C; --navy2: #2A3C66; --gold: #E3B23C; --gold-text: #8A6100; --on-gold: #1D2B4C;
  --beni: #B5403A; --matcha: #5E7A31; --hero-text: #ECEAE3; --hero-muted: #B9C0D4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16223D; --surface: #1D2B4C; --sunk: #13203B; --line: #34446B; --text: #ECEAE3; --muted: #AEB6CC;
    --gold-text: #E3B23C; --beni: #E58A82; --matcha: #9DBA6A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 'Zen Kaku Gothic New', system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-text); }
h1, h2, h3 { font-family: 'Noto Serif JP', Georgia, serif; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ja { font-family: 'Noto Serif JP', serif; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 14px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: var(--on-gold); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.soon, .btn:disabled { background: transparent; color: inherit; border: 1.5px dashed currentColor; opacity: .75; cursor: default; transform: none; }
.btn small { font-weight: 500; opacity: .8; }
.storeBtn { flex-direction: column; gap: 0; line-height: 1.15; padding: 8px 20px; }
.storeBtn small { font-size: 12px; }

/* ---------- Header ---------- */
.top { background: var(--navy); color: var(--hero-text); }
.nav { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: 'Noto Serif JP', serif; font-size: 21px; font-weight: 700; }
.nav a.link { color: var(--hero-text); text-decoration: none; font-weight: 500; font-size: 15px; opacity: .85; }
.nav a.link:hover { opacity: 1; text-decoration: underline; }
.nav .btn { min-height: 40px; padding: 8px 16px; font-size: 15px; }
@media (max-width: 640px) { .nav a.link { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; padding-bottom: 72px; position: relative; overflow: hidden; }
.heroGrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 900; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 19px; color: var(--hero-muted); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--hero-muted); }
.heroArt { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 440px; }
.heroArt .bigK {
  position: absolute; inset: auto 0 18% 0; text-align: center; font-family: 'Noto Serif JP', serif; font-weight: 900;
  font-size: clamp(150px, 20vw, 250px); line-height: 1; color: rgba(236, 234, 227, .07); user-select: none; letter-spacing: -.02em;
}
.phone {
  position: relative; width: min(300px, 78vw); border-radius: 36px; padding: 10px; background: #0E1628;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { border-radius: 27px; width: 100%; height: auto; }
.heroArt .fox { position: absolute; width: 132px; left: max(0px, calc(50% - 250px)); bottom: -8px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); }
@media (max-width: 860px) {
  .heroGrid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; padding-bottom: 40px; }
  .heroArt { min-height: 0; margin-top: 8px; }
  .heroArt .fox { display: none; }
}

/* ---------- Facts strip ---------- */
.facts { background: var(--navy2); color: var(--hero-text); }
.facts ul { list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: 'Noto Serif JP', serif; font-size: 30px; color: var(--gold); line-height: 1.1; }
.facts span { font-size: 14px; color: var(--hero-muted); }
@media (max-width: 700px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section.band { padding: 80px 0; }
section.band.alt { background: var(--sunk); }
.head { max-width: 640px; margin-bottom: 36px; }
.head h2 { font-size: clamp(28px, 4vw, 40px); }
.head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
@media (max-width: 640px) { section.band { padding: 56px 0; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.feature .glyph {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold);
  font-family: 'Noto Serif JP', serif; font-size: 24px; font-weight: 700; margin-bottom: 14px;
}
.feature h3 { font-family: inherit; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 52px; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-weight: 700;
}
.steps h3 { font-family: inherit; font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.screens figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.screens .phone { width: 100%; max-width: 280px; }
.screens figcaption { color: var(--muted); font-size: 15px; max-width: 26em; }
.screens figcaption b { display: block; color: var(--text); font-size: 17px; }
.desk { max-width: 960px; margin: 48px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .15); }
.deskCap { text-align: center; color: var(--muted); font-size: 15px; margin-top: 14px; }
@media (max-width: 820px) {
  .screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .screens figure { scroll-snap-align: center; }
}

/* Levels */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.level { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.level .tag { align-self: flex-start; background: var(--navy); color: var(--hero-text); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.level strong { font-size: 17px; margin-top: 6px; }
.level span { color: var(--muted); font-size: 14px; }
.level .sample { font-family: 'Noto Serif JP', serif; font-size: 26px; letter-spacing: .08em; margin-top: 6px; }
.level.free { border-color: var(--matcha); }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, 1fr); } .level:last-child { grid-column: 1 / -1; } }

/* Pricing */
.notice {
  display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1.5px solid var(--gold); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 28px;
}
.notice img { width: 56px; height: 56px; flex: none; }
.notice p { color: var(--muted); font-size: 16px; }
.notice strong { color: var(--text); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.premium { border: 2px solid var(--navy); }
@media (prefers-color-scheme: dark) { .plan.premium { border-color: var(--gold); } }
.plan h3 { font-size: 24px; }
.plan .price { font-family: 'Noto Serif JP', serif; font-size: 40px; font-weight: 700; line-height: 1; }
.plan .price small { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .alt { color: var(--muted); font-size: 15px; }
.plan .alt b { color: var(--matcha); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--matcha); font-weight: 700; }
.plan .btn { width: 100%; }
.plan .note { font-size: 13px; color: var(--muted); text-align: center; }
.pill { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--on-gold); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; margin-top: 40px; background: var(--surface); border-radius: 16px; overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--hero-text); font-size: 15px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 24%; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--matcha); font-weight: 700; }
.compare .no { color: var(--muted); }
@media (max-width: 560px) { .compare { font-size: 14px; } .compare th, .compare td { padding: 10px 8px; } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* Closing call to action */
.closing { background: var(--navy); color: var(--hero-text); text-align: center; padding: 72px 0; }
.closing img { width: 110px; margin: 0 auto 12px; }
.closing h2 { font-size: clamp(28px, 4vw, 40px); }
.closing p { color: var(--hero-muted); margin: 12px auto 0; max-width: 32em; }
.closing .ctas { justify-content: center; }

/* Footer */
footer { padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.footGrid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--text); }
.credits { margin-top: 20px; max-width: 760px; font-size: 13px; line-height: 1.6; }

/* Pricing page header */
.pageHero { padding-top: 40px; padding-bottom: 56px; }
.pageHero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; margin-top: 12px; }
.pageHero p { color: var(--hero-muted); font-size: 19px; margin-top: 14px; max-width: 34em; }
