/* IDNA — editorial Indian voice-first landing page */

:root {
  /* Culturally-grounded Indian palette — full saturation */
  --paper: #faf6ef;          /* cream ivory — ghee-lamp glow */
  --paper-2: #f2ebdc;        /* deeper cream panel */
  --ink: #1a2332;            /* ink blue-black, fountain pen */
  --ink-2: #384256;
  --ink-3: #6b7384;
  --rule: #e2d9c4;
  --accent: #f5a524;         /* marigold — festival, diya, saraswati */
  --accent-ink: #c47f10;
  --teal: #0f5d63;           /* deep teal — twilight over water */
  --teal-deep: #08454a;
  --leaf: #0f5d63;
  --leaf-deep: #08454a;
  --terra: #c86b56;          /* terracotta rose — clay pot, sindoor */
  --marigold: #f5a524;
  --marigold-deep: #d88e10;
  --red: #c86b56;

  --density: 1;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper texture — cream/clay tones */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(140, 100, 40, 0.035) 0, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(160, 90, 50, 0.025) 0, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(120, 80, 40, 0.03) 0, transparent 2px);
  background-size: 7px 7px, 11px 11px, 13px 13px;
  mix-blend-mode: multiply;
  opacity: 0.7;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.02em; }
.deva { font-family: 'Noto Serif Devanagari', 'Tiro Devanagari Hindi', serif; }

/* When the page is in Hindi, Devanagari glyphs should harmonize with Source Serif — use Noto Serif Devanagari (matched x-height & weight) instead of the display-only Tiro. */
html[lang="hi"] body,
html[lang="hi"] .hero-title,
html[lang="hi"] .hero-sub,
html[lang="hi"] .problem-title,
html[lang="hi"] .how-title,
html[lang="hi"] .langs-title,
html[lang="hi"] .faq-title,
html[lang="hi"] .closer h2,
html[lang="hi"] .bubble,
html[lang="hi"] .demo-bubble,
html[lang="hi"] .parent-t,
html[lang="hi"] .promise-item .t,
html[lang="hi"] .faq-q .qt,
html[lang="hi"] .faq-a,
html[lang="hi"] .problem-item .desc,
html[lang="hi"] .parent-d,
html[lang="hi"] .how-step .st,
html[lang="hi"] .how-step .sd,
html[lang="hi"] .nav-links a,
html[lang="hi"] .promise .label {
  font-family: 'Noto Serif Devanagari', 'Source Serif 4', Georgia, serif;
  font-feature-settings: "liga", "calt";
}

/* Hindi hero: size down, give vertical room, no gradient clip on Devanagari */
html[lang="hi"] .hero-title,
html[lang="hi"] .hero-title-big {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  word-spacing: 0.08em;
  padding: 0.15em 12px 0.25em;
  overflow: visible;
}
/* Kill the -webkit-text-fill-color gradient for Hindi — Devanagari descenders get clipped. Use solid green instead. */
html[lang="hi"] .hero-title-big .acc-green,
html[lang="hi"] .hero-title-big .acc-teal {
  background: none;
  -webkit-text-fill-color: initial;
  color: #6ac8bb;
  display: inline-block;
  padding: 0 0.05em;
}
html[lang="hi"] .hero-sub-dark {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.85;
  word-spacing: 0.05em;
  max-width: 640px;
}
html[lang="hi"] .hero-quote { line-height: 1.7; word-spacing: 0.04em; padding: 0.1em 12px 0.2em; }
html[lang="hi"] .hero-cta-row.center { gap: 32px; }
html[lang="hi"] .hero-note.dark { line-height: 1.7; }
html[lang="hi"] .btn-leaf { white-space: nowrap; padding: 14px 30px; }
html[lang="hi"] .problem-title,
html[lang="hi"] .how-title,
html[lang="hi"] .langs-title,
html[lang="hi"] .faq-title {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.15;
}
html[lang="hi"] .closer h2 {
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.15;
}
/* Ease the underline highlight placement for Devanagari descenders */
html[lang="hi"] .hero-title em {
  background: linear-gradient(180deg, transparent 70%, color-mix(in oklab, var(--accent) 45%, transparent) 70%, color-mix(in oklab, var(--accent) 45%, transparent) 92%, transparent 92%);
}

/* Corner decorations look overbearing in Hindi where the whole title is Devanagari; soften them */
html[lang="hi"] .corner-script { opacity: 0.4; }

/* ===== Shared primitives ===== */
.container { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.row { display: flex; }
.stack { display: flex; flex-direction: column; }

.kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 18px; height: 1px; background: var(--ink-2);
}

.rule { height: 1px; background: var(--rule); border: 0; }
.rule-thick { height: 2px; background: var(--ink); border: 0; }

.section-label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px;
  padding: 12px 0 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.section-label .left {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ink);
}
.section-label .right {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.12em;
}

/* ===== Top nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  max-width: 1320px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Source Serif 4', serif;
  font-size: 20px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--ink); text-decoration: none;
}
.brand-logo { height: 42px; width: auto; display: block; }
.brand-wm { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand-wm .w1 { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.brand-wm .w1 em { color: var(--accent); font-style: normal; font-weight: 600; }
.brand-wm .w2 { font-family: 'JetBrains Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-3); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: inline-flex; padding: 3px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--paper);
}
.lang-toggle button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  color: var(--ink-2);
}
.lang-toggle button.on { background: var(--ink); color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 0;
  font-family: 'Source Serif 4', serif; font-size: 15px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms;
}
.btn:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 9px 14px; font-size: 13px; }
.btn .arr { transition: transform 160ms; }
.btn:hover .arr { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 0 96px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

/* Dark hero variant (reference screenshot) */
.hero-dark {
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #0f5d63 0%, #08454a 45%, #052e33 100%);
  color: #faf6ef;
  padding: 40px 0 80px;
  border-bottom: 0;
}
.hero-dark .kicker { color: rgba(250,246,239,0.7); }
.hero-dark .kicker::before { background: rgba(250,246,239,0.5); }
.hero-glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: 0.4; z-index: 0;
}
.hero-glow-a { width: 520px; height: 520px; background: #f5a524; top: -120px; left: -120px; opacity: 0.22; }
.hero-glow-b { width: 460px; height: 460px; background: #c86b56; bottom: -160px; right: -80px; opacity: 0.25; }
.hero-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
                    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
}
.hero-dark .container { position: relative; z-index: 2; }

.hero-masthead.dark {
  border-bottom: 1px solid rgba(234,241,248,0.15);
  padding-bottom: 14px;
  margin-bottom: 48px;
}
.hero-masthead.dark .mh-l { color: rgba(234,241,248,0.9); }
.hero-masthead.dark .mh-c { color: rgba(234,241,248,0.75); font-style: italic; }
.hero-masthead.dark .mh-r { color: rgba(234,241,248,0.55); }

.hero-top {
  display: flex; flex-direction: column; align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}
.logo-card {
  width: min(340px, 78vw);
  aspect-ratio: 1.1 / 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  display: grid; place-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.32), 0 2px 0 rgba(255,255,255,0.05) inset;
}
.logo-card img { width: 100%; height: 100%; object-fit: contain; }

.hero-quote {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
  color: #f0c36a;
  max-width: 760px;
  text-align: center;
  text-wrap: balance;
  font-weight: 400;
}

.hero-title-big {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 24px;
  text-wrap: balance;
}
.hero-title-big .acc-green {
  color: #f5a524;
  font-style: italic; font-weight: 600;
}
.hero-title-big .acc-teal {
  color: #f5a524;
  font-style: italic; font-weight: 600;
}

.hero-sub-dark {
  color: rgba(234,241,248,0.78);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
  text-wrap: pretty;
}

.hero-cta-row.center {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn-leaf {
  background: #f5a524;
  color: #1a2332;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
}
.btn-leaf:hover { background: #d88e10; }
.hero-note.dark { color: rgba(234,241,248,0.55); }

/* Dark convo card */
.convo-card-dark {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(234,241,248,0.15);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.convo-head.dark {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(234,241,248,0.15);
  margin-bottom: 20px;
}
.convo-card-dark .convo-dot { color: rgba(234,241,248,0.9); }
.convo-card-dark .convo-class { color: rgba(234,241,248,0.55); }
.convo-card-dark .msg .bubble {
  background: rgba(255,255,255,0.08);
  color: #f0f5fa;
  border: 1px solid rgba(234,241,248,0.12);
  border-radius: 10px;
}
.convo-card-dark .msg.idna .bubble {
  background: linear-gradient(135deg, #0f5d63 0%, #08454a 100%);
  color: #faf6ef;
  border-color: transparent;
}
.convo-card-dark .msg.child .avatar { background: #c86b56; color: #faf6ef; }
.convo-card-dark .msg.idna .avatar { background: #f5a524; color: #1a2332; }
.convo-foot.dark { border-top: 1px solid rgba(234,241,248,0.15); margin-top: 18px; padding-top: 14px; }
.convo-card-dark .wave span { background: rgba(234,241,248,0.7); }
.play-btn.leaf {
  background: #f5a524; color: #1a2332; border: 0; border-radius: 999px;
  padding: 9px 18px; font-weight: 700;
}
.play-btn.leaf:hover { background: #d88e10; }
.play-btn.leaf .play-icon { border-left-color: #1a2332; }
.play-btn.leaf .play-icon { border-left-color: #fff; }
.hero-masthead {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px; margin-bottom: 36px;
}
.hero-masthead .mh-l { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--ink); }
.hero-masthead .mh-c { font-family: 'Tiro Devanagari Hindi', serif; font-size: 14px; color: var(--ink-2); font-style: italic; }
.hero-masthead .mh-r { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-3); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.hero-left .kicker { margin-bottom: 28px; }
.hero-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(180deg, transparent 62%, color-mix(in oklab, var(--accent) 55%, transparent) 62%, color-mix(in oklab, var(--accent) 55%, transparent) 88%, transparent 88%);
  padding: 0 0.05em;
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 580px;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-note { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }

/* Hero right: conversation card */
.convo-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 28px 24px 24px;
  box-shadow: 8px 8px 0 var(--ink);
  min-height: 420px;
  display: flex; flex-direction: column;
}
.convo-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 20px;
}
.convo-dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
}
.convo-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 2px color-mix(in oklab, var(--red) 30%, transparent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.6; }
}
.convo-class { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }

.convo-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.msg {
  display: flex; gap: 12px; align-items: flex-start;
  opacity: 0; transform: translateY(8px);
  animation: msgIn 420ms cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes msgIn {
  to { opacity: 1; transform: translateY(0); }
}
.msg .avatar {
  flex: 0 0 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
}
.msg.child .avatar { background: var(--leaf); color: var(--paper); }
.msg.idna .avatar { background: var(--ink); color: var(--paper); font-family: 'Source Serif 4', serif; font-style: italic; }
.msg .bubble {
  padding: 10px 14px;
  font-size: 15px; line-height: 1.45;
  background: var(--paper);
  border: 1px solid var(--ink);
  max-width: 88%;
}
.msg.idna .bubble { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.convo-foot {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.wave {
  flex: 1; display: flex; align-items: center; gap: 3px; height: 26px;
}
.wave span {
  display: inline-block; width: 3px; background: var(--ink);
  border-radius: 2px;
  animation: waveA 1.1s ease-in-out infinite;
}
.wave span:nth-child(1) { height: 40%; animation-delay: 0ms; }
.wave span:nth-child(2) { height: 60%; animation-delay: 80ms; }
.wave span:nth-child(3) { height: 90%; animation-delay: 160ms; }
.wave span:nth-child(4) { height: 70%; animation-delay: 240ms; }
.wave span:nth-child(5) { height: 100%; animation-delay: 320ms; }
.wave span:nth-child(6) { height: 55%; animation-delay: 400ms; }
.wave span:nth-child(7) { height: 80%; animation-delay: 480ms; }
.wave span:nth-child(8) { height: 45%; animation-delay: 560ms; }
.wave span:nth-child(9) { height: 70%; animation-delay: 640ms; }
.wave span:nth-child(10) { height: 35%; animation-delay: 720ms; }
.wave span:nth-child(11) { height: 90%; animation-delay: 800ms; }
.wave span:nth-child(12) { height: 50%; animation-delay: 880ms; }
@keyframes waveA {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--accent); color: var(--ink);
  border: 1px solid var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  cursor: pointer;
}
.play-btn:hover { background: var(--marigold); }
.play-icon {
  width: 0; height: 0;
  border-left: 8px solid var(--ink);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* corner script decoration */
.corner-script {
  position: absolute;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 220px; line-height: 1;
  color: color-mix(in oklab, var(--ink) 5%, transparent);
  pointer-events: none;
  user-select: none;
}
.corner-script.tl { top: -40px; left: -10px; }
.corner-script.br { bottom: -60px; right: 0; font-size: 180px; color: color-mix(in oklab, var(--accent) 14%, transparent); }

/* ===== Problem ===== */
.problem { padding: 88px 0; border-bottom: 1px solid var(--rule); }
.problem-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02; letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 900px;
  margin-bottom: 56px;
  text-wrap: balance;
}
.problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.problem-item {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.problem-item:last-child { border-right: 0; }
.problem-item .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.18em;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.problem-item .big {
  font-family: 'Source Serif 4', serif;
  font-size: 44px; line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.problem-item .lab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.problem-item .desc { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* ===== Solution promise strip ===== */
.promise {
  background: var(--ink); color: var(--paper);
  padding: 88px 0;
  position: relative; overflow: hidden;
}
.promise .container { position: relative; z-index: 2; }
.promise .label {
  font-family: 'Source Serif 4', serif; font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1; letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 780px;
  margin-bottom: 56px;
  text-wrap: balance;
}
.promise-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid color-mix(in oklab, var(--paper) 28%, transparent); }
.promise-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 28px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 28%, transparent);
  cursor: default;
  transition: padding-left 200ms, background 200ms;
}
.promise-item:hover { padding-left: 16px; background: color-mix(in oklab, var(--paper) 5%, transparent); }
.promise-item .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.18em; color: var(--marigold);
}
.promise-item .t {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3; font-weight: 400;
  color: var(--paper);
}
.promise-item .ico {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--paper) 40%, transparent);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--paper);
  transition: background 200ms, color 200ms;
}
.promise-item:hover .ico { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.promise-bg {
  position: absolute; right: -80px; bottom: -40px;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 340px; line-height: 1;
  color: color-mix(in oklab, var(--paper) 4%, transparent);
  pointer-events: none; user-select: none;
  z-index: 1;
}

/* ===== How it works (interactive) ===== */
.how { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.how-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end; margin-bottom: 56px;
}
.how-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02; letter-spacing: -0.02em;
  font-weight: 500;
  text-wrap: balance;
}
.how-hint { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; text-align: right; }

.how-wrap {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 48px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.how-steps { border-right: 1px solid var(--rule); padding: 12px 0; }
.how-step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 150ms, padding-left 150ms;
  position: relative;
}
.how-step:last-child { border-bottom: 0; }
.how-step .sn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.18em;
  padding-top: 4px;
}
.how-step .st {
  font-family: 'Source Serif 4', serif;
  font-size: 20px; font-weight: 500;
  line-height: 1.2;
  color: var(--ink-2);
}
.how-step .sd {
  font-size: 14px; color: var(--ink-3); line-height: 1.5;
  margin-top: 6px;
  display: none;
}
.how-step.active { padding-left: 16px; background: color-mix(in oklab, var(--accent) 10%, transparent); }
.how-step.active .sn { color: var(--accent-ink); }
.how-step.active .st { color: var(--ink); }
.how-step.active .sd { display: block; }
.how-step.active::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px;
  width: 3px; background: var(--accent);
}

.how-demo {
  padding: 36px 20px;
  min-height: 440px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 18px;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in oklab, var(--ink) 4%, transparent) 27px 28px);
}
.demo-turn {
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 640px;
}
.demo-turn.child { align-self: flex-start; }
.demo-turn.idna { align-self: flex-start; }
.demo-avatar {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
}
.demo-turn.child .demo-avatar { background: var(--leaf); color: var(--paper); }
.demo-turn.idna .demo-avatar { background: var(--ink); color: var(--paper); font-family: 'Source Serif 4', serif; font-style: italic; }
.demo-bubble {
  padding: 12px 16px;
  font-size: 16px; line-height: 1.5;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.demo-turn.idna .demo-bubble { background: var(--ink); color: var(--paper); }
.demo-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 4px;
}

/* ===== Availability strip ===== */
.avail { padding: 64px 0; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.avail-row { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 48px; align-items: start; }
.avail-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: var(--accent); color: var(--ink);
  border: 1px solid var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.avail-title { font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.avail-note { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.subj-block h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2); margin-bottom: 14px; }
.subj-list { display: flex; flex-wrap: wrap; gap: 8px; }
.subj {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 14px;
}
.subj::before { content: "✓"; color: var(--accent-ink); font-weight: 700; }

/* ===== Languages wall ===== */
.langs { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.langs-head {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end;
  margin-bottom: 56px;
}
.langs-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02; letter-spacing: -0.02em;
  font-weight: 500;
  text-wrap: balance;
}
.langs-sub { font-size: 16px; color: var(--ink-2); max-width: 360px; text-wrap: pretty; }

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.lang-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: background 160ms, transform 160ms;
  position: relative;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.lang-cell:hover { background: var(--ink); color: var(--paper); }
.lang-cell:hover .lang-meta,
.lang-cell:hover .lang-region { color: color-mix(in oklab, var(--paper) 70%, transparent); }
.lang-cell.playing { background: var(--accent); color: var(--ink); }

.lang-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.lang-script {
  font-family: 'Tiro Devanagari Hindi', 'Noto Serif', 'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Gujarati', 'Noto Sans Oriya', 'Noto Sans Gurmukhi', serif;
  font-size: 30px; line-height: 1.25;
  font-weight: 400;
  flex: 1;
  display: flex; align-items: center;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.lang-region {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.lang-cell.playing .lang-region { color: var(--ink); }

.langs-note {
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.04em;
}

/* ===== Parents ===== */
.parents { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.parents-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.parent-item {
  padding: 32px 24px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--ink);
  min-height: 220px;
  display: flex; flex-direction: column;
  position: relative;
}
.parent-item:last-child { border-right: 1px solid var(--rule); }
.parent-num {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3);
  margin-bottom: 20px;
}
.parent-t {
  font-family: 'Source Serif 4', serif;
  font-size: 22px; line-height: 1.2; font-weight: 500;
  margin-bottom: 12px;
}
.parent-d { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.parent-mark {
  position: absolute; top: 24px; right: 24px;
  width: 10px; height: 10px;
  background: var(--accent);
}

/* ===== FAQ ===== */
.faq { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.faq-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.faq-title { font-family: 'Source Serif 4', serif; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  user-select: none;
}
.faq-q .qt {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.faq-q .qi {
  width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  flex-shrink: 0;
  transition: transform 200ms, background 200ms, color 200ms;
}
.faq-item.open .qi { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
  font-size: 17px; color: var(--ink-2); line-height: 1.6;
  padding: 0 60px 0 0;
  max-width: 720px;
}
.faq-item.open .faq-a { max-height: 280px; padding-bottom: 24px; }

/* ===== Closer ===== */
.closer { padding: 96px 0 72px; background: var(--ink); color: var(--paper); }
.closer h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 1000px;
  margin-bottom: 40px;
  text-wrap: balance;
}
.closer .btn { background: var(--accent); color: var(--ink); }
.closer .btn:hover { background: var(--marigold); }
.closer-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  margin-top: 96px; padding-top: 32px;
  border-top: 1px solid color-mix(in oklab, var(--paper) 24%, transparent);
}
.closer-tag {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-style: italic; color: var(--paper);
}
.closer-tag small { display: block; font-family: 'JetBrains Mono', monospace; font-style: normal; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklab, var(--paper) 55%, transparent); margin-top: 6px; }
.closer-meta { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: color-mix(in oklab, var(--paper) 70%, transparent); letter-spacing: 0.1em; line-height: 1.8; }
.closer-contact { margin-bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cc-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: color-mix(in oklab, var(--paper) 55%, transparent); }
.cc-email { font-family: 'Source Serif 4', serif; font-size: 18px; letter-spacing: 0; font-style: italic; color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); padding-bottom: 2px; }
.cc-email:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* ===== Tweaks panel ===== */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  z-index: 200;
  display: none;
  font-size: 13px;
}
.tweaks.open { display: block; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
}
.tweaks-head h3 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em;
}
.tweaks-body { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.tweak { display: flex; flex-direction: column; gap: 6px; }
.tweak label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2);
}
.tweak-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-buttons button {
  padding: 6px 10px; font-size: 11px;
  background: var(--paper); border: 1px solid var(--ink); cursor: pointer;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase;
}
.tweak-buttons button.on { background: var(--ink); color: var(--paper); }

/* Palette variants — all teal-anchored */
body.palette-leaf {
  --paper: #ebf3ee; --paper-2: #daeadd; --rule: #bcd4c3;
  --ink: #10332a; --ink-2: #345648; --ink-3: #6f8a7d;
  --accent: #2f8f73; --accent-ink: #0f5c48;
  --marigold: #7fc7aa;
}
body.palette-deep {
  --paper: #e9f2f2; --paper-2: #d6e4e5; --rule: #b8cccf;
  --ink: #062a2f; --ink-2: #1f4b52; --ink-3: #5e7e85;
  --accent: #0d7f7a; --accent-ink: #054f4a;
  --marigold: #5ec6bb;
}
body.palette-warm-orig {
  /* original warm paper — kept as an option since user said 'the old one was good' */
  --paper: #f5f0e6; --paper-2: #ece4d3; --rule: #d9cfb8;
  --ink: #1a1814; --ink-2: #4a4338; --ink-3: #8a7f6d;
  --accent: oklch(0.66 0.16 55); --accent-ink: oklch(0.38 0.14 55);
  --marigold: oklch(0.78 0.15 75); --teal: oklch(0.52 0.08 190);
}

/* Density variants */
body.density-spacious .hero { padding: 96px 0 128px; }
body.density-spacious .problem,
body.density-spacious .how,
body.density-spacious .langs,
body.density-spacious .parents,
body.density-spacious .faq { padding-top: 128px; padding-bottom: 128px; }
body.density-compact .hero { padding: 32px 0 56px; }
body.density-compact .problem,
body.density-compact .how,
body.density-compact .langs,
body.density-compact .parents,
body.density-compact .faq { padding-top: 56px; padding-bottom: 56px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-item { border-right: 1px solid var(--rule); }
  .problem-item:nth-child(2) { border-right: 0; }
  .how-wrap { grid-template-columns: 1fr; }
  .how-steps { border-right: 0; border-bottom: 1px solid var(--rule); }
  .avail-row { grid-template-columns: 1fr; gap: 32px; }
  .langs-head, .faq-head, .how-head { grid-template-columns: 1fr; gap: 24px; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .parents-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-inner { padding: 14px 24px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-item { border-right: 0; }
  .lang-grid { grid-template-columns: 1fr; }
  .parents-grid { grid-template-columns: 1fr; }
  .hero-masthead .mh-c { display: none; }
}
