/* Wakaru website v2 — "quiet dark, living demo".
   One stylesheet for every page. Site tokens live in DESIGN.md §8;
   accent/status/reading tokens are shared with the extension verbatim.
   Color exists in one place: the product demo. Everything else is type. */

:root {
  /* site-only (DESIGN.md §8) */
  --bg: #0b0c0f;
  --bg-raised: #121318;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --text: #eeeff2;
  --text-soft: #9fa3ad;
  --text-faint: #63666e;
  --wash: rgba(255, 255, 255, .04);
  --scene-hi: #171a24;
  --scene-lo: #0b0d13;
  --accent-muted: #109385;
  --r-l: 16px;
  /* shared with the extension */
  --accent: #2dd4bf;
  --accent-deep: #14b8a6;
  --accent-ink: #04231f;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --reading: #93c5fd;
  --r: 10px;
  --r-s: 6px;
  --display: 'Murecho', system-ui, sans-serif;
  --jp: 'Murecho', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
}

* { margin: 0; box-sizing: border-box; }

/* Clip the demo's ambient wash at the viewport, including mobile layout sizing. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.65 system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* The demo's ambient wash intentionally paints wider than the page. */
  overflow-x: clip;
}

:lang(ja) { font-family: var(--jp); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(45, 212, 191, .25); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

section { scroll-margin-top: 6rem; }

/* ---- Nav ---- */

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 12, 15, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav-shell.scrolled { border-bottom-color: var(--line-soft); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.05rem 1.5rem;
}

.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text);
  margin-right: auto;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.mark:hover { text-decoration: none; }
.mark .kana { color: var(--accent); font-weight: 500; font-size: .85em; margin-left: .4rem; }

.nav a:not(.mark):not(.btn) {
  color: var(--text-soft);
  font-size: .92rem;
  white-space: nowrap;
  transition: color .18s ease;
}
.nav a:not(.mark):not(.btn):hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }

.nav .btn { padding: .42rem .95rem; font-size: .88rem; border: 2px solid var(--accent-deep); }
.nav .btn:hover { border-color: var(--accent); }

@media (max-width: 680px) {
  .nav { flex-wrap: wrap; row-gap: .5rem; column-gap: 1.1rem; padding: .85rem 1.5rem; }
  .mark { flex-basis: 100%; }
  .nav .btn { display: none; }
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .62rem 1.25rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover {
  background: var(--wash);
  border-color: rgba(255, 255, 255, .16);
  text-decoration: none;
}

.btn.primary {
  background: var(--accent-deep);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn.primary:hover { background: var(--accent); }
.btn-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: .3em;
  vertical-align: -.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 360px) {
  .nav { column-gap: .65rem; }
}

/* ---- Section scaffolding ---- */

.section { padding: 7.5rem 0 0; }

.kicker {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.kicker .no { font-family: var(--mono); letter-spacing: 0; font-weight: 400; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.15; margin-bottom: .8rem; }

.sub { color: var(--text-soft); max-width: 40rem; font-size: 1.02rem; }

/* ---- Hero ---- */

.hero { padding: 6.5rem 0 0; text-align: center; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 auto 1.3rem;
  max-width: 14em;
}

.hero .sub {
  font-size: 1.08rem;
  margin: 0 auto 2.3rem;
  max-width: 36rem;
}

.hero .cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero .btn.primary { padding: .82rem 1.7rem; font-size: 1rem; max-width: 100%; white-space: normal; }
.hero .cta-note { color: var(--text-faint); font-size: .9rem; }

/* Entrance: a one-time settle, nothing more. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero > * { animation: rise .7s cubic-bezier(.2, .7, .3, 1) backwards; }
.hero > :nth-child(2) { animation-delay: .06s; }
.hero > :nth-child(3) { animation-delay: .12s; }
.hero > :nth-child(4) { animation-delay: .18s; }
.hero > :nth-child(5) { animation-delay: .26s; }

/* ---- The demo (the one colorful, moving thing on the site) ---- */

.demo { position: relative; margin: 4.5rem auto 0; max-width: 960px; text-align: left; }

/* Ambient light behind the frame — neutral, a background, never a shadow. */
.demo::before {
  content: '';
  position: absolute;
  inset: -12% -10% -18%;
  background: radial-gradient(60% 55% at 50% 45%, var(--wash), transparent 70%);
  pointer-events: none;
}

/* Slim browser chrome: says "this is Crunchyroll, in your browser". */
.demo-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: .6rem 1rem;
}
.demo-chrome .dots { display: flex; gap: 5px; }
.demo-chrome .dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.demo-chrome .url {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text-faint);
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame {
  position: relative;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r-l) var(--r-l);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 72% 6%, var(--scene-hi) 0%, transparent 58%),
    radial-gradient(70% 55% at 14% 88%, #12141d 0%, transparent 60%),
    linear-gradient(180deg, #101219 0%, var(--scene-lo) 100%);
}
/* Filmic vignette so the scene reads as a picture, not a panel. */
.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, .4) 100%);
  pointer-events: none;
}

.frame .hint {
  position: absolute;
  top: .9rem;
  left: 1.1rem;
  z-index: 2;
  color: var(--text-faint);
  font-size: .76rem;
  letter-spacing: .02em;
}
.frame .hint b { color: var(--text-soft); font-weight: 600; }

/* Subtitles — exactly as the overlay draws them: dark text-shadow, no boxes. */
.subs {
  position: absolute;
  left: 4%; right: 4%; bottom: 16%;
  z-index: 2;
  text-align: center;
  text-shadow: 0 0 4px #000, 0 2px 4px rgba(0, 0, 0, .9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
}
.subs.show { opacity: 1; transform: none; }

.subs .jpline {
  font-family: var(--jp);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 600;
  margin-bottom: .55rem;
}
.subs .enline { font-size: clamp(.85rem, 2.1vw, 1.15rem); font-weight: 500; color: #f4f5f7; }

.subs rt { color: var(--reading); font-size: .48em; font-weight: 400; }
.tok-particle { color: #9ca3af; }

/* The word card, in its real chrome — the one sanctioned glassy surface. */
.wordcard {
  background: rgba(13, 15, 22, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-l);
  padding: 13px 16px;
  text-align: left;
  width: min(250px, 40%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35);
}
.demo .wordcard {
  position: absolute;
  right: 5%;
  bottom: 38%;
  z-index: 3;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .3, 1);
  pointer-events: none;
}
.demo .wordcard.show { opacity: 1; transform: none; }

/* In a feature mock the card is the exhibit — give it its full width. */
.f-mock .wordcard { width: 260px; max-width: 100%; }

.wordcard .wc-head { display: flex; align-items: baseline; gap: 9px; }
.wordcard .wc-surface, .wordcard .wc-reading { white-space: nowrap; }
.wordcard .wc-surface { font-family: var(--jp); font-size: 1.45rem; font-weight: 700; color: #7dd3fc; }
.wordcard .wc-reading { color: var(--reading); font-size: .85rem; }
.wordcard .wc-audio { margin-left: auto; font-size: .85rem; }
.wordcard .wc-gloss { color: #e2e8f0; font-size: .88rem; margin: 5px 0 3px; }
.wordcard .wc-dict { color: var(--text-faint); font-size: .74rem; margin-bottom: 9px; }
.wordcard .wc-save {
  display: inline-block;
  background: var(--accent-deep);
  color: var(--accent-ink);
  border-radius: 8px;
  padding: 4px 13px;
  font-size: .8rem;
  font-weight: 600;
}

/* Player bar: progress line + the injected replay buttons. */
.playbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: .65rem 1.1rem .75rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .6));
}
.playbar .track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .16);
  margin-bottom: .5rem;
  overflow: hidden;
}
.playbar .track i {
  display: block;
  height: 100%;
  width: 37%;
  background: var(--accent);
  transition: width 1s linear;
}
.playbar .row {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--text-soft);
  font-size: .76rem;
}
.playbar svg { display: block; color: #d7dfeb; }
.playbar .t { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--text-faint); }

@media (max-width: 620px) {
  .frame { aspect-ratio: 4 / 3; }
  .demo .wordcard { display: none; }
  .subs { bottom: 20%; }
  .playbar .row span:not(.t) { display: none; }
}

/* ---- Features: alternating rows with real product surfaces ---- */

.features { display: flex; flex-direction: column; gap: 4.5rem; margin-top: 3.5rem; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature:nth-child(even) .f-copy { order: 2; }
.feature:nth-child(even) .f-mock { order: 1; }

.f-copy h3 { font-size: 1.45rem; margin-bottom: .6rem; }
/* Japanese words inline in English copy never break mid-word. */
.jaw { white-space: nowrap; }
.f-copy p { color: var(--text-soft); max-width: 30rem; }
.f-copy .fine { margin-top: .7rem; color: var(--text-faint); font-size: .9rem; }

.f-mock {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background:
    radial-gradient(80% 90% at 20% 0%, var(--wash), transparent 60%),
    var(--bg-raised);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.6rem;
  overflow: hidden;
}

@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: 1.4rem; }
  .feature:nth-child(even) .f-copy { order: 1; }
  .feature:nth-child(even) .f-mock { order: 2; }
  .f-mock { min-height: 200px; }
}

/* Mock: a subtitle fragment with its replay buttons (over a dark strip). */
.mock-sub {
  width: 100%;
  max-width: 380px;
  border-radius: var(--r);
  background:
    radial-gradient(100% 90% at 70% 0%, var(--scene-hi) 0%, transparent 60%),
    linear-gradient(180deg, #10121a, var(--scene-lo));
  border: 1px solid var(--line-soft);
  padding: 2.1rem 1.2rem 1.6rem;
  text-align: center;
  text-shadow: 0 0 4px #000, 0 2px 4px rgba(0, 0, 0, .9);
}
.mock-sub .jp {
  font-family: var(--jp);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: .45rem;
}
.mock-sub .en { font-size: .92rem; font-weight: 500; color: #f4f5f7; }
.mock-sub .replay-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.2rem;
  color: var(--text-soft);
  font-size: .78rem;
  text-shadow: none;
}
.mock-sub .replay-row svg { color: #d7dfeb; }

/* Mock: status nodes — the extension's own "is it working?" vocabulary. */
.mock-status { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: .75rem; }
.mock-status .node { display: flex; align-items: baseline; gap: .65rem; font-size: .92rem; }
.node .dot { font-weight: 700; flex: none; }
.node .dot.ok { color: var(--ok); }
.node .dot.warn { color: var(--warn); }
.node .dot.err { color: var(--err); }
.mock-status .node .what { color: var(--text-soft); }
.mock-status .node .val { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.mock-status .node .file { font-family: var(--mono); font-size: .8rem; color: var(--text-faint); font-weight: 400; }

/* Mock: saved words. */
.mock-words { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: .6rem; }
.mock-words .w {
  display: flex;
  align-items: center;
  gap: .85rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: .6rem .8rem;
  background: rgba(255, 255, 255, .02);
}
.mock-words .thumb {
  flex: none;
  width: 52px; height: 30px;
  border-radius: 5px;
  background:
    radial-gradient(80% 100% at 70% 0%, var(--scene-hi), transparent 65%),
    linear-gradient(160deg, #141722, var(--scene-lo));
  border: 1px solid var(--line-soft);
}
.mock-words .jp { font-family: var(--jp); font-weight: 700; font-size: 1.02rem; }
.mock-words .rd { color: var(--reading); font-size: .78rem; }
.mock-words .gl { color: var(--text-soft); font-size: .85rem; margin-left: auto; text-align: right; }
.mock-words .export { color: var(--text-faint); font-size: .85rem; padding: .2rem .1rem 0; }

.also {
  margin-top: 4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint);
  font-size: .93rem;
  max-width: 52rem;
}
.also b { color: var(--text-soft); font-weight: 600; }

/* ---- Steps ---- */

.steps {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.2rem;
}
.steps li { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.steps .n {
  display: block;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-faint);
  margin-bottom: .7rem;
}
.steps p { color: var(--text-soft); font-size: .95rem; }
.steps b { color: var(--text); font-weight: 600; display: block; margin-bottom: .25rem; font-family: var(--display); letter-spacing: -0.01em; }

.tip {
  margin-top: 2.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-deep);
  color: var(--text-soft);
  font-size: .93rem;
  max-width: 44rem;
}

/* ---- Pricing ---- */

.trial-intro { margin-top: 1.6rem; max-width: 40rem; color: var(--text-soft); }
.trial-intro strong { color: var(--text); }
.trial-intro p + p { margin-top: .3rem; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 3rem;
  align-items: stretch;
}

.plan {
  position: relative;
  border: 4px solid var(--line);
  border-radius: var(--r-l);
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  background: var(--bg-raised);
  transition: border-color .18s ease;
}
.plan::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-l) - 4px);
  pointer-events: none;
}
.plan:hover { border-color: rgba(255, 255, 255, .16); }
.plan.best { border-color: var(--accent-deep); background: var(--bg-raised); }
.plan.best:hover { border-color: var(--accent); }
.plan.popular { border-color: var(--accent-muted); }
.plan.popular .btn { background: var(--accent-muted); color: var(--bg); }
.plan.popular .btn:hover { background: color-mix(in srgb, var(--accent-muted) 80%, var(--accent-deep)); }

.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 1.6rem; }
.plan .name { color: var(--text); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.plan .tag {
  color: var(--text-soft);
  font-size: .9rem; font-weight: 600;
  text-align: right;
}
.plan.best .tag { color: var(--accent); }
.plan.popular .tag { color: var(--accent-muted); }
.plan .price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.3rem;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}
.plan .price small { font-size: .95rem; color: var(--text-soft); font-weight: 500; letter-spacing: 0; }
.plan .permo { color: var(--text-soft); font-size: .9rem; }
.plan .billing { color: var(--text); font-size: .92rem; }
.plan .save { color: var(--ok); }
.plan .btn { margin-top: auto; text-align: center; }
.plan-includes { margin: 1.3rem 0; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.plan-includes p { color: var(--text); font-size: .92rem; font-weight: 600; margin-bottom: .8rem; }
.plan-includes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.plan-includes li { display: flex; gap: .6rem; color: var(--text-soft); font-size: .92rem; }
.plan-includes li::before { content: '✓'; flex: none; }
.plan-trial { color: var(--text-soft); font-size: .9rem; text-align: center; margin-top: .5rem; }

.plan-notes { margin-top: 1.6rem; color: var(--text-faint); font-size: .92rem; }
.plan-notes p { margin-top: .3rem; }

/* ---- FAQ ---- */

.faq { margin-top: 2.4rem; max-width: 46rem; }

.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--display);
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  transition: color .18s ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-faint);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); padding: 0 0 1.15rem; max-width: 42rem; }

/* ---- Closer ---- */

.closer {
  position: relative;
  margin-top: 8rem;
  padding: 7rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
/* The brand, as a watermark — the one decorative moment on the site. */
.closer .ghost {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-family: var(--jp);
  font-weight: 700;
  font-size: clamp(11rem, 30vw, 20rem);
  line-height: 1;
  color: rgba(255, 255, 255, .028);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.closer > :not(.ghost) { position: relative; }
.closer h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: .7rem; }
.closer .sub { margin: 0 auto 2rem; }

/* ---- Prose pages (privacy, terms) ---- */

.prose { max-width: 720px; padding-top: 4.5rem; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: .5rem; }
.prose .updated { color: var(--text-faint); font-size: .9rem; margin-bottom: 2.4rem; font-family: var(--mono); }
.prose h2 { font-size: 1.2rem; margin: 2.4rem 0 .6rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose p + p { margin-top: .6rem; }
.prose ul { padding-left: 1.2rem; margin-top: .4rem; }
.prose li { margin-top: .45rem; }
.prose b, .prose strong { color: var(--text); font-weight: 600; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .9rem;
  font-size: .92rem;
}
.prose th, .prose td {
  text-align: left;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  color: var(--text-soft);
  vertical-align: top;
}
.prose th { color: var(--text); font-weight: 600; background: var(--bg-raised); }
.table-scroll { overflow-x: auto; }

/* ---- Account ---- */

.account { max-width: 480px; padding-top: 4.5rem; }
.account h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: .5rem; }
.account .sub { margin-bottom: 1.6rem; }

.acct-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.3rem 1.35rem;
  margin-top: 1rem;
}

.node { display: flex; align-items: baseline; gap: .6rem; padding: .3rem 0; }
.node .label { color: var(--text-soft); min-width: 5.5rem; font-size: .92rem; }
.node .value { font-weight: 600; overflow-wrap: anywhere; }

.acct-status { margin-top: .9rem; color: var(--text-soft); font-size: .93rem; line-height: 1.5; }
.acct-status.ok { color: var(--ok); }
.acct-status.warn { color: var(--warn); }
.acct-status.err { color: var(--err); }
/* .btn sets display, which would otherwise beat the hidden attribute — the
   plan buttons are shown or hidden per account state. */
.account [hidden] { display: none; }
/* Sign out is the quiet third action: no border, no fill, just text. */
.btn.quiet { border-color: transparent; color: var(--text-soft); padding-left: .6rem; padding-right: .6rem; }
.btn.quiet:hover { background: transparent; color: var(--text); border-color: transparent; }

.acct-actions { margin-top: 1.15rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.acct-actions .quiet { margin-left: auto; }

/* ---- Footer ---- */

footer {
  margin-top: 0;
  border-top: 1px solid var(--line-soft);
  padding: 3rem 0 3.2rem;
  color: var(--text-faint);
  font-size: .88rem;
}
/* Pages without a closer still get breathing room above the footer. */
.prose + footer, .account + footer, .section + footer { margin-top: 6rem; }

footer .cols {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
footer .fmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
footer .fmark .kana { color: var(--accent); font-weight: 500; font-size: .85em; margin-left: .35rem; }
footer .tagline { margin-top: .35rem; max-width: 20rem; }
footer .links { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
footer a { color: var(--text-soft); }
footer a:hover { color: var(--text); text-decoration: none; }
footer p + p { margin-top: .35rem; }

/* ---- Scroll reveal (one-time, subtle) ---- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > .reveal:nth-child(2) { transition-delay: .08s; }
[data-stagger] > .reveal:nth-child(3) { transition-delay: .16s; }
[data-stagger] > .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .subs, .demo .wordcard { opacity: 1; transform: none; }
}
