:root {
  --paper: #f6f3eb;
  --paper-soft: #fbfaf6;
  --paper-card: #fffdf8;
  --paper-fiber: rgba(25, 29, 32, 0.05);
  --ink: #191d20;
  --muted: #596168;
  --muted-soft: #74716a;
  --orange: #d6531d;
  --orange-deep: #9b3711;
  --accent: var(--orange);
  --accent-deep: var(--orange-deep);
  --accent-soft: #f7d8c4;
  --glossa-label-bg: #fff4c9;
  --glossa-label-ink: #1f2428;
  --glossa-rule: #d9d4c8;
  --glossa-success: #25784a;
  --glossa-error: #b43b32;
  --content-max: 86rem;
  --page-gutter: clamp(1.25rem, 4.4vw, 5rem);
  --nav-height: clamp(4rem, 11.111svh, 6.25rem);
  --ui-font:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --cn-serif-font:
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun",
    Georgia, "Times New Roman", serif;
  --article-font: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --demo-gloss-font-size: 11px;
  --demo-gloss-font-family: var(--ui-font);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(31, 36, 40, 0.035) 0 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 78% 12%,
      rgba(31, 36, 40, 0.028) 0 1px,
      transparent 1px
    ),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
  background-size:
    18px 18px,
    26px 26px,
    auto;
  font-family: var(--ui-font);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image:
    radial-gradient(
      circle at 12px 16px,
      var(--paper-fiber) 0 0.6px,
      transparent 0.9px
    ),
    radial-gradient(
      circle at 52px 44px,
      rgba(255, 255, 255, 0.72) 0 0.7px,
      transparent 1px
    );
  background-size: 68px 62px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: var(--nav-height);
  padding-inline: max(
    var(--page-gutter),
    calc((100vw - var(--content-max)) / 2)
  );
  background: linear-gradient(
    180deg,
    rgba(251, 250, 246, 0.96),
    rgba(251, 250, 246, 0.78) 72%,
    transparent
  );
  backdrop-filter: blur(8px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.nav-logo {
  display: block;
  width: clamp(6.4rem, 9vw, 8.5rem);
  height: auto;
}

.site-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 1.8vw, 2rem);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  min-height: 2.35rem;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: clamp(0.9rem, 0.94vw, 1rem);
  font-weight: 650;
  line-height: 1;
}

.download-pill,
.primary-button {
  min-width: max-content;
  border: 1px solid color-mix(in srgb, var(--accent-deep) 38%, var(--accent));
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent));
  color: #fff8eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 20px rgba(214, 83, 29, 0.18);
}

.download-pill {
  min-height: 2.42rem;
  padding: 0 1rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.35rem;
  font-family: var(--ui-font);
  font-size: 0.98rem;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  color: var(--accent-deep);
  font-family: var(--ui-font);
  font-size: 0.96rem;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem 1.25rem;
  margin-top: clamp(1.55rem, 3svh, 2.3rem);
}

.mobile-story {
  display: none;
}

.story-desktop {
  height: 520svh;
  padding-top: var(--nav-height);
}

.stage {
  position: sticky;
  top: var(--nav-height);
  display: grid;
  place-items: center;
  height: calc(100svh - var(--nav-height));
  min-height: 0;
  overflow: hidden;
}

.stage-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.39fr) minmax(0, 0.61fr);
  align-items: center;
  width: min(82rem, calc(100vw - (var(--page-gutter) * 2)));
  height: 100%;
  column-gap: clamp(2.5rem, 4.2vw, 5rem);
  transform: translateY(-1.2svh);
}

.left-viewport {
  height: 100%;
  min-width: 0;
  overflow: visible;
}

.left-track {
  height: 300%;
  will-change: transform;
}

.left-panel,
.mobile-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-panel {
  height: 33.3333%;
  padding-right: clamp(0rem, 1.2vw, 1rem);
}

.left-panel h1,
.left-panel h2,
.mobile-panel h1,
.mobile-panel h2,
.product-copy h2,
.closing-cta h2 {
  margin: 0;
  font-family: var(--cn-serif-font);
  font-weight: 650;
  letter-spacing: 0;
}

.left-panel h1,
.mobile-panel h1 {
  max-width: 9em;
  font-size: clamp(3.22rem, 4.25vw, 4.7rem);
  line-height: 1.12;
}

.left-panel h2,
.mobile-panel h2 {
  max-width: 9em;
  font-size: clamp(2.58rem, 3.24vw, 3.62rem);
  line-height: 1.16;
}

.left-panel p,
.mobile-panel p {
  max-width: 35rem;
  margin: clamp(1.25rem, 2.8svh, 2rem) 0 0;
  color: var(--muted);
  font-family: var(--cn-serif-font);
  font-size: clamp(1rem, 1.04vw, 1.12rem);
  font-weight: 400;
  line-height: 1.78;
}

.right-stage {
  display: grid;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.reading-demo {
  position: relative;
  width: min(100%, 44rem);
  margin-inline: auto;
  --glossa-font-family: var(--demo-gloss-font-family);
  --glossa-font-size: var(--demo-gloss-font-size);
  --glossa-bg-color: var(--glossa-label-bg);
  --glossa-bg-alpha: 94%;
  --glossa-text-color: var(--glossa-label-ink);
  --alt-progress: 0;
  --mask-progress: 0;
  --click-progress: 0;
  --card-progress: 0;
}

.browser-demo {
  border: 1px solid color-mix(in srgb, var(--glossa-rule) 92%, white);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.8),
      rgba(255, 253, 247, 0.98)
    ),
    var(--paper-card);
  box-shadow:
    0 18px 42px rgba(25, 29, 32, 0.09),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
}

.browser-bar {
  display: grid;
  grid-template-columns: 0.7rem 0.7rem 0.7rem 1fr;
  align-items: center;
  gap: 0.52rem;
  min-height: 3rem;
  padding: 0 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--glossa-rule) 72%, white);
  background: rgba(255, 253, 247, 0.84);
}

.browser-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-soft) 64%, var(--glossa-rule));
}

.browser-dot:first-child {
  background: color-mix(in srgb, var(--accent) 88%, white);
}

.browser-dot:nth-child(2) {
  background: color-mix(in srgb, var(--accent-soft) 74%, #d3b45f);
}

.browser-dot:nth-child(3) {
  background: color-mix(in srgb, var(--glossa-success) 72%, white);
}

.browser-url {
  justify-self: end;
  width: min(21rem, 66%);
  padding: 0.38rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--glossa-rule) 84%, white);
  border-radius: 999px;
  color: var(--muted-soft);
  background: rgba(255, 255, 255, 0.74);
  font-family: var(--ui-font);
  font-size: 0.76rem;
  text-align: center;
}

.article-page {
  position: relative;
  min-height: min(26.4rem, calc(100svh - var(--nav-height) - 5.8rem));
  padding: clamp(2rem, 3.8svh, 2.52rem) clamp(2.35rem, 3vw, 2.88rem);
  background:
    linear-gradient(90deg, rgba(216, 203, 183, 0.36) 1px, transparent 1px) 0 0 /
      4rem 100%,
    linear-gradient(rgba(255, 253, 248, 0.96), rgba(255, 252, 246, 0.96));
}

.article-kicker {
  margin: 0 0 1.12rem;
  color: var(--muted-soft);
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.reading-copy {
  position: relative;
  max-width: 37.4rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--article-font);
  font-size: clamp(1rem, 0.98vw, 1.08rem);
  line-height: 1.52;
  text-align: left;
}

.reading-copy + .reading-copy {
  margin-top: 1.05rem;
}

.reading-demo [data-glossa-token] {
  position: relative;
  display: inline-block;
  min-width: max-content;
  max-width: max-content;
  padding-block-start: calc(var(--glossa-font-size) + 8px);
  margin-inline: 1px;
  line-height: inherit;
  text-align: center;
  vertical-align: baseline;
  white-space: nowrap;
}

.reading-demo [data-glossa-token-label] {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  padding: 1px 6px 2px;
  border: 1px solid
    color-mix(in srgb, var(--accent) 45%, var(--glossa-bg-color));
  border-radius: 4px;
  background: color-mix(in srgb, var(--glossa-bg-color) var(--glossa-bg-alpha), transparent);
  color: var(--glossa-text-color);
  font-family: var(--glossa-font-family);
  font-size: var(--glossa-font-size);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(42, 35, 24, 0.16);
  pointer-events: none;
  transform: translateX(-50%);
}

.reading-demo [data-glossa-token-surface] {
  display: inline;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.reading-demo [data-glossa-token-width] {
  display: block;
  height: 0;
  overflow: hidden;
  padding-inline: 6px;
  visibility: hidden;
  font-family: var(--glossa-font-family);
  font-size: var(--glossa-font-size);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.card-target [data-glossa-token-surface] {
  position: relative;
  z-index: 3;
  background: rgba(255, 228, 137, calc(0.88 * var(--click-progress)));
}

.word-pointer {
  position: absolute;
  left: 68%;
  top: 72%;
  z-index: 8;
  width: clamp(1.4rem, 1.65vw, 1.72rem);
  height: auto;
  opacity: var(--click-progress);
  transform: translate(
    calc(-0.8rem * (1 - var(--click-progress))),
    calc(-0.68rem * (1 - var(--click-progress)))
  );
  pointer-events: none;
}

.carding-layer {
  position: absolute;
  inset: 3rem 0 0;
  pointer-events: none;
}

.alt-key {
  position: absolute;
  top: clamp(1rem, 5%, 2rem);
  left: clamp(1rem, 6%, 2.4rem);
  z-index: 5;
  display: block;
  width: clamp(4.2rem, 5.7vw, 5.35rem);
  height: auto;
  opacity: var(--alt-progress);
  transform: translateY(calc(-0.25rem * (1 - var(--alt-progress))));
}

.reading-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(25, 29, 32, calc(0.32 * var(--mask-progress)));
}

.anki-card {
  position: absolute;
  right: clamp(1rem, 5%, 2rem);
  bottom: clamp(1rem, 6%, 2.2rem);
  z-index: 6;
  width: min(19.7rem, 68%);
  padding: 0.88rem 0.95rem 0.98rem;
  border: 1px solid var(--glossa-rule);
  border-radius: 8px;
  background:
    linear-gradient(#fffdf7, #fffaf0),
    radial-gradient(
      circle at 30% 20%,
      rgba(31, 36, 40, 0.045) 0 1px,
      transparent 1px
    );
  background-size:
    auto,
    19px 19px;
  box-shadow: 0 12px 28px rgba(25, 29, 32, 0.16);
  opacity: var(--card-progress);
  transform: translateY(calc(1rem * (1 - var(--card-progress))));
  font-family: var(--ui-font);
}

.anki-title {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--glossa-rule);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.anki-row {
  display: grid;
  grid-template-columns: 4.1rem 1fr;
  gap: 0.8rem;
  padding: 0.66rem 0;
  border-bottom: 1px solid var(--glossa-rule);
}

.anki-row span {
  color: var(--muted-soft);
  font-size: 0.86rem;
  font-weight: 650;
}

.anki-row strong {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 780;
}

.anki-row p,
.anki-example {
  margin: 0;
}

.anki-row p {
  color: var(--ink);
  font-size: 1rem;
}

.anki-example {
  padding-top: 0.72rem;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.5;
}

.anki-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  margin-top: 0.78rem;
  padding: 0 0.9rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff8eb;
  font-size: 0.84rem;
  font-weight: 800;
}

.product-section {
  min-height: 88svh;
  display: grid;
  align-items: center;
  padding: clamp(4.45rem, 6.4vw, 5.85rem) var(--page-gutter);
  border-top: 1px solid color-mix(in srgb, var(--glossa-rule) 72%, transparent);
  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 248, 0.68),
      rgba(246, 243, 235, 0.34)
    ),
    transparent;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(19rem, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(2.6rem, 4.8vw, 5.2rem);
  align-items: center;
  width: min(82rem, 100%);
  margin-inline: auto;
}

.settings-preview {
  display: grid;
  grid-template-columns: minmax(8rem, 0.32fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--glossa-rule);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 253, 247, 0.9)),
    radial-gradient(
      circle at 20% 15%,
      rgba(31, 36, 40, 0.045) 0 1px,
      transparent 1px
    );
  background-size:
    auto,
    20px 20px;
  box-shadow: 0 12px 30px rgba(25, 29, 32, 0.085);
  font-family: var(--ui-font);
}

.settings-rail-preview {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  min-width: 0;
  padding: 1.05rem 0.95rem;
  border-right: 1px solid var(--glossa-rule);
  background: rgba(255, 253, 247, 0.58);
}

.settings-logo {
  display: block;
  width: min(7.25rem, 100%);
  height: auto;
}

.settings-rail-preview nav {
  display: grid;
  gap: 0.35rem;
}

.settings-rail-preview span {
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.52rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.settings-rail-preview span:nth-child(3) {
  border-color: var(--glossa-rule);
  background: rgba(255, 253, 247, 0.82);
  color: var(--accent);
}

.settings-workspace-preview {
  min-width: 0;
  background:
    linear-gradient(rgba(255, 253, 247, 0.9), rgba(255, 250, 240, 0.82)),
    radial-gradient(
      circle at 15% 20%,
      rgba(31, 36, 40, 0.035) 0 1px,
      transparent 1px
    );
  background-size:
    auto,
    18px 18px;
}

.settings-header-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--glossa-rule);
  background: rgba(255, 253, 247, 0.78);
}

.settings-header-preview p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.settings-header-preview h3 {
  margin: 0.18rem 0 0;
  color: var(--ink);
  font-family: var(--cn-serif-font);
  font-size: clamp(1.18rem, 1.6vw, 1.5rem);
  line-height: 1.1;
}

.save-button-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.18rem;
  min-width: 4.35rem;
  padding: 0 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(214, 83, 29, 0.18);
}

.settings-grid-preview {
  display: grid;
  gap: 0.72rem;
  padding: 0.88rem;
}

.settings-block {
  padding: 0.96rem;
  border: 1px solid color-mix(in srgb, var(--glossa-rule) 84%, white);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
  font-family: var(--ui-font);
}

.settings-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 850;
}

.settings-block p {
  margin: 0.24rem 0 0.72rem;
  color: var(--muted-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.field-row {
  display: grid;
  grid-template-columns: 6.35rem minmax(0, 1fr);
  gap: 0.68rem;
  align-items: center;
  min-height: 2.34rem;
  padding: 0 0.72rem;
  border: 1px solid var(--glossa-rule);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
}

.field-row + .field-row,
.field-row + .secondary-button {
  margin-top: 0.5rem;
}

.field-row span {
  color: var(--muted-soft);
  font-size: 0.8rem;
}

.field-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-row {
  grid-template-columns: 6.35rem minmax(0, 1fr);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.28rem;
  padding: 0 0.8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--glossa-rule));
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.72);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.compact-settings {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.compact-settings p {
  margin-bottom: 0;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 0.44rem;
}

.swatch {
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(42, 35, 24, 0.18);
  border-radius: 50%;
}

.swatch-label {
  background: var(--glossa-label-bg);
}

.swatch-success {
  background: #ddf3df;
}

.swatch-error {
  background: #f7d4d2;
}

.product-copy {
  padding-top: clamp(0rem, 1.4vw, 0.8rem);
}

.product-copy h2,
.closing-cta h2 {
  max-width: 10em;
  font-size: clamp(2.36rem, 3.28vw, 3.78rem);
  line-height: 1.16;
}

.closing-cta h2 {
  max-width: 12.5em;
  font-size: clamp(2.28rem, 3.05vw, 3.5rem);
}

.product-copy > p,
.closing-cta p {
  max-width: 40rem;
  margin: clamp(1rem, 1.9vw, 1.35rem) 0 0;
  color: var(--muted);
  font-family: var(--cn-serif-font);
  font-size: clamp(0.98rem, 1.04vw, 1.12rem);
  line-height: 1.74;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.66rem 1.25rem;
  max-width: 41rem;
  margin: clamp(1.35rem, 2.45vw, 1.95rem) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--ui-font);
}

.feature-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.48;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 850;
}

.closing-cta {
  margin-top: clamp(2rem, 3.6vw, 3.3rem);
  padding-top: clamp(1.65rem, 2.9vw, 2.4rem);
  border-top: 1px solid var(--glossa-rule);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--content-max), calc(100vw - (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding: 1.6rem 0 2rem;
  color: var(--muted-soft);
  font-family: var(--ui-font);
  font-size: 0.84rem;
}

@media (min-width: 1024px) and (min-height: 600px) {
  .mobile-story {
    display: none;
  }
}

@media (max-width: 1160px) and (min-width: 1024px) {
  .stage-shell {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    column-gap: 2.2rem;
  }

  .left-panel h1 {
    font-size: clamp(3.05rem, 4.45vw, 4.55rem);
  }

  .left-panel h2 {
    font-size: clamp(2.45rem, 3.35vw, 3.55rem);
  }

  .reading-copy {
    font-size: clamp(0.98rem, 1.06vw, 1.08rem);
  }

}

@media (max-width: 1023px), (max-height: 599px) {
  :root {
    --page-gutter: clamp(1rem, 5vw, 2rem);
    --nav-height: 3.7rem;
  }

  .site-nav {
    position: sticky;
    min-height: var(--nav-height);
    height: auto;
    padding: 0.55rem var(--page-gutter);
    background: rgba(248, 247, 242, 0.96);
  }

  .site-nav nav {
    gap: 0.55rem 0.78rem;
  }

  .nav-link {
    min-height: 2rem;
    font-size: clamp(0.82rem, 3.2vw, 0.96rem);
  }

  .site-nav nav .nav-link:not(.download-pill) {
    display: none;
  }

  .nav-logo {
    width: clamp(5.8rem, 31vw, 7.4rem);
  }

  .download-pill {
    min-height: 2.12rem;
    padding-inline: 0.78rem;
  }

  .story-desktop {
    display: none;
    height: 0;
    padding: 0;
    overflow: hidden;
  }

  .mobile-story {
    display: block;
    width: min(44rem, calc(100vw - (var(--page-gutter) * 2)));
    margin-inline: auto;
    padding: clamp(2.2rem, 9vw, 4.4rem) 0 clamp(3rem, 11vw, 5rem);
  }

  .mobile-panel {
    min-height: auto;
    padding: clamp(2.2rem, 10vw, 4.6rem) 0;
  }

  .mobile-panel h1 {
    font-size: clamp(2.85rem, 12vw, 4.25rem);
    line-height: 1.16;
  }

  .mobile-panel h2 {
    font-size: clamp(2.35rem, 9.8vw, 3.45rem);
  }

  .mobile-panel p {
    max-width: 100%;
    font-size: clamp(1rem, 4.1vw, 1.16rem);
    line-height: 1.82;
  }

  .hero-actions {
    margin-top: 1.25rem;
  }

  .primary-button,
  .text-link {
    min-height: 2.7rem;
  }

  .mobile-reading {
    display: block;
    width: 100%;
    margin: 1rem 0 clamp(2.6rem, 10vw, 4rem);
  }

  .browser-demo {
    border-radius: 8px;
  }

  .browser-bar {
    display: none;
  }

  .article-page {
    min-height: 0;
    padding: clamp(1.4rem, 7vw, 2.2rem) clamp(1rem, 5vw, 1.6rem);
  }

  .reading-copy {
    max-width: 100%;
    font-size: clamp(1rem, 4.25vw, 1.18rem);
    line-height: 1.9;
  }

  .reading-demo [data-glossa-token-label] {
    font-size: 11px;
    transform: translate(-50%, 0);
  }

  .mobile-reading-card {
    position: relative;
    padding-bottom: 0;
    --alt-progress: 1;
    --mask-progress: 1;
    --click-progress: 1;
    --card-progress: 1;
  }

  .mobile-card-reading-shell {
    position: relative;
    margin-top: 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .mobile-card-reading-shell .article-page {
    position: relative;
    z-index: 1;
    padding-top: 4.6rem;
  }

  .mobile-card-reading-shell .carding-layer {
    z-index: 2;
    inset: 0;
  }

  .mobile-card-reading-shell .alt-key {
    top: 0.8rem;
    left: 0.8rem;
    width: 4rem;
  }

  .mobile-card-reading-shell .reading-mask {
    inset: 0;
  }

  .word-pointer {
    width: 1.45rem;
  }

  .mobile-reading-card .anki-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1.05rem;
    opacity: 1;
    transform: none;
  }

  .product-section {
    padding: clamp(3.6rem, 12vw, 5rem) var(--page-gutter);
  }

  .product-shell {
    grid-template-columns: 1fr;
  }

  .settings-preview {
    order: 2;
    grid-template-columns: 1fr;
  }

  .settings-rail-preview {
    gap: 0.8rem;
    padding: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--glossa-rule);
  }

  .settings-logo {
    width: 6.4rem;
  }

  .settings-rail-preview nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .settings-rail-preview span {
    justify-content: center;
    min-height: 1.95rem;
    padding-inline: 0.35rem;
    font-size: 0.78rem;
  }

  .settings-header-preview,
  .settings-grid-preview {
    padding: 0.9rem;
  }

  .product-copy {
    order: 1;
    padding-top: 0;
  }

  .product-copy h2,
  .closing-cta h2 {
    max-width: 9em;
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 5.6rem minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .compact-settings {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.6rem;
  }
}
