/* ==========================================================================
   Uzbekcha — Marketing site stylesheet
   Plain CSS, mobile-first, no framework, no build step.
   Table of contents:
     1. Design tokens / reset
     2. Base typography
     3. Layout helpers, buttons, panels, chips
     4. Navbar
     5. Hero (head + device stage)
     6. Waitlist form
     7. Audience cards
     8. Language demo (pick your language)
     9. Compare (course apps vs Uzbekcha)
    10. How it works
    11. Feature grid
    12. Phrasebook teaser
    13. FAQ accordion
    14. CTA (dark)
    15. Footer
    16. Page headers, prose pages (about / contact / legal / 404 / thanks)
    17. Blog (index + post)
    18. Phrasebook (hub + page)
    19. Scroll reveal
    20. Responsive breakpoints
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design tokens / reset
   ------------------------------------------------------------------------- */
:root {
  /* ---- Ink: cool near-black, never pure black ------------------------- */
  --ink: #15181c;
  --ink-2: #4a515c;
  --ink-3: #6b7280;

  /* ---- Ground: white plus two very light, teal-leaning tints ---------- */
  --ground: #ffffff;
  --ground-2: #f5f8f9;
  --ground-3: #e8f3f6;
  --line: #e4e9ec;
  --line-2: #d5dde2;

  /* ---- Brand: Registan turquoise. Spent on ONE gradient panel (the hero
     stage), text links, tab highlights and small chips — nowhere else. --- */
  --brand: #0e7c9b;
  --brand-deep: #0a5f78;
  --brand-ink: #063847;
  --brand-tint: #e1f2f7;

  /* ---- Accent: apricot gold, for the single "star" moments only ------- */
  --accent: #d9931f;
  --accent-tint: #fbf1dc;

  /* ---- Status ---------------------------------------------------------- */
  --ok: #1e7a4f;
  --ok-tint: #e3f4ea;
  --warn: #b45309;
  --warn-tint: #fff3e0;
  --err: #c2410c;
  --err-tint: #fdeae2;
  --violet: #6b3fd6;
  --violet-tint: #efe9ff;

  /* ---- Type ------------------------------------------------------------ */
  --font-display: 'Inter Tight', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* ---- Radii ----------------------------------------------------------- */
  --r-panel: 28px;
  --r-card: 20px;
  --r-btn: 14px;
  --r-input: 12px;
  --r-chip: 999px;

  /* ---- Measure and rhythm ---------------------------------------------- */
  --shell: 1440px;
  --container: 1200px;
  --gutter: 24px;
  --rhythm: 120px;
  --rhythm-sm: 72px;
  --navbar-height: 68px;

  --shadow-device: 0 40px 90px rgba(6, 56, 71, 0.30), 0 8px 24px rgba(6, 56, 71, 0.18);
  --shadow-card: 0 1px 2px rgba(21, 24, 28, 0.04), 0 12px 32px rgba(21, 24, 28, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-2);
  background-color: var(--ground);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

p {
  margin: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------
   2. Base typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
}

h1, h2, h3,
.h1, .h2, .h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

h1, .h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2, .h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h3, .h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h4, h5, h6 {
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.4;
}

.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.accent {
  color: var(--brand);
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Uzbek words inside English copy: display face, ink colour, no italics
   (italics mangle the apostrophe letters oʻ and gʻ). */
.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;
}

.uz {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------------
   3. Layout helpers, buttons, panels, chips
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--rhythm-sm);
}

.section-head {
  max-width: 46ch;
  margin-bottom: 44px;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center .section-sub {
  margin-inline: auto;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.section-head h1,
.section-head h2 {
  margin-bottom: 16px;
}

.section-head-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
}

.arrow-link {
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.arrow-link:hover {
  color: var(--brand-deep);
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-deep);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--ground-3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

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

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ---- Panels ------------------------------------------------------------ */
.panel {
  border-radius: var(--r-panel);
  padding: 40px var(--gutter);
}

.panel-tint {
  background: var(--ground-2);
}

.panel-dark {
  background: var(--brand-ink);
  color: rgba(255, 255, 255, 0.78);
}

.panel-dark h2,
.panel-dark h3 {
  color: #fff;
}

.panel-dark .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.panel-gradient {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(217, 147, 31, 0.35) 0%, rgba(217, 147, 31, 0) 55%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 55%, var(--brand-ink) 100%);
}

/* ---- Cards ------------------------------------------------------------- */
.card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  line-height: 1.55;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* ---- Chips ------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-chip);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  background: var(--ground-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.chip-brand {
  background: var(--brand-tint);
  color: var(--brand-deep);
  border-color: transparent;
}

.chip-accent {
  background: var(--accent-tint);
  color: #8a5a0b;
  border-color: transparent;
}

.chip-ok {
  background: var(--ok-tint);
  color: var(--ok);
  border-color: transparent;
}

.chip-violet {
  background: var(--violet-tint);
  color: var(--violet);
  border-color: transparent;
}

/* -------------------------------------------------------------------------
   4. Navbar
   ------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--navbar-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-tld {
  color: var(--ink-3);
  font-weight: 500;
}

.navbar-links {
  display: none;
  gap: 30px;
  align-items: center;
}

.navbar-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.navbar-links a:hover,
.navbar-links a[aria-current="page"] {
  color: var(--ink);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.navbar-actions .btn {
  display: none;
  padding: 11px 18px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 8px;
  margin-right: -8px;
  line-height: 0;
  color: var(--ink);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-panel {
  display: none;
}

@media (max-width: 1023px) {
  .nav-panel {
    position: fixed;
    inset: var(--navbar-height) 0 0;
    background: var(--ground);
    padding: 28px var(--gutter) 40px;
    overflow-y: auto;
    z-index: 99;
  }

  .nav-panel.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav-panel a {
    display: block;
    width: 100%;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  .nav-panel .btn {
    margin-top: 24px;
    width: 100%;
    padding-block: 16px;
    border-bottom: none;
    font-family: var(--font-body);
    font-size: 15px;
    color: #fff;
  }
}

/* -------------------------------------------------------------------------
   5. Hero (head + device stage)
   ------------------------------------------------------------------------- */
.hero {
  padding-top: 56px;
  padding-bottom: 40px;
}

.hero .shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.hero-langs-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-right: 4px;
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 12ch;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 12px;
}

.hero-lede-2 {
  font-size: 16px;
  color: var(--ink-3);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-cta .note {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 12px;
}

/* ---- Stage: gradient panel with a phone mock and two floating chips ---- */
.hero-stage {
  position: relative;
  border-radius: var(--r-panel);
  padding: 124px 24px 0;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  z-index: 2;
  max-width: calc(100% - 48px);
}

.hero-chip-a {
  top: 20px;
  left: 20px;
}

.hero-chip-b {
  top: 66px;
  left: 20px;
}

.hero-caption {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 12px;
}

/* ---- Device ------------------------------------------------------------ */
.device {
  width: 290px;
  max-width: 100%;
  background: #0b0d10;
  border-radius: 40px 40px 0 0;
  padding: 12px 12px 0;
  box-shadow: var(--shadow-device);
}

.device-screen {
  background: var(--ground-2);
  border-radius: 30px 30px 0 0;
  padding: 10px 14px 24px;
  font-size: 12.5px;
  color: var(--ink-2);
  min-height: 440px;
}

.scr-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 8px 10px;
}

.scr-status-icons {
  display: inline-flex;
  gap: 4px;
}

.scr-status-icons i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ink);
  opacity: 0.85;
}

.scr-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 4px 12px;
}

.scr-topbar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.scr-topbar span {
  font-size: 11.5px;
  color: var(--ink-3);
}

.scr-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 4px 14px;
  overflow: hidden;
}

.scr-progress i {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: var(--brand);
}

.scr-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}

.scr-word {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scr-word-uz {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.scr-word-ipa {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

.scr-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.scr-play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}

.scr-trans {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.scr-trans span {
  color: var(--ink-3);
  font-weight: 400;
}

.scr-morph {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.scr-morph b {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 11.5px;
  font-family: var(--font-display);
}

.scr-morph b.suffix {
  background: var(--accent-tint);
  color: #8a5a0b;
}

.scr-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.scr-note i {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.scr-example {
  font-size: 12.5px;
  line-height: 1.45;
}

.scr-example b {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   6. Waitlist form
   ------------------------------------------------------------------------- */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}

.waitlist-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist input[type="email"],
.waitlist select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}

.waitlist select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%234a515c' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.waitlist input:focus,
.waitlist select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.waitlist .btn {
  height: 50px;
  padding-inline: 24px;
}

.waitlist-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-msg {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  min-height: 0;
}

.waitlist-msg.is-ok {
  color: var(--ok);
  font-weight: 600;
}

.waitlist-msg.is-err {
  color: var(--err);
}

.waitlist-msg a {
  text-decoration: underline;
}

.waitlist-done {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: var(--ok-tint);
  color: var(--ok);
  font-weight: 500;
  max-width: 520px;
}

.waitlist-done b {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.panel-dark .waitlist input[type="email"],
.panel-dark .waitlist select {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.panel-dark .waitlist select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/></svg>");
}

.panel-dark .waitlist select option {
  color: var(--ink);
}

.panel-dark .waitlist input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.panel-dark .waitlist input:focus,
.panel-dark .waitlist select:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.panel-dark .waitlist-msg {
  color: rgba(255, 255, 255, 0.78);
}

.panel-dark .waitlist-msg.is-ok {
  color: #9be3bd;
}

.panel-dark .waitlist-msg.is-err {
  color: #ffb39b;
}

.panel-dark .waitlist-done {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* -------------------------------------------------------------------------
   7. Audience cards
   ------------------------------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--ground);
}

.audience-card .chip {
  align-self: flex-start;
}

.audience-card h3 {
  margin-top: 6px;
}

.audience-card p {
  font-size: 15px;
}

.audience-card .stat {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

.audience-card .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2px;
}

/* -------------------------------------------------------------------------
   8. Language demo (pick your language)
   ------------------------------------------------------------------------- */
.demo .panel {
  padding-top: 48px;
  padding-bottom: 48px;
}

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

.demo-intro h2 {
  margin-bottom: 16px;
}

.demo-intro .section-sub {
  margin-bottom: 24px;
}

.lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-tab {
  padding: 9px 14px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lang-tab:hover {
  border-color: var(--ink);
}

.lang-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.demo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.demo-card-head strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.demo-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.demo-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.demo-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-uz {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.demo-trans {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 6px;
}

.demo-note {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.demo-note i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.demo-foot {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}

/* -------------------------------------------------------------------------
   9. Compare (course apps vs Uzbekcha)
   ------------------------------------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--ground);
}

.compare-row > span:first-child {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.compare-them {
  color: var(--ink-3);
  font-size: 15px;
  text-decoration: line-through;
  text-decoration-color: rgba(107, 114, 128, 0.5);
}

.compare-us {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.compare-us::before {
  content: "→ ";
  color: var(--brand);
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   10. How it works
   ------------------------------------------------------------------------- */
.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

.how-step {
  position: relative;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.how-step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
}

.how-step h3 {
  margin-bottom: 8px;
}

.how-step p {
  font-size: 15px;
}

/* -------------------------------------------------------------------------
   11. Feature grid
   ------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-grid .card {
  display: flex;
  flex-direction: column;
}

/* -------------------------------------------------------------------------
   12. Phrasebook teaser
   ------------------------------------------------------------------------- */
.phrase-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.phrase-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--ground);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.phrase-tile:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.phrase-tile .uz {
  font-size: 20px;
}

.phrase-tile span {
  font-size: 14px;
  color: var(--ink-3);
}

.phrase-tile em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-top: auto;
}

/* -------------------------------------------------------------------------
   13. FAQ accordion
   ------------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.faq-intro h2 {
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ground-2);
  display: grid;
  place-items: center;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon::after {
  transform: scaleY(0);
}

.faq-item[open] summary {
  padding-bottom: 10px;
}

.faq-answer {
  padding: 0 52px 24px 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 72ch;
}

/* -------------------------------------------------------------------------
   14. CTA (dark)
   ------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 56px var(--gutter);
}

.cta-panel .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.cta-panel h2 {
  margin-bottom: 16px;
  max-width: 18ch;
}

.cta-panel > p {
  max-width: 54ch;
  margin-bottom: 28px;
  font-size: 17px;
}

.cta-star {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  opacity: 0.12;
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  padding-top: 72px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: var(--ground);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 36ch;
  font-size: 15px;
  color: var(--ink-2);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-col .btn,
.footer-col .btn:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}

/* -------------------------------------------------------------------------
   16. Page headers, prose pages (about / contact / legal / 404 / thanks)
   ------------------------------------------------------------------------- */
.page-header {
  padding-top: 56px;
  padding-bottom: 24px;
}

.page-header h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  margin-bottom: 16px;
  max-width: 16ch;
}

.page-header .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.prose h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 44px 0 14px;
}

.prose h3 {
  font-size: 20px;
  margin: 32px 0 10px;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 18px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  margin: 8px 0 24px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
}

.prose td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 768px) {
  .prose td:first-child {
    white-space: nowrap;
  }
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  background: var(--ground-2);
  border-radius: 0 12px 12px 0;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--ground-2);
  padding: 2px 6px;
  border-radius: 6px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.callout {
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: var(--brand-tint);
  color: var(--brand-ink);
  margin-bottom: 18px;
}

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

.legal-updated {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 32px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.contact-cards .card a {
  color: var(--brand);
  font-weight: 600;
}

.page-simple {
  padding-block: 96px;
  text-align: center;
}

.page-simple h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  margin-bottom: 16px;
}

.page-simple p {
  margin-inline: auto;
  margin-bottom: 28px;
  max-width: 46ch;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0 48px;
}

/* -------------------------------------------------------------------------
   17. Blog (index + post)
   ------------------------------------------------------------------------- */
.blog-index-intro {
  padding-top: 56px;
  padding-bottom: 32px;
}

.blog-index-intro h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  margin-bottom: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 48px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--ground);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.post-card h2 {
  font-size: 22px;
  line-height: 1.2;
}

.post-card p {
  font-size: 15px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.post-header {
  padding-top: 56px;
  padding-bottom: 32px;
}

.post-header > * {
  max-width: 76ch;
}

.post-header h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04;
  margin: 14px 0 16px;
}

.post-header .post-meta {
  margin-top: 16px;
}

.post-body {
  padding-bottom: 48px;
}

.post-body h2 {
  scroll-margin-top: 90px;
}

.more-posts {
  padding-top: 0;
}

.more-posts .section-head {
  margin-bottom: 24px;
}

/* -------------------------------------------------------------------------
   18. Phrasebook (hub + page)
   ------------------------------------------------------------------------- */
.phrase-page-intro {
  max-width: 72ch;
  margin-bottom: 24px;
}

.phrase-table td:nth-child(2) {
  color: var(--ink-3);
  font-style: italic;
}

.phrase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 48px;
}

/* -------------------------------------------------------------------------
   19. Scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* -------------------------------------------------------------------------
   20. Responsive breakpoints
   ------------------------------------------------------------------------- */
@media (min-width: 560px) {
  .waitlist-row {
    flex-direction: row;
  }

  .waitlist-row input[type="email"] {
    flex: 1 1 auto;
  }

  .waitlist-row select {
    flex: 0 0 170px;
  }

  .hero-stage {
    padding-top: 132px;
  }

  .hero-chip-a {
    top: 24px;
    left: 24px;
  }

  .hero-chip-b {
    top: 72px;
    left: 24px;
  }
}

@media (min-width: 768px) {
  .audience-grid,
  .feature-grid,
  .phrase-teaser,
  .phrase-grid,
  .post-grid,
  .about-grid,
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr 1fr;
  }

  .compare-row {
    grid-template-columns: 140px 1fr 1.2fr;
    align-items: center;
    gap: 20px;
  }

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

  .faq-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }

  .demo-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

  .section-head-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-stage {
    min-height: 600px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
  }

  section {
    padding-block: var(--rhythm);
  }

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

  .hero .shell {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .navbar-links {
    display: flex;
  }

  .navbar-actions .btn {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .audience-grid,
  .feature-grid,
  .phrase-teaser,
  .phrase-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
    gap: 48px;
  }

  .panel {
    padding: 64px 56px;
  }

  .cta-panel {
    padding: 72px 64px;
  }

  .demo .panel {
    padding: 56px;
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .hero-stage {
    padding-top: 80px;
    padding-left: 32px;
    justify-content: flex-start;
  }

  .hero-chip-a {
    top: 28px;
    left: 28px;
  }

  .hero-chip-b {
    top: 46%;
    left: auto;
    right: 22px;
  }

  .audience-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .audience-card {
    padding: 22px;
  }
}
