:root {
  --indigo: #3730A3;
  --indigo-dark: #2E2A8F;
  --indigo-border: #5B54C9;
  --indigo-light-text: #C9C7F5;
  --indigo-soft: #EEEDF9;
  --coral: #FF6B5E;
  --coral-underline: #E8503F;
  --bg: #F6F6FA;
  --text: #17171F;
  --muted: #55555F;
  --muted-dark: #333333;
  --border: #E6E6EE;
  --border-strong: #D5D5E0;
  --sunken: #EDEDF2;
  --indigo-deep: #211C6B;
  --coral-cheek: #FF9E90;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--indigo);
}

a:hover {
  color: var(--indigo-dark);
}

.dot {
  color: var(--coral);
}

/* Hero — indigo as ruled paper, not a flat block */
.hero {
  background: var(--indigo);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 43px,
    rgba(255, 255, 255, 0.055) 43px,
    rgba(255, 255, 255, 0.055) 44px
  );
  /* fade the rules out at the top and bottom so they read as paper, not a grid */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* A fixed hairline of meta across the whole page: the mark, what this is, and
   the visitor's own clock. It rides white over the indigo hero, then flips to
   ink on a light backdrop once the story starts (script.js toggles .is-past). */
.metabar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease;
}

.metabar.is-past {
  color: var(--text);
  background: rgba(246, 246, 250, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  text-decoration: none;
  color: inherit;
}

.logo-wordmark {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: inherit;
}

.metabar__tag,
.metabar__clock {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: inherit;
  opacity: 0.74;
}

.metabar__clock {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

/* One thing in the first screen, and it is the promise. Everything else waits
   for the scroll. */
.hero-content {
  position: relative;
  max-width: 1240px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 152px 32px 72px;
  display: flex;
  flex-direction: column;
  /* `safe` keeps a hero taller than the viewport (small phone, large default
     text) from centring itself into unreachable overflow above the fold. */
  justify-content: center;
  justify-content: safe center;
  text-align: left;
}

.hero-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin-top: 56px;
}

.hero-foot__copy {
  min-width: 0;
}

.hero-content h1 {
  font-size: clamp(46px, 8.4vw, 124px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
  max-width: 13ch;
  text-wrap: balance;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--indigo-light-text);
  max-width: 46ch;
  margin: 30px 0 0;
}

/* The headline writes itself: the coral stroke draws under "one line" first,
   then the period lands. The dot stays the final mark. */
.hero-underline-wrap {
  position: relative;
  white-space: nowrap;
}

.hero-underline {
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: -0.06em;
  width: calc(100% - 0.04em);
  height: 0.22em;
  color: var(--coral);
  overflow: visible;
}

.hero-underline path {
  stroke-dasharray: 305;
  stroke-dashoffset: 305;
  animation: draw-line 520ms cubic-bezier(0.16, 1, 0.3, 1) 380ms forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.hero-content h1 .dot {
  position: relative;
  display: inline-block;
  color: transparent;
  transform-origin: 50% 75%;
  animation: land-dot 340ms cubic-bezier(0, 0, 0, 1) 960ms both;
}

.hero-content h1 .dot::after {
  content: '';
  position: absolute;
  left: 0.04em;
  bottom: 0.055em;
  width: 0.17em;
  height: 0.17em;
  border-radius: 50%;
  background: var(--coral);
}

@keyframes land-dot {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}

/* Proper nouns in their own case — solid tint (no alpha) clears 4.5:1 on the indigo. */
.language-list {
  font-size: 14px;
  font-weight: 500;
  color: var(--indigo-light-text);
  margin: 0;
}

/* Equal columns keep the two badges the same size regardless of label length. */
.store-badges {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 14px;
  margin-top: 34px;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--coral);
  border: none;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 107, 94, 0.38);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.play-badge__icon {
  flex-shrink: 0;
}

.play-badge__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.play-badge__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.play-badge__cta {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.play-badge:hover {
  background: var(--coral-underline);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 107, 94, 0.46);
}

.play-badge:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.notify-form {
  max-width: 400px;
  margin: 0;
}

.notify-label {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.notify-row {
  display: flex;
  gap: 10px;
}

/* A recessed well, not a hairline underline — the field has to read as a field
   against the indigo. */
.notify-input {
  flex: 1;
  min-width: 0;
  background: rgba(15, 12, 68, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.45); /* 3.26:1 on the hero — clears the 3:1 UI-boundary minimum */
  color: #fff;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}

.notify-input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.notify-input:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.notify-input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-color: #fff;
}

/* White on the indigo hero — an indigo fill would vanish into the background. */
.notify-submit {
  background: #fff;
  color: var(--indigo);
  border: none;
  border-radius: 4px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.notify-submit:hover {
  background: var(--indigo-soft);
}

.notify-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.notify-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notify-hint {
  font-size: 13px;
  color: var(--indigo-light-text);
  margin: 10px 0 0;
  text-align: left;
}

.notify-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
  margin: 10px 0 0;
  text-align: left;
}

.notify-confirm[data-tone="success"]::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .notify-row {
    flex-direction: column;
  }
}

.preview-card__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.preview-card__listen {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin-left: -4px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  border-radius: 6px;
}

/* 44px effective hit area without moving the layout */
.preview-card__listen::after {
  content: '';
  position: absolute;
  inset: -8px;
}

.preview-card__listen:hover {
  color: var(--indigo);
}

.preview-card__listen:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.preview-card__listen.is-playing {
  color: var(--coral);
}

.preview-card__listen.is-playing svg {
  animation: speak-pulse 640ms ease-in-out infinite alternate;
}

@keyframes speak-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.preview-card__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.done-disc {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corrected-word {
  color: var(--indigo);
  font-weight: 600;
}

/* Section label used by "How it works" and "FAQ" */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  text-align: center;
  margin: 0 0 10px;
}

.section-intro {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  max-width: 42ch;
  margin: 0 auto 44px;
}

.faq .section-label {
  margin-bottom: 40px;
}

/* FAQ */
.faq {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 32px 120px;
}

.faq-inner {
  max-width: 640px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--indigo-soft);
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.site-footer__wordmark {
  font-weight: 600;
  font-size: 14px;
  color: var(--indigo);
}

.site-footer__copy {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.site-footer__links {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.site-footer__links a {
  color: var(--muted);
}

/* Legal pages (privacy / terms) */
.legal-page {
  line-height: 1.65;
  min-height: 100vh;
}

.legal-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 32px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-header .logo-wordmark {
  color: var(--text);
}

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 100px;
}

.legal-main h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-main .updated {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 40px;
}

.legal-main p {
  font-size: 15px;
  color: var(--muted-dark);
  margin: 0 0 24px;
}

.legal-main h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 36px 0 10px;
}

.legal-main ul {
  font-size: 15px;
  color: var(--muted-dark);
  margin: 0;
  padding-left: 20px;
}

.legal-main li {
  margin: 6px 0;
}

.legal-footer {
  background: var(--indigo-soft);
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
}

.legal-footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.legal-footer a {
  color: var(--muted);
}

/* Family only — each role sets its own size, so the card's scale
   (prompt 21 > correction 17 > draft 15) survives the shared class. */
.korean-text {
  font-family: 'Noto Sans KR', 'Plus Jakarta Sans', system-ui, sans-serif;
}

a:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 4px;
}

.hero a:focus-visible {
  outline-color: #fff;
}

@media (max-width: 900px) {
  .hero-content {
    padding: 128px 32px 72px;
  }

  .hero-foot {
    margin-top: 52px;
    gap: 28px;
  }

  .notify-form {
    max-width: none;
    width: 100%;
  }

  .statement {
    padding: 104px 32px 96px;
  }
}

@media (max-width: 640px) {
  .metabar {
    padding: 14px 20px;
    gap: 12px;
  }

  /* Three across does not survive a phone. The tagline is the one that goes —
     the headline says the same thing one screen down. */
  .metabar__tag {
    display: none;
  }

  .metabar {
    grid-template-columns: 1fr auto;
  }

  .hero-content h1 {
    max-width: none;
  }

  .statement,
  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .store-badges {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas {
    display: none;
  }

  .hero-content h1 .dot,
  .hero-underline path,
  .preview-card__listen.is-playing svg {
    animation: none;
  }

  .hero-underline path {
    stroke-dashoffset: 0;
  }
}

/* ============================================================
   "A week later" — what one line leaves behind.
   Four beats, each with the real artifact from the app beside it.
   Copy left, evidence right, same alignment every time: a ledger of
   consequences, deliberately not an alternating feature zigzag.
   ============================================================ */

/* The belief the rest of the page rests on. Big type, set left, ragged right,
   with room around it — the one place this page raises its voice. */
.statement {
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px 32px 92px;
}

.statement__line {
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.08;
  margin: 0;
  max-width: 17ch;
  text-wrap: balance;
}

.statement__sub {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 44ch;
  margin: 40px 0 0;
}

/* ============================================================
   One line, followed through — the page as a single scroll down
   one day and then one month. A spine with a clock on it: marker,
   copy, artifact, the same three columns every beat, so the eye
   learns the rhythm once and the story carries the rest.
   ============================================================ */

.story {
  padding: 100px 32px 40px;
}

.story .section-intro {
  max-width: 52ch;
  margin-bottom: 76px;
  text-wrap: balance;
}

.story-list {
  list-style: none;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0;
}

.story-beat {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 0 44px;
  align-items: start;
  padding-bottom: 92px;
}

.story-beat:last-child {
  padding-bottom: 0;
}

/* The spine: one rule running the whole way down, drawn per beat so it can
   ink in as you arrive rather than all at once. */
.story-beat::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform-origin: top;
}

.story-beat:last-child::before {
  display: none;
}

.story-beat__marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--indigo);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* The clock. Not an eyebrow for decoration — the time is the story's axis. */
.phase-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 8px;
}

.story-beat__copy h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 14px;
  max-width: 26ch;
  text-wrap: balance;
}

.story-beat__copy p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 40ch;
}

.story-beat__copy p:last-child {
  margin-bottom: 0;
}

/* Each beat inks in as it is reached — the story assembles under you.
   Static is the default; script.js only ever reveals. */
.story-list.will-ink .story-beat {
  opacity: 0;
}

.story-list.will-ink .story-beat.is-inked {
  animation: ink-up 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.story-list.will-ink .story-beat.is-inked .story-beat__marker {
  animation: land-dot 300ms cubic-bezier(0, 0, 0, 1) 140ms both;
}

.story-list.will-ink .story-beat.is-inked::before {
  animation: draw-spine 560ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

@keyframes ink-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes draw-spine {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* --- Beats 1–2: the lock screen, which is where the whole wedge lives --- */
.lockscreen {
  background: var(--indigo-deep);
  border-radius: 22px;
  padding: 24px 18px 28px;
}

.lockscreen__time {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}

.notif {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 12px 14px 14px;
}

.notif__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.notif__icon {
  flex: 0 0 auto;
  border-radius: 5px;
}

.notif__app {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.notif__ago {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.notif__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
}

.notif__body {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

/* The inline reply — the one control that makes the daily ask survivable. */
.notif__reply {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.notif__reply-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text);
}

.notif__send {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--indigo);
  display: grid;
  place-items: center;
}

/* --- The fork: the same minute spent two ways. This beat deliberately breaks
       the copy/artifact rhythm and spans the full width, because a fork should
       look like one. --- */
.story-beat--fork .story-beat__copy,
.story-beat--fork .story-beat__art {
  grid-column: 2 / -1;
}

.story-beat--fork .story-beat__copy h3 {
  max-width: 34ch;
}

.story-beat--fork .story-beat__copy p {
  max-width: 62ch;
}

.story-beat--fork .story-beat__art {
  margin-top: 32px;
}

.fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.fork__path {
  min-width: 0;
}

.fork__label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* --- The composer, for the day you have five minutes --- */
.composer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.composer__prompt {
  background: var(--indigo-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.composer__prompt-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 4px 0 0;
}

/* The writing card holds the 2pt indigo border the app uses for "focused and
   committed" — the border is how a surface lights up here, never a glow. */
.composer__field {
  border: 2px solid var(--indigo);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.composer__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--indigo);
  animation: caret-blink 900ms steps(1) infinite;
}

.composer__count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}

.aid-sheet {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.aid-sheet__tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.aid-sheet__tabs span {
  font-size: 13px;
  color: var(--muted);
}

.aid-sheet__tabs .is-on {
  color: var(--indigo);
  font-weight: 600;
}

/* The aid sheet is Pro (ADR-0022) and says so, the same way the app does. */
.pro-chip {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aid-sheet__line {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.aid-sheet__gloss {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0 0;
}

.aid-sheet__footer {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}

/* --- Beat 3: the answer, with the learner's own sentence as the hero --- */
.result-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.result-card__encourage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
}

.result-card__line {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  margin: 4px 0 0;
}

/* --- The mascot's in-sentence form: a dashed pill with two eyes.
       Same geometry as the app's MiniBlank (44×28 base, 52×30 inline). --- */
.mini-blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 30px;
  height: 19px;
  border: 2px dashed var(--indigo);
  border-radius: 10px;
  flex: 0 0 auto;
}

.mini-blank i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--indigo);
}

.mini-blank--inline {
  display: none; /* the answer is the default state; script.js hides it to replay */
  width: 52px;
  height: 30px;
  border-width: 2.5px;
  border-radius: 15px;
  border-color: var(--indigo-border);
  background: #fff;
  gap: 4px;
  vertical-align: -7px;
}

.mini-blank--inline i {
  width: 6px;
  height: 6px;
}

/* --- Beat 1: the shelf --- */
.shelf {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shelf__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.shelf__title {
  font-size: 18px;
  font-weight: 600;
}

.practice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
}

.shelf__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
}

.shelf__term {
  font-size: 17px;
  font-weight: 600;
}

.shelf__gloss {
  font-size: 14px;
  color: var(--muted);
}

.bookmark {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

/* --- Beat 1, focal: the blank fills itself in --- */
.cloze {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
}

.cloze__sentence {
  font-size: 21px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

.cloze__answer {
  display: inline-block;
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  font-weight: 600;
  border-radius: 10px;
  padding: 0 10px;
}

.cloze__gloss {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* The banner keeps its box while the answer is held back, so revealing it
   never shoves the sentence. */
.cloze__banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--indigo-soft);
  text-align: left;
}

.buddy {
  flex: 0 0 auto;
}

.cloze__verdict {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo-deep);
}

.cloze__sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.cloze.is-holding .cloze__answer {
  display: none;
}

.cloze.is-holding .mini-blank--inline {
  display: inline-flex;
}

.cloze.is-holding .cloze__banner {
  visibility: hidden;
}

.cloze.is-revealing .cloze__answer {
  animation: pop-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cloze.is-revealing .cloze__banner {
  animation: pop-in 300ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* --- Beat 2: the pattern guide --- */
.patterns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.patterns__seg {
  align-self: flex-start;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--sunken);
  margin-bottom: 4px;
}

.patterns__seg span {
  padding: 5px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}

.patterns__seg .is-on {
  background: #fff;
  color: var(--indigo);
  font-weight: 600;
}

.patterns__row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.patterns__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.patterns__name {
  font-size: 15px;
  font-weight: 600;
}

.patterns__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 6px 0 10px;
}

/* --- Beat 3: where you slip --- */
.gap-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
}

.gap-card + .gap-card {
  margin-top: 12px;
}

.gap-card__name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.gap-card__meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

.gap-card__flag {
  color: var(--indigo);
  font-weight: 500;
}

/* The learner's own words, framed as theirs — a plain rule, never a highlight
   or a red mark on a sentence they wrote. */
.gap-card__quote {
  border-left: 2px solid var(--border-strong);
  padding-left: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.gap-card__quote-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

/* --- Beat 4: the month --- */
.calendar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.calendar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.calendar__month {
  font-size: 16px;
  font-weight: 600;
}

.calendar__stat {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  justify-items: center;
}

.calendar__wd {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.calendar__day {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  color: var(--muted-dark);
  font-variant-numeric: tabular-nums;
}

.calendar__day.is-written {
  background: var(--indigo);
  color: #fff;
  font-weight: 600;
}

/* Today reads as a ring, the way a focused surface does everywhere else here —
   not a second accent colour. */
.calendar__day.is-today {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.calendar__day.is-future {
  color: var(--muted);
}

/* ============================================================
   What it costs — the free column first, and deliberately longer.
   ============================================================ */

.tiers {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 100px 32px 104px;
}

.tiers .section-label {
  margin-bottom: 44px;
}

.tiers-inner {
  max-width: 820px;
  margin: 0 auto;
}

.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tier:first-child {
  padding-right: 44px;
}

.tier:last-child {
  padding-left: 44px;
  border-left: 1px solid var(--border);
}

.tier h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 16px;
}

.tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tier li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.tier li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--indigo);
}

/* Pro's marks are open — what's included reads as filled, what's added reads
   as outlined. Shape does the work, so it survives colour-blindness. */
.tier:last-child li::before {
  background: transparent;
  border: 1.5px solid var(--indigo-border);
}

.tiers-note {
  max-width: 60ch;
  margin: 44px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   Browser surfaces — selection, scrollbar, underline offset.
   ============================================================ */

::selection {
  background: var(--indigo-soft);
  color: var(--text);
}

.hero ::selection {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

html {
  scrollbar-color: var(--border-strong) transparent;
}

a {
  text-underline-offset: 2px;
}

.language-list__next {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .story {
    padding: 84px 32px 32px;
  }

  .story-list {
    max-width: 560px;
  }

  .story-beat {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 0 20px;
    padding-bottom: 64px;
  }

  .story-beat__art {
    grid-column: 2;
    margin-top: 22px;
  }

  .story-beat__copy h3,
  .story-beat__copy p {
    max-width: none;
  }

  .story-beat--fork .story-beat__copy h3,
  .story-beat--fork .story-beat__copy p {
    max-width: none;
  }

  .story-beat--fork .story-beat__art {
    margin-top: 22px;
  }

  .fork {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tiers-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tier:first-child {
    padding-right: 0;
  }

  .tier:last-child {
    padding-left: 0;
    padding-top: 36px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .story,
  .tiers {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cloze {
    padding: 24px 16px 18px;
  }

  .cloze__sentence {
    font-size: 19px;
  }

  .calendar {
    padding: 18px 14px;
  }

  .calendar__day {
    width: 30px;
    height: 30px;
  }

  .calendar__grid {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloze.is-revealing .cloze__answer,
  .cloze.is-revealing .cloze__banner {
    animation: none;
  }
}
