/* Vocabinet marketing landing — token vars generated from brand-tokens.json */
/* @generated brand-tokens START — npm run doc:brand-tokens */
:root {
  --font-display: "Manrope", system-ui, sans-serif;
  /** Former mono slots (eyebrows, tags, footer) — same sans stack as UI. */
  --font-mono: var(--font-display);
  --accent: #c6f633;
  --accent-2: #b4e92a;
  --accent-ink: #11150a;
  --accent-dim: rgba(198, 246, 51, 0.14);
  --bg: #0d1117;
  --bg-grid: rgba(255, 255, 255, 0.022);
  --elevated: #161b22;
  --surface: #1c2128;
  --border: #30363d;
  --border-soft: #21262d;
  --text: #e6edf3;
  --muted: #9aa4af;
  --faint: #828b97;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 20px 48px -24px rgba(0, 0, 0, 0.85);
  --maxw: 1080px;
  --radius: 16px;
  --radius-button: 9px;
  --radius-card: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f4f7;
    --bg-grid: rgba(0, 0, 0, 0.025);
    --elevated: #eef2f7;
    --surface: #ffffff;
    --border: #d0d7e2;
    --border-soft: #e7ebef;
    --text: #111827;
    --muted: #4b5563;
    --faint: #6b7280;
    --accent-dim: rgba(198, 246, 51, 0.22);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 20px 48px -24px rgba(0, 0, 0, 0.12);
  }
}
/* @generated brand-tokens END */

/* App semantic aliases (landing hero preview mirrors VocabularyScreen tokens). */
html {
  --surface2: var(--elevated);
  --difficult-mark: #9a7f52;
  --difficult-mark-on-surface: #a98960;
}

@media (prefers-color-scheme: light) {
  html {
    --difficult-mark: #a88958;
    --difficult-mark-on-surface: #8b7348;
  }
}

/* Label voice (F-01) — metadata only: eyebrows, tags, stat-adjacent chrome. */
.vc-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.wordmark-topbar {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mark .drawer-active {
  fill: var(--accent);
}

.mark .case {
  fill: none;
  stroke: currentColor;
}

.mark .handle {
  fill: currentColor;
}

.mark .handle-active {
  fill: var(--accent-ink);
}

.topbar-actions {
  --topbar-control-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-lang-select-wrap {
  display: inline-flex;
  align-items: center;
  margin: 0;
  height: var(--topbar-control-height);
  position: relative;
}

.topbar-lang-compact {
  display: none;
}

.topbar-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 11rem;
  max-width: 11rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--elevated);
  padding: 6px;
  z-index: 60;
  box-shadow: var(--shadow);
}

.topbar-lang-menu.is-open {
  display: block;
}

.topbar-lang-menu-option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.topbar-lang-menu-option:hover,
.topbar-lang-menu-option:focus-visible {
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.topbar-lang-menu-option.is-selected {
  color: var(--text);
  background: var(--accent-dim);
}

.topbar-lang-select {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  min-height: var(--topbar-control-height);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.2;
  max-width: 11rem;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%239aa4af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.topbar-lang-select:hover {
  color: var(--text);
  border-color: var(--accent-2);
  background-color: var(--elevated);
}

.topbar-lang-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-button);
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.topbar-actions .btn {
  box-sizing: border-box;
  height: var(--topbar-control-height);
  min-height: var(--topbar-control-height);
  padding-block: 0;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.landing-auth-loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(4px);
}

.landing-auth-loading[hidden] {
  display: none !important;
}

.landing-auth-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.landing-auth-status {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--faint);
}

.hero {
  position: relative;
  padding: 80px 0 64px;
}

.hero-brand-banner {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 0;
}

.hero-brand-banner.hero-lockup-card {
  gap: 28px;
  padding: 32px 36px;
  margin-bottom: 0;
  border-radius: var(--radius-card);
}

.hero-lockup-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-dim), transparent 55%),
    var(--elevated);
  box-shadow: var(--shadow);
}

.mark-hero {
  flex-shrink: 0;
  color: var(--text);
  width: 80px;
  height: 80px;
}

.hero-lockup-text {
  flex: 1;
  min-width: 0;
}

.wordmark {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.wordmark-hero {
  font-size: clamp(40px, 8vw, 54px);
}

.wordmark-hero .vo {
  color: var(--accent);
  opacity: 1;
}

.wordmark .vo {
  opacity: 0.55;
  color: var(--muted);
}

.wordmark .cab,
.hl {
  display: inline-block;
  vertical-align: baseline;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.1em 0.12em 0.07em;
  border-radius: 4px;
  line-height: 1;
  max-width: 100%;
}

.wordmark .caret {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
  margin-left: 0.02em;
  animation: caret-blink 1.05s step-end infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .wordmark .caret {
    animation: none;
    opacity: 0.85;
  }
}

.wordmark-pron,
.hero-pronunciation {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(11px, 2.6vw, 13px);
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--elevated);
}

.lang-chip .flag {
  font-size: 15px;
  line-height: 1;
}

.lang-chip-muted {
  color: var(--faint);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.5;
  max-width: 62ch;
  margin: 0 0 28px;
}

.lang-chip-interface {
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.lang-chip-interface:hover {
  border-color: var(--accent-2);
}

.lang-chip-interface:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-chip-interface.is-selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(198, 246, 51, 0.25);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.source-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elevated);
}

.source-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.source-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.source-tier {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3fb950;
  margin-top: 12px;
}

.source-tier--pro {
  color: var(--accent-2);
}

@media (prefers-color-scheme: light) {
  .source-tier {
    color: #1a7f37;
  }
}

.source-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto auto;
  gap: 32px 48px;
  align-items: start;
}

.hero-copy-head {
  grid-column: 1;
  grid-row: 2;
}

.hero-copy-rest {
  grid-column: 1;
  grid-row: 3;
}

.hero-product-preview {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: start;
  margin-top: 30px;
  min-width: 0;
  font-family: var(--font-display);
}

/* VocabularyScreen miniature — ThemedHeader + stat row + search + bulk toolbar + list panel. */
.hero-preview-app {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-preview-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 6px 10px;
  background: var(--bg);
}

.hero-preview-topbar-side {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.hero-preview-topbar-side--right {
  justify-content: flex-end;
}

.hero-preview-topbar-title {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  pointer-events: none;
}

.hero-preview-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  flex-shrink: 0;
}

.hero-preview-icon-btn--nav {
  color: var(--muted);
}

.hero-preview-icon-btn--utility {
  color: var(--text);
}

.hero-preview-screen {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 10px 10px;
  background: var(--bg);
}

.hero-preview-stats {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.hero-preview-stat {
  flex: 1;
  min-width: 0;
  padding: 10px 4px 8px;
  border-radius: 6px;
  background: var(--surface2);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
}

.hero-preview-stat.is-selected {
  border: 2px solid var(--accent);
  padding: 8px 2px 6px;
}

.hero-preview-stat.is-difficult:not(.is-selected) {
  border-bottom: 3px solid var(--difficult-mark);
  padding-bottom: 5px;
}

.hero-preview-stat-num {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-preview-stat-label {
  display: block;
  margin-top: 3px;
  font-size: clamp(6px, 19cqi, 8px);
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--muted);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: 0 1px;
}

.hero-preview-stat .vc-label {
  letter-spacing: inherit;
}

.hero-preview-stat-label--difficult {
  color: var(--difficult-mark-on-surface);
}

.hero-preview-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-preview-scope {
  flex-shrink: 0;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.hero-preview-search {
  flex: 1;
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-preview-filter-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--muted);
}

.hero-preview-toolbar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-preview-bulk-btn {
  flex: 1;
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.hero-preview-help-btn {
  flex-shrink: 0;
  width: 28px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: var(--muted);
}

.hero-preview-add-btn {
  flex-shrink: 0;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.hero-preview-list-panel {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.hero-preview-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 15px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}

.hero-preview-row:last-child {
  border-bottom: none;
}

.hero-preview-row.is-known {
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-dim), transparent 55%),
    var(--surface);
}

.hero-preview-row.is-difficult {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(154, 127, 82, 0.22), transparent 55%),
    var(--surface);
}

.hero-preview-row-rail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.hero-preview-ring-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.hero-preview-progress-ring path {
  vector-effect: non-scaling-stroke;
}

.hero-preview-word-block {
  flex: 1;
  min-width: 0;
}

.hero-preview-word {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: var(--text);
}

.hero-preview-translation {
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
}

.hero-preview-menu {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 20px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  max-width: 62ch;
}

.hero-note strong {
  color: var(--muted);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--elevated);
}

.phone {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
}

.phone-body {
  padding: 14px;
  background: var(--bg);
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tile {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 10px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tile.stat {
  min-height: 64px;
}

.tile-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.tile-label {
  font-size: 12px;
  font-weight: 600;
}

.tile-sub {
  font-size: 10px;
  color: var(--faint);
  margin-top: 4px;
  line-height: 1.3;
}

.tile.accent {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(145deg, var(--accent-dim), var(--surface));
}

.tile.muted-tile {
  opacity: 0.55;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border-soft);
}

.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
  margin: 14px 0 12px;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.feature-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature p {
  font-size: 14.5px;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.pricing-card {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elevated);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-pro {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-dim), transparent 55%),
    var(--elevated);
}

.pricing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.pricing-card-header .pricing-tag {
  margin-bottom: 0;
}

.pricing-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
}

.pricing-card-sub {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 4px;
}

.pricing-best-value {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.pricing-features {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.pricing-feature {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.pricing-feature.is-included::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3fb950;
  font-weight: 800;
}

.pricing-feature.is-excluded {
  color: var(--faint);
}

.pricing-feature.is-excluded::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--faint);
  font-weight: 600;
}

.pricing-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

@media (prefers-color-scheme: light) {
  .pricing-feature.is-included::before {
    color: #1a7f37;
  }
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.pricing-card > p:first-of-type {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.pricing-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.pricing-price-sep {
  color: var(--faint);
  font-weight: 400;
}

.pricing-price-note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

.pricing-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.5;
}

/* Mobile: horizontal swipe carousels for tile grids on narrow screens. */
.landing-carousel-wrap {
  position: relative;
}

.landing-tile-carousel {
  scrollbar-width: none;
}

.landing-tile-carousel::-webkit-scrollbar {
  display: none;
}

/* Dot pagination — built by landing-carousel-dots.js, hidden on desktop
   (the carousel is a plain grid there, nothing to paginate). */
.landing-carousel-dots {
  display: none;
}

.cta-band {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 72px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-dim), transparent 55%),
    var(--elevated);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--muted);
  max-width: 48ch;
}

.foot {
  border-top: 1px solid var(--border-soft);
  padding: 28px 0 48px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-signed-in-note {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--maxw));
  padding: 0 24px;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  text-align: right;
  pointer-events: none;
  z-index: 2;
}

.hero-signed-in-note[hidden] {
  display: none !important;
}

@media (prefers-color-scheme: light) {
  .hero-lockup-card {
    background:
      radial-gradient(120% 140% at 100% 0%, var(--accent-dim), transparent 55%),
      var(--surface);
  }
}

@media (max-width: 900px) {
  .section {
    padding: 44px 0;
  }

  .section-lead {
    margin-bottom: 18px;
  }

  .source-grid,
  .feature-grid,
  .pricing-grid {
    margin-top: 0;
  }


  .landing-tile-carousel {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    width: calc(100% + 48px);
    margin-inline: -24px;
    padding-inline: 24px;
    padding-bottom: 6px;
    /* Scroll-shadow edges: self-hide at each end via background-attachment
       local (scrolls with content) vs scroll (fixed to viewport) — no JS,
       fades out automatically once there's nothing left to reveal. */
    background-image:
      linear-gradient(to right, var(--bg), transparent),
      linear-gradient(to left, var(--bg), transparent),
      linear-gradient(to right, rgba(0, 0, 0, 0.22), transparent),
      linear-gradient(to left, rgba(0, 0, 0, 0.22), transparent);
    background-position: left, right, left, right;
    background-repeat: no-repeat;
    background-size: 24px 100%, 24px 100%, 10px 100%, 10px 100%;
    background-attachment: local, local, scroll, scroll;
  }

  .landing-tile-carousel > * {
    flex: 0 0 clamp(248px, 78vw, 292px);
    scroll-snap-align: start;
    min-width: 0;
  }

  .landing-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
  }

  /* Button is the ~26px tap target; the visual dot is a separately-sized ::before so the
     global `* { box-sizing: border-box }` reset can't shrink it to nothing via padding math. */
  .landing-carousel-dot {
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .landing-carousel-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    /* --border is a card-outline color (~1.2:1 against --bg) — too faint to read as a dot.
       --faint is the same AA-checked muted tone used for text elsewhere on the site. */
    background-color: var(--faint);
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .landing-carousel-dot.is-active::before {
    background-color: var(--accent);
    transform: scale(1.3);
  }

  .landing-tile-carousel.pricing-grid > .pricing-card {
    flex-basis: clamp(260px, 80vw, 300px);
  }

  .hero-brand-banner.hero-lockup-card {
    padding: 14px 18px;
    gap: 14px;
  }

  /* Compact on mobile — the headline right below already carries the pitch; this card only
     needs to establish the wordmark, not repeat the pronunciation line too (F-01/LP). */
  .hero-brand-banner .mark-hero {
    width: 48px;
    height: 48px;
  }

  .hero-brand-banner .hero-pronunciation {
    display: none;
  }

  .hero-copy-head {
    grid-column: 1;
    grid-row: 2;
  }

  /* Product preview before the CTAs — otherwise it lands below the fold on phones (F-01/LP). */
  .hero-product-preview {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
  }

  .hero-copy-rest {
    grid-column: 1;
    grid-row: 4;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-preview-app {
    min-height: 0;
  }

  .hero-preview-stat-num {
    font-size: 14px;
  }

  .hero-preview-stat-label {
    font-size: clamp(5.5px, 17cqi, 7px);
    line-height: 1.15;
  }

  .hero-preview-add-btn {
    font-size: 11px;
    padding: 0 8px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 8px;
  }

  .hero-signed-in-note {
    top: 10px;
  }

  .hero h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .cta-band {
    margin-bottom: 44px;
    padding: 28px 22px;
  }

  .topbar .btn-ghost {
    display: none;
  }

  .topbar-actions {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .topbar-lang-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
  }

  .topbar-lang-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--topbar-control-height);
    height: var(--topbar-control-height);
    min-width: var(--topbar-control-height);
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
      border-color 0.15s ease,
      color 0.15s ease,
      background-color 0.15s ease;
  }

  .topbar-lang-compact:hover {
    color: var(--text);
    border-color: var(--accent-2);
    background-color: var(--elevated);
  }

  .topbar-lang-compact:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .topbar-lang-compact[aria-expanded="true"] {
    color: var(--text);
    border-color: var(--accent-2);
    background-color: var(--elevated);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 900px) {
    .landing-tile-carousel {
      scroll-behavior: smooth;
    }
  }
}

@media (max-width: 520px) {
  .topbar .btn-ghost[href="#sources"] {
    display: none;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .wordmark-topbar {
    font-size: 18px;
  }

  .wordmark-hero {
    font-size: clamp(32px, 9.5vw, 40px);
    line-height: 1.18;
  }

  .mark-hero {
    width: 56px;
    height: 56px;
  }

  .hero-brand-banner.hero-lockup-card {
    padding: 16px 18px;
    gap: 12px;
  }

  .hero h1 {
    line-height: 1.15;
  }

  .wordmark .cab,
  .hl {
    padding: 0.11em 0.13em 0.08em;
  }
}
