:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-elevated: #0c0f14;
  --surface: #11151d;
  --surface-soft: #151b24;
  --surface-quiet: #0a0d12;
  --text: #f6f7fb;
  --text-soft: #d8dce5;
  --muted: #9ba3b1;
  --quiet: #717a89;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #7e8cff;
  --accent-strong: #9aa4ff;
  --green: #65d08f;
  --amber: #f2c56d;
  --rose: #ec82aa;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  /* Editorial serif for display headlines — premium, and matches the serif the
     KnewMe app already uses for note headings. System serifs, no webfont. */
  --font-serif:
    "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, ui-serif,
    "Songti SC", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  font-family: var(--font-sans);
  line-height: 1.5;
  text-rendering: geometricprecision;
  -webkit-font-smoothing: antialiased;
}

/* Editorial serif display headlines. */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.012em;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

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

:root[data-lang="zh"] .copy-en,
:root[data-lang="en"] .copy-zh {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(132px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  color: rgba(246, 247, 251, 0.9);
  background: rgba(7, 8, 11, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #0a0d12;
  background: linear-gradient(135deg, #ffffff, #aab3ff);
  border-radius: 8px;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.live-link {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover,
.live-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}

.live-link {
  color: var(--text-soft);
  border: 1px solid var(--line);
  font-size: 14px;
}

.language-toggle {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lang-option {
  min-width: 54px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}

.lang-option.is-active {
  color: #0a0d12;
  background: #ffffff;
}

.hero-section {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  width: min(1240px, calc(100% - 64px));
  grid-template-columns: minmax(420px, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 56px;
  margin: 0 auto;
  padding: 86px 0 96px;
}

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

.eyebrow,
.section-index {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 20px;
}

.hero-actions,
.waitlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 720;
}

.button.primary {
  color: #090b10;
  background: #ffffff;
}

.button.primary:hover {
  background: #dfe4ff;
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-proof > span {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-proof strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.hero-proof span span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.browser-frame {
  min-width: 0;
  overflow: hidden;
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-shot {
  align-self: center;
}

.browser-topbar {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: var(--quiet);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.browser-dots {
  display: inline-flex;
  gap: 6px;
}

.browser-dots i {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--quiet);
  border-radius: 50%;
}

.browser-dots i:nth-child(1) {
  background: var(--rose);
}

.browser-dots i:nth-child(2) {
  background: var(--amber);
}

.browser-dots i:nth-child(3) {
  background: var(--green);
}

.browser-url {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-viewport {
  aspect-ratio: 1.44;
  overflow: hidden;
  background: #0d1117;
}

.shot-viewport.compact {
  aspect-ratio: 1.58;
}

/* Hero frame is taller so the full flagship answer + task cards are visible. */
.hero-shot .shot-viewport {
  aspect-ratio: 1.12;
}

.shot-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.browser-frame figcaption {
  margin: 0;
  padding: 13px 14px 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.capability-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.capability-section.alt {
  background: rgba(255, 255, 255, 0.025);
}

.section-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 48px;
}

.capability-layout.reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
}

.capability-layout.reverse .capability-copy {
  order: 2;
}

.capability-copy {
  min-width: 0;
}

.capability-copy h2,
.waitlist-layout h2 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.capability-copy p,
.waitlist-copy p {
  color: var(--text-soft);
  font-size: 18px;
}

.capability-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.capability-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(126, 140, 255, 0.15);
}

.shot-stack {
  display: grid;
  gap: 18px;
}

.inset-shot {
  justify-self: end;
  width: min(82%, 760px);
}

.trust-section {
  background:
    linear-gradient(180deg, rgba(126, 140, 255, 0.05), transparent 42%),
    rgba(255, 255, 255, 0.018);
}

.waitlist-section {
  padding: 92px 0;
}

.waitlist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 46px;
  align-items: center;
  padding: 42px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.waitlist-layout h2 {
  margin-bottom: 0;
}

.waitlist-copy p {
  margin-bottom: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 32px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 760;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 680;
}

/* ---- shared section heads ---- */
.section-head {
  max-width: 760px;
  margin: 0 0 68px;
}

.section-head h2 {
  margin-bottom: 16px;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.section-lede {
  margin: 0;
  color: var(--text-soft);
  font-size: 19px;
}

.section-index.center {
  text-align: center;
}

/* ---- labeled screenshot slot (drop real shots in as features land) ---- */
.shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #0d1117;
}

.shot-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(126, 140, 255, 0.05),
      rgba(126, 140, 255, 0.05) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--surface-quiet);
  border: 1.5px dashed rgba(126, 140, 255, 0.4);
  border-radius: 8px;
}

.shot-slot.mini,
.shot-slot.tall {
  min-height: 0;
  padding: 16px;
  gap: 6px;
}

.shot-slot-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  color: var(--accent-strong);
  background: rgba(126, 140, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shot-slot-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--text-soft);
}

.shot-slot-desc {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.45;
}

/* ---- how it works (3 steps) ---- */
.how-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.step-num {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  color: #0a0d12;
  background: linear-gradient(135deg, #ffffff, #aab3ff);
  border-radius: 9px;
  font-weight: 760;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
}

.step-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
}

.step-shot {
  margin: auto 0 0;
  overflow: hidden;
  aspect-ratio: 1.6;
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: 9px;
}

/* ---- showcase flow strip ---- */
.showcase-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 14px;
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.flow-step.is-act {
  border-color: rgba(126, 140, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(126, 140, 255, 0.18);
}

.flow-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.flow-step-no {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.flow-step .shot-slot.tall,
.flow-step .shot-img.tall {
  aspect-ratio: 1.3;
  overflow: hidden;
  border-radius: 8px;
}

.flow-step figcaption {
  margin: 14px 0 2px;
  color: var(--text-soft);
  font-size: 14px;
}

.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  color: var(--rose);
  background: rgba(236, 130, 170, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
}

.rec-pill i {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.rec-pill.transcribing {
  color: var(--amber);
  background: rgba(242, 197, 109, 0.12);
}

.rec-pill.done {
  color: var(--green);
  background: rgba(101, 208, 143, 0.12);
}

.rec-pill.act {
  color: var(--accent-strong);
  background: rgba(126, 140, 255, 0.14);
}

/* ---- what's different grid ---- */
.different-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.diff-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.diff-card.wide {
  grid-column: span 2;
}

.diff-card h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.16;
}

.diff-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
}

.diff-shot {
  margin: auto 0 0;
  overflow: hidden;
  aspect-ratio: 1.9;
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.diff-card.wide .diff-shot {
  aspect-ratio: 3.4;
}

/* ---- proof / promise strip ---- */
.proof-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.promise-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.promise-row li {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.promise-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.promise-row li > span {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-inner,
  .capability-layout,
  .capability-layout.reverse,
  .waitlist-layout {
    grid-template-columns: 1fr;
  }

  .capability-layout.reverse .capability-copy {
    order: 0;
  }

  .hero-inner {
    gap: 38px;
  }

  h1 {
    font-size: 54px;
    line-height: 1.02;
  }

  .capability-copy h2,
  .waitlist-layout h2 {
    font-size: 38px;
    line-height: 1.08;
  }

  .inset-shot {
    width: 100%;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .diff-card.wide {
    grid-column: span 1;
  }

  .diff-card.wide .diff-shot {
    aspect-ratio: 1.9;
  }

  .promise-row {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 38px;
    line-height: 1.08;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand span:last-child,
  .live-link {
    display: none;
  }

  .language-toggle {
    width: 126px;
  }

  .lang-option {
    min-width: 58px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .hero-inner,
  .section-inner {
    width: calc(100% - 36px);
  }

  .hero-inner {
    padding: 58px 0 70px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-lede,
  .capability-copy p,
  .waitlist-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .waitlist-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .capability-section,
  .how-section,
  .showcase-section,
  .different-section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .flow-strip {
    grid-template-columns: 1fr;
  }

  .capability-layout {
    gap: 30px;
  }

  .capability-copy h2,
  .waitlist-layout h2 {
    font-size: 31px;
    line-height: 1.12;
  }

  .browser-topbar {
    height: 34px;
  }

  .browser-frame figcaption {
    font-size: 12px;
  }

  .waitlist-section {
    padding: 64px 0;
  }

  .waitlist-layout {
    padding: 24px;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px 34px;
  }
}

/* ============================================================
   Waitlist form — real capture (replaces the old mailto link)
   ============================================================ */
.waitlist-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.waitlist-form .field {
  display: grid;
  gap: 6px;
}

.waitlist-form .field-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
}

.waitlist-form input::placeholder {
  color: var(--quiet);
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 140, 255, 0.22);
}

.waitlist-submit {
  margin-top: 2px;
  width: 100%;
}

.waitlist-status {
  margin: 2px 0 0;
  min-height: 18px;
  font-size: 14px;
  color: var(--muted);
}
.waitlist-status[data-state="error"] {
  color: var(--rose);
}
.waitlist-status[data-state="done"] {
  color: var(--green);
}

.waitlist-form.is-done .field,
.waitlist-form.is-done .waitlist-submit {
  display: none;
}

.waitlist-fineprint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--quiet);
}

/* ============================================================
   Demo band — the omnibox flow in motion
   ============================================================ */
.demo-section {
  padding: 30px 0 18px;
}

.demo-frame {
  max-width: 760px;
  margin: 0 auto;
}

.demo-stage {
  position: relative;
  padding: 26px 24px 30px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(126, 140, 255, 0.07), transparent 60%),
    var(--surface-quiet);
  min-height: 360px;
}

.demo-omnibox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.3);
}

.demo-omnibox-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(126, 140, 255, 0.16);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.demo-typed {
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}

.demo-caret {
  width: 2px;
  height: 20px;
  background: var(--accent-strong);
  animation: demo-blink 1s steps(1) infinite;
  flex: none;
}
@keyframes demo-blink {
  50% { opacity: 0; }
}

.demo-mic {
  margin-left: auto;
  opacity: 0.5;
  flex: none;
}

/* the staged lines: hidden by default, revealed by data-step */
.demo-line {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  margin-top: 16px;
}

.demo-stage[data-step="1"] .demo-thinking,
.demo-stage[data-step="2"] .demo-consequence,
.demo-stage[data-step="3"] .demo-consequence,
.demo-stage[data-step="4"] .demo-receipt {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* keep the consequence visible behind the receipt for continuity */
.demo-stage[data-step="4"] .demo-consequence {
  opacity: 0.4;
  transform: translateY(0);
}

.demo-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.demo-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(126, 140, 255, 0.3);
  border-top-color: var(--accent-strong);
  animation: demo-spin 0.7s linear infinite;
  flex: none;
}
@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

.demo-consequence {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--surface-soft);
}

.demo-consequence-head {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.demo-writes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.demo-writes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.demo-write-kind {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(126, 140, 255, 0.14);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex: none;
  min-width: 64px;
  justify-content: center;
}

.demo-confirm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.demo-confirm {
  padding: 8px 18px;
  border-radius: 8px;
  background: #ffffff;
  color: #090b10;
  font-weight: 720;
  font-size: 14px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* press feedback when the demo "confirms" */
.demo-stage[data-step="3"] .demo-confirm {
  transform: scale(0.94);
  box-shadow: 0 0 0 4px rgba(126, 140, 255, 0.35);
}

.demo-confirm-hint {
  font-size: 12px;
  color: var(--quiet);
}

.demo-receipt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 14px;
}

.demo-receipt-check {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(101, 208, 143, 0.16);
  flex: none;
  font-weight: 700;
}

@media (max-width: 720px) {
  .demo-stage { min-height: 420px; padding: 20px 16px 24px; }
  .demo-typed { font-size: 15px; white-space: normal; }
  .demo-write-kind { min-width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-line { transition: none; }
  .demo-caret, .demo-spinner { animation: none; }
}
