/* Wakatta landing — page styles (built on tokens.css) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-family: var(--jp-mincho); font-weight: 600; font-size: 14px; letter-spacing: 3px; color: var(--shu); }
.eyebrow .en { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: 2px; color: var(--ink-3); text-transform: uppercase; margin-left: 10px; }

h1,h2,h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.6px; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

/* ── nav ── */
nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(244,238,227,0.78); border-bottom: 1px solid var(--line); }
nav .inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mk { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(155deg,#E4583E,#C13E27); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(220,74,48,0.28); }
.brand .mk span { font-family: var(--jp-mincho); font-weight: 600; color: #fff; font-size: 24px; line-height: 1; margin-top: -1px; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-pick { position: relative; }
.lp-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink-2); background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: border-color .15s; }
.lp-btn:hover { border-color: var(--ink-3); }
.lp-btn .lp-flag { font-size: 17px; line-height: 1; }
.lp-btn .lp-caret { font-size: 10px; color: var(--ink-3); }
.lp-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 6px; margin: 0; list-style: none; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; z-index: 60; }
.lang-pick.open .lp-menu { opacity: 1; transform: none; pointer-events: auto; }
.lp-menu li { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.lp-menu li .lp-flag { font-size: 18px; }
.lp-menu li:hover { background: var(--surface-warm); }
.lp-menu li[aria-selected="true"] { color: var(--shu); background: var(--shu-soft); }
@media (max-width: 980px) { .lp-btn .lp-name { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--sans); font-weight: 700; font-size: 15.5px; border: none; border-radius: 999px; cursor: pointer; transition: transform .12s, filter .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--shu); color: #fff; padding: 13px 24px; box-shadow: 0 6px 18px var(--shu-glow); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-dark { background: var(--ink); color: var(--paper); padding: 15px 28px; }
.btn-ghost { background: transparent; color: var(--ink); padding: 14px 24px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-lg { padding: 17px 32px; font-size: 17px; }

/* ── hero ── */
.hero { position: relative; padding: 86px 0 70px; overflow: hidden; }
.hero .kanji-bg { position: absolute; right: -6%; top: -8%; font-family: var(--jp-mincho); font-weight: 600; font-size: 720px; color: rgba(220,74,48,0.045); line-height: 1; pointer-events: none; user-select: none; z-index: 0; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 70px; line-height: 1.02; margin: 22px 0 0; }
.hero h1 em { font-style: italic; color: var(--shu); }
.hero .lede { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink-2); margin: 24px 0 0; max-width: 30em; }
.hero .cta-row { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero .try-hint { display: inline-block; margin-top: 24px; font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--shu-deep); background: var(--shu-soft); border-radius: 999px; padding: 9px 16px; }

/* "live demo" badge above the interactive phone */
.demo-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; box-shadow: var(--shadow-card); }
.demo-badge b { color: var(--shu-deep); font-weight: 800; }
.demo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--shu); flex-shrink: 0; animation: demopulse 1.6s ease-in-out infinite; }
@keyframes demopulse { 0%, 100% { box-shadow: 0 0 0 0 var(--shu-glow); } 50% { box-shadow: 0 0 0 6px transparent; } }
.ph-dock .play.pulse { animation: playpulse 2.2s ease-in-out infinite; }
@keyframes playpulse { 0%, 100% { box-shadow: 0 6px 18px var(--shu-glow); } 50% { box-shadow: 0 6px 18px var(--shu-glow), 0 0 0 10px rgba(220, 74, 48, 0.12); } }
@media (prefers-reduced-motion: reduce) { .demo-badge .dot, .ph-dock .play.pulse { animation: none; } }
.hero .note { font-size: 13.5px; color: var(--ink-3); margin-top: 18px; }
.hero .note b { color: var(--ink-2); font-weight: 700; }

/* ── phone frame ── */
.phone { width: 320px; border-radius: 46px; background: #1a1714; padding: 11px; box-shadow: 0 40px 80px -20px rgba(40,28,16,0.5), 0 0 0 2px rgba(255,255,255,0.04) inset; position: relative; }
.phone .screen { border-radius: 36px; overflow: hidden; background: var(--paper); position: relative; height: 660px; }
.phone .notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 120px; height: 30px; background: #1a1714; border-radius: 0 0 18px 18px; z-index: 20; }
.phone.float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font-size: 13px; font-weight: 700; color: var(--ink); }

/* generic screen bits used in mockups */
.scr-pad { padding: 6px 18px; }
.ji { font-family: var(--jp); }
.ji-m { font-family: var(--jp-mincho); }
ruby rt { font-family: var(--jp); font-weight: 400; color: var(--ink-3); font-size: 0.5em; }

/* transcript mockup */
.tl { padding: 8px 14px; }
.tl .line { padding: 13px 13px; border-radius: 15px; margin: 3px 0; }
.tl .line.active { background: var(--surface-warm); box-shadow: inset 0 0 0 1px var(--line); }
.tl .line.dim { opacity: .4; }
.tl .jp { font-family: var(--jp); font-size: 20px; font-weight: 500; line-height: 2; color: var(--ink); }
.tl .jp .w { border-bottom: 2px dashed rgba(220,74,48,.45); padding-bottom: 1px; }
.tl .jp .act { color: var(--shu); }
.tl .en { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.ai-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--ai-soft); color: var(--ai); border-radius: 999px; padding: 6px 11px; font-weight: 700; font-size: 12px; margin-top: 10px; }
.tl .jp .lit { color: var(--shu); background: var(--shu-soft); border-radius: 5px; padding: 0 1px; }

/* real "tap a word" lookup card */
.wordcard { margin: 4px 14px 0; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); padding: 14px 16px 13px; }
.wordcard .wc-top { display: flex; align-items: baseline; gap: 10px; }
.wordcard .head { font-family: var(--jp-mincho); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; }
.wordcard .read { font-family: var(--jp); font-size: 13px; color: var(--ink-3); }
.wordcard .tags { display: flex; gap: 6px; margin: 9px 0 7px; }
.wordcard .tag { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; }
.wordcard .tag.pos { background: var(--shu-soft); color: var(--shu-deep); }
.wordcard .tag.jlpt { background: var(--ai-soft); color: var(--ai); }
.wordcard .gloss { font-family: var(--serif); font-size: 15.5px; color: var(--ink); line-height: 1.4; margin: 0; }
.wordcard .save { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; background: var(--shu); color: #fff; border-radius: 12px; padding: 10px; font-weight: 800; font-size: 13.5px; box-shadow: 0 6px 16px var(--shu-glow); }

/* real player bar (scrubber + skips + Me perdí + Explain) */
.pbar { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 18px 20px; }
.pbar .scrub-row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.pbar .t { font-size: 10px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pbar .scrub { flex: 1; height: 4px; border-radius: 3px; background: var(--paper-deep); position: relative; }
.pbar .scrub > i { display: block; width: 42%; height: 100%; border-radius: 3px; background: var(--shu); }
.pbar .scrub > b { position: absolute; left: 42%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--shu); transform: translate(-50%,-50%); }
.pbar .controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.pbar .skip { font-size: 15px; font-weight: 800; color: var(--ink); display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.pbar .skip small { font-size: 9px; color: var(--ink-3); margin-top: 2px; }
.pbar .play { width: 54px; height: 54px; border-radius: 50%; background: var(--shu); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px var(--shu-glow); color: #fff; font-size: 20px; }
.pbar .extra { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.pbar .lost { display: inline-flex; align-items: center; gap: 7px; background: var(--shu-soft); color: var(--shu-deep); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 12.5px; }
.pbar .explain { display: inline-flex; align-items: center; gap: 6px; color: var(--ai); font-weight: 700; font-size: 12.5px; }

/* ── section scaffolding ── */
section { position: relative; }
.band { padding: 96px 0; }
.band.ink { background: var(--ink); color: var(--ink-on-dark); }
.band.warm { background: var(--surface-warm); }
.center { text-align: center; }
.sec-head { max-width: 680px; margin: 0 auto; }
.sec-head.left { margin: 0; }
.band h2 { font-size: 46px; line-height: 1.08; }
.band.ink h2 { color: #fff; }
.sub { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 18px 0 0; }
.band.ink .sub { color: var(--ink-on-dark-2); }

/* feature mechanic split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 64px; }
.feat-list { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }
.feat { display: flex; gap: 18px; }
.feat .ic { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.feat h3 { font-family: var(--sans); font-weight: 800; font-size: 18px; letter-spacing: 0; }
.feat p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 5px 0 0; }
.band.ink .feat p { color: var(--ink-on-dark-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 64px; }
.step { background: var(--surface); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.step .num { font-family: var(--serif); font-size: 17px; color: var(--shu); font-weight: 600; }
.step .ji-big { font-family: var(--jp-mincho); font-size: 52px; color: var(--ink); margin: 6px 0 14px; line-height: 1; }
.step h3 { font-family: var(--sans); font-weight: 800; font-size: 20px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 10px 0 0; }

/* feature cards grid */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 58px; }
.card { background: var(--surface); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card h3 { font-family: var(--sans); font-weight: 800; font-size: 18.5px; }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 8px 0 0; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 60px; }
.stat { text-align: center; }
.stat .v { font-family: var(--serif); font-weight: 500; font-size: 50px; line-height: 1; color: var(--shu); }
.band.ink .stat .v { color: #fff; }
.stat .l { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.band.ink .stat .l { color: var(--ink-on-dark-2); }

/* showcase rail */
.rail { display: flex; gap: 30px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.phone.sm { width: 244px; }
.phone.sm .screen { height: 506px; border-radius: 30px; }
.phone.sm { border-radius: 36px; padding: 9px; }
.phone.sm .notch { width: 92px; height: 24px; top: 9px; }
.cap { text-align: center; margin-top: 20px; }
.cap b { font-family: var(--sans); font-weight: 800; font-size: 16px; }
.cap span { display: block; font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }

/* quote */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--serif); font-size: 30px; line-height: 1.42; font-style: italic; color: var(--ink); }
.band.ink .quote p { color: #fff; }
.quote .who { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--ink-3); margin-top: 22px; font-style: normal; }

/* final cta */
.final { text-align: center; }
.final .mk-lg { width: 88px; height: 88px; border-radius: 21px; background: linear-gradient(155deg,#E4583E,#C13E27); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px rgba(220,74,48,0.34); }
.final .mk-lg span { font-family: var(--jp-mincho); font-weight: 600; color: #fff; font-size: 54px; margin-top: -2px; }
.final h2 { font-size: 56px; margin-top: 28px; }
.store-row { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 14px 26px; border-radius: 15px; }
.store-btn .s1 { font-size: 11px; opacity: .8; line-height: 1; }
.store-btn .s2 { font-family: var(--serif); font-size: 21px; line-height: 1.1; }

/* footer */
footer { padding: 56px 0 44px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.foot-col a { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; gap: 10px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 50px; }
  .hero .phone-col { display: flex; justify-content: center; margin-top: 20px; }
  .steps, .cards, .stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .band h2, .final h2 { font-size: 36px; }
  .hero .kanji-bg { font-size: 420px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .steps, .cards, .stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
}
