/* chaipe.app — site styles. No external requests: fonts are self-hosted (OFL, see /licenses/).
   Palette: branding/concepts-2d/do-kulhad/palette.json. No purple. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght.woff2?v=6c18d579fd") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext-wght.woff2?v=0f53d1c03b") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Devanagari only (downloaded only on pages that contain Hindi). */
@font-face {
  font-family: "ChaiPe Devanagari";
  src: url("../fonts/mukta-devanagari-400.woff2?v=afc56ae914") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "ChaiPe Devanagari";
  src: url("../fonts/mukta-devanagari-600.woff2?v=872b98024f") format("woff2");
  font-weight: 600 800;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;
  --font-body: "ChaiPe Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Outfit", "ChaiPe Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  --bg: #FCF7F1;
  --bg-soft: #F8EDE0;            /* Malai Cream */
  --surface: #FFFDFA;
  --surface-2: #FBF1E5;
  --text: #3D2217;               /* Masala Chai Brown */
  --text-muted: #6B4A3A;
  --border: #EAD8C5;
  --border-strong: #D9BFA6;
  --input-border: #957562;       /* >= 3:1 on surface/bg (form fields must be visible, WCAG 1.4.11) */
  --invalid: #7A2412;
  --brand: #C0522D;              /* Kulhad Terracotta */
  --brand-hover: #A9441F;
  --link: #A9441F;
  --on-brand: #FFFFFF;
  --accent: #E9A23B;             /* Kesar Saffron: small highlights only */
  --brand-tint: rgba(192, 82, 45, 0.10);
  --brand-tint-2: rgba(192, 82, 45, 0.18);
  --later-bg: #FBE9CC;
  --later-text: #6A4310;
  --info-bg: #F4E7D8;
  --warn-bg: #FDF0D8;
  --warn-text: #5C3A0E;
  --warn-border: #EBC88B;
  --danger-bg: #FBE3DA;
  --danger-text: #7A2412;
  --danger-border: #E9A68E;
  --ok-bg: #E8F1E2;
  --ok-text: #2F4A22;
  --ok-border: #B8D0A8;
  --footer-bg: #3D2217;
  --footer-text: #F8EDE0;
  --footer-muted: #D8C3B2;
  --footer-link: #F0A37E;
  --placeholder-bg: #FFE08A;
  --placeholder-text: #3D2217;

  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(61, 34, 23, 0.06);
  --shadow: 0 1px 2px rgba(61, 34, 23, 0.05), 0 10px 30px -12px rgba(61, 34, 23, 0.18);
  --shadow-lg: 0 2px 4px rgba(61, 34, 23, 0.05), 0 24px 60px -20px rgba(61, 34, 23, 0.30);
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1140px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2B1710;               /* Night Chai */
    --bg-soft: #321B13;
    --surface: #3A2219;
    --surface-2: #42281D;
    --text: #F8EDE0;
    --text-muted: #CDB8A8;
    --border: #553829;
    --border-strong: #6E4A37;
    --input-border: #A58370;
    --invalid: #F8C9B5;
    --brand: #D9693E;            /* Diya Terracotta */
    --brand-hover: #E07B4F;
    --link: #EE8A5E;
    --on-brand: #2B1710;
    --brand-tint: rgba(217, 105, 62, 0.14);
    --brand-tint-2: rgba(217, 105, 62, 0.24);
    --later-bg: rgba(233, 162, 59, 0.16);
    --later-text: #F2C27A;
    --info-bg: #3A2219;
    --warn-bg: rgba(233, 162, 59, 0.12);
    --warn-text: #F6D9A8;
    --warn-border: rgba(233, 162, 59, 0.45);
    --danger-bg: rgba(217, 105, 62, 0.14);
    --danger-text: #F8C9B5;
    --danger-border: rgba(217, 105, 62, 0.5);
    --ok-bg: rgba(140, 180, 110, 0.14);
    --ok-text: #CFE3C0;
    --ok-border: rgba(140, 180, 110, 0.45);
    --footer-bg: #1F100B;
    --footer-text: #F8EDE0;
    --footer-muted: #CDB8A8;
    --footer-link: #F0A37E;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.25), 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 650;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0 1.5rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: var(--footer-link); }
main:focus { outline: none; }
::selection { background: var(--brand-tint-2); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.narrow-center { max-width: 760px; text-align: center; }
.muted { color: var(--text-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: 0; z-index: 100; transform: translateY(-120%);
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translateY(12px); }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.25em;
}
.icon .fill { fill: currentColor; }
.icon-lg { width: 44px; height: 44px; }

/* ------------------------------------------------------------------ placeholders ([[TO FILL: ...]]) */
mark.placeholder, .todo-block {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border-radius: 4px;
  padding: 0.05em 0.3em;
  font-weight: 600;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.todo-block { display: block; padding: 0.8em 1em; border: 2px dashed #C99A1E; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.header-end { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; border-radius: 8px; }
.brand img { width: 132px; height: auto; }
.nav-desktop ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a, .nav-mobile a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 0.98rem;
}
.nav-desktop a:hover, .nav-mobile a:hover { background: var(--brand-tint); }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] { background: var(--brand-tint-2); color: var(--text); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; background: var(--surface);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--brand-tint-2); }
.nav-mobile-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px;
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-mobile a { border-radius: var(--radius-sm); padding: 10px 14px; }

/* Language switcher: "English | हिन्दी", the current language filled. Same page, other language. */
.lang-switch ul { display: flex; list-style: none; margin: 0; padding: 3px; gap: 2px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); }
.lang-switch a {
  display: block; padding: 5px 12px; border-radius: 999px; color: var(--text); text-decoration: none;
  font: 500 0.92rem/1.35 var(--font-display); white-space: nowrap;
}
.lang-switch a:hover { background: var(--brand-tint); }
.lang-switch a[aria-current] { background: var(--brand); color: var(--on-brand); }
.lang-switch-mobile { margin-top: 8px; padding: 10px 6px 4px; border-top: 1px solid var(--border); }
.lang-switch-mobile ul { justify-content: center; }
.lang-switch-mobile a { padding: 8px 18px; }
.lang-quick {
  display: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  color: var(--text); text-decoration: none; font: 500 0.95rem/1.3 var(--font-display); white-space: nowrap; background: var(--surface);
}
.lang-quick:hover { background: var(--brand-tint); }
/* On English pages the only Devanagari is the word "हिन्दी" in the switcher: draw it with the system's
   Devanagari font so English pages never download Mukta (~100 KB). */
:root:lang(en) :is(.lang-switch, .lang-quick)[lang="hi"],
:root:lang(en) .lang-switch [lang="hi"] { font-family: system-ui, -apple-system, "Segoe UI", "Nirmala UI", "Noto Sans Devanagari", Roboto, sans-serif; }

@media (max-width: 960px) {
  .nav-desktop, .lang-switch-desktop { display: none; }
  .nav-mobile { display: block; }
  .lang-quick { display: inline-block; }
}
@media (max-width: 760px) {
  .brand img { width: 116px; }
}
@media (max-width: 380px) {
  .header-end { gap: 8px; }
  .nav-mobile-label { display: none; }
}

/* ------------------------------------------------------------------ buttons, badges, links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--brand); color: var(--on-brand); text-decoration: none; cursor: pointer;
  font: 600 1rem/1.2 var(--font-display); letter-spacing: 0.005em;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-light { background: #FFF8F0; color: #3D2217; box-shadow: none; }
.btn-light:hover { background: #FFFFFF; }
.btn-outline-light { background: transparent; color: #FFF8F0; border-color: rgba(255, 248, 240, 0.6); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255, 248, 240, 0.12); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.btn .icon { width: 1.1em; height: 1.1em; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600;
  text-decoration: none; color: var(--link);
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 1em; height: 1em; transition: transform .15s ease; }
.text-link:hover .icon { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: 0.15em;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  font: 600 0.72rem/1.6 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-later { background: var(--later-bg); color: var(--later-text); }
.badge-soft { background: var(--brand-tint); color: var(--link); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font: 600 0.82rem/1.4 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--link);
}
.eyebrow .icon { width: 1.3em; height: 1.3em; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--text-muted); line-height: 1.6; }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tight { padding-block: clamp(28px, 4vw, 48px); }
.section-soft { background: var(--bg-soft); }
.section-flush-top { padding-top: 0; }
.section-head { max-width: 700px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p:last-child { color: var(--text-muted); font-size: 1.1rem; }
.section-title { margin-top: 2.2rem; }

.page-hero {
  padding-block: clamp(40px, 7vw, 80px) clamp(12px, 2vw, 20px);
  background:
    radial-gradient(1200px 380px at 50% -140px, var(--brand-tint-2), transparent 70%),
    var(--bg);
}
.page-hero .lead { max-width: 680px; }
.narrow-center .lead { margin-inline: auto; }

/* ------------------------------------------------------------------ hero (home) */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(36px, 7vw, 96px) clamp(48px, 8vw, 104px);
  background:
    radial-gradient(900px 500px at 85% 20%, var(--brand-tint), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero-title { font-size: clamp(2.9rem, 8vw, 5.4rem); line-height: 1.0; margin-bottom: 0.35em; }
.hero-title .accent { color: var(--brand); }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 28px 0 18px; }
.hero-actions.center { justify-content: center; }
.hero-fineprint { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

.store-pill {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  padding: 10px 22px 10px 16px; border-radius: 16px; min-height: 56px;
  background: var(--text); color: var(--bg); text-decoration: none;
}
.store-pill .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.store-pill span { display: grid; line-height: 1.15; }
.store-pill small { font-size: 0.74rem; opacity: 0.85; letter-spacing: 0.02em; }
.store-pill strong { font: 650 1.15rem/1.2 var(--font-display); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
.hero-glow {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--brand-tint-2), transparent 68%);
}
.saucer {
  position: absolute; inset: 12%; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), inset 0 0 0 14px var(--surface-2);
  display: grid; place-items: center;
}
.saucer picture { width: 72%; }
.saucer img { width: 100%; }
.chip {
  position: absolute; margin: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  font: 600 0.92rem/1.2 var(--font-display); color: var(--text);
}
.chip .icon { color: var(--brand); }
.chip-a { top: 8%; left: -2%; }
.chip-a .icon { color: var(--accent); }
.chip-b { top: 46%; right: -4%; }
.chip-c { bottom: 6%; left: 8%; }
@media (prefers-reduced-motion: no-preference) {
  .chip { animation: float 6s ease-in-out infinite; }
  .chip-b { animation-delay: -2s; }
  .chip-c { animation-delay: -4s; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; order: 2; }
  .chip { font-size: 0.82rem; padding: 7px 12px 7px 9px; }
  .chip-a { left: 0; }
  .chip-b { right: -2%; top: 64%; }
}

/* ------------------------------------------------------------------ features, steps */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature h3 { margin-top: 16px; }
.feature p { color: var(--text-muted); margin-bottom: 0.6em; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature h3 .badge { margin-left: 4px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.step { position: relative; padding: 28px 24px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step p { color: var(--text-muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font: 700 1.1rem/1 var(--font-display);
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.split-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ checklists */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--brand); margin-top: 0.22em; width: 1.15em; height: 1.15em; stroke-width: 2.2; }
.checklist li.is-later { color: var(--text-muted); }
.checklist-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.checklist-cards li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; font-weight: 500;
}
@media (max-width: 620px) { .checklist-cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ CTA band */
.cta-band {
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 8px);
  /* Text on this band is >= 4.5:1 everywhere (cream on #A9441F 5.6:1; on the saffron glow 4.8:1). */
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(233, 162, 59, 0.16), transparent 70%),
    linear-gradient(135deg, #A9441F, #8A3518);
  color: #FFF8F0; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #FFFFFF; }
.cta-band p { color: #FFF8F0; max-width: 560px; }
.cta-band .cta-note { font-size: 0.95rem; color: #FFF8F0; margin: 0; }
.cta-band :focus-visible { outline-color: #FFF8F0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ callouts, cards */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--info-bg); margin-bottom: 28px;
}
.callout > .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--brand); }
.callout p { margin: 0 0 0.6em; }
.callout p:last-child { margin-bottom: 0; }
.callout > div { min-width: 0; }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.callout-warn > .icon { color: currentColor; }
.callout-warn a:not(.btn) { color: inherit; }
.callout-danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-text); }
.callout-danger > .icon { color: currentColor; }
.callout-danger a { color: inherit; }
.callout-warm { background: var(--brand-tint); border-color: transparent; margin: 24px 0 0; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------------ translation notice (Hindi legal pages) */
.translation-notice {
  display: flex; gap: 10px; align-items: flex-start; max-width: 760px;
  margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--info-bg); border: 1px solid var(--border); color: var(--text); font-size: 0.95rem;
}
.translation-notice .icon { color: var(--brand); margin-top: 0.2em; }
.embedded-policy .translation-notice { margin: 0 0 1.5rem; }

/* ------------------------------------------------------------------ pricing */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.tier .checklist { flex: 1; align-content: start; font-size: 0.98rem; }
.tier-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.tier-head h2 { font-size: 1.45rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tier-price { margin: 0; font-family: var(--font-display); }
.tier-price .amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tier-price .per { color: var(--text-muted); font-size: 1.05rem; }
.tier-sub { margin: 6px 0 0; color: var(--text-muted); font-size: 0.95rem; }
.tier-inherits { margin: 0 0 -6px; font-weight: 600; }
.tier-note { margin: 0; font-size: 0.92rem; color: var(--text-muted); padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.tier-later .tier-price .amount { color: var(--text-muted); }
@media (max-width: 960px) { .tier-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.explain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 36px; }
.explain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; }
.explain h3 { margin-bottom: 6px; }
.explain p { margin: 0; color: var(--text-muted); }
@media (max-width: 700px) { .explain-grid { grid-template-columns: 1fr; } }

.plan-block { margin-top: 28px; }
.plan-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  margin: 0 0 1.5em;
}
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th[align="center"], td[align="center"] { text-align: center; }
th[align="right"], td[align="right"] { text-align: right; }
thead th {
  background: var(--surface-2); font: 600 0.82rem/1.3 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.price-table td, .price-table th { min-width: 120px; }
.price-table tbody th { min-width: 150px; }
.price { font: 700 1.2rem/1.3 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.per-month { display: block; font-size: 0.85rem; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.row-badge { display: block; margin-top: 6px; }
.offer {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--brand-tint); font-size: 0.9rem; line-height: 1.45;
}
.price-table tr.has-offer th, .price-table tr.has-offer td { border-bottom: 0; padding-bottom: 8px; }
.price-table tr.offer-row td { padding-top: 0; }
.row-label { display: block; }
@media (max-width: 640px) {
  .price-table, .price-table tbody { display: block; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 16px; border-bottom: 1px solid var(--border); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { display: block; padding: 0; border: 0; min-width: 0 !important; }
  .price-table tbody th { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .price-table tbody th .per-month { display: inline; margin: 0; }
  .price-table .row-badge { display: inline-block; margin: 0; }
  .price-table td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font: 600 0.72rem/1.4 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
  }
  .price-table tr.has-offer { border-bottom: 0; padding-bottom: 8px; }
  .price-table tr.has-offer th, .price-table tr.has-offer td { padding-bottom: 0; }
  .price-table tr.offer-row { display: block; padding: 0 16px 16px; }
  .addons-table tr { grid-template-columns: 1fr auto; }
  .addons-table tbody th { grid-column: 1; grid-row: 1; display: block; }
  .addons-table .row-badge { display: block; margin-top: 6px; }
  .addons-table td.addon-price { grid-column: 2; grid-row: 1; text-align: right; }
  .addons-table td.addon-desc { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
}
.na { color: var(--text-muted); font-size: 0.92rem; }
tr.is-later .price { color: var(--text-muted); }
.addons-table td:nth-child(2) { min-width: 260px; }
.addons-table .muted { display: block; font-size: 0.88rem; margin-top: 4px; }

.fine-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fine { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.fine h3 { margin-bottom: 8px; }
.fine p { margin: 0; color: var(--text-muted); }
@media (max-width: 700px) { .fine-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ delete-account, grievance */
.option { margin-top: 44px; }
.option h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.option-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-size: 1rem; font-weight: 700;
}
.numbered { padding-left: 1.3em; margin: 0 0 1em; }
.numbered li { margin-bottom: 0.5em; padding-left: 0.3em; }
.numbered li::marker { color: var(--brand); font-weight: 700; font-family: var(--font-display); }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 20px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.list-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 22px 8px; }
.list-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.list-card h3 .icon { color: var(--brand); }
.list-card-intro { margin: -4px 0 12px; font-size: 0.95rem; color: var(--text-muted); }
.list-card ul { padding-left: 1.1em; margin: 0 0 1em; }
.list-card li { margin-bottom: 0.6em; color: var(--text-muted); }

.officer { margin-bottom: 8px; }
.officer h2 { font-size: 1.4rem; }
.facts { margin: 0 0 16px; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

.timeline { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.timeline li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border);
}
.timeline-time { font: 700 1.25rem/1.2 var(--font-display); color: var(--brand); letter-spacing: -0.01em; }
.timeline li.is-urgent { border-color: var(--danger-border); background: var(--danger-bg); }
.timeline li.is-urgent .timeline-what { color: var(--danger-text); }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border);
}
.contact-list span { color: var(--text-muted); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 18px; margin-top: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.98rem; }
.optional { font-weight: 400; color: var(--text-muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--input-border); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
/* Windows high contrast drops background images: give the select its native arrow back. */
@media (forced-colors: active) { select { appearance: auto; -webkit-appearance: auto; background-image: none; padding-right: 14px; } }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.85; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint-2); }
/* Invalid stays visible while the field has focus (the error text is also announced: role="alert"). */
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"],
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus {
  border-color: var(--invalid); box-shadow: 0 0 0 3px var(--danger-bg);
}
.form-error:focus { outline: none; }
.field-hint { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-error {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--danger-bg); color: var(--danger-text); border: 1px solid var(--danger-border);
}
.form-noscript { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn-text); }
.form-result {
  padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--ok-border);
  background: var(--ok-bg); color: var(--ok-text);
}
.form-result:focus { outline: none; }
.form-result.is-error { border-color: var(--warn-border); background: var(--warn-bg); color: var(--warn-text); }
.form-result p { margin: 0 0 0.5em; }
.form-result p:last-child { margin-bottom: 0; }
.form-result a { color: inherit; font-weight: 600; }
.form-result code {
  font: 700 1.05rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface); color: var(--text); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border);
  display: inline-block; max-width: 100%; overflow-wrap: anywhere;
}
.form.is-done .field, .form.is-done .field-row, .form.is-done .form-actions, .form.is-done > .field-hint { display: none; }

/* ------------------------------------------------------------------ legal pages / prose */
.legal-container { max-width: 1040px; }
.legal-container.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; }
.legal-container.has-toc .legal-body { grid-column: 1; grid-row: 1; }
.legal-hero .container { max-width: 1040px; }
.legal-hero h1, .legal-hero .legal-meta { max-width: 760px; }
.legal-meta { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.legal-body { max-width: 760px; min-width: 0; }
.toc-desktop {
  grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.92rem;
  max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px;
}
.toc-title { margin: 0 0 8px; font: 600 0.8rem/1.3 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); display: grid; gap: 6px; }
.toc a { color: var(--text-muted); text-decoration: none; display: block; line-height: 1.4; }
.toc a:hover { color: var(--link); }
.toc-mobile { display: none; }
@media (max-width: 900px) {
  .legal-container.has-toc { display: block; }
  .toc-desktop { display: none; }
  .toc-mobile {
    display: block; margin-bottom: 24px; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: var(--radius-md); background: var(--surface);
  }
  .toc-mobile summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; }
  .toc-mobile ol { margin-top: 12px; }
}

.prose { font-size: 1.04rem; overflow-wrap: break-word; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose > .stub:first-child h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose ol { padding-left: 2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--brand); }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--accent);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p:last-child { margin: 0; }
.prose code { font-size: 0.92em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.prose dt { font-weight: 650; margin-top: 0.8em; }
.prose dd { margin: 0 0 0.6em 1em; }
.prose .table-wrap table { font-size: 0.95rem; }
.prose .footnote { font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 640px) {
  .prose table.table-stack, .prose table.table-stack tbody, .prose table.table-stack tr, .prose table.table-stack td { display: block; }
  .prose table.table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table.table-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .prose table.table-stack tbody tr:last-child { border-bottom: 0; }
  .prose table.table-stack td { padding: 3px 0; border: 0; }
  .prose table.table-stack td::before {
    content: attr(data-label); display: block;
    font: 600 0.72rem/1.5 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
  }
  .prose table.table-stack td:first-child { font-weight: 650; font-size: 1.02rem; padding-bottom: 4px; }
  .prose table.table-stack td:first-child::before { display: none; }
}
.heading-anchor {
  margin-left: 0.35em; color: var(--text-muted); text-decoration: none; font-weight: 400;
  opacity: 0; transition: opacity .15s ease;
}
h2:hover .heading-anchor, h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.legal-contact { color: var(--text-muted); font-size: 0.95rem; }
.stub { text-align: center; padding: 40px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.stub .icon { color: var(--brand); margin: 0 auto 12px; display: block; }
.stub-inline { margin: 2rem 0; }
.stub-inline h2 { margin-top: 0; }

/* ------------------------------------------------------------------ 404 */
.not-found { padding-block: clamp(48px, 10vw, 120px); }
.not-found-art { width: 140px; margin: 0 auto 20px; padding: 18px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: clamp(44px, 6vw, 72px); }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: var(--footer-link); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 32px; }
.footer-logo img { width: 148px; }
.footer-tagline { font: 600 1.15rem/1.3 var(--font-display); margin: 18px 0 6px; color: #F0A37E; }
.footer-note { color: var(--footer-muted); font-size: 0.95rem; max-width: 280px; }
.footer-heading { font: 600 0.8rem/1.3 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--footer-muted); margin: 6px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.97rem; }
.footer-col a { overflow-wrap: anywhere; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 44px; padding-block: 22px 28px;
  background: linear-gradient(rgba(248, 237, 224, 0.14), rgba(248, 237, 224, 0.14)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
  font-size: 0.88rem; color: var(--footer-muted);
}
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Hindi pages (<html lang="hi-IN">)
   Devanagari text uses Mukta ("ChaiPe Devanagari", first in both font stacks; its unicode-range covers
   only Devanagari, so Latin words and digits keep the usual fonts). Devanagari has matras above and below
   the line: give it more line-height, no letter-spacing (it breaks the shirorekha) and no capitals. */
:root:lang(hi) body { line-height: 1.8; }
:root:lang(hi) * { letter-spacing: normal; }
:root:lang(hi) :is(h1, h2, h3, h4) { line-height: 1.4; }
:root:lang(hi) .hero-title { line-height: 1.25; }
:root:lang(hi) .lead { line-height: 1.75; }
:root:lang(hi) :is(.btn, .store-pill span, .badge, .timeline-time, .price) { line-height: 1.45; }
:root:lang(hi) :is(.eyebrow, .toc-title, .footer-heading) { text-transform: none; font-size: 0.95rem; line-height: 1.5; }
:root:lang(hi) .prose { line-height: 1.85; }
/* Devanagari looks about a size smaller than Latin at the same font-size: the tiny labels (badges, the
   per-cell labels of the stacked price/legal tables on phones, the store pill's small line) get a bit
   more size so the matras stay readable. */
:root:lang(hi) .badge { font-size: 0.8rem; line-height: 1.5; }
:root:lang(hi) .store-pill small { font-size: 0.8rem; letter-spacing: normal; }
:root:lang(hi) .price-table td[data-label]::before,
:root:lang(hi) .prose table.table-stack td::before { font-size: 0.82rem; text-transform: none; }
@media (max-width: 860px) { :root:lang(hi) .chip { font-size: 0.86rem; } }

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .site-footer, .toc, .skip-link, .hero-art, .heading-anchor, form { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { background: none; padding: 0; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
