/* YUJIEIGO — official site styles
   Design round 1: "Deep Space Studio" (content-frozen baseline 004b66b)

   Layers, top to bottom:
     1. Self-hosted fonts (assets/fonts, SIL OFL 1.1; rebuild with tools/subset-fonts.sh)
     2. Design tokens
     3. Base + typography
     4. Layout shell: wrap, section tiers, header, footer
     5. Hero (first Deep Space moment) + arc motif
     6. Section head, kicker, prose roles
     7. LEGACY components — carried over from the round-14 stylesheet on the new
        tokens; each block is replaced section by section in Phase 3.
     8. Transitional utilities (replace the 69 former inline styles; retired in Phase 3)
     9. Accessibility + small screens
*/

/* ---------- 1. Fonts ---------- */
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("assets/fonts/zen-kaku-gothic-new-700.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("assets/fonts/zen-kaku-gothic-new-900.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans JP"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("assets/fonts/noto-sans-jp-400.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans JP"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("assets/fonts/noto-sans-jp-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("assets/fonts/inter-700.woff2") format("woff2"); }

/* ---------- 2. Tokens ---------- */
:root {
  /* Brand (unchanged) */
  --space-blue: #3D6FBE;
  --ice: #78AEFF;
  --deep-space: #1F416F;
  --graphite: #25292D;
  --silver: #E8EBEF;
  --white: #FFFFFF;

  /* Surfaces */
  --deep-space-2: #142C4D;
  --grad-moment: linear-gradient(160deg, var(--deep-space) 0%, var(--deep-space-2) 100%);
  --paper: #F5F7FA;
  --paper-2: #EDF1F6;
  --surface: var(--paper);
  --tint: #EAF1FC;

  /* Ink */
  --ink: var(--graphite);
  --ink-soft: #55606A;
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, 0.74);
  --ghost: rgba(255, 255, 255, 0.22);

  /* Lines */
  --line: #D7DEE7;
  --line-soft: #E3E8EF;
  --ice-rule: rgba(120, 174, 255, 0.45);

  /* Type */
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, "Segoe UI", sans-serif;
  --font-latin: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-display: clamp(1.625rem, 1rem + 3.2vw, 3.25rem);   /* 26 -> 52px; keeps the authored 2-line h1 intact at 320px */
  --fs-h2:      clamp(1.625rem, 1.2rem + 1.6vw, 2.125rem); /* 26 -> 34px */
  --fs-h3:      clamp(1.125rem, 1rem + 0.4vw, 1.25rem);    /* 18 -> 20px */
  --fs-lead:    clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);  /* 17 -> 18px */
  --fs-body:    clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);   /* 16 -> 17px */
  --fs-small:   0.875rem;                                  /* 14px */
  --fs-caption: 0.8125rem;                                 /* 13px */
  --fs-num-xl:  clamp(2.5rem, 2rem + 2vw, 3.5rem);         /* 40 -> 56px */
  --fs-price:   clamp(2.25rem, 1.8rem + 1.5vw, 2.75rem);   /* 36 -> 44px */

  --lh-tight: 1.25;
  --lh-heading: 1.3;
  --lh-body: 1.9;
  --ls-tight: -0.02em;
  --ls-label: 0.12em;

  /* Space (8px scale) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(56px, 5vw + 40px, 96px);
  --section-y-moment: clamp(72px, 7vw + 48px, 128px);
  --header-h: 72px;

  /* Widths */
  --max-wide: 1120px;
  --max: 900px;
  --text-max: 720px;
  --gutter: 24px;

  /* Shape + depth */
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-panel: 0 10px 30px rgba(31, 65, 111, 0.08);
  --shadow-stage: 0 40px 80px rgba(31, 65, 111, 0.18);
  --shadow-hair: 0 1px 2px rgba(31, 65, 111, 0.06);
  --shadow: var(--shadow-panel);
  --shadow-sm: var(--shadow-hair);

  color-scheme: light;
}

/* ---------- 3. Base + typography ---------- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, html { overflow-x: hidden; }

img, svg { max-width: 100%; display: block; }

a { color: var(--space-blue); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--deep-space);
  line-height: var(--lh-heading);
  font-feature-settings: "palt" 1;
  letter-spacing: 0.005em;
  text-wrap: balance;
  word-break: auto-phrase;      /* phrase-aware Japanese breaks (Chromium); others fall back to normal */
}
h1 { font-weight: 900; }
h2 { font-weight: 900; font-size: var(--fs-h2); margin: 0 0 var(--s-2); }
h3 { font-weight: 700; font-size: var(--fs-h3); margin: 0 0 var(--s-2); text-wrap: pretty; }

strong { font-weight: 700; }

/* English sentences, seconds, prices */
.latin {
  font-family: var(--font-latin);
  font-feature-settings: "tnum" 1, "cv11" 1;
  letter-spacing: 0;
}

/* ---------- 4. Layout shell ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--wide { max-width: var(--max-wide); }

.section { padding: var(--section-y) 0; }
.section--explain { background: transparent; }
.section--proof { background: transparent; }
.section--moment {
  position: relative;
  overflow: hidden;
  background: var(--deep-space);
  background-image: var(--grad-moment);
  color: var(--on-dark);
  padding: var(--section-y-moment) 0;
}
.section--moment h1, .section--moment h2, .section--moment h3 { color: var(--on-dark); }
/* Interim only: the old white/gray alternation, mapped onto paper tones until Phase 3 assigns tiers */
.section-alt { background: var(--paper-2); }

/* Header: transparent bar laid over the hero. The brand slot is reserved for
   the official YUJIEIGO logo (see index.html). Until the asset is supplied the
   slot is empty and nothing is rendered. */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: block;
  width: 148px;      /* slot size; the logo scales to height, width is a max */
  height: 36px;
  color: var(--on-dark);
}
.brand > img, .brand > svg { display: block; height: 100%; width: auto; max-width: 100%; }

/* Footer */
.site-footer {
  background: var(--deep-space-2);
  color: var(--on-dark-soft);
  padding: var(--s-7) 0;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.site-footer .brand { width: 116px; height: 28px; }
.copyright {
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------- 5. Hero + atmosphere ---------- */
.hero {
  padding-top: calc(var(--header-h) + var(--s-4));
  padding-bottom: var(--s-10);           /* breathing room before the first section; also room for a future CTA row */
  isolation: isolate;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero .kicker {
  color: var(--ice);
  font-size: 1rem;
  letter-spacing: 0.3em;
  margin: 0 0 var(--s-4);
  padding-left: 0.08em;               /* optical: aligns the Y with the headline's left edge */
  text-shadow: 0 0 18px rgba(120, 174, 255, 0.55);
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: var(--s-4) 0 var(--s-5);
  text-shadow: 0 2px 24px rgba(10, 24, 46, 0.35);
}
.hero-lead {
  font-size: var(--fs-lead);
  line-height: 1.8;
  color: var(--on-dark-soft);
  max-width: 600px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-5)); padding-bottom: var(--s-10); }
  .hero-inner { margin: 0; text-align: left; max-width: 680px; }
  .hero-lead { margin: 0; }
  .hero h1 { margin-bottom: var(--s-6); }
}

/* Background depth: base gradient (on .section--moment) + two drifting lights
   + a vignette so the band has a lit side and a deep side. */
.hero-atmo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-light {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-light--a {                                   /* ice light, upper right, behind the arcs */
  width: 90vw; height: 90vw; max-width: 1100px; max-height: 1100px;
  right: -30vw; top: -45vw;
  background: radial-gradient(closest-side, rgba(120, 174, 255, 0.20), rgba(120, 174, 255, 0.06) 45%, rgba(120, 174, 255, 0) 72%);
  animation: hero-light-a 38s ease-in-out infinite alternate;
}
.hero-light--b {                                   /* space-blue light, lower left, keeps the left side from going flat */
  width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  left: -35vw; bottom: -55vw;
  background: radial-gradient(closest-side, rgba(61, 111, 190, 0.34), rgba(61, 111, 190, 0.10) 45%, rgba(61, 111, 190, 0) 72%);
  animation: hero-light-b 46s ease-in-out infinite alternate;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 44, 77, 0) 55%, rgba(14, 32, 58, 0.55) 100%),
    linear-gradient(100deg, rgba(14, 32, 58, 0.35) 0%, rgba(14, 32, 58, 0) 40%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.35 0.35 0.35 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Concentric arc motif, borrowed from the product's own dark panel.
   Four stacked SVG layers so each can move independently on the compositor. */
.arc-motif {
  position: absolute;
  width: min(150vw, 820px);
  aspect-ratio: 1;
  right: -52vw;
  top: -26vw;
  opacity: 0.9;
}
@media (min-width: 768px) {
  .arc-motif { width: 960px; right: -250px; top: -330px; opacity: 1; }
}
@media (min-width: 1280px) {
  .arc-motif { right: calc((100vw - var(--max-wide)) / 2 - 360px); }
}
.arc-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 50%;
  will-change: transform;
}
.arc-layer--glow  { animation: arc-breathe 18s ease-in-out infinite alternate; }
.arc-layer--bands { animation: arc-drift 30s ease-in-out infinite alternate; }
.arc-layer--rings { animation: arc-breathe-soft 24s ease-in-out infinite alternate; }
.arc-hi { transform-origin: 500px 500px; transform-box: view-box; }
.arc-hi--outer { animation: arc-rotate 180s linear infinite; }
.arc-hi--inner { animation: arc-rotate-rev 140s linear infinite; }

@keyframes arc-breathe      { from { transform: scale(1) translate3d(0,0,0); }        to { transform: scale(1.07) translate3d(-8px, 6px, 0); } }
@keyframes arc-breathe-soft { from { transform: scale(1); }                            to { transform: scale(1.028); } }
@keyframes arc-drift        { from { transform: translate3d(0,0,0) scale(1); }        to { transform: translate3d(-18px, 14px, 0) scale(1.04); } }
@keyframes arc-rotate       { from { transform: rotate(0deg); }                       to { transform: rotate(360deg); } }
@keyframes arc-rotate-rev   { from { transform: rotate(0deg); }                       to { transform: rotate(-360deg); } }
@keyframes hero-light-a     { from { transform: translate3d(0,0,0) scale(1); }        to { transform: translate3d(-6vw, 5vw, 0) scale(1.08); } }
@keyframes hero-light-b     { from { transform: translate3d(0,0,0) scale(1); }        to { transform: translate3d(7vw, -4vw, 0) scale(1.06); } }

/* Entrance, first paint only: label -> headline -> lead, plus the motif settling in. */
.hero .kicker, .hero h1, .hero-lead {
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .kicker { animation: hero-brand-in 2.4s cubic-bezier(0.16, 0.6, 0.2, 1) both; animation-delay: 0.15s; }
.hero h1      { animation-delay: 0.9s; }
.hero-lead    { animation-delay: 1.1s; }
.arc-motif    { animation: arc-in 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-light   { animation-delay: 0s; }
@keyframes hero-brand-in {
  0%   { opacity: 0; filter: blur(14px); letter-spacing: 0.95em; transform: translate3d(0, 12px, 0); text-shadow: 0 0 40px rgba(120, 174, 255, 0.95); }
  45%  { opacity: 1; }
  70%  { filter: blur(0); text-shadow: 0 0 36px rgba(120, 174, 255, 0.85); }
  100% { opacity: 1; filter: blur(0); letter-spacing: 0.3em; transform: translate3d(0, 0, 0); text-shadow: 0 0 18px rgba(120, 174, 255, 0.55); }
}
@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes arc-in    { from { opacity: 0; transform: scale(1.05) translate3d(24px, -12px, 0); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) { @keyframes arc-in { from { opacity: 0; transform: scale(1.05) translate3d(24px, -12px, 0); } to { opacity: 1; transform: none; } } }

/* Quieter on phones: no light drift, slower/shallower breathing, no rotation. */
@media (max-width: 767px) {
  .hero-light { animation: none; }
  .hero-light--b { display: none; }
  .arc-layer--glow  { animation-duration: 26s; }
  .arc-layer--bands { animation: none; }
  .arc-hi--outer, .arc-hi--inner { animation: none; }
  .hero-grain { opacity: 0.12; }
  .vwave rect, .sound-arc { animation: none; }
}

/* No motion at all when the visitor asks for it: everything sits at its final state. */
@media (prefers-reduced-motion: reduce) {
  .hero .kicker, .hero h1, .hero-lead, .arc-motif, .arc-layer, .arc-hi, .hero-light,
  .vwave rect, .sound-arc { animation: none; }
}

/* ---------- 6. Section head, kicker, prose ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-label);
  color: var(--space-blue);
  margin: 0 0 var(--s-3);
}
.kicker.latin { font-family: var(--font-latin); font-weight: 700; letter-spacing: 0.2em; }

.lede {
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  margin: 0 0 var(--s-5);
  text-wrap: pretty;
}

.section-head {
  max-width: var(--text-max);
  margin: 0 auto var(--s-7);
  text-align: center;
}
.section-head h2 { margin-bottom: var(--s-3); }
.section-head .lede { margin-bottom: 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-space);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Icon system (shared sprite, currentColor) ---------- */
.sprite { position: absolute; }
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
}
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--space-blue);
  margin-bottom: 10px;
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--deep { background: var(--deep-space); color: #fff; }

/* =====================================================================
   7. COMPONENT TAXONOMY (Phase 3)
   Prose roles, section variants, the diagram kit (rail, loop, chart,
   wall, timer ring, ladder, compare) and the card types.
   ===================================================================== */

/* ---------- Prose roles ---------- */
.lede--center {
  text-align: center;
  max-width: var(--text-max);
  margin-left: auto;
  margin-right: auto;
}
.lede--lg {
  word-break: auto-phrase;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.8;
  color: var(--ink);
}
.caption {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  max-width: var(--text-max);
  margin: var(--s-2) auto 0;
  line-height: 1.7;
}

/* Statement: a large-type line with a short rule, never a box */
.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  line-height: 1.55;
  color: var(--deep-space);
  text-align: center;
  max-width: var(--text-max);
  margin: 0 auto;
  text-wrap: balance;
  word-break: auto-phrase;
  font-feature-settings: "palt" 1;
}
.statement--quiet { color: var(--ink); }
.statement--dark { color: var(--on-dark); }
.statement--final {
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--on-dark);
  max-width: 800px;
}
.statement--final strong { color: var(--ice); font-weight: 900; }

/* ---------- Section variants ---------- */
.section--breath { padding: calc(var(--section-y) * 1.1) 0; }
.section-head--breath { margin-bottom: var(--s-6); }
.section-head--breath h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.25rem); }
.section-head .h3-lg { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); margin: 0; }

/* Beats: surfaces inside one section (used by #timed-speaking) */
.beat { position: relative; }
.beat--light { padding: var(--section-y) 0; }
.beat--moment {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep-space);
  background-image: var(--grad-moment);
  color: var(--on-dark);
  padding: var(--section-y-moment) 0;
}
.beat--closing { background-image: linear-gradient(160deg, var(--deep-space-2) 0%, var(--deep-space) 100%); padding: calc(var(--section-y-moment) + var(--s-6)) 0; }
.beat--moment .wrap { position: relative; z-index: 1; }
.beat--moment .section-head { max-width: 900px; }
.beat--moment .section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 1.9rem); }
.beat--moment h2, .beat--moment h3 { color: var(--on-dark); }
.beat--moment .kicker { color: var(--ice); }
.beat--moment .lede { color: var(--on-dark-soft); }
.beat--moment .lede strong { color: var(--on-dark); }
.beat--moment .caption { color: rgba(255, 255, 255, 0.58); }

/* Still arc motif for the climax and closing bands (defs live in the hero SVGs) */
.arc-motif--still {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(140vw, 760px);
  aspect-ratio: 1;
  opacity: 0.7;
  animation: none;
}
.arc-motif--still svg { width: 100%; height: 100%; display: block; overflow: visible; }
.arc-motif--tl { left: -52vw; top: -46vw; }
.arc-motif--br { right: -52vw; bottom: -46vw; }
@media (min-width: 768px) {
  .arc-motif--still { width: 920px; }
  .arc-motif--tl { left: -440px; top: -560px; }
  .arc-motif--br { right: -440px; bottom: -560px; }
}

/* ---------- Phrase wrapping: Japanese line breaks fall only between .ph chunks ---------- */
.ph { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Split section head: text left, human scene right ---------- */
.section-head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: center;
  max-width: 960px;
  text-align: center;
}
.section-head--split .scene { margin: 0 auto; }
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    text-align: left;
    max-width: var(--max);
  }
  }

/* ---------- Human visuals (approved assets supplied by Yuji; used exactly as delivered) ----------
   Blending is done in CSS only: object-fit crops, gradient masks that fade the
   illustration's own light background into the section surface, no borders, no cards. */
.scene { width: 100%; }
.scene picture { display: block; width: 100%; height: 100%; }
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene:empty { display: none; }
.section-head--split:has(.scene:empty) { grid-template-columns: 1fr; text-align: center; max-width: var(--text-max); }
.challenge:has(.scene:empty) { grid-template-columns: 1fr; grid-template-areas: "title" "main"; }

/* Learner pain: the learner sits in the head's right half, her gaze toward the heading;
   left and bottom edges dissolve into the paper surface. */
.section-head--pain { align-items: center; }
.scene--pain {
  aspect-ratio: 16 / 10;
  max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 100%);
  mask-composite: intersect;
}
.scene--pain img { object-position: 50% 45%; }
@media (min-width: 900px) {
  .section-head--pain { grid-template-columns: minmax(280px, 1fr) 600px; gap: var(--s-5); margin-bottom: var(--s-5); }
  .section-head--pain .section-head-text { padding-bottom: var(--s-6); }   /* heading sits level with her gaze */
  .section-head--pain .scene--pain { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-7)) calc(-1 * var(--s-3)) 0; aspect-ratio: 2 / 1; }
}
@media (max-width: 899px) {
  .section-head--split .scene--pain { max-width: 520px; aspect-ratio: 2 / 1; margin: calc(-1 * var(--s-3)) auto calc(-1 * var(--s-2)); }
  .scene--pain img { object-position: 50% 40%; }
}

/* Online lesson: heads the process column, bleeding to the left, right and bottom edges softened
   so the rail and the notebook share one surface with the scene. */
.scene--lesson {
  max-width: 560px;
  margin: 0 auto var(--s-4);
  aspect-ratio: 16 / 10;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 68%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 68%, transparent 100%);
  mask-composite: intersect;
}
.scene--lesson img { object-position: 55% 40%; }
@media (min-width: 820px) {
  .scene--lesson { margin: calc(-1 * var(--s-5)) 0 var(--s-3) calc(-1 * var(--s-7)); max-width: none; width: calc(100% + var(--s-7) + var(--s-4)); }
}

/* Speaking: one scene. The learner occupies the right half of the challenge panel, lit like a
   screen glow; the timer and question sit unboxed on the left. */
.scene--speak {
  position: relative;
  max-width: 340px;
  margin: 0 0 0 auto;
  aspect-ratio: 1 / 1;
}
.scene--speak::before {                       /* the light the learner sits in; the mask edge lands inside it */
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 174, 255, 0.30), rgba(120, 174, 255, 0.10) 55%, rgba(120, 174, 255, 0) 100%);
  z-index: 0;
}
.scene--speak picture {
  position: relative;
  z-index: 1;
  -webkit-mask-image: radial-gradient(closest-side at 50% 48%, #000 66%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 48%, #000 66%, transparent 100%);
}
.scene--speak img { object-position: 28% 0%; }   /* whole head, face and the gesturing hand in frame */

/* Support: right of the pricing intro, dissolving toward the heading; plans begin right below. */
.scene--team {
  aspect-ratio: 16 / 10;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 60%, transparent 100%);
  mask-composite: intersect;
}
.scene--team img { object-position: 50% 35%; }
@media (min-width: 900px) {
  .section-head--pricing { grid-template-columns: 1fr 520px; gap: var(--s-6); margin-bottom: var(--s-4); align-items: end; }
  .section-head--pricing .section-head-text { padding-bottom: var(--s-6); }
  .section-head--pricing .scene--team { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-6)) calc(-1 * var(--s-3)) 0; }
}
@media (max-width: 899px) {
  .section-head--pricing { margin-bottom: var(--s-4); }
  .section-head--split .scene--team { max-width: 480px; aspect-ratio: 5 / 2; margin: calc(-1 * var(--s-3)) auto 0; }
  .scene--team img { object-position: 50% 28%; }
}

/* ---------- Pain cards: one column on phones, 2x2 from 900px ---------- */
.pain-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 900px) { .pain-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
.card-pain {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-hair);
}
.card-pain-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--space-blue);
  margin-top: 2px;
}
.card-pain-icon .icon { width: 20px; height: 20px; }
.card-pain-body { min-width: 0; }
.card-pain h3 {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.4;
}
.card-pain p {
  margin: var(--s-1) 0 0;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* ---------- Chips (Learning Room: what gets recorded) ---------- */
.chips { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--deep-space);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ---------- The 60-second challenge: its own electric-blue field ---------- */
.beat--challenge {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--section-y-moment) 0;
  color: var(--on-dark);
  background: #3D6FBE;
  background-image: linear-gradient(165deg, #2B5AA6 0%, #3D6FBE 48%, #5A93E3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}
.challenge-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 60% at 22% 18%, rgba(120, 174, 255, 0.55), rgba(120, 174, 255, 0) 70%),
    radial-gradient(40% 50% at 84% 90%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%),
    radial-gradient(60% 40% at 50% 55%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 70%);
}
.beat--challenge .wrap { position: relative; z-index: 1; }
.challenge {                                  /* breaks out of the 900px wrap to 980px; ONE panel */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 2 * var(--gutter)));
  margin: 0;
  padding: var(--s-7) var(--s-5) var(--s-6);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(20, 44, 77, 0.90) 0%, rgba(31, 65, 111, 0.88) 100%);
  box-shadow: 0 40px 90px rgba(10, 24, 46, 0.45), 0 0 140px rgba(120, 174, 255, 0.40);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "main" "img" "points";
  row-gap: var(--s-4);
}
.points { grid-area: points; }
.challenge-body { display: contents; }
.challenge-title {
  grid-area: title;
  margin: 0;
  text-align: center;
  color: var(--on-dark);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  line-height: 1.35;
}
.scene--speak { grid-area: img; }
.challenge-main { grid-area: main; }
@media (max-width: 819px) {
  .scene--speak { max-width: 250px; margin: 0 auto calc(-1 * var(--s-2)); }
}
@media (min-width: 820px) {
  .challenge {
    padding: var(--s-8) var(--s-7) var(--s-8) var(--s-8);
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-areas: "title img" "main img" "points points";
    column-gap: var(--s-6);
    row-gap: var(--s-5);
    align-items: center;
    padding-right: var(--s-8);
  }
  .challenge-title { text-align: left; align-self: end; }
  .scene--speak { align-self: center; }
  .challenge-main { align-self: start; }
}
/* Speaking: the voice bars breathe, the sound arcs pulse */
.vwave rect { transform-box: fill-box; transform-origin: center; animation: vwave 1.8s ease-in-out infinite alternate; }
.vwave rect:nth-child(1) { animation-delay: 0s; }
.vwave rect:nth-child(2) { animation-delay: -0.5s; }
.vwave rect:nth-child(3) { animation-delay: -1.1s; }
.vwave rect:nth-child(4) { animation-delay: -0.3s; }
.vwave rect:nth-child(5) { animation-delay: -0.8s; }
.vwave rect:nth-child(6) { animation-delay: -1.4s; }
@keyframes vwave { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
.sound-arc { animation: sound-arc 3.6s ease-in-out infinite alternate; }
.sound-arc:nth-child(2) { animation-delay: -1.2s; }
.sound-arc:nth-child(3) { animation-delay: -2.4s; }
@keyframes sound-arc { from { opacity: 0.55; } to { opacity: 1; } }

/* The "future" beat that follows the challenge: same dark family, slightly lifted */
.beat--future { background-image: linear-gradient(160deg, #1F416F 0%, #1A3860 100%); }

/* ---------- The benefit of 60 seconds: question after question, 60 seconds each ---------- */
.flashcard::after {                           /* each question -> 60 seconds (decorative label, not copy) */
  content: "\2192 60\79D2";
  display: block;
  margin-top: 6px;
  font-family: var(--font-latin), var(--font-display), sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ice);
  text-align: center;
}
.statement--benefit { font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.375rem); font-weight: 900; line-height: 1.3; }
.abilities {
  list-style: none;
  margin: var(--s-5) auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  max-width: 800px;
}
.ability {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  color: var(--on-dark);
  white-space: nowrap;
}
.ability:not(:last-child)::after { content: "\00D7"; color: var(--ice); margin: 0 0.6em; font-weight: 700; }
@media (max-width: 559px) {
  .abilities { flex-direction: column; gap: 4px; }
  .ability:not(:last-child)::after { content: none; }
}

/* ---------- Staircase: 15 -> 30 -> 45 -> 60, one growing speech bubble per step ---------- */
.stairs {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
}
.stairs::before {                             /* the connector behind the second labels */
  content: "";
  position: absolute;
  left: 31px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--ice), var(--space-blue));
  opacity: 0.45;
}
.stair {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: var(--s-4);
  align-items: center;
}
.stair--15 { --w: 34%; --bg: var(--tint); --fg: var(--deep-space); }
.stair--30 { --w: 56%; --bg: #CFE0FF; --fg: var(--deep-space); }
.stair--45 { --w: 78%; --bg: var(--space-blue); --fg: #fff; }
.stair--60 { --w: 100%; --bg: var(--deep-space); --fg: #fff; }
.stair-sec {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-family: var(--font-latin), var(--font-display), sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--deep-space);
  font-feature-settings: "tnum" 1;
  box-shadow: var(--shadow-hair);
}
.stair--60 .stair-sec { background: var(--deep-space); border-color: var(--deep-space); color: #fff; box-shadow: 0 8px 20px rgba(31, 65, 111, 0.25); }
.stair-bubble {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  width: var(--w);
  padding: 12px 22px;
  border-radius: 18px 18px 18px 6px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.4;
  transform-origin: left center;
  box-shadow: 0 10px 24px rgba(31, 65, 111, 0.10);
}
.stair--60 .stair-bubble { box-shadow: 0 16px 36px rgba(31, 65, 111, 0.28); }
@media (max-width: 639px) {
  .stair { grid-template-columns: 52px 1fr; column-gap: var(--s-3); }
  .stair-sec { width: 52px; height: 52px; font-size: 0.95rem; }
  .stairs::before { left: 25px; }
  .stair--15 { --w: 54%; } .stair--30 { --w: 68%; } .stair--45 { --w: 84%; }
  .stair-bubble { min-height: 48px; padding: 10px 16px; }
}

/* ---------- Pricing ---------- */
.section-head--pricing { margin-bottom: var(--s-7); }
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.plan {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-panel);
  text-align: center;
}
@media (min-width: 640px) { .plan { padding: var(--s-7) var(--s-6) var(--s-6); } }
.plan-price {
  margin: 0;
  color: var(--deep-space);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2em;
  flex-wrap: wrap;
}
.plan-price-label { font-size: 1rem; color: var(--ink-soft); font-weight: 700; margin-right: 0.15em; }
.plan-price-num { font-size: var(--fs-price); font-weight: 700; letter-spacing: -0.02em; }
.plan-price-yen { font-size: 1.25rem; font-weight: 700; }
.plan-tax { font-size: var(--fs-caption); color: var(--ink-soft); font-weight: 500; font-family: var(--font-body); width: 100%; margin-top: var(--s-2); }
.plan-rows { list-style: none; margin: var(--s-5) 0 0; padding: 0; text-align: left; }
.plan-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-areas: "icon label" "icon value";
  column-gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line-soft);
}
.plan-row .icon { grid-area: icon; color: var(--space-blue); width: 22px; height: 22px; }
.plan-row-label { grid-area: label; font-size: var(--fs-caption); color: var(--ink-soft); font-weight: 700; }
.plan-row-value {
  grid-area: value;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--deep-space);
  font-feature-settings: "palt" 1, "tnum" 1;
}
.included {
  max-width: 980px;
  margin: var(--s-6) auto 0;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-panel);
}
@media (min-width: 720px) { .included { padding: var(--s-6) var(--s-7); margin-top: var(--s-7); } }
.included-title { margin: 0 0 var(--s-4); text-align: center; font-size: 1.125rem; }
.included-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--s-7);
  position: relative;
}
.included-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: var(--s-3);
  align-items: start;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line-soft);
}
.included-item .icon { width: 22px; height: 22px; color: var(--space-blue); margin-top: 3px; }
.included-item--design .icon { color: var(--deep-space); }
.included-name { display: block; font-family: var(--font-display); font-weight: 700; color: var(--deep-space); font-size: 0.95rem; line-height: 1.45; }
.included-copy { display: block; font-size: var(--fs-caption); color: var(--ink-soft); line-height: 1.6; margin-top: 2px; }
/* phones: learning-design items first, then Learning Room items (DOM order untouched) */
.included-item--design { order: 1; }
.included-item--room { order: 2; }
@media (min-width: 720px) {
  .included-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; }
  .included-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: var(--s-3);
    bottom: var(--s-3);
    width: 1px;
    background: var(--line-soft);
  }
  .included-item--design { grid-column: 1; order: 0; }
  .included-item--room { grid-column: 2; order: 0; }
  .included-item--design:first-child, .included-item--room:nth-child(3) { border-top: none; }
  .included-item--design:last-child { grid-row: 3 / span 3; }
}
@media (max-width: 719px) { .included-item:first-of-type { border-top: none; } }

/* ---------- Rail: numbered nodes on one continuous line ---------- */
.rail {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  counter-reset: rail;
  max-width: 860px;
}
.rail-node {
  position: relative;
  counter-increment: rail;
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding-bottom: var(--s-5);
}
.rail-node:last-child { padding-bottom: 0; }
.rail--v { max-width: 520px; }            /* vertical at every width */
.rail-node::before {                       /* the line, vertical by default */
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--space-blue), var(--ice));
  opacity: 0.45;
}
.rail-node:last-child::before { display: none; }
.rail-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--space-blue);
  box-shadow: var(--shadow-hair);
}
.rail-dot .icon { width: 24px; height: 24px; }
.rail--num .rail-dot::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.rail-node--final .rail-dot {
  background: var(--deep-space);
  border-color: var(--deep-space);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 65, 111, 0.25);
}
.rail-body { padding-top: 6px; min-width: 0; }
.rail-body::before {                       /* small step number above the title */
  content: counter(rail, decimal-leading-zero);
  display: block;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  color: var(--space-blue);
  margin-bottom: 2px;
}
.rail--num .rail-body::before { display: none; }
.rail--num .rail-body { padding-top: 16px; }
.rail-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-space);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.45;
  text-wrap: pretty;
  word-break: auto-phrase;
}
.rail-sub {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.65;
}
.rail-sub--chip {
  display: inline-block;
  background: var(--tint);
  color: var(--deep-space);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 500;
}
@media (min-width: 720px) {
  .rail--h {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: var(--s-4);
  }
  .rail--h .rail-node {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
  }
  .rail--h .rail-node::before {
    left: 50%;
    top: 27px;
    bottom: auto;
    width: calc(100% + var(--s-4));
    height: 2px;
    background: linear-gradient(90deg, var(--space-blue), var(--ice));
  }
  .rail--h .rail-body, .rail--h.rail--num .rail-body { padding-top: var(--s-2); }
}
.panel .rail-node:not(.rail-node--final) .rail-dot { background: var(--paper); }

/* ---------- Example strip ---------- */
.example-strip {
  list-style: none;
  margin: var(--s-7) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  max-width: 860px;
}
@media (min-width: 640px) { .example-strip { grid-template-columns: repeat(3, 1fr); } }
.example-tile {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: var(--s-4) var(--s-3);
  text-align: center;
}
.example-tile .icon { margin: 0 auto var(--s-2); color: var(--space-blue); }
.example-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-space);
  font-size: 0.95rem;
}
.example-sub { display: block; font-size: var(--fs-caption); color: var(--ink-soft); margin-top: 2px; }

/* ---------- Split (tutor): rail left, notebook right ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--s-6); align-items: start; }
.split-side .rail { max-width: 420px; margin: 0 auto; }
.split-lede { margin: var(--s-6) 0 0; text-align: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); }
  .split-side .rail { margin: 0; }
  .split-lede { text-align: left; }
}
.notebook {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-panel);
}
@media (min-width: 640px) { .notebook { padding: var(--s-6); } }
.notebook h3 { margin-bottom: var(--s-3); font-size: 1.125rem; }
.notebook ul { list-style: none; margin: 0; padding: 0; }
.notebook li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-body);
}
.notebook li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--space-blue);
  transform: translateY(-50%);
}
.notebook-foot {
  margin: var(--s-4) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-space);
}

/* ---------- Stage: the real Learning Room screenshot ---------- */
.stage { position: relative; margin: var(--s-8) auto 0; max-width: 960px; }
.stage-glow {
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60% 55% at 50% 45%, rgba(120, 174, 255, 0.35), rgba(120, 174, 255, 0) 70%);
  filter: blur(30px);
}
.stage-frame {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-stage);
}
.stage-bar {
  height: 40px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}
.stage-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.stage-frame img { width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
  .stage { margin-top: var(--s-6); }
  .stage-frame { border-radius: var(--radius); }
  .stage-bar { height: 28px; padding: 0 12px; gap: 6px; }
  .stage-bar span { width: 7px; height: 7px; }
}

/* ---------- Feature panels ---------- */
.panel-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 720px) { .panel-grid { grid-template-columns: 1fr 1fr; } }
.panel {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-panel);
}
@media (min-width: 720px) { .panel { padding: var(--s-6); } }
.panel h3 { margin: 0 0 var(--s-2); }
.panel p { margin: 0 0 var(--s-2); color: var(--ink); font-size: var(--fs-body); line-height: 1.8; }
.icon-sq {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--deep-space);
  color: #fff;
  margin-bottom: var(--s-4);
}
.icon-sq .icon { width: 22px; height: 22px; }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { position: relative; padding: 6px 0 6px 20px; color: var(--ink); font-size: var(--fs-body); }
.panel-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice);
}
.panel--wide { padding-top: var(--s-6); }
.panel-head { display: flex; gap: var(--s-4); align-items: flex-start; }
.panel-head .icon-sq { margin-bottom: 0; }
.panel-head h3 { margin-bottom: 4px; }
.panel-note { text-align: center; margin: 0; color: var(--ink); }
.panel-sub { font-size: var(--fs-small); color: var(--ink-soft); margin-top: var(--s-1); }
.panel p.panel-sub { font-size: var(--fs-small); color: var(--ink-soft); }
.panel .rail { max-width: 100%; }
.panel--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.panel--dark h3 { color: var(--on-dark); }
.panel--dark p { color: var(--on-dark-soft); }
.panel--dark .icon-sq { background: rgba(120, 174, 255, 0.18); color: var(--ice); }

/* ---------- Cadence (spec table inside <details>) ---------- */
.cadence {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
@media (min-width: 560px) { .cadence { grid-template-columns: repeat(3, 1fr); } }
.cadence-item {
  padding: var(--s-3) var(--s-4);
  text-align: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.cadence-item:last-child { border-bottom: none; }
@media (min-width: 560px) {
  .cadence-item { border-bottom: none; border-right: 1px solid var(--line-soft); }
  .cadence-item:last-child { border-right: none; }
}
.cadence-item .count {
  font-family: var(--font-latin), var(--font-display), sans-serif;
  font-weight: 700;
  color: var(--deep-space);
  font-size: 1.25rem;
  font-feature-settings: "tnum" 1;
}
.cadence-item .label { font-size: var(--fs-caption); color: var(--ink-soft); margin-top: 2px; }

/* ---------- Loop: the マスター cycle with a real return path ---------- */
.loop { position: relative; max-width: 520px; margin: 0 auto; padding-right: 36px; }
.loop-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.loop-steps::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  bottom: 20px;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--space-blue), var(--ice));
  opacity: 0.45;
}
.loop-steps::after {                          /* stub down to the branch bar */
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(-1 * var(--s-4));
  height: var(--s-4);
  width: 2px;
  margin-left: -1px;
  background: var(--line);
}
.loop-step {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-space);
  font-size: 0.95rem;
  margin-bottom: var(--s-4);
}
.loop-step:last-child { margin-bottom: 0; }
.loop-step--achieved {
  background: var(--space-blue);
  border-color: var(--space-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(61, 111, 190, 0.3);
}
.loop-branch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.loop-branch::before {                        /* the fork bar */
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: calc(-1 * var(--s-3));
  height: 2px;
  background: var(--line);
}
.loop-outcome {
  position: relative;
  border-radius: var(--radius-sm);
  padding: var(--s-3);
  text-align: center;
}
.loop-outcome::before {                       /* stub from the fork bar into each outcome */
  content: "";
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--s-3));
  width: 2px;
  height: var(--s-3);
  margin-left: -1px;
  background: var(--line);
}
.loop-outcome--good { background: var(--tint); }
.loop-outcome--retry { background: var(--paper-2); border: 1px dashed var(--line); }
.loop-outcome-label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.loop-outcome--good .loop-outcome-label { color: var(--space-blue); }
.loop-outcome--retry .loop-outcome-label { color: var(--ink-soft); }
.loop-outcome-result { display: block; font-size: var(--fs-caption); color: var(--ink); margin-top: 2px; line-height: 1.5; }
.loop-return {                                /* dashed path from 間違い back up into the first step */
  position: absolute;
  right: 0;
  top: 22px;
  bottom: 34px;
  width: 30px;
  border: 2px dashed var(--space-blue);
  border-left: none;
  border-radius: 0 18px 18px 0;
  opacity: 0.55;
}
.loop-return::before {                        /* arrowhead pointing back into step 1 */
  content: "";
  position: absolute;
  left: -12px;
  top: -7px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid var(--space-blue);
}

/* ---------- Chart: monthly mastered phrases (illustrative values, frozen) ---------- */
.chart-block { text-align: center; }
.chart-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-space);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  margin: 0;
}
.chart-lede { margin: var(--s-2) 0 0; color: var(--ink); }
.chart { max-width: 460px; margin: var(--s-7) auto 0; }
.chart-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  height: 176px;
  padding-top: 26px;
  border-bottom: 2px solid var(--line);
}
.chart-bars::before {                         /* four gridlines */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 26px; bottom: 0;
  background: repeating-linear-gradient(to top, transparent, transparent calc(25% - 1px), var(--line-soft) calc(25% - 1px), var(--line-soft) 25%);
}
.chart-bar {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 56px;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(120, 174, 255, 0.6), rgba(120, 174, 255, 0.28));
  display: flex;
  justify-content: center;
}
.chart-bar--20 { --h: 20%; } .chart-bar--38 { --h: 38%; } .chart-bar--58 { --h: 58%; }
.chart-bar--78 { --h: 78%; } .chart-bar--100 { --h: 100%; }
.chart-bar--now {
  background: linear-gradient(180deg, var(--ice), var(--space-blue));
  box-shadow: 0 8px 20px rgba(61, 111, 190, 0.25);
}
.chart-value {
  position: absolute;
  top: -24px;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--deep-space);
}
.chart-bar--now .chart-value { color: var(--space-blue); }
.chart-labels { display: flex; justify-content: center; gap: 14px; margin-top: 6px; }
.chart-labels span { flex: 1; max-width: 56px; text-align: center; font-size: var(--fs-caption); color: var(--ink-soft); }
.chart-foot {
  margin: var(--s-3) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-space);
}

/* ---------- Achievements, then the break: フレーズは覚えた / 意味も分かる / テストでも答えられる → でも、会話では使えない。 ---------- */
.checkpoints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: var(--s-2) auto 0;
}
.checkpoints .chk {                           /* a completed achievement */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(120, 174, 255, 0.55);
  background: linear-gradient(180deg, rgba(120, 174, 255, 0.22), rgba(120, 174, 255, 0.10));
  box-shadow: 0 0 0 1px rgba(120, 174, 255, 0.10), 0 8px 24px rgba(10, 24, 46, 0.25);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}

.checkpoints .chk::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ice);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23000'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23000'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  flex: 0 0 auto;
}
.checkpoints br { display: none; }
.checkpoints .brk {
  display: block;
  width: 100%;
  margin-top: var(--s-5);
  text-align: center;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.625rem, 1.15rem + 2.2vw, 2.625rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
  text-shadow: 0 2px 24px rgba(10, 24, 46, 0.5);
}
.beat--moment .section-head .checkpoints { color: inherit; }

/* ---------- The wall: 知っている英語 | 使える英語 ---------- */
.wall {
  list-style: none;
  margin: var(--s-7) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: center;
  justify-items: center;
  max-width: 960px;
}
.wall li {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.2rem + 4vw, 3.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
}
.wall-known {                                 /* contained, outlined, static */
  order: 1;
  padding: 14px 26px;
  border: 1.5px dashed rgba(255, 255, 255, 0.32);
  border-radius: 18px;
}
.wall-known .wall-word { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55); }
.wall-known { opacity: 0.85; }
.wall-bar {                                   /* the wall itself */
  order: 2;
  padding: 0;
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.95), rgba(255,255,255,0.05));
  box-shadow: 0 0 24px rgba(120, 174, 255, 0.55);
}
.wall-usable {                                /* activated, luminous, solid */
  order: 3;
  position: relative;
  padding: 14px 26px;
  color: var(--on-dark);
}
.wall-usable::before {                        /* light pool behind the words */
  content: "";
  position: absolute;
  inset: -40% -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 174, 255, 0.34), rgba(120, 174, 255, 0.10) 55%, rgba(120, 174, 255, 0) 100%);
}
.wall-usable .wall-word { display: inline-block; transform: scale(1.06); text-shadow: 0 0 28px rgba(120, 174, 255, 0.65), 0 0 72px rgba(120, 174, 255, 0.35); }
@media (min-width: 720px) {
  .wall { grid-template-columns: 1fr auto 1fr; grid-template-areas: "known bar usable" "bridge bridge bridge"; gap: var(--s-6) var(--s-7); }
  .wall-known { grid-area: known; }
  .wall-bar { grid-area: bar; }
  .wall-usable { grid-area: usable; }
  .wall-bridge { grid-area: bridge; }
  .wall-bar {
    width: 4px;
    height: 132px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.95), rgba(255,255,255,0.05));
  }
  .wall-known { justify-self: end; }
  .wall-usable { justify-self: start; }
}
.caption--wall { margin-top: var(--s-4); }

/* ---------- The bridge: 瞬発力 × 応用力 are how the wall is crossed ---------- */
.wall-bridge {
  order: 3;                                   /* phones: known -> wall -> bridge -> usable */
  width: 100%;
  max-width: 640px;
  margin: var(--s-2) auto 0;
  padding: 0;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: 0;
  white-space: normal;
}
.wall-usable { order: 4; }
.bridge-lead { margin: 0; color: var(--on-dark-soft); font-size: var(--fs-lead); }
.bridge-title {
  margin: var(--s-1) 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.25;
  color: var(--on-dark);
  font-feature-settings: "palt" 1;
  text-shadow: 0 2px 24px rgba(10, 24, 46, 0.45);
}
.bridge-x { color: var(--ice); margin: 0 0.2em; font-weight: 700; }
.bridge-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: var(--s-5) auto 0;
  padding: var(--s-4) 0;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}
.skill {
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-areas: "icon dt" "icon dd";
  column-gap: 10px;
  align-items: start;
  text-align: left;
  padding: 0 var(--s-5);
}
.skill + .skill { border-left: 1px solid rgba(255, 255, 255, 0.14); }   /* structural divider */
.skill .icon { grid-area: icon; width: 22px; height: 22px; color: var(--ice); margin-top: 3px; }
.skill dt { grid-area: dt; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--on-dark); line-height: 1.3; }
.skill dd { grid-area: dd; margin: 4px 0 0; font-size: 0.97rem; color: var(--on-dark-soft); line-height: 1.6; }
@media (max-width: 559px) {
  .bridge-skills { grid-template-columns: 1fr; row-gap: var(--s-3); }
  .skill + .skill { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: var(--s-3); }
}

/* ---------- The question is the hero of the challenge ---------- */
.question { text-align: center; }
.question-text {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  text-wrap: balance;
}
.question-ja { margin: var(--s-3) 0 0; font-size: var(--fs-lead); color: var(--on-dark-soft); }
@media (min-width: 820px) { .question { text-align: left; } }

/* ---------- Flashcards ---------- */
.flashcards {
  list-style: none;
  margin: var(--s-4) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  max-width: 720px;
}
.flashcard {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  text-align: center;
}
.flashcard p { margin: 0; color: var(--on-dark); font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
@media (min-width: 560px) {
  .flashcards { grid-template-columns: 1fr 1fr; gap: var(--s-4); padding: var(--s-2) 0; }
  .flashcard:nth-child(1) { transform: rotate(-1.5deg); }
  .flashcard:nth-child(2) { transform: rotate(1deg); }
  .flashcard:nth-child(3) { transform: rotate(1.2deg); }
  .flashcard:nth-child(4) { transform: rotate(-1deg); }
}


/* =====================================================================
   7b. LEGACY COMPONENTS still used by #system, #outcome, #beyond-speaking, #pricing
   (replaced when those sections are redesigned).
   ===================================================================== */

/* ---------- Growth message (legacy tinted box; #system and #outcome only) ---------- */
.growth-message {
  padding: 18px 20px;
  background: var(--tint);
  border-radius: var(--radius);
  color: var(--deep-space);
  font-weight: 700;
  font-size: 0.98rem;
  max-width: var(--text-max);
  margin: 0 auto;
  text-align: center;
}

/* ---------- 学習ルーム: sub-cards ---------- */
.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (min-width: 640px) { .room-grid { grid-template-columns: 1fr 1fr; } }
.room-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.room-card h3 { margin-bottom: 6px; }
.room-card .summary { color: var(--ink); margin: 0 0 4px; font-size: 0.94rem; }
.room-card ul { margin: 0; padding-left: 1.15em; font-size: 0.88rem; color: var(--ink-soft); }
.room-card li { margin-bottom: 4px; }

details.more {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
details.more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--space-blue);
  font-size: 0.86rem;
  list-style: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+  "; }
details.more[open] summary::before { content: "–  "; }
details.more summary:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
details.more .more-body { margin-top: 10px; font-size: 0.88rem; color: var(--ink); }
details.more .more-body p { margin: 0 0 8px; }
details.more .more-body p:last-child { margin-bottom: 0; }
details.more .more-body ul { margin: 0; padding-left: 1.15em; }
details.more .more-body li { margin-bottom: 4px; }

/* ---------- Benefit pairs ---------- */
.benefit-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefit-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
@media (max-width: 560px) {
  .benefit-item { grid-template-columns: 1fr; text-align: left; }
}
.benefit-func { font-size: 0.86rem; color: var(--ink-soft); }
.benefit-arrow { color: var(--space-blue); font-weight: 700; text-align: center; }
@media (max-width: 560px) { .benefit-arrow { text-align: left; } }
.benefit-result { font-size: 0.92rem; color: var(--deep-space); font-weight: 700; }

/* ---------- Strength chain ---------- */
.strength-chain {
  list-style: none;
  margin: 0 auto 18px;
  padding: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.strength-node {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--deep-space);
}
.strength-node--peak { background: var(--space-blue); border-color: var(--space-blue); color: #fff; }
.strength-arrow { text-align: center; color: var(--space-blue); font-size: 0.9rem; }

/* ---------- Optional-route badge ---------- */
.optional-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

/* ---------- Listening — optional routes ---------- */
.route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto 18px;
}
@media (min-width: 560px) { .route-grid { grid-template-columns: repeat(2, 1fr); } }
.route-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.route-card .icon-badge { margin: 0 auto 12px; }
.route-card h3 { margin-bottom: 6px; }
.route-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* =====================================================================
   8. Transitional utilities
   These replace the former inline style="" attributes one-for-one so that
   index.html carries zero inline styles. Values snap to the 8px scale.
   Phase 3 folds them into the redesigned components and deletes them.
   ===================================================================== */
.u-center { text-align: center; }
.u-mx { margin-left: auto; margin-right: auto; }
.u-mt-0 { margin-top: 0; }
.u-mt-1 { margin-top: var(--s-1); }
.u-mt-2 { margin-top: var(--s-2); }
.u-mt-3 { margin-top: var(--s-3); }
.u-mt-4 { margin-top: var(--s-4); }
.u-mt-5 { margin-top: var(--s-5); }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-7 { margin-top: var(--s-7); }
.u-mt-8 { margin-top: var(--s-8); }
.u-mt-9 { margin-top: var(--s-9); }
.u-mb-0 { margin-bottom: 0; }
.u-mb-5 { margin-bottom: var(--s-5); }
.u-strong { font-weight: 700; }
.h3-lg { font-size: 1.25rem; }

/* =====================================================================
   10. SCROLL MOTION (checkpoint 2D)
   script.js adds html.js, and .is-in to each [data-reveal] once it enters
   the viewport. Every rule below is gated on html.js:not(.reveal-off), so
   without JavaScript, or under prefers-reduced-motion, everything renders in
   its final state immediately. Only transform, opacity, clip-path and
   stroke-dashoffset animate. Each motion runs once.
   ===================================================================== */
:root { --rv-ease: cubic-bezier(0.2, 0.7, 0.2, 1); --rv-dur: 0.7s; --rv-step: 0.32s; }
@media (max-width: 767px) { :root { --rv-dur: 0.5s; --rv-step: 0.2s; } }

/* rise: statements, panels, inclusions */
html.js:not(.reveal-off) [data-reveal="rise"] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity var(--rv-dur) ease, transform var(--rv-dur) var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="rise"].is-in { opacity: 1; transform: none; }

/* stagger: pain cards, example tiles, panels, flashcards, plans */
html.js:not(.reveal-off) [data-reveal="stagger"] > * { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity var(--rv-dur) ease, transform var(--rv-dur) var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
html.js:not(.reveal-off) [data-reveal="stagger"].is-in > :nth-child(2) { transition-delay: 0.09s; }
html.js:not(.reveal-off) [data-reveal="stagger"].is-in > :nth-child(3) { transition-delay: 0.18s; }
html.js:not(.reveal-off) [data-reveal="stagger"].is-in > :nth-child(4) { transition-delay: 0.27s; }
html.js:not(.reveal-off) [data-reveal="stagger"].is-in > :nth-child(5) { transition-delay: 0.36s; }
html.js:not(.reveal-off) [data-reveal="stagger"].is-in > :nth-child(6) { transition-delay: 0.45s; }
html.js:not(.reveal-off) [data-reveal="stagger"].is-in > :nth-child(n+7) { transition-delay: 0.54s; }
/* flashcards keep their tilt in the final state */
html.js:not(.reveal-off) .flashcards[data-reveal].is-in > :nth-child(1) { transform: rotate(-1.5deg); }
html.js:not(.reveal-off) .flashcards[data-reveal].is-in > :nth-child(2) { transform: rotate(1deg); }
html.js:not(.reveal-off) .flashcards[data-reveal].is-in > :nth-child(3) { transform: rotate(1.2deg); }
html.js:not(.reveal-off) .flashcards[data-reveal].is-in > :nth-child(4) { transform: rotate(-1deg); }
@media (max-width: 559px) { html.js:not(.reveal-off) .flashcards[data-reveal].is-in > * { transform: none; } }

/* scenes enter from their natural side */
html.js:not(.reveal-off) [data-reveal="from-left"]  { opacity: 0; transform: translate3d(-24px, 0, 0); transition: opacity 0.9s ease, transform 0.9s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="from-right"] { opacity: 0; transform: translate3d(24px, 0, 0);  transition: opacity 0.9s ease, transform 0.9s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="from-left"].is-in, html.js:not(.reveal-off) [data-reveal="from-right"].is-in { opacity: 1; transform: none; }

/* rail: the line draws, nodes activate one by one, the final node fills last */
html.js:not(.reveal-off) [data-reveal="rail"] .rail-dot  { opacity: 0; transform: scale(0.7); transition: opacity 0.45s ease, transform 0.55s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="rail"] .rail-body { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 0.5s ease, transform 0.5s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="rail"] .rail-node::before { transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--rv-ease); }
@media (min-width: 720px) { html.js:not(.reveal-off) [data-reveal="rail"].rail--h .rail-node::before { transform: scaleX(0); transform-origin: left; } }
html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-dot, html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-body { opacity: 1; transform: none; }
html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node::before { transform: none; }
html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(1) .rail-dot, html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(1) .rail-body { transition-delay: 0s; }
html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(1)::before { transition-delay: calc(var(--rv-step) * 0.6); }
html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(2) .rail-dot, html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(2) .rail-body { transition-delay: calc(var(--rv-step) * 1.2); }
html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(2)::before { transition-delay: calc(var(--rv-step) * 1.8); }
html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(3) .rail-dot, html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(3) .rail-body { transition-delay: calc(var(--rv-step) * 2.4); }
html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(3)::before { transition-delay: calc(var(--rv-step) * 3); }
html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(4) .rail-dot, html.js:not(.reveal-off) [data-reveal="rail"].is-in .rail-node:nth-child(4) .rail-body { transition-delay: calc(var(--rv-step) * 3.6); }

/* tutor split: the rail waits for the scene */
html.js:not(.reveal-off) [data-reveal="split"] .rail .rail-dot, html.js:not(.reveal-off) [data-reveal="split"] .rail .rail-body { transition-delay: 0.3s; }

/* Learning Room screenshot: a soft mask opens once, with a small settle */
html.js:not(.reveal-off) [data-reveal="stage"] .stage-frame { opacity: 0; transform: scale(0.98); clip-path: inset(6% 4% round var(--radius-lg)); transition: opacity 0.9s ease, transform 1.1s var(--rv-ease), clip-path 1.1s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="stage"].is-in .stage-frame { opacity: 1; transform: none; clip-path: inset(0 0 round var(--radius-lg)); }

/* マスター loop: steps in sequence, then the return path draws back up */
html.js:not(.reveal-off) [data-reveal="loop"] .loop-step, html.js:not(.reveal-off) [data-reveal="loop"] .loop-outcome { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.5s ease, transform 0.5s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="loop"] .loop-return { clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="loop"].is-in .loop-step, html.js:not(.reveal-off) [data-reveal="loop"].is-in .loop-outcome { opacity: 1; transform: none; }
html.js:not(.reveal-off) [data-reveal="loop"].is-in .loop-step:nth-child(2) { transition-delay: calc(var(--rv-step) * 0.6); }
html.js:not(.reveal-off) [data-reveal="loop"].is-in .loop-step:nth-child(3) { transition-delay: calc(var(--rv-step) * 1.2); }
html.js:not(.reveal-off) [data-reveal="loop"].is-in .loop-step:nth-child(4) { transition-delay: calc(var(--rv-step) * 1.8); }
html.js:not(.reveal-off) [data-reveal="loop"].is-in .loop-outcome { transition-delay: calc(var(--rv-step) * 2.4); }
html.js:not(.reveal-off) [data-reveal="loop"].is-in .loop-return { clip-path: inset(0 0 0 0); transition-delay: calc(var(--rv-step) * 3); }

/* progress chart: bars rise in sequence, the current month last */
html.js:not(.reveal-off) [data-reveal="chart"] .chart-bar { transform: scaleY(0); transform-origin: bottom; transition: transform 0.7s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="chart"] .chart-value { opacity: 0; transition: opacity 0.4s ease; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar { transform: none; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-value { opacity: 1; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar:nth-child(2) { transition-delay: 0.12s; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar:nth-child(3) { transition-delay: 0.24s; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar:nth-child(4) { transition-delay: 0.36s; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar:nth-child(5) { transition-delay: 0.5s; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar:nth-child(1) .chart-value { transition-delay: 0.5s; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar:nth-child(2) .chart-value { transition-delay: 0.62s; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar:nth-child(3) .chart-value { transition-delay: 0.74s; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar:nth-child(4) .chart-value { transition-delay: 0.86s; }
html.js:not(.reveal-off) [data-reveal="chart"].is-in .chart-bar:nth-child(5) .chart-value { transition-delay: 1s; }

/* 知っている → 使える: checkpoints appear, the break interrupts, the wall rises, 使える英語 lights up */
html.js:not(.reveal-off) [data-reveal="checkpoints"] .chk { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 0.5s ease, transform 0.5s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="checkpoints"] .brk { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 0.6s ease, transform 0.6s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="checkpoints"].is-in .chk { opacity: 1; transform: none; }
html.js:not(.reveal-off) [data-reveal="checkpoints"].is-in .chk:nth-child(2) { transition-delay: calc(var(--rv-step) * 0.8); }
html.js:not(.reveal-off) [data-reveal="checkpoints"].is-in .chk:nth-child(3) { transition-delay: calc(var(--rv-step) * 1.6); }
html.js:not(.reveal-off) [data-reveal="checkpoints"].is-in .brk { opacity: 1; transform: none; transition-delay: calc(var(--rv-step) * 2.8); }
html.js:not(.reveal-off) [data-reveal="wall"] .wall-bar { transform: scaleX(0); transition: transform 0.8s var(--rv-ease); }
@media (min-width: 720px) { html.js:not(.reveal-off) [data-reveal="wall"] .wall-bar { transform: scaleY(0); } }
html.js:not(.reveal-off) [data-reveal="wall"] .wall-known { opacity: 0; transition: opacity 0.7s ease; }
html.js:not(.reveal-off) [data-reveal="wall"] .wall-usable { opacity: 0.22; transform: scale(0.96); transition: opacity 1s ease, transform 1s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="wall"] .wall-usable .wall-word { text-shadow: none; transition: text-shadow 1s ease; }
html.js:not(.reveal-off) [data-reveal="wall"] .wall-usable::before { opacity: 0; transition: opacity 1.2s ease; }
html.js:not(.reveal-off) [data-reveal="wall"].is-in .wall-known { opacity: 1; }
html.js:not(.reveal-off) [data-reveal="wall"].is-in .wall-bar { transform: none; transition-delay: 0.35s; }
html.js:not(.reveal-off) [data-reveal="wall"].is-in .wall-usable { opacity: 1; transform: none; transition-delay: 0.9s; }
html.js:not(.reveal-off) [data-reveal="wall"].is-in .wall-usable .wall-word { text-shadow: 0 0 28px rgba(120, 174, 255, 0.6), 0 0 64px rgba(120, 174, 255, 0.3); transition-delay: 0.9s; }
html.js:not(.reveal-off) [data-reveal="wall"].is-in .wall-usable::before { opacity: 1; transition-delay: 0.9s; }
html.js:not(.reveal-off) [data-reveal="wall"] .wall-bridge { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 0.8s ease, transform 0.8s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="wall"].is-in .wall-bridge { opacity: 1; transform: none; transition-delay: 1.6s; }

/* 60-second challenge: the ring draws, the question settles, the learner fades in beside it */
html.js:not(.reveal-off) [data-reveal="challenge"] .question-text, html.js:not(.reveal-off) [data-reveal="challenge"] .question-ja { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.7s ease, transform 0.7s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="challenge"] .scene--speak { opacity: 0; transition: opacity 1s ease; }
html.js:not(.reveal-off) [data-reveal="challenge"].is-in .question-text { opacity: 1; transform: none; transition-delay: 0.15s; }
html.js:not(.reveal-off) [data-reveal="challenge"].is-in .question-ja { opacity: 1; transform: none; transition-delay: 0.45s; }
html.js:not(.reveal-off) [data-reveal="challenge"].is-in .scene--speak { opacity: 1; transition-delay: 0.2s; }
html.js:not(.reveal-off) [data-reveal="challenge"] .point { opacity: 0; transform: translate3d(-8px, 0, 0); transition: opacity 0.5s ease, transform 0.5s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="challenge"].is-in .point { opacity: 1; transform: none; }
html.js:not(.reveal-off) [data-reveal="challenge"].is-in .point:nth-child(1) { transition-delay: 0.7s; }
html.js:not(.reveal-off) [data-reveal="challenge"].is-in .point:nth-child(2) { transition-delay: 0.9s; }
html.js:not(.reveal-off) [data-reveal="challenge"].is-in .point:nth-child(3) { transition-delay: 1.1s; }

/* 15 -> 60: one growth animation, each stage after the last */
html.js:not(.reveal-off) [data-reveal="stairs"] .stair-bubble { transform: scaleX(0.3); opacity: 0; transition: transform 0.8s var(--rv-ease), opacity 0.4s ease; }
html.js:not(.reveal-off) [data-reveal="stairs"] .stair-sec { opacity: 0; transform: scale(0.8); transition: opacity 0.4s ease, transform 0.5s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="stairs"].is-in .stair-bubble, html.js:not(.reveal-off) [data-reveal="stairs"].is-in .stair-sec { transform: none; opacity: 1; }
html.js:not(.reveal-off) [data-reveal="stairs"].is-in .stair:nth-child(2) .stair-bubble, html.js:not(.reveal-off) [data-reveal="stairs"].is-in .stair:nth-child(2) .stair-sec { transition-delay: calc(var(--rv-step) * 1); }
html.js:not(.reveal-off) [data-reveal="stairs"].is-in .stair:nth-child(3) .stair-bubble, html.js:not(.reveal-off) [data-reveal="stairs"].is-in .stair:nth-child(3) .stair-sec { transition-delay: calc(var(--rv-step) * 2); }
html.js:not(.reveal-off) [data-reveal="stairs"].is-in .stair:nth-child(4) .stair-bubble, html.js:not(.reveal-off) [data-reveal="stairs"].is-in .stair:nth-child(4) .stair-sec { transition-delay: calc(var(--rv-step) * 3); }

/* final landing: rises once, the emphasis line gains its glow last */
html.js:not(.reveal-off) [data-reveal="landing"] { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 1s ease, transform 1s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="landing"] strong { text-shadow: none; transition: text-shadow 1.2s ease 0.6s; }
html.js:not(.reveal-off) [data-reveal="landing"].is-in { opacity: 1; transform: none; }
html.js:not(.reveal-off) [data-reveal="landing"].is-in strong { text-shadow: 0 0 24px rgba(120, 174, 255, 0.55); }

/* pricing: the price numerals sharpen as the cards settle */
html.js:not(.reveal-off) .plans[data-reveal] .plan-price-num { filter: blur(6px); opacity: 0.4; transition: filter 0.9s ease, opacity 0.9s ease; }
html.js:not(.reveal-off) .plans[data-reveal].is-in .plan-price-num { filter: blur(0); opacity: 1; transition-delay: 0.25s; }

/* ---------- Challenge: the three things 60 seconds asks of you ---------- */
.points {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  counter-reset: pt;
}
@media (min-width: 560px) { .points { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } }
.point {
  counter-increment: pt;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 233, 255, 0.28);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
}
.point::before {
  content: counter(pt, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ice);
}
@media (min-width: 820px) { .challenge .points { margin-top: var(--s-2); } }

/* ---------- Pricing: existing-student note ---------- */
.plans-note {
  max-width: 860px;
  margin: var(--s-4) auto 0;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* ---------- Outcome: before -> after, integrated with the outcome rows ---------- */
.outcome-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .outcome-layout { grid-template-columns: 1fr 1.05fr; gap: var(--s-7); }
  .outcome-layout .benefit-list { max-width: none; margin: 0; }
}
.transform {
  position: relative;
  display: grid;
  grid-template-columns: 34% 1fr;
  grid-template-areas: "before after" "arrow after";
  align-items: end;
  column-gap: var(--s-2);
  max-width: 520px;
  margin: 0 auto;
}
.transform picture, .transform img { display: block; width: 100%; height: auto; }
.transform-before {                            /* smaller, muted, more distant */
  grid-area: before;
  align-self: start;
  margin-top: 6%;
  filter: grayscale(1) contrast(0.92);
  opacity: 0.72;
  transform: scale(0.94);
  transform-origin: right center;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 55%, transparent 95%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 55%, transparent 95%);
}
.transform-arrow { grid-area: arrow; width: 78%; height: auto; margin: 0 0 12% auto; overflow: visible; }
.transform-after {                             /* larger, full color, the section's anchor */
  grid-area: after;
  position: relative;
  -webkit-mask-image: radial-gradient(75% 78% at 50% 48%, #000 56%, transparent 96%);
  mask-image: radial-gradient(75% 78% at 50% 48%, #000 56%, transparent 96%);
}
.transform-after::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 174, 255, 0.35), rgba(120, 174, 255, 0) 100%);
  filter: blur(12px);
}
@media (max-width: 899px) { .transform { max-width: 440px; } }

/* outcome motion: muted before, arrow draws, after grows into colour, rows follow */
html.js:not(.reveal-off) [data-reveal="outcome"] .transform-before { opacity: 0; transform: scale(0.9) translate3d(-8px, 0, 0); transition: opacity 0.7s ease, transform 0.7s var(--rv-ease); }
html.js:not(.reveal-off) [data-reveal="outcome"] .transform-arrow-line { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 0.9s var(--rv-ease) 0.5s; }
html.js:not(.reveal-off) [data-reveal="outcome"] .transform-arrow-head { opacity: 0; transition: opacity 0.3s ease 1.2s; }
html.js:not(.reveal-off) [data-reveal="outcome"] .transform-after { opacity: 0; transform: scale(0.9); filter: saturate(0.2); transition: opacity 1s ease 1.1s, transform 1.1s var(--rv-ease) 1.1s, filter 1.2s ease 1.2s; }
html.js:not(.reveal-off) [data-reveal="outcome"].is-in .transform-before { opacity: 0.72; transform: scale(0.94); }
html.js:not(.reveal-off) [data-reveal="outcome"].is-in .transform-arrow-line { stroke-dashoffset: 0; }
html.js:not(.reveal-off) [data-reveal="outcome"].is-in .transform-arrow-head { opacity: 1; }
html.js:not(.reveal-off) [data-reveal="outcome"].is-in .transform-after { opacity: 1; transform: none; filter: saturate(1); }
html.js:not(.reveal-off) .outcome-layout .benefit-list[data-reveal="stagger"].is-in > * { transition-delay: calc(0.9s + var(--i, 0) * 0.12s); }
html.js:not(.reveal-off) .outcome-layout .benefit-list[data-reveal="stagger"].is-in > :nth-child(2) { transition-delay: 1.02s; }
html.js:not(.reveal-off) .outcome-layout .benefit-list[data-reveal="stagger"].is-in > :nth-child(3) { transition-delay: 1.14s; }
html.js:not(.reveal-off) .outcome-layout .benefit-list[data-reveal="stagger"].is-in > :nth-child(4) { transition-delay: 1.26s; }

/* ---------- 9. Accessibility + small screens ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 2px;
}
.section--moment a:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
}
@media (max-width: 767px) {
  :root { --s-7: 40px; --s-8: 48px; --s-9: 64px; --s-10: 80px; --section-y: 48px; }
  .beat--moment { padding: var(--s-8) 0; }
  .beat--light { padding: var(--s-7) 0; }
  .section-head { margin-bottom: var(--s-5); }
  .lede { margin-bottom: var(--s-4); }
  .rail-node { padding-bottom: var(--s-3); }
  .chart-bars { height: 150px; }
  .site-footer { padding: var(--s-6) 0; }
  .example-tile { padding: var(--s-3) var(--s-2); }
  .included { margin-top: var(--s-5); }
  .plans { gap: var(--s-3); }
}
@media (max-width: 639px) {
  .card-pain { display: block; padding: var(--s-4) var(--s-4) var(--s-4); }
  .card-pain-icon { width: 36px; height: 36px; margin: 0 0 var(--s-3); }
  .card-pain-icon .icon { width: 18px; height: 18px; }
  .card-pain h3 { font-size: 1.0625rem; }
  .challenge-title { margin-bottom: var(--s-4); }
  .challenge-body { gap: var(--s-4); }
  .beat--challenge { padding: var(--s-8) 0; }
  .challenge { padding: var(--s-6) var(--s-4); border-radius: 24px; }
}
@media (max-width: 767px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-4)); padding-bottom: var(--s-9); }
  .beat--moment { padding: var(--s-8) 0; }
  .panel { padding: var(--s-4) var(--s-4); }
  .panel--wide { padding-top: var(--s-5); }
  .flashcards { gap: var(--s-2); }
  .flashcard { padding: var(--s-3) var(--s-4); }
  .example-strip { margin-top: var(--s-5); }
  .rail-node { padding-bottom: var(--s-4); }
  .rail-node::before { top: 52px; }
  .section-head { margin-bottom: var(--s-6); }
}

/* ---------- Pricing: one core plan, launch note, conversation-practice add-on ---------- */
.plans--single { max-width: 520px; }
@media (min-width: 640px) { .plans--single { grid-template-columns: 1fr; } }
.plan--main {
  border-color: rgba(61, 111, 190, 0.32);
  box-shadow: var(--shadow-panel), 0 0 0 4px rgba(120, 174, 255, 0.14);
}
.plan-name {
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--space-blue);
}
.plan-campaign {
  max-width: 980px;
  margin: var(--s-5) auto 0;
  padding: var(--s-4) var(--s-5);
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--deep-space);
  background: rgba(120, 174, 255, 0.12);
  border: 1px solid rgba(120, 174, 255, 0.35);
  border-radius: var(--radius-lg);
  text-wrap: balance;
}
.options {
  max-width: 860px;
  margin: var(--s-6) auto 0;
  padding: var(--s-5);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.options-title { margin: 0 0 var(--s-2); text-align: center; font-size: 1rem; color: var(--deep-space); }
.options-lede {
  margin: 0 0 var(--s-4);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.7;
}
.options-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 560px) { .options-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
.option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.option-name { font-weight: 700; color: var(--deep-space); font-size: 0.95rem; white-space: nowrap; }
.option-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep-space);
  font-feature-settings: "palt" 1, "tnum" 1;
  white-space: nowrap;
}
@media (max-width: 639px) { .plan-campaign { margin-top: var(--s-4); } .options { margin-top: var(--s-5); padding: var(--s-4); } }
