/* =========================================================
   ClearVed design system
   Voice rule: our words are set in Schibsted Grotesk (sans);
   the shastras' words (verses, text names) in Tiro Devanagari
   Sanskrit (serif). Hindi in our voice uses Mukta.
   Light page only (Jyotish: the science of light). Charcoal is
   ink for text and lines, never a surface. Vermilion (sindoor)
   carries actions and the rubric marks on verses.
   Shape rule: printed matter. Containers are square with hairline
   rules (a double rule caps a sheet); controls have a 2px radius.
   No drop shadows, no pills, no glow rings.
   ========================================================= */

@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk-latin-wght-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Mukta"; src: url(/fonts/mukta-devanagari-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; src: url(/fonts/mukta-devanagari-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; src: url(/fonts/mukta-devanagari-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; src: url(/fonts/mukta-devanagari-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Tiro Devanagari Sanskrit"; src: url(/fonts/tiro-devanagari-sanskrit-texts-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
/* Subsets built by tools/subset_fonts.py (re-run it after changing Devanagari text):
   ₹ alone, so a price no longer pulls a whole 100 KB Hindi weight; the Devanagari used on the
   English pages only; and the serif texts voice limited to the shelf names and verse line. */
@font-face { font-family: "Mukta"; src: url(/fonts/mukta-rupee-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+20B9; }
@font-face { font-family: "Mukta"; src: url(/fonts/mukta-rupee-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+20B9; }
@font-face { font-family: "Mukta"; src: url(/fonts/mukta-rupee-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+20B9; }
@font-face { font-family: "Mukta"; src: url(/fonts/mukta-rupee-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+20B9; }
@font-face { font-family: "Mukta EN"; src: url(/fonts/mukta-en-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0900-097F, U+200C-200D; }
@font-face { font-family: "Mukta EN"; src: url(/fonts/mukta-en-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+200C-200D; }
@font-face { font-family: "Tiro Devanagari Sanskrit"; src: url(/fonts/tiro-devanagari-sanskrit-latin-400-normal.woff2) format("woff2"); font-weight: 400; 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: "Tiro Devanagari Sanskrit"; src: url(/fonts/tiro-devanagari-sanskrit-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; 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; }

:root {
  /* Morpankh dark (Nov 2026): near-black page, white type, peacock teal / blue / brass as jewels */
  --bg: #0a0c0c;
  --surface: #131718;
  --surface-2: #1a2021;       /* form fields and raised cards */
  --sunk: #0f1213;
  --line: #262c2d;
  --line-strong: #3a4243;
  --ink: #f4f6f5;             /* main text */
  --ink-2: #c9d1ce;
  --muted: #929c99;           /* secondary text (6.9:1 on --bg) */
  --accent: #2bb3a3;          /* peacock teal: links, marks, focus */
  --accent-hover: #4cc9b8;
  --accent-ink: #4cc9b8;      /* teal for small text */
  --accent-soft: #143331;
  --blue: #4a86e8;
  --brass: #d4af6a;
  --paper: #f5efe3;           /* the book page: the only light surface */
  --on-accent: #0a0c0c;
  --btn: #ffffff; --btn-ink: #0a0c0c; --btn-hover: #dfe6e4;
  --ic-bg: rgba(43,179,163,0.12); --ic-muted: rgba(255,255,255,0.05);
  --glow: 0.45; --paper-shadow: 0 30px 60px rgba(0,0,0,0.55);
  --on-sel: #0a0c0c;
  --ok-bg: #12291f; --ok-line: #24533f; --ok-ink: #8fd9b3;
  --err-bg: #2e1512; --err-line: #6b2a20; --err-ink: #ff9c86;

  --sans: "Schibsted Grotesk", "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hi: "Mukta", "Schibsted Grotesk", system-ui, sans-serif;
  --text: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --r-box: 0; --r-ctl: 2px;
  color-scheme: dark;
}
/* English pages show only a few Devanagari words: use the small subset first, full Mukta as backup */
html[lang="en"] {
  --sans: "Schibsted Grotesk", "Mukta EN", "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hi: "Mukta EN", "Mukta", "Schibsted Grotesk", system-ui, sans-serif;
}



/* Light mode: the device asks for light (and the visitor hasn't chosen dark), or the visitor chose light */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --bg: #f7f9f8; --surface: #ffffff; --surface-2: #ffffff; --sunk: #eef3f1;
  --line: #e2e9e7; --line-strong: #c4cfcc;
  --ink: #151c1c; --ink-2: #394342; --muted: #5d6867;
  --accent: #0e6b66; --accent-hover: #0b5753; --accent-ink: #0e6b66; --accent-soft: #e4f2f0;
  --blue: #1d4e89; --brass: #7a5c1c;
  --on-accent: #ffffff; --on-sel: #ffffff;
  --btn: #1d4e89; --btn-ink: #ffffff; --btn-hover: #173f70;
  --ic-bg: #e4f2f0; --ic-muted: #eef3f1;
  --glow: 0.22; --paper-shadow: 0 18px 40px rgba(14,30,29,0.18);
  --ok-bg: #e6f0ea; --ok-line: #b9d3c3; --ok-ink: #22573d;
  --err-bg: #f7e6e1; --err-line: #e2bcb1; --err-ink: #8f2d17;
  color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f9f8; --surface: #ffffff; --surface-2: #ffffff; --sunk: #eef3f1;
  --line: #e2e9e7; --line-strong: #c4cfcc;
  --ink: #151c1c; --ink-2: #394342; --muted: #5d6867;
  --accent: #0e6b66; --accent-hover: #0b5753; --accent-ink: #0e6b66; --accent-soft: #e4f2f0;
  --blue: #1d4e89; --brass: #7a5c1c;
  --on-accent: #ffffff; --on-sel: #ffffff;
  --btn: #1d4e89; --btn-ink: #ffffff; --btn-hover: #173f70;
  --ic-bg: #e4f2f0; --ic-muted: #eef3f1;
  --glow: 0.22; --paper-shadow: 0 18px 40px rgba(14,30,29,0.18);
  --ok-bg: #e6f0ea; --ok-line: #b9d3c3; --ok-ink: #22573d;
  --err-bg: #f7e6e1; --err-line: #e2bcb1; --err-ink: #8f2d17;
  color-scheme: light;
}
/* The logo has a light and a dark version */
.logo-on-light, .wordmark img.logo-on-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .logo-on-light { display: block; } :root:not([data-theme="dark"]) .logo-on-dark { display: none; } }
:root[data-theme="light"] .logo-on-light { display: block; }
:root[data-theme="light"] .logo-on-dark { display: none; }
.theme-toggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-toggle .sun { display: block; } :root:not([data-theme="dark"]) .theme-toggle .moon { display: none; } }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scrollbar-color: var(--line-strong) var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}
::selection { background: var(--accent); color: var(--on-sel); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); transition: text-decoration-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: var(--accent); } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
p { text-wrap: pretty; }

/* ---------- Buttons ----------
   primary: solid vermilion block, the one action per view.
   line: charcoal outline, a secondary action next to a primary. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 17px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap;
  min-height: 54px; padding: 0 28px; border-radius: var(--r-ctl); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--btn-hover); }
  .btn-line:hover { background: var(--ink); color: var(--bg); }
}
.btn[disabled] { opacity: 0.6; cursor: progress; }

.head-link { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) { .head-link:hover { color: var(--accent-ink); } }

/* Keyboard skip link: hidden until focused, then a printed slip at the top left */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.head-actions { display: flex; align-items: center; gap: 22px; }
.lang-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 0 4px; }
@media (hover: hover) and (pointer: fine) { .lang-link:hover { color: var(--ink); } }

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 23px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.wordmark .ved { color: var(--accent); }
.wordmark img { display: block; height: 32px; width: auto; }
.site-header .wordmark { min-height: 44px; }  /* full-height tap area; the logo stays 32px */
.wordmark .ring { stroke: var(--accent); }
.wordmark .bindu { fill: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: start; }
.hero-copy { padding-top: 24px; }
.topics { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0 0 30px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.topic {
  display: inline-block; padding: 11px 0 13px; margin-bottom: -1px;
  font: 600 16px/1.2 var(--sans); color: var(--muted); text-decoration: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .topic:hover { color: var(--ink); border-bottom-color: var(--line-strong); } }
.topic[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.hero-copy { max-width: 660px; }
.hero h1 { max-width: 20ch; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 22px 0 0; max-width: 34ch; }
.hero .btn { margin-top: 34px; }
/* Trust row: four facts as figures in a ruled grid, like a table of contents */
.hero-facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; max-width: 34rem; border-top: 1px solid var(--ink); }
.hero-facts li { display: grid; gap: 2px; align-content: start; padding: 12px 16px 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.hero-facts li:nth-child(even) { padding: 12px 0 14px 16px; border-left: 1px solid var(--line); }
.hero-facts .fig { font: 400 26px/1.15 var(--text); color: var(--accent-ink); font-variant-numeric: lining-nums; }
.is-palm .hero-facts { display: none; }
.swap { transition: opacity 220ms var(--ease-out), filter 220ms var(--ease-out), transform 220ms var(--ease-out); }
.swap.out { opacity: 0; filter: blur(4px); transform: translateY(4px); transition-duration: 140ms; }

/* Reading sheet (hero artifact) */
.sheet, .panel { background: var(--surface); border: 1px solid var(--line-strong); border-top: 4px double var(--ink); border-radius: 0; }
.sheet { padding: 24px 26px 22px; }
.palm-card { display: none; margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.sheet.is-palm .chart-wrap, .sheet.is-palm .parts, .sheet.is-palm .ans, .sheet.is-palm .sample-link, .sheet.is-palm .sheet-foot, .sheet.is-palm .sample-tag { display: none; }
.sheet.is-palm .palm-card { display: block; }
.sheet-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.sheet-top strong { color: var(--ink); font-weight: 650; font-size: 15px; }
.chart-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.chart { width: 220px; height: 220px; color: var(--ink); overflow: visible; }
.chart .frame { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.chart .house { fill: transparent; transition: fill 260ms var(--ease-out); }
.chart .house.on { fill: var(--accent-soft); }
.chart .sg { font: 500 15px var(--sans); fill: var(--muted); }
.chart .pl { font: 650 19px var(--sans); fill: var(--ink); transition: fill 200ms ease; }
.chart .pl.on { fill: var(--accent); }
.chart .pl-sm { font-size: 17px; }
.chart-note { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.chart-note b { display: block; color: var(--ink); font-weight: 650; font-size: 15px; margin-bottom: 4px; }
.q { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 16px; font-style: italic; color: var(--ink-2); }
.parts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: part; }
.parts li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.parts li b { color: var(--ink); font-weight: 650; }
.parts li { counter-increment: part; }
.parts li::before { content: counter(part); font: 400 18px/1.3 var(--text); color: var(--accent-ink); }
.verse { display: block; margin-top: 4px; font-family: var(--text); font-style: italic; font-size: 15px; color: var(--ink-2); }
.sample-link { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; }
.sample-link a { font-weight: 650; color: var(--accent-ink); text-decoration-color: var(--accent); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.sample-link span { font-size: 13px; color: var(--muted); }
.sheet.is-palm .sample-link { display: none; }
.sheet-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Five questions: a ruled ledger, question left, our answer right ---------- */
.pledge { padding: 96px 0; background: var(--surface); border-block: 1px solid var(--line); }
.pledge h2 { max-width: 24ch; }
.pledge .intro { color: var(--muted); font-size: 18px; max-width: 52ch; margin: 18px 0 0; }
.asks { margin: 48px 0 0; border-top: 1px solid var(--ink); counter-reset: ask; }
.asks > div { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); gap: 8px 40px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); counter-increment: ask; }
.asks dt { display: grid; grid-template-columns: 30px 1fr; font-weight: 650; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.asks dt::before { content: counter(ask); font: 400 22px/1.2 var(--text); color: var(--accent-ink); }
.asks dd { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.asks dd a { color: var(--accent-ink); text-underline-offset: 3px; }

/* ---------- Try it on a sample chart: tap a planet, see its aspects and the checked verse ---------- */
.explore { padding: 96px 0; background: var(--surface); border-block: 1px solid var(--line); }
.explore h2 { max-width: 22ch; }
.explore .intro { color: var(--muted); font-size: 18px; max-width: 62ch; margin: 18px 0 0; }
.explore-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 48px; }
.explore-chart { width: 340px; height: 340px; }
.explore-chart .house.asp { fill: url(#ex-hatch); }
.explore-chart .hatch-line { stroke: var(--accent); stroke-width: 1.2; opacity: 0.55; }
.explore-chart [data-p] { cursor: pointer; transition: fill 160ms ease; }
.explore-chart .pl.sel, .explore-chart tspan.sel { fill: var(--accent); }
.ex-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.ex-key span { display: inline-flex; align-items: center; gap: 8px; }
.ex-key span::before { content: ""; width: 16px; height: 16px; border: 1px solid var(--line-strong); }
.ex-key .k-on::before { background: var(--accent-soft); }
.ex-key .k-asp::before { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.ex-planets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ex-planet { min-height: 44px; padding: 0 8px; font: 600 15px/1.2 var(--sans); color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); cursor: pointer; transition: border-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
@media (hover: hover) and (pointer: fine) { .ex-planet:hover { border-color: var(--ink); color: var(--ink); } }
.ex-planet[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.explore-panel { margin-top: 20px; background: var(--bg); border: 1px solid var(--line-strong); border-top: 4px double var(--ink); padding: 20px 24px 22px; min-height: 260px; }
.explore-panel h3 { font-size: 20px; margin-bottom: 4px; }
.explore-panel dl { margin: 0; }
.explore-panel dt { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--muted); }
.explore-panel dd { margin: 6px 0 0; }
.explore-panel dd p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.explore-panel .ex-houses { font-size: 18px; font-weight: 650; color: var(--ink); }
.ex-quote { font-family: var(--text); font-style: italic; font-size: 16px; color: var(--ink); quotes: "\201C" "\201D"; }
.ex-cite { font-size: 13px; color: var(--accent-ink); white-space: nowrap; }
.ex-note { font-size: 14px !important; color: var(--muted) !important; }

/* ---------- Library ---------- */
.library { padding: 96px 0; background: var(--sunk); }
.library h2 { max-width: 20ch; }
.library .intro { color: var(--muted); font-size: 18px; max-width: 58ch; margin: 18px 0 0; }
.shelf { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.shelf li { padding: 8px 28px 4px; border-left: 1px solid var(--line-strong); }
.shelf li:first-child { padding-left: 0; border-left: 0; }
.shelf .dev { display: block; font-family: var(--text); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.35; color: var(--ink); }
.shelf .lat { display: block; margin-top: 10px; font-weight: 650; font-size: 16px; }
.shelf .by { display: block; font-size: 14px; color: var(--muted); }
.shelf .st { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line-strong); padding-top: 6px; }
.shelf .st.on { color: var(--accent-ink); border-top: 2px solid var(--accent); }
.library .check-us { margin: 48px 0 0; padding: 18px 0 0; border-top: 3px double var(--ink); font-size: 17px; line-height: 1.55; max-width: 70ch; }
.library .check-us b { font-weight: 700; }
.library .check-us a { color: var(--accent-ink); text-underline-offset: 3px; }
.library .fine { margin: 20px 0 0; font-size: 15px; color: var(--muted); max-width: 70ch; }

/* ---------- Order ---------- */
.order { padding: 96px 0; }
.order-head { max-width: 640px; margin-bottom: 44px; }
.order-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.order-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 28px; align-items: start; }
.order-grid > * { min-width: 0; }
.panel { padding: 26px 28px 28px; }
.pay-panel { position: sticky; top: 92px; }
.panel h3 { display: flex; align-items: baseline; gap: 14px; font-size: 22px; }
.step { font: 400 30px/1 var(--text); color: var(--accent-ink); flex: none; margin-top: -2px; }
.panel > p { color: var(--muted); font-size: 16px; margin: 8px 0 20px; }
.price { display: flex; align-items: baseline; gap: 10px; font-size: 52px; font-weight: 750; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 0.62em; font-weight: 600; letter-spacing: 0; margin-right: -6px; align-self: flex-start; margin-top: 6px; }
.price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pay-hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.beta-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Order flow: three steps in one printed sheet, summary on the side */
.order-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 32px; }
#order-form { background: var(--surface); border: 1px solid var(--line-strong); border-top: 4px double var(--ink); padding: 8px 28px 28px; gap: 0; }
.fstep { display: grid; gap: 18px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
#step-pay { border-bottom: 0; padding-bottom: 0; }
#form-msg:not(.hidden) { margin-top: 20px; }
#form-msg:focus { outline: none; }  /* focus is moved here after sending; the box itself is the visible cue */
.fstep h3 { display: flex; align-items: baseline; gap: 14px; font-size: 22px; }
#order-form[data-mode="details"] .only-upload, #order-form[data-mode="upload"] .only-details { display: none; }
#order-form.palm .only-paid { display: none !important; }
.note { background: var(--accent-soft); border-left: 0; padding: 14px 16px; font-size: 15px; color: var(--ink-2); }
.note p { margin: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface-2); cursor: pointer; font-weight: 400; transition: border-color 150ms ease, box-shadow 150ms ease; }
.choice-item input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; padding: 0; accent-color: var(--accent); flex: none; }
.choice-item b { display: block; font-weight: 650; font-size: 15px; color: var(--ink); }
.choice-item .help { display: block; margin-top: 2px; }
.choice-item:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-item:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="file"] { padding: 10px; min-height: 0; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line-strong); border-radius: var(--r-ctl); }
input[type="file"]::file-selector-button { font: 600 14px/1 var(--sans); margin-right: 12px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: var(--r-ctl); background: transparent; color: var(--ink); cursor: pointer; }
.pay-box { padding: 18px; background: var(--bg); border: 1px solid var(--line); }
.ref-line { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.ref-line code { font: 700 16px/1 var(--sans); color: var(--ink); letter-spacing: 0.02em; margin-left: 6px; }
.howto { margin: 0; padding-left: 20px; font-size: 15px; color: var(--ink-2); display: grid; gap: 6px; }
.howto li::marker { font-family: var(--text); color: var(--accent-ink); }
.summary { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line-strong); border-top: 4px double var(--ink); padding: 22px 24px 24px; }
.summary h3 { font-size: 18px; }
.sum-topic { margin: 8px 0 14px; font-weight: 600; color: var(--ink); }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); counter-reset: s; }
.sum-list li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; counter-increment: s; }
.sum-list li::before { content: counter(s); font: 400 15px/1.35 var(--text); color: var(--accent-ink); }
.order-grid.palm .only-paid-sum { display: none; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ink); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.sum-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.soon { font-weight: 500; font-size: 12px; color: var(--accent-ink); margin-left: 2px; }
#order-form .btn-primary { width: 100%; margin-top: 4px; }

/* Form */
form { display: grid; gap: 18px; }
form > *, fieldset > *, .row-2 > * { min-width: 0; }
fieldset { border: 0; border-top: 1px solid var(--line-strong); padding: 16px 0 0; margin: 4px 0 0; display: grid; gap: 16px; min-width: 0; }
legend { font-weight: 650; font-size: 15px; padding: 0 10px 0 0; color: var(--ink); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; font-size: 15px; font-weight: 600; }
.help { font-size: 13px; font-weight: 400; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; max-width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom: 1.5px solid var(--ink-2); border-radius: var(--r-ctl) var(--r-ctl) 0 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.85; }
textarea { min-height: 112px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--line-strong); border-bottom-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--err-ink); }
[aria-invalid="true"]:not([type="checkbox"]) { border-color: var(--err-ink); border-bottom-color: var(--err-ink); }
.field-err { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--err-ink); }
.check + .field-err { margin: -8px 0 0 32px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--accent); }
/* Checkboxes ignore the "fill in the line" baseline, so keep a visible keyboard ring */
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.hidden { display: none !important; }
.hp { position: absolute; left: -5000px; }
.ts-box:empty { display: none; }
.ts-box { margin: 4px 0 12px; }
.form-msg { border-radius: 0; padding: 18px 20px; font-size: 16px; line-height: 1.5; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
@starting-style { .form-msg { opacity: 0; transform: translateY(6px); } }
.form-msg.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); }
.form-msg.err { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-ink); }
.form-msg h3 { color: inherit; margin-bottom: 6px; }
.form-msg p { margin: 0; }
.form-msg p + p { margin-top: 12px; }
.form-msg a.btn { color: var(--on-accent); }
.form-msg a { color: inherit; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--line); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-contact { margin: 18px 0 0; font-size: 16px; color: var(--muted); max-width: 30ch; }
.faq-contact a { color: var(--accent-ink); }
.faq-group { margin: 0; padding: 22px 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; color: var(--muted); }
.faq-group + details { border-top: 1px solid var(--line); }
html[lang="hi"] .faq-group { text-transform: none; letter-spacing: 0; font-size: 15px; }
.faq-list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 15px 44px 15px 0; position: relative; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform 200ms var(--ease-out); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
details p { margin: -2px 0 18px; color: var(--muted); max-width: 62ch; }

/* ---------- Closing ---------- */
.closing { padding: 112px 0; }
.closing .tag { font-family: var(--hi); font-weight: 700; font-size: clamp(40px, 6vw, 80px); line-height: 1.2; margin: 0; }
.closing .tag-en { font-size: 20px; color: var(--muted); margin: 12px 0 36px; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px; margin: -4px; }
.site-footer nav a { padding: 4px; }  /* 24px+ hit area; same visible spacing as before */
.site-footer a { color: var(--muted); }
.disclaimer { font-size: 13px; line-height: 1.6; max-width: 80ch; margin: 20px 0 0; }

.mobile-cta { display: none; }

/* Smallest phones: keep the header on one line */
@media (max-width: 360px) {
  .site-header .wrap { gap: 10px; }
  .head-actions { gap: 12px; }
  .wordmark img { height: 28px; }
}

/* ---------- Hindi page: Devanagari needs more line height and no negative tracking ---------- */
html[lang="hi"] body { line-height: 1.75; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { letter-spacing: 0; line-height: 1.3; }
html[lang="hi"] h1 { font-size: clamp(32px, 3.8vw, 48px); }
html[lang="hi"] .lede { line-height: 1.6; max-width: 36ch; }
html[lang="hi"] .asks dt { letter-spacing: 0; line-height: 1.5; }
html[lang="hi"] .hero-facts .fig { font-family: var(--hi); font-weight: 600; font-size: 24px; }
html[lang="hi"] .btn { letter-spacing: 0; }
html[lang="hi"] .chart .pl { font-family: var(--hi); font-weight: 600; }

/* ---------- ClearVed Pro founding list (/pro): reading column, order-form sheet for the form ---------- */
.pro { padding: 56px 0 96px; }
.pro .wrap { max-width: 760px; }
.pro h1 { font-size: clamp(34px, 4.5vw, 50px); max-width: 18ch; }
.pro .lede { max-width: 56ch; }
.pro-block { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--ink); }
.pro-block h2 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 12px; }
.pro-block > p { margin: 0 0 8px; color: var(--ink-2); max-width: 62ch; }
.pro-list { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: pl; }
.pro-list li { display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); counter-increment: pl; }
.pro-list li:first-child { border-top: 0; }
.pro-list li::before { content: counter(pl); font: 400 20px/1.3 var(--text); color: var(--accent-ink); }
.pro-list b { color: var(--ink); font-weight: 650; }
.pro-form { margin-top: 24px; background: var(--surface); border: 1px solid var(--line-strong); border-top: 4px double var(--ink); padding: 24px 28px 28px; }
.pro-form .btn-primary { width: 100%; margin-top: 4px; }
@media (max-width: 640px) { .pro { padding: 32px 0 64px; } .pro-block { margin-top: 40px; } .pro-form { padding: 18px 18px 22px; } }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.5vw, 48px); }
.legal h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { color: var(--muted); font-size: 15px; margin: 12px 0 32px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

/* ---------- Motion: one authored moment, the chart draws itself on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .chart.draw .frame { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease-in-out) forwards; }
  .chart.draw .frame.d2 { animation-delay: 120ms; }
  .chart.draw .frame.d3 { animation-delay: 220ms; }
  .chart.draw .frame.d4 { animation-delay: 320ms; }
  .chart.draw .labels, .chart.draw .houses { opacity: 0; animation: fade 420ms var(--ease-out) 820ms forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fade { to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .swap, .swap.out { transition: opacity 120ms ease; filter: none; transform: none; }
  .btn:active { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy, .hero h1 { max-width: 640px; }
  .sheet { max-width: 620px; }
  .shelf { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .explore-grid { grid-template-columns: 1fr; gap: 32px; }
  .explore-chart-col { justify-self: center; }
  .shelf li:nth-child(3) { padding-left: 0; border-left: 0; }
  .order-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .faq .wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq-side { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 60px; }
  .head-link { font-size: 15px; }
  .hero { padding: 20px 0 56px; }
  .hero-copy { padding-top: 0; }
  /* Topics: all five visible as a ruled 2-column grid (no hidden sideways scroll) */
  .topics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
  .topics li { border-bottom: 1px solid var(--line); }
  .topics li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
  .topics li:last-child { grid-column: 1 / -1; }
  .topics li:last-child .topic { font-size: 14px; }
  .topic { display: flex; align-items: center; min-height: 44px; padding: 8px 0; margin-bottom: -1px; font-size: 15px; }
  .hero-facts { max-width: none; }
  .lede { font-size: 18px; }
  .hero .btn, .closing .btn { width: 100%; }
  .sheet { padding: 20px; }
  .chart-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .chart { width: 230px; height: 230px; }
  .pledge, .explore, .library, .order, .faq { padding: 64px 0; }
  .explore-grid { margin-top: 32px; }
  .explore-chart { width: min(300px, 100%); height: auto; }
  .ex-planets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .explore-panel { padding: 16px 16px 18px; min-height: 0; }
  .asks { margin-top: 32px; }
  .asks > div { grid-template-columns: 1fr; padding: 16px 0 18px; }
  .asks dt { font-size: 17px; }
  .asks dd { padding-left: 30px; font-size: 16px; }
  .shelf { grid-template-columns: 1fr; row-gap: 0; margin-top: 36px; }
  .shelf li, .shelf li:first-child, .shelf li:nth-child(3) { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .panel { padding: 20px; }
  #order-form { padding: 4px 18px 22px; }
  .choice { grid-template-columns: 1fr; }
  .pay-box { padding: 14px; }
  .summary { padding: 18px; }
  .sum-list { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .price { font-size: 46px; }
  .closing { padding: 72px 0; }
  .mobile-cta {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transition: transform 240ms var(--ease-out);
  }
  .mobile-cta .btn { width: 100%; }
  .mobile-cta.away { transform: translateY(110%); transition-duration: 180ms; }
  .site-footer { padding-bottom: 112px; }
}

/* Hero card: a real excerpt of the output */
.ans { margin-top: 14px; }
.ans-lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ans-lead b { color: var(--ink); }
.ans-points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.ans-points li { padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ans-points b { color: var(--ink); font-weight: 650; }
.ans-points q { display: block; margin-top: 4px; font-family: var(--text); font-size: 17px; color: var(--ink); quotes: "\201C" "\201D"; }
.ans-points cite { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: var(--accent-ink); }

/* What you get: the four pages of the sample reading */
.receive { padding: 88px 0; background: var(--surface); border-block: 1px solid var(--line); }
.receive .intro { color: var(--muted); font-size: 18px; max-width: 40rem; margin: 18px 0 0; }
.pages { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: pg; }
.pages li { counter-increment: pg; display: grid; gap: 6px; align-content: start; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pages img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); background: var(--surface-2); }
.pages a { display: block; margin-bottom: 8px; }
.pages b { color: var(--ink); font-size: 16px; }
.pages b::before { content: counter(pg) "  "; font-family: var(--text); font-weight: 400; color: var(--accent-ink); }
.receive-cta { margin: 36px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.sample-open { color: var(--ink); text-underline-offset: 4px; }
@media (max-width: 900px) { .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } .receive { padding: 64px 0; } }
@media (max-width: 640px) { .receive-cta .btn { width: 100%; } }

/* Hero quick start */
.quick { margin-top: 30px; max-width: 34rem; }
.quick-label { display: block; font-weight: 650; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.quick textarea { width: 100%; min-height: 84px; font-size: 17px; line-height: 1.45; padding: 12px 14px; }
.quick-ex-label { margin: 12px 0 6px; font-size: 14px; color: var(--muted); }
.quick-ex { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-chip { font: 500 15px/1.2 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 10px 16px; min-height: 44px; cursor: pointer; }
.quick-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .quick-chip:hover { border-color: var(--ink); } }
.quick-err { margin: 10px 0 0; font-size: 15px; color: var(--err-ink); font-weight: 600; }
.quick .btn { margin-top: 16px; min-width: 220px; }
.quick-next { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.palm-cta { display: none; }
.is-palm .quick { display: none; }
.is-palm .palm-cta { display: inline-flex; }
@media (max-width: 640px) { .quick .btn { width: 100%; } }
.quick-saved { margin: 0 0 14px; padding: 10px 12px; font-size: 15px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); }

/* Form as cards, one step at a time */
.wizard .fstep { display: none; border-bottom: 0; }
.wizard .fstep.cur { display: grid; }
.wizard .fstep.hidden { display: none; }
.wiz-prog { padding-top: 6px; }
.wiz-prog.hidden { display: none; }
.wiz-count { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.wiz-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease-out; }
.wiz-nav { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.wiz-nav .btn { margin-top: 0; }
.wiz-nav .wiz-next, .wiz-nav #submit-btn { flex: 1; }
.wiz-back { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .wiz-bar span { transition: none; } }

#order-form .wiz-nav .btn { width: auto; }
#order-form .wiz-nav .wiz-next, #order-form .wiz-nav #submit-btn { flex: 1; }
#order-form { scroll-margin-top: 84px; }
.quick-saved[hidden] { display: none; }
.qs-label { font-weight: 650; }
.qs-text { color: var(--ink); }
.qs-change { background: none; border: 0; padding: 4px 2px; min-height: 32px; font: 600 15px/1.2 var(--sans); color: var(--accent-ink, var(--accent)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qs-change:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* "See an answer before you pay": three sample questions on the sample chart.
   Every quote is a page-checked line of the 1905 translation; links open the scanned page. */
.demo-who { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.demo-qs { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-qs[hidden] { display: none; }
.demo-q { font: 600 14px/1.2 var(--sans); color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 10px 12px; min-height: 44px; cursor: pointer; transition: border-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
@media (hover: hover) and (pointer: fine) { .demo-q:hover { border-color: var(--ink); color: var(--ink); } }
.demo-q[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.demo-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-ctl); }
.demo-a .q { margin-top: 16px; }
.demo-a[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .demo-a.in { animation: fade 220ms var(--ease-out); } }
.ans-points cite a { color: var(--accent-ink); text-decoration-color: var(--accent); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 32px; }
.ans-points cite a::after { content: "\2197"; margin-left: 4px; font-size: 12px; }
.sheet.is-palm .demo-who, .sheet.is-palm .demo-qs, .sheet.is-palm .demo-out { display: none; }

/* =========================================================
   v3 Morpankh dark (Nov 2026): hero, topic cards, the book page, trust, steps, price
   ========================================================= */
.eye { flex: none; display: inline-block; vertical-align: middle; }
.label { margin: 0; font: 600 12px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.v3-hero { padding: 20px 0 8px; }
.v3-hero .wrap { display: grid; gap: 28px; }
.v3-hero h1 { margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; font-weight: 400; }
.v3-hero .h-hi { font: 400 38px/1.3 var(--text); color: var(--ink); }
.v3-hero .h-en { font: 500 19px/1.35 var(--sans); color: var(--ink-2); letter-spacing: 0; }
.v3-hero .h-en.out, .v3-sub .out { opacity: 0; }
.v3-sub { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cards li { display: flex; }
.cards .wide { grid-column: 1 / -1; }
.topic-card { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 96px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color 150ms ease, transform 160ms var(--ease-out); }
.cards .wide .topic-card { flex-direction: row; align-items: center; min-height: 70px; background: var(--surface-2); }
.topic-card .t { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.topic-card b { font: 600 15px/1.25 var(--sans); }
.cards .wide .topic-card b { font-size: 16px; }
.topic-card small { font: 400 13px/1.35 var(--sans); color: var(--muted); }
.topic-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--ic-bg); display: flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.topic-card .ic svg { width: 20px; height: 20px; }
.topic-card .go { color: var(--accent); flex: none; }
.topic-card[aria-current="page"] { border-color: var(--accent); }
.topic-card.muted { color: var(--muted); }
.topic-card.muted .ic { background: var(--ic-muted); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .topic-card:hover { border-color: var(--line-strong); } }
.topic-card:active { transform: scale(0.98); }
.v3-cta { margin-top: 12px; }
.v3-cta .btn { width: 100%; }
.v3-cta p { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.paper-wrap { position: relative; padding: 28px 8px; }
.paper-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(43,179,163,var(--glow)), rgba(74,134,232,calc(var(--glow) / 2)) 55%, rgba(10,12,12,0) 100%); pointer-events: none; }
.paper { position: relative; margin: 0 auto; max-width: 340px; padding: 22px 20px 18px; background: var(--paper); color: #1e1a14; border-radius: 6px; transform: rotate(-2.5deg); box-shadow: var(--paper-shadow); }
.paper .run { margin: 0 0 12px; display: flex; justify-content: space-between; font: 400 12px/1 var(--text); color: #7a6a50; }
.paper blockquote { margin: 0; font: 400 24px/1.4 var(--text); color: #1e1a14; }
.paper figcaption { margin-top: 10px; font: 400 13px/1.45 var(--sans); color: #5f574a; }
.paper a { color: inherit; }
.stamp { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid #7a5c1c; border-radius: 999px; color: #7a5c1c; font: 600 13px/1 var(--sans); }
.stamp [lang="hi"] { font-family: var(--hi); }

.v3-sec { padding: 64px 0 0; }
.v3-sec h2.big { margin: 12px 0 0; font: 700 34px/1.12 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.v3-sec .more { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--sans); color: var(--accent); text-decoration: none; }
.trust { list-style: none; margin: 6px 0 0; padding: 0; }
.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.trust b { display: block; font: 600 16px/1.3 var(--sans); color: var(--ink); }
.trust span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.steps3 { list-style: none; margin: 6px 0 0; padding: 0; }
.steps3 li { display: flex; gap: 14px; padding: 12px 0; }
.steps3 .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--ic-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.steps3 .ic svg { width: 20px; height: 20px; }
.steps3 b { display: block; font: 600 16px/1.35 var(--sans); }
.steps3 li > div > span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.price-card { margin-top: 16px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.price-card .amt { margin: 0; font: 700 64px/1 var(--sans); letter-spacing: -0.03em; color: var(--brass); }
.price-card .what { margin: 8px 0 0; font: 500 15px/1.4 var(--sans); color: var(--ink-2); }
.price-card ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.price-card li svg { flex: none; margin-top: 3px; color: var(--accent); }
.price-card .fine { margin: 16px 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.price-card .btn { width: 100%; }
.books3 { list-style: none; margin: 10px 0 0; padding: 0; }
.books3 li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.books3 b { display: block; font: 600 15.5px/1.3 var(--sans); }
.books3 small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.books3 .st { flex: none; font: 600 11.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.books3 .st.on { color: var(--accent); }
.closing3 { padding: 72px 0 0; text-align: center; }
.closing3 .h-hi { margin: 0; font: 400 34px/1.3 var(--text); }
.closing3 .tag-en { margin: 4px 0 22px; color: var(--muted); font-size: 15px; }

@media (min-width: 960px) {
  .v3-hero { padding: 56px 0 8px; }
  .v3-hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
  .v3-hero .h-hi { font-size: 64px; line-height: 1.25; white-space: nowrap; }
  .v3-hero .h-en { font-size: 28px; line-height: 1.3; }
  .v3-sub { font-size: 17px; }
  .v3-hero .topics-row { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .cards .wide { grid-column: span 2; }
  .topic-card { min-height: 120px; padding: 18px; }
  .v3-cta { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
  .v3-cta .btn { width: auto; padding: 0 28px; }
  .v3-cta p { text-align: left; margin: 0; }
  .paper-wrap { padding: 40px 20px; }
  .paper { max-width: 500px; padding: 30px 30px 26px; }
  .paper blockquote { font-size: 34px; }
  .v3-sec { padding-top: 120px; }
  .v3-sec h2.big { font-size: 64px; line-height: 1.08; letter-spacing: -0.03em; max-width: 16ch; }
  .trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
  .trust li { padding: 0; border: 0; }
  .steps3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 28px; }
  .steps3 li { flex-direction: column; }
  .price-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .price-card .amt { font-size: 88px; }
  .closing3 .h-hi { font-size: 72px; }
}
/* v3 overrides of the older hero / topic-tab rules (still used by the Hindi page) */
.cards a.topic.topic-card { display: flex; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; font: inherit; color: var(--ink); min-height: 96px; }
.cards .wide a.topic.topic-card { min-height: 70px; }
.cards a.topic.topic-card.muted { color: var(--muted); }
.cards a.topic.topic-card[aria-current="page"] { border-color: var(--accent); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cards a.topic.topic-card:hover { color: var(--ink); border-color: var(--line-strong); } }
.v3-hero h1 { max-width: none; }
.v3-hero .btn { margin-top: 0; }
.v3-hero .hero-copy { padding-top: 0; max-width: none; }
.quick-sec .quick { margin-top: 12px; }
.show-mobile { display: block; }
.hide-mobile { display: none; }
@media (min-width: 960px) {
  .cards a.topic.topic-card { min-height: 120px; padding: 18px; }
  .cards .wide a.topic.topic-card { min-height: 120px; }
  .show-mobile { display: none; }
  .hide-mobile { display: block; }
  .v3-cta.hide-mobile { display: flex; }
}
.cards li:not(.wide) a.topic.topic-card { flex-direction: column; align-items: flex-start; text-align: left; }
.site-header .wrap > .theme-toggle { margin-left: auto; margin-right: 14px; }

.sum-note:empty { display: none; }
/* Library shelf (four books in use) */
.library3 .intro { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.shelf3 { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.shelf3 li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.shelf3 .dev { display: block; font: 400 20px/1.3 var(--text); color: var(--ink); }
.shelf3 b { display: block; margin-top: 2px; font: 600 15.5px/1.3 var(--sans); }
.shelf3 small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.shelf3 .st { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.shelf3 .st strong { font-weight: 700; color: var(--ink-2); }
.shelf3 .st.on strong { color: var(--accent-ink); }
.check3, .fine3 { margin: 20px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.check3 a { color: var(--accent-ink); }
.fine3 { font-size: 13.5px; color: var(--muted); }
@media (min-width: 960px) {
  .shelf3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .shelf3 li { align-content: start; }
  .price-solo { max-width: 640px; }
}
.proof-note { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
/* Topic landing pages: what the report covers */
.covers { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.covers li { display: flex; gap: 12px; align-items: flex-start; }
.covers li svg { flex: none; margin-top: 3px; color: var(--accent); }
.covers b { display: block; font: 600 16px/1.35 var(--sans); color: var(--ink); }
.covers span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.covers-cta { margin: 22px 0 0; }
.covers-cta .btn { width: 100%; }
@media (min-width: 960px) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; max-width: 900px; } .covers-cta .btn { width: auto; padding: 0 28px; } }
.mobile-cta .btn { white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; line-height: 1.25; } }
.price-card .launch { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* =========================================================
   Nov 2026 de-templating: chart glyphs, Devanagari step numerals, ruled lists, price slip
   ========================================================= */
.ask { margin: 0 0 12px; font: 600 16px/1.3 var(--sans); color: var(--ink-2); }
/* Topic cards: a small North Indian kundli with the house the topic reads */
.topic-card .ic.kg-wrap, .steps3 .ic.kg-wrap { width: auto; height: auto; border-radius: 0; background: none; justify-content: flex-start; color: var(--muted); }
.topic-card .ic.kg-wrap svg.kg { width: auto; height: 40px; }
.topic-card .ic.kg-wrap > svg:not(.kg) { width: 26px; height: 26px; margin: 7px 0; }
.kg .l { fill: none; stroke: var(--muted); stroke-opacity: 0.6; stroke-width: 1.1; stroke-linejoin: round; }
.kg .h { fill: var(--accent); opacity: 0.55; }
.kg .p { fill: var(--brass); }
@media (hover: hover) and (pointer: fine) { .topic-card:hover .kg .h { opacity: 0.85; } .topic-card:hover .kg .l { stroke-opacity: 0.9; } }
.topic-card[aria-current="page"] .kg .h { opacity: 0.9; }
.topic-card[aria-current="page"] .kg .l { stroke: var(--accent); stroke-opacity: 1; }
.kg .h, .kg .l { transition: opacity 160ms var(--ease-out), stroke-opacity 160ms var(--ease-out); }
/* Section headings without eyebrow labels */
.v3-sec h2.mid { margin: 0; font: 700 24px/1.2 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
/* Trust: two plain statements on a hairline, no icons */
.trust li { display: block; padding: 14px 0; border-bottom: 0; border-top: 1px solid var(--line); }
.trust li:last-child { border-bottom: 1px solid var(--line); }
.proof-note + .paper-wrap + .trust, .proof-note + .trust { margin-top: 24px; }
/* How it works: numbered in Devanagari, set in the books' serif */
.steps3 li { gap: 16px; align-items: flex-start; }
.steps3 .num { flex: none; width: 34px; font: 400 34px/1 var(--text); color: var(--brass); }
.steps3 li > div { padding-top: 4px; }
/* What your report covers: ruled rows, no ticks */
.covers { gap: 0; border-top: 1px solid var(--line); }
.covers li { display: block; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
/* Price as a printed slip: rules above and below, not a floating card */
.price-card.slip { margin-top: 0; padding: 28px 0 30px; background: none; border: 0; border-radius: 0; border-top: 3px double var(--brass); border-bottom: 1px solid var(--line); }
.price-card.slip .incl { margin: 14px 0 22px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 960px) {
  .v3-sec h2.mid { font-size: 32px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 900px; }
  .trust li, .trust li:last-child { padding: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .steps3 li { flex-direction: row; }
  .steps3 .num { font-size: 44px; width: auto; }
  .covers { border-top: 0; column-gap: 40px; row-gap: 0; }
  .covers li { border-top: 1px solid var(--line); border-bottom: 0; }
  .price-solo { max-width: var(--wrap-max, 1200px); }
  .price-card.slip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 48px; align-items: center; padding: 36px 0; }
  .price-card.slip .amt { grid-row: 1 / span 3; }
  .price-card.slip .what, .price-card.slip .launch, .price-card.slip .incl { grid-column: 2; margin: 2px 0; }
  .price-card.slip .btn { grid-column: 3; grid-row: 1 / span 3; width: auto; padding: 0 28px; }
}
/* The sample-report band has its own background, so it needs space below its last line */
.receive.v3-sec { padding-bottom: 64px; }
@media (min-width: 960px) { .receive.v3-sec { padding-bottom: 96px; } }
/* Palm waitlist: no delivery promise under the join button */
.is-palm .v3-cta p { display: none; }

/* =========================================================
   Topic pages v4 (Nov 2026): each topic gets its own banner, a sample-page card,
   "people ask first", and one showpiece only that topic has. Then a short shared ending.
   ========================================================= */
:root { --paper-ink: #1e1a14; --paper-muted: #6b604f; --paper-rule: #d9cdb6; --paper-brass: #7a5c1c; --paper-lost: #a3472c;
  --banner-a: rgba(43,179,163,0.20); --banner-b: rgba(74,134,232,0.14); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --banner-a: rgba(14,107,102,0.12); --banner-b: rgba(29,78,137,0.08); } }
:root[data-theme="light"] { --banner-a: rgba(14,107,102,0.12); --banner-b: rgba(29,78,137,0.08); }
.tb { position: relative; padding: 28px 0 56px; border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 80% at 85% 30%, var(--banner-a), transparent 70%), radial-gradient(50% 70% at 10% 100%, var(--banner-b), transparent 70%), var(--bg); }
.tb-grid { position: relative; display: grid; gap: 36px; }
.tb-h { margin: 6px 0 0; font: 700 clamp(38px, 7vw, 72px)/1.03 var(--sans); letter-spacing: -0.035em; max-width: 14ch; }
.tb-h .q { display: block; margin-top: 10px; color: var(--ink-2); font-weight: 600; font-size: 0.6em; letter-spacing: -0.02em; line-height: 1.15; }
.tb-h .num { color: var(--brass); }
.tb-sub { margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.tb-cta { margin-top: 28px; }
.tb-cta .btn { width: 100%; }
.tb-note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tb-card { margin: 0; padding: 24px 24px 20px; max-width: 400px; width: 100%; justify-self: center; background: var(--paper); color: var(--paper-ink); border-radius: 6px; box-shadow: var(--paper-shadow); }
.tb-card .run { margin: 0; display: flex; justify-content: space-between; gap: 12px; font: 400 12.5px/1.2 var(--text); color: var(--paper-muted); }
.tb-card .run b { font: 400 15px/1.2 var(--text); color: var(--paper-ink); }
.tb-card .tname { margin: 16px 0 0; font: 700 30px/1.1 var(--sans); letter-spacing: -0.02em; color: var(--paper-ink); }
.tb-card .tname span { display: block; margin-top: 6px; font: 600 15px/1.2 var(--sans); color: var(--paper-lost); letter-spacing: 0; }
.tb-card .explain { margin: 16px 0 0; display: grid; gap: 12px; }
.tb-card .explain div { padding-top: 12px; border-top: 1px solid var(--paper-rule); }
.tb-card dt { font: 600 12.5px/1.2 var(--sans); color: var(--paper-muted); }
.tb-card dd { margin: 4px 0 0; font: 400 16px/1.4 var(--text); color: var(--paper-ink); }
.tb-card figcaption { margin-top: 14px; font: 400 13px/1.45 var(--sans); color: var(--paper-muted); }
.tb .paper-wrap { padding: 8px 0; }
.tb .paper-wrap::before { display: none; }
.tsec { padding: 64px 0 0; }
.tsec h2 { font: 700 clamp(28px, 4vw, 44px)/1.1 var(--sans); letter-spacing: -0.025em; max-width: 20ch; }
.tsec .lede { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.asks2 { margin: 26px 0 0; border-top: 1px solid var(--line); }
.asks2 > div { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.asks2 dt { font: 400 22px/1.3 var(--text); color: var(--ink); }
.asks2 dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.tests8 { list-style: none; margin: 24px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.tests8 li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tests8 li div { min-width: 0; }
.tests8 b { font: 600 16px/1.2 var(--sans); }
.tests8 li div span { display: block; margin-top: 3px; font: 400 14.5px/1.45 var(--sans); color: var(--muted); }
.tests8 small { flex: none; font: 500 13px/1 var(--sans); color: var(--brass); white-space: nowrap; }
.tb-fine { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 64ch; }
.pick2, .qs2 { margin-top: 24px; display: grid; gap: 16px; }
.pick2 > div, .qs2 > div { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pick2 h3, .qs2 h3 { font: 700 20px/1.2 var(--sans); }
.pick2 ul, .qs2 ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); line-height: 1.6; }
.pick2 .btn { margin-top: 18px; width: 100%; }
.qs2 li { font: 400 17px/1.45 var(--text); }
.qs2 .no h3 { color: var(--muted); }
.qs2 .no li { color: var(--muted); }
.steps4 { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.steps4 li { display: flex; gap: 16px; align-items: flex-start; }
.steps4 .num { flex: none; width: 34px; font: 400 34px/1 var(--text); color: var(--brass); }
.steps4 b { display: block; font: 600 17px/1.35 var(--sans); }
.steps4 li div span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.defs { margin: 24px 0 0; border-top: 1px solid var(--line); }
.defs > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.defs dt { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.defs dd { margin: 0; font: 400 18px/1.45 var(--text); color: var(--ink-2); }
.defs a { color: var(--accent-ink); }
.proof2 { display: grid; gap: 28px; align-items: center; }
.proof2 .paper { margin: 0; transform: rotate(-1.5deg); }
.other-topics { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.other-topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font: 600 15px/1 var(--sans); }
@media (hover: hover) and (pointer: fine) { .other-topics a:hover { border-color: var(--accent); } }
@media (min-width: 960px) {
  .tb { padding: 48px 0 88px; }
  .tb-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
  .tb-cta .btn { width: auto; }
  .tsec { padding-top: 104px; }
  .asks2 > div { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; }
  .tests8 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .pick2, .qs2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
  .steps4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 0; }
  .defs > div { border-top: 1px solid var(--line); border-bottom: 0; }
  .proof2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}
/* Hindi topic pages: our own Hindi words are set in Mukta; the serif subset only carries the books' words */
html[lang="hi"] .tb-card .run, html[lang="hi"] .tb-card .run b, html[lang="hi"] .tb-card dd, html[lang="hi"] .asks2 dt, html[lang="hi"] .defs dd, html[lang="hi"] .qs2 li { font-family: var(--hi); }
html[lang="hi"] .tb-card dd, html[lang="hi"] .defs dd { font-size: 16.5px; }
html[lang="hi"] .asks2 dt { font-weight: 600; font-size: 20px; }
html[lang="hi"] .tb-h { font-family: var(--hi); letter-spacing: -0.01em; line-height: 1.2; }
/* In-page Razorpay checkout */
.form-msg .pay-status { margin-top: 8px; }
.form-msg .pay-alt-on { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); }
/* WhatsApp number: country code + number on one row */
.wa-row { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 8px; margin-top: 6px; }
.wa-row select, .wa-row input { width: 100%; min-width: 0; }
label.check.is-off { opacity: 0.45; }
/* Thank-you page */
.thanks h1 { margin-top: 8px; }
.thanks .ty-lead { font-size: 18px; color: var(--ink-2); }
.ty-slip { margin: 22px 0 8px; padding: 18px 20px; max-width: 520px; border-top: 3px double var(--brass); border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.ty-slip > div { display: flex; justify-content: space-between; gap: 16px; }
.ty-slip dt { color: var(--muted); }
.ty-slip dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.thanks h2 { margin-top: 36px; }
.ty-note { margin-top: 24px; color: var(--ink-2); max-width: 60ch; }
html[lang="hi"] .thanks { font-family: var(--hi); }

/* Hero offer line (launch price + sample link) and phone-only sample pictures, Nov 2026 */
.offer { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.offer span { display: block; }
.offer a { display: inline-block; margin-top: 4px; padding: 6px 0; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.v3-cta .offer, .v3-hero .offer { text-align: left; }
.sample-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; text-decoration: none; }
.sample-strip img { width: 100%; height: auto; aspect-ratio: 560 / 490; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
@media (min-width: 960px) { .sample-strip.show-mobile { display: none; } .v3-cta.hide-mobile + .offer { margin-top: 14px; } }
.is-palm .offer, .is-palm .sample-strip { display: none !important; }

/* Hindi book-page card: the Hindi meaning large, the printed 1905 English kept underneath (14 Nov 2026) */
.paper .orig { margin: 8px 0 0; font: 400 13px/1.5 var(--sans); color: #5f574a; }
.paper .orig i { font-family: var(--text); font-size: 14px; }
.paper blockquote.hiq { line-height: 1.3; }

/* Navigation (14 Nov 2026): topic links in the desktop header, and a labelled contents panel (सूची / Contents) */
.dnav { display: none; }
.toc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer; }
.toc-btn:focus-visible, .toc-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 959px) { .site-header .head-link { display: none; } }
@media (min-width: 960px) {
  .dnav { display: flex; gap: 22px; margin: 0 auto 0 36px; }
  .dnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15.5px; white-space: nowrap; }
  .dnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
  @media (hover: hover) and (pointer: fine) { .dnav a:hover { color: var(--ink); } }
}
@media (min-width: 960px) and (max-width: 1199px) { .dnav a:nth-child(n+5) { display: none; } }
.toc { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.toc[hidden] { display: none; }
.toc-in { max-width: 560px; margin: 0 auto; padding: 12px 20px 40px; }
.toc-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.toc-name { margin: 0; font-weight: 700; font-size: 17px; }
.toc-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.toc-h { margin: 22px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.toc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc-list a { display: flex; align-items: baseline; gap: 12px; min-height: 52px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 600; }
.toc-list a[aria-current="page"] { color: var(--accent-ink); }
.toc-sec .n { width: 22px; flex: none; font: 400 20px/1 var(--text); color: var(--brass); }
.toc-cta { width: 100%; margin-top: 26px; }
.toc-more { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.toc-more a { display: inline-block; padding: 10px 0; color: var(--muted); }
@media (min-width: 960px) {
  .toc { inset: 0 0 0 auto; width: 440px; border-left: 1px solid var(--line); box-shadow: -30px 0 60px rgba(0, 0, 0, 0.35); }
  .toc-in { padding: 12px 28px 40px; }
}
body.toc-on { overflow: hidden; }
