/* =====================================================================
   Sanskrit Everywhere — the website styles
   Zero dependencies: system fonts + one self-hosted Devanagari font
   Palette: deep forest green · warm gold · ivory paper
   ===================================================================== */

/* ---------- the Devanagari reading font ---------- */
@font-face {
  font-family: "Noto Serif Devanagari";
  src: url("../fonts/NotoSerifDevanagari-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- the Kannada reading font (self-hosted; added 2026-10-03) ---------- */
@font-face {
  font-family: "Noto Serif Kannada";
  src: url("../fonts/NotoSerifKannada-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --green-950: #0b2a17;
  --green-900: #123f24;
  --green-800: #17522e;
  --green-700: #1e6b3a;
  --green-600: #2a8a4c;
  --green-050: #eaf3e0;
  --green-100: #d7e8c9;

  --ink: #1c2a1d;
  --body: #3c4a3c;
  --muted: #6b7a66;

  --paper: #f5eedc;              /* warm parchment — the page is never stark white */
  --paper-2: #efe5cc;            /* a deeper parchment for the alternating bands */
  --card: #fdf8ea;               /* the cards: cream */
  --card-2: #f9f1dc;
  --line: #e2d6b6;
  --line-strong: #cdbd94;

  --gold: #7c5514;
  --gold-600: #ab7522;
  --gold-400: #cd9b3a;
  --gold-050: #f7ecd0;
  --gold-100: #ecd9ae;

  --clay: #a3552e;               /* a manuscript vermilion — used sparingly */
  --clay-050: #f6e5d8;

  /* the arrival layer — "bright to arrive, calm to read"
     (the user's, 2026-10-05 — raw_prompts.md #724): the brighter second
     palette, used ONLY on the arrival surfaces (the home · the hubs ·
     the cards · the carousels · the journey art).  The reading surfaces
     keep the parchment above.  The colour rides on decoration — ribbons ·
     tints · chips · icons; body text keeps its audited colours. */
  --leaf: #4caf6d;
  --leaf-700: #2b7d46;
  --leaf-050: #e9f8ea;
  --leaf-100: #cdeed2;
  --marigold: #f2a72e;
  --marigold-600: #dc8c12;
  --marigold-050: #fff2d2;
  --marigold-100: #fbe2ab;
  --coral: #e2673f;
  --coral-050: #fdeee3;
  --coral-100: #f7d6c2;
  --plum: #8a4f9e;
  --plum-600: #7d4a8f;
  --plum-050: #f3e9f6;
  --plum-100: #e7d3ee;

  --font-latin: "Segoe UI", "Noto Serif Kannada", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif Devanagari", serif;
  --font-dv: "Noto Serif Devanagari", "Noto Serif Kannada", "Nirmala UI", "Segoe UI", serif;
  --font-kn: "Noto Serif Kannada", "Nirmala UI", "Segoe UI", serif;   /* the self-hosted Kannada reading face */

  --wrap: 1140px;
  --radius: 18px;
  --shadow-soft: 0 1px 0 rgba(90, 70, 20, 0.05);
  --shadow-lift: 0 26px 50px -34px rgba(60, 45, 12, 0.55);
}

/* ---------- content protection (every page) ----------
   The site's content is for reading, not for copying away: the page text is
   not selectable (form fields stay fully usable), the context menu is closed
   on the content (links and controls excepted — site.js), images cannot be
   dragged out, and if anything is still copied (a reader mode, an extension)
   site.js keeps the source attached to the clipboard.  Honest limit
   (recorded — docs/09 §4D.17): no web format is un-copyable; this deters
   casual copying, nothing more. */
html, body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}
img { -webkit-user-drag: none; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%;               /* the reader's browser font-size preference is the base */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 1.25rem;            /* = 20px at the default root; scales with the root */
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;     /* a long word may break rather than push the page sideways */
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; font-family: var(--font-serif); font-weight: 700; line-height: 1.22; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
::selection { background: #cfe6c8; }

:focus-visible { outline: 3px solid rgba(26, 107, 58, 0.35); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.dv { font-family: var(--font-dv); }
[lang="kn"] { font-family: var(--font-kn); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 244, 229, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 112px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 104px; width: auto; }
/* The banner (logo + wordmark) and the nav are the site's chrome: their sizes
   are in px, so the reader's text-size control never distorts the approved
   banner.  All reading content is in rem and scales (the readability standard). */
.brand-word {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  height: 104px; justify-content: space-between; line-height: 1;
}
.brand-word .bw-en {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, var(--font-serif);
  font-weight: 700; font-size: 32.8px;
  letter-spacing: 0.02em; color: var(--green-950); line-height: 1.08;
}
.brand-word .bw-deva { font-family: var(--font-dv); font-weight: 700; font-size: 27.2px; color: var(--gold); letter-spacing: 0.01em; line-height: 1.3; }
.brand-word::after {
  content: ""; display: block; width: 100%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(181, 129, 46, 0.12) 0%, var(--gold-600) 50%, rgba(181, 129, 46, 0.12) 100%);
}
.brand:hover .bw-en { color: var(--green-700); }
.brand:hover .bw-deva { color: var(--gold-600); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 17.3px;
  padding: 9px 16px; border-radius: 999px;
}
.site-nav a:hover { background: var(--green-050); color: var(--green-700); }
.site-nav a.active { background: var(--green-050); color: var(--green-700); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-latin); font-weight: 600; font-size: 1.1rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--green-700); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(26, 107, 58, 0.55);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line-strong); color: var(--green-900);
  background: rgba(253, 248, 234, 0.9);
}
.btn-ghost:hover { border-color: var(--green-700); background: #fffdf4; transform: translateY(-1px); }
/* the free button — the arrival layer's fresh leaf green, distinct from the deep
   green of the paid buttons (the user's, 2026-10-10 — raw_prompts #1016) */
.btn-leaf {
  background: linear-gradient(180deg, #45ad68 0%, #2b7d46 100%);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(43, 125, 70, 0.5);
}
.btn-leaf:hover { background: linear-gradient(180deg, #56bb79 0%, #339056 100%); transform: translateY(-1px); }
/* the softer alternative (shown in the #1016 review — not active; swap in if wanted):
   a light "tonal" mint fill with deep green text —
.btn-leaf {
  background: linear-gradient(180deg, #e2f6e4 0%, #cdeed2 100%);
  color: #22693c;
  border-color: #a8d9b3;
  box-shadow: 0 10px 24px -14px rgba(43, 125, 70, 0.35);
}
.btn-leaf:hover { background: linear-gradient(180deg, #ecf9ed 0%, #d9f2dc 100%); border-color: var(--leaf-700); }
*/
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
/* The pair = ONE unit — the fused tag (the hero paid/free badge fix, the user's
   2026-10-11 — raw_prompts #1036 · #1038): the button squares its right edge and
   the chip fuses onto it (left edge squared, no gap, stretched to the button's
   height) — each Paid/Free chip unmistakably belongs to its own button.  The
   whole unit is one link; hovering anywhere lifts the unit. */
.btn-pair { display: inline-flex; align-items: stretch; gap: 0; text-decoration: none; transition: transform 0.18s ease; }
.btn-pair .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-pair .btn:hover { transform: none; }
.btn-pair:hover { transform: translateY(-1px); }
.btn-pair .badge {
  align-self: stretch; border-top-left-radius: 0; border-bottom-left-radius: 0;
  border-left: 0; padding: 0 15px;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #e6efd5 0%, #f0e8d2 55%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -120px; width: 680px; height: 680px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(205, 155, 58, 0.18), rgba(205, 155, 58, 0) 66%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 52px;
  align-items: center; padding: 72px 0 78px;
}
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: 1.3rem; color: var(--green-700); letter-spacing: 0.01em;
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.35rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--green-700); }
.lede { font-size: 1.35rem; color: var(--muted); max-width: 33em; margin-bottom: 28px; }

/* the theme illustration — a seed growing into a tree that bears the granthas */
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: min(100%, 430px); height: auto; }

/* the hero's two CTAs — one row on desktop (the user’s, 2026-10-10 — raw_prompts #1015):
   the paid + free pairs fit the copy column at ≥1021 px — the buttons and badges step
   down slightly there; mobile/tablet keep the full-size buttons (they stack anyway). */
@media (min-width: 1021px) {
  .hero .btn-row { gap: 7px; }
  .hero .btn-row .btn { font-size: 1rem; padding: 12px 14px; }
  .hero .btn-row .btn-pair { gap: 0; }
  .hero .btn-row .badge { font-size: 0.8rem; padding: 0 10px; letter-spacing: 0.03em; }
}

/* the sample verse strip under the hero — the free-resource pagination */
.sample-strip {
  background: linear-gradient(180deg, var(--paper) 0%, #eddfc0 100%);
  border-top: 1px solid rgba(171, 117, 34, 0.28);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
}
.sample-slider { max-width: 720px; margin: 0 auto; --slide-h: 340px; }
.sample-slides { height: var(--slide-h); }
.sample-slides .slide[hidden] { display: none; }
.sample-slides .slide { height: 100%; animation: slideIn 0.32s ease; }
.verse-card.slide { display: flex; flex-direction: column; overflow: hidden; }
.verse-card.slide > a { margin-top: auto; padding-top: 6px; }
@keyframes slideIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.sample-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.snav {
  width: 42px; height: 42px; padding: 0 0 4px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: rgba(253, 248, 234, 0.92);
  color: var(--green-900); font-size: 24px; line-height: 1;
}
.snav:hover { border-color: var(--gold-600); color: var(--gold); background: #fffdf4; }
.jdots { display: flex; align-items: center; gap: 13px; }
.sdots { display: flex; align-items: center; gap: 13px; }
.sdot {
  position: relative;
  width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: transparent;
}
/* ★ the tap area (the audit's finding 2 — the user's, 2026-10-12): the dots
   keep their 11 px look; the hit area grows to ~33 px via an invisible
   overlay (the gap widened 9 → 13 px so neighbouring targets stay clean). */
.sdot::before { content: ""; position: absolute; inset: -11px; }
.sdot:hover { border-color: var(--gold-600); }
.sdot.on { background: var(--gold-600); border-color: var(--gold-600); transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) { .sample-slides .slide { animation: none; } }

.verse-card {
  background: linear-gradient(180deg, #fffdf4 0%, #faf2dd 100%);
  border: 1px solid var(--line-strong); border-top: 4px solid var(--gold-600);
  border-radius: var(--radius);
  padding: 24px 26px 20px; box-shadow: var(--shadow-lift);
}
.verse-card .vlabel {
  margin: 0 0 10px; font-size: 0.94rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-700);
}
.verse-card .verse {
  font-family: var(--font-dv); font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.95; color: var(--ink); margin: 0 0 14px;
}
.verse-card .gloss { color: var(--muted); font-size: 1.12rem; margin: 0 0 18px; }
.verse-card a { font-weight: 600; text-decoration: none; }
.verse-card a:hover { text-decoration: underline; }

/* ---------- the Grammar Pre-requisites promotion (its own block) ---------- */
.prereq-promo {
  background: linear-gradient(120deg, #eef4e0 0%, #f7ecd0 100%);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.promo-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.promo-mark {
  width: 84px; height: 84px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-dv); font-size: 3rem; font-weight: 600;
  color: var(--green-800); background: rgba(255, 253, 244, 0.7);
  border: 1px solid var(--line-strong);
}
.promo-deva { margin: 0 0 4px; font-family: var(--font-dv); color: var(--gold); font-weight: 600; }
.promo-copy h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.promo-copy p { margin: 0; color: var(--body); max-width: 52em; }
.promo-cta { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.promo-link { font-weight: 600; text-decoration: none; color: var(--green-700); }
.promo-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .promo-inner { grid-template-columns: auto 1fr; }
  .promo-cta { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .promo-inner { grid-template-columns: 1fr; }
  .promo-mark { width: 64px; height: 64px; font-size: 2.2rem; border-radius: 18px; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0 8px; }
.band-sage {
  margin-top: 76px; padding: 64px 0 54px;
  background: linear-gradient(180deg, #f1f5e2 0%, #e9f1d8 100%);
  border-top: 1px solid #dbe6c4;
  border-bottom: 1px solid #dbe6c4;
}
.band-gold {
  margin-top: 76px; padding: 64px 0 58px;
  background: linear-gradient(180deg, #f7eed7 0%, #f0e4c4 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); position: relative; padding-bottom: 12px; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green-700), var(--gold-600));
}
.section-head p { color: var(--muted); font-size: 1.2rem; margin: 10px 0 0; }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  background: linear-gradient(180deg, #fffdf4 0%, #f9f1da 100%);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; box-shadow: var(--shadow-soft);
}
.feature .ficon {
  width: 36px; height: 36px; margin-bottom: 12px; display: block;
  background: var(--green-050); border-radius: 12px; padding: 7px; box-sizing: content-box;
}
.how-grid .feature:nth-child(2) .ficon { background: var(--gold-050); }
.how-grid .feature:nth-child(3) .ficon { background: var(--clay-050); }
.how-grid .feature:nth-child(4) .ficon { background: var(--green-050); }
.feature .ficon rect, .feature .ficon line, .feature .ficon path, .feature .ficon circle {
  fill: none; stroke: var(--green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.feature .ficon text { font-family: var(--font-dv); font-size: 17px; font-weight: 600; fill: var(--green-700); }
.feature h3 { font-size: 1.2rem; font-family: var(--font-latin); font-weight: 700; }
.feature p { margin: 0; font-size: 1.08rem; color: var(--body); }

/* ---------- the journey — knowing nothing to the classical texts ----------
   The spine of the home page: four stations, each with what it teaches,
   what you can do by its end, and where to start (free or the courses). */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
@media (min-width: 1021px) {
  .journey::before {
    content: ""; position: absolute; top: 0; left: 5%; right: 5%;
    border-top: 3px dashed #c9d8a4; z-index: 0;
  }
}
.jcard {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, #fffdf4 0%, #f7efd9 100%);
  border: 1px solid var(--line); border-top-width: 4px; border-radius: 16px;
  padding: 30px 22px 22px; box-shadow: var(--shadow-soft);
}
.jcard:nth-child(1) { border-top-color: var(--green-600); }
.jcard:nth-child(2) { border-top-color: var(--gold-600); }
.jcard:nth-child(3) { border-top-color: var(--clay); }
.jcard:nth-child(4) { border-top-color: var(--green-900); }
.jnum {
  position: absolute; top: -17px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-800); color: #f7f0dc; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 16px -8px rgba(60, 45, 12, 0.6);
}
.jcard:nth-child(2) .jnum { background: var(--gold-600); }
.jcard:nth-child(3) .jnum { background: var(--clay); }
.jcard:nth-child(4) .jnum { background: var(--green-950); }
/* the stage name wears the same colour as its number badge (the user's #899) */
.jcard:nth-child(1) .jdv { color: var(--green-800); }
.jcard:nth-child(2) .jdv { color: var(--gold-600); }
.jcard:nth-child(3) .jdv { color: var(--clay); }
.jcard:nth-child(4) .jdv { color: var(--green-950); }
.jdv { font-family: var(--font-dv); font-size: 1.5rem; font-weight: 600; color: var(--green-800); margin: 2px 0 0; line-height: 1.4; }
.jcard h3 { font-size: 1.28rem; margin: 0; }
.jstage { margin: 0; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.jdesc { margin: 0; font-size: 1.06rem; color: var(--body); }
.jcan { margin: 0; font-size: 1.04rem; color: var(--body); background: var(--green-050); border: 1px solid #dce9cd; border-radius: 10px; padding: 10px 12px; }
.jcan strong { color: var(--green-800); }
.jlink { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; color: var(--green-700); }
.jlink:hover { text-decoration: underline; }
.jsoon { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--muted); }   /* a stage not yet open (the user's #903) */
.jstart { box-shadow: 0 18px 40px -30px rgba(60, 45, 12, 0.6); }
.jstart::after {
  content: "start here"; position: absolute; top: -13px; right: 18px;
  background: var(--green-700); color: #f7f0dc; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.journey-note { text-align: center; color: var(--muted); margin: 26px 0 0; font-size: 1.07rem; }
@media (max-width: 1020px) { .journey { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .journey { grid-template-columns: 1fr; }
  .jcard { padding: 26px 18px 18px; }
}

/* ---------- the hero's journey trail — the five steps (2026-10-05) ---------- */
.trail {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.tstep {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: tstepIn 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.tstep[data-go] { cursor: pointer; }
.tstep:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 4px; border-radius: 12px; }
.tstep:nth-child(1) { animation-delay: 0.05s; }
.tstep:nth-child(2) { animation-delay: 0.13s; }
.tstep:nth-child(3) { animation-delay: 0.21s; }
.tstep:nth-child(4) { animation-delay: 0.29s; }
.tstep:nth-child(5) { animation-delay: 0.37s; }
.tdot {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fffdf4; border: 2px solid var(--ring, var(--line-strong));
  color: var(--ring, var(--green-700));
  font-family: "Noto Serif Devanagari", "Nirmala UI", serif;
  font-size: 19px; font-weight: 600; line-height: 1;
  box-shadow: 0 2px 0 rgba(31, 81, 50, 0.10), inset 0 -2px 0 rgba(31, 81, 50, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.tstep:hover .tdot { transform: translateY(-3px); box-shadow: 0 9px 16px rgba(31, 81, 50, 0.18); background: #fffef9; }
.tstep.on .tdot {
  background: var(--ring); color: #fffdf4;
  box-shadow: 0 9px 18px rgba(31, 81, 50, 0.22); transform: translateY(-2px);
}
.tlabel { font-size: 0.95rem; font-weight: 600; color: var(--green-800); text-align: center; }
.tstep.on .tlabel { color: var(--green-900); }
.tstep.s5 .tlabel { color: #8a5f1c; }
.tstep.s5 .tdot { background: #fff7e2; }
.tstep.s5.on .tdot { background: var(--gold-600); color: #fffdf4; }
.ticon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the stage colours deepen along the path, to gold at the goal */
.s1 { --ring: #8fb08a; }
.s2 { --ring: #55906b; }
.s3 { --ring: #2f6f47; }
.s4 { --ring: #a97c22; }
.s5 { --ring: #c08a2b; }
/* the gold connectors between the medallions */
.tstep:not(:last-child)::after {
  content: ""; position: absolute; left: calc(50% + 24px); top: 20px;
  width: 40px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(205, 155, 58, 0.2), var(--gold-600));
  transform-origin: left center;
  animation: tlineIn 0.45s ease both;
}
.tstep:not(:last-child)::before {
  content: ""; position: absolute; left: calc(50% + 66px); top: 15px;
  width: 8px; height: 8px;
  border-top: 3px solid var(--gold-600); border-right: 3px solid var(--gold-600);
  transform: rotate(45deg);
  animation: tfadeIn 0.45s ease both;
}
.tstep:nth-child(1)::after, .tstep:nth-child(1)::before { animation-delay: 0.10s; }
.tstep:nth-child(2)::after, .tstep:nth-child(2)::before { animation-delay: 0.18s; }
.tstep:nth-child(3)::after, .tstep:nth-child(3)::before { animation-delay: 0.26s; }
.tstep:nth-child(4)::after, .tstep:nth-child(4)::before { animation-delay: 0.34s; }
@keyframes tstepIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes tlineIn { from { transform: scaleX(0); opacity: 0.25; } to { transform: scaleX(1); opacity: 1; } }
@keyframes tfadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1100px) {
  .trail { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px; max-width: 360px; margin-top: 26px; }
  .tstep { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 14px; }
  .tlabel { text-align: left; }
  .tstep:not(:last-child)::after {
    left: 19.5px; top: 44px; width: 3px; height: calc(100% - 30px);
    background: linear-gradient(180deg, rgba(205, 155, 58, 0.25), var(--gold-600));
    transform: none; animation: tfadeIn 0.45s ease both;
  }
  .tstep:not(:last-child)::before { display: none; }
}

/* ---------- the hero's journey carousel — each step in detail (2026-10-05) ---------- */
.jc-wrap { display: flex; align-items: center; justify-content: center; }
.jcarousel {
  width: min(100%, 470px); max-width: 100%;
  background: #fffdf4; border: 1px solid #e7ddc4; border-radius: 22px;
  box-shadow: 0 18px 44px rgba(31, 81, 50, 0.10);
  padding: 20px 24px 14px;
}
.jslides { min-height: 366px; }
.jslide[hidden] { display: none; }
.jslide {
  min-height: 366px; display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: jslideIn 0.35s ease;
}
@keyframes jslideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.jart { width: min(100%, 316px); margin: 2px auto 8px; }
.jart svg { width: 100%; height: auto; display: block; }
.jtag { font-size: 1.12rem; color: var(--gold-600); margin: 0 0 2px; }
.jslide h3 { font-size: 1.34rem; margin: 0 0 8px; color: var(--green-900); }
.jtext { color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 37ch; margin: 0 0 14px; }
.jlink { margin-top: auto; font-weight: 600; }
.jnav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.jpause { width: 34px; height: 34px; font-size: 12px; letter-spacing: 1px; }
.jpause[hidden] { display: none; }

/* ---------- the appreciation scroller ----------
   The quote cards live in assets/data/testimonials.js; site.js renders
   them and the ribbon drifts slowly.  While the list is empty the whole
   section stays hidden (no placeholder voices, ever).  The ribbon pauses
   on hover, focus and touch; with reduced motion it becomes a plain
   scrollable row. */
.appreciation {
  margin-top: 76px; padding: 64px 0 60px;
  background: linear-gradient(180deg, #164327 0%, #0d2f1a 100%);
  border-top: 3px solid var(--gold-600);
  border-bottom: 1px solid #0a2715;
}
.appreciation .section-head { margin-bottom: 28px; }
.appreciation .section-head h2 { color: #f7f0dc; }
.appreciation .section-head p { color: #bdd0b5; }
.appreciation .appr-invite { text-align: center; margin: 26px 0 0; font-size: 1.12rem; }
.appreciation .appr-invite a { color: var(--gold-400); font-weight: 600; }
.appreciation .appr-invite a:hover { color: #f7f0dc; }
.tband { position: relative; }
.tscroll {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tscroll::-webkit-scrollbar { display: none; }
.tscroll:focus-visible { outline: 3px solid rgba(26, 107, 58, 0.35); outline-offset: -3px; border-radius: 10px; }
.ttrack { display: flex; gap: 18px; width: max-content; padding: 8px 30px; }
.tcard {
  margin: 0; flex: 0 0 auto; width: 360px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, #fdf8ea 0%, #f7eed8 100%);
  border: 1px solid #e3d5ad; border-radius: 16px;
  padding: 24px 26px 22px; box-shadow: var(--shadow-soft);
}
.tcard blockquote {
  margin: 0; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.66; color: var(--ink);
}
.tcard blockquote::before {
  content: "\201C"; display: block; margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; line-height: 0.55;
  color: var(--gold-600);
}
.tcard figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px dashed var(--line); padding-top: 12px; }
.tcard .trow { display: flex; align-items: center; gap: 12px; }
.tcard .tphoto {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 2px solid var(--gold-100); background: var(--gold-050);
}
.tcard .tname {
  display: block; text-align: right; margin-top: 8px;   /* the student's corner (the user's #902) */
  font-weight: 700; color: var(--green-900); font-size: 1.07rem;
}
.tcard .tsample {
  display: inline-block; margin-right: 8px; vertical-align: 1px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8a5f1c; border: 1px solid rgba(205, 155, 58, 0.55); border-radius: 999px;
  padding: 1px 8px 2px; background: rgba(247, 236, 208, 0.6);
}
.tcard.is-sample blockquote { font-style: italic; }
.tcard .trole { font-size: 1rem; color: var(--muted); }
.tcard .twork {
  align-self: flex-start; padding: 3px 11px; border-radius: 999px;
  background: var(--gold-050); border: 1px solid var(--gold-100); color: var(--gold);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
/* ★ the long-message handling (the user's, 2026-10-09 — raw_prompts #952):
   every card's words show in a comfortable 6-line clamp; a longer message
   gets the "Read the full words →" button and opens in full in the overlay
   below — no student's words are ever trimmed away, and one long message
   no longer stretches the whole ribbon. */
.tcard blockquote .tq {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6;
  overflow: hidden;
}
/* the English a bilingual message came with — muted, a touch smaller */
.tcard blockquote .qtrans { font-size: 0.95em; color: var(--muted); }
.tcard .tmore {
  align-self: flex-start; margin-top: -6px;
  font: inherit; font-size: 1rem; font-weight: 600;
  color: var(--green-700); background: none; border: 0; padding: 2px 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.tcard .tmore:hover { color: var(--gold-600); }

/* the full-message overlay — the whole appreciation, exactly as sent */
.tmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 26px; }
.tmodal[hidden] { display: none; }
.tmodal-backdrop { position: absolute; inset: 0; background: rgba(9, 26, 15, 0.72); }
.tmodal-card {
  position: relative; z-index: 1; margin: 0;
  width: min(680px, 100%); max-height: min(84vh, 760px); overflow-y: auto;
  background: linear-gradient(180deg, #fdf8ea 0%, #f7eed8 100%);
  border: 1px solid #e3d5ad; border-radius: 18px;
  padding: 36px 40px 26px; box-shadow: 0 30px 80px -30px rgba(4, 16, 8, 0.65);
}
.tmodal-card:focus { outline: none; }
.tmodal-card blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.75; color: var(--ink); }
.tmodal-card blockquote::before {
  content: "\201C"; display: block; margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif; font-size: 3rem; line-height: 0.55;
  color: var(--gold-600);
}
.tmodal-card blockquote .qtrans {
  display: block; margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.95em; color: var(--muted);
}
.tmodal-card blockquote br { display: none; }   /* the block takes its own line */
.tmodal-card figcaption { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; border-top: 1px dashed var(--line); padding-top: 12px; }
.tmodal-card .trow { display: flex; align-items: center; gap: 12px; }
.tmodal-card .trole { font-size: 1rem; color: var(--muted); }
.tmodal-card .tname { display: block; text-align: right; margin-top: 8px; font-weight: 700; color: var(--green-900); font-size: 1.1rem; }
.tmodal-x {
  position: absolute; top: 12px; right: 14px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--gold-100); background: var(--gold-050);
  color: var(--green-900); font-size: 1.45rem; line-height: 1; cursor: pointer;
}
.tmodal-x:hover { background: #f3e6c4; }
body.tmodal-open { overflow: hidden; }
@media (max-width: 620px) {
  .appreciation { margin-top: 56px; padding: 48px 0 44px; }
  .ttrack { gap: 12px; padding: 6px 18px; }
  .tcard { width: 292px; padding: 20px 20px 18px; }
  .sample-slider { --slide-h: 440px; }
  .tmodal { padding: 14px; }
  .tmodal-card { padding: 26px 22px 20px; }
  .tmodal-card blockquote { font-size: 1.12rem; }
}

/* ---------- product cards ---------- */
/* the cards in a row share one height (the grid stretches them) and each
   card's button row sits at its bottom, so the buttons line up across the
   row (the user's, 2026-10-11 — raw_prompts #1065: the Free resources page's
   two cards — the shorter T-shirt card grows to the companions card). */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.pcard {
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, #fffdf4 0%, #fbf3df 100%);
  border: 1px solid var(--line); border-top-width: 4px; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cards .pcard:nth-child(1) { border-top-color: var(--green-600); }
.cards .pcard:nth-child(2) { border-top-color: var(--gold-600); }
.cards .pcard:nth-child(3) { border-top-color: var(--clay); }
.cards .pcard:nth-child(4) { border-top-color: var(--green-800); }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.pcard .dv-title {
  font-family: var(--font-dv); font-size: 1.5rem; font-weight: 600; color: var(--green-700);
  line-height: 1.55; margin: 0 0 2px;
}
.pcard h3 { font-size: 1.5rem; margin: 0; }
.pcard .tagline { margin: 0; color: var(--ink); font-weight: 600; }
.pcard .desc { margin: 0; font-size: 1.1rem; }
.inside { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }
.inside li { position: relative; padding-left: 22px; font-size: 1.08rem; color: var(--body); }
.inside li::before {
  content: ""; position: absolute; left: 2px; top: 0.52em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-700); opacity: 0.5;
}
.format-note { margin: 0; font-size: 1.05rem; color: var(--muted); }
.status-note { margin: 0; font-size: 1.04rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.pcard .btn-row { margin-top: auto; }   /* the button row sits at the card's bottom — the buttons line up across the row (#1065) */

.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--gold-050); color: var(--gold); border: 1px solid var(--gold-100);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap;
}
.badge-live { background: linear-gradient(180deg, #2f8a4e 0%, #226b3b 100%); color: #fff; border-color: #226b3b; }
.badge-paid { background: var(--marigold-050); color: #a8650e; border-color: var(--marigold-100); }

.center { text-align: center; }
.center .btn { margin-top: 6px; }

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, #e6efd5 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 58px 0 50px;
}
.page-hero h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 12px; }
.page-hero .lede { margin-bottom: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; max-width: 54em; }
.avatar {
  width: 124px; height: 124px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fdf8ea; box-shadow: 0 14px 30px -18px rgba(90, 60, 10, 0.5);
}
.about-grid p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; text-decoration: none; box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #cfdfc6; }
.c-label {
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--green-700);
}
.c-value { font-size: 1.2rem; font-weight: 600; color: var(--ink); word-break: break-word; }
.c-note { font-size: 1.04rem; color: var(--muted); }

/* ---------- the contact form (Netlify Forms — the user's, 2026-10-11 — raw_prompts #1020) ---------- */
.contact-form {
  display: grid; gap: 16px; max-width: 780px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-lift);
}
.cf-row.cf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: grid; gap: 7px; font-weight: 600; color: var(--green-900); }
.cf-field > span { font-size: 1.05rem; }
.cf-field .cf-hint { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.cf-field input, .cf-field textarea, .cf-field select {
  width: 100%; font: inherit; font-size: 1.12rem; font-weight: 400; color: var(--ink);
  background: #fffdf6; border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px;
}
.cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus {
  outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(30, 107, 58, 0.14);
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: #9aa892; }
.cf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cf-note { color: var(--muted); font-size: 1.04rem; }
@media (max-width: 720px) { .cf-row.cf-2 { grid-template-columns: 1fr; } }

/* the thank-you card (the form's landing page — contact-thanks.html) */
.thanks-card {
  display: grid; gap: 16px; justify-items: center; text-align: center;
  max-width: 760px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-lift);
}
.thanks-deva { margin: 0; font-family: var(--font-dv); font-size: 2.1rem; color: var(--green-700); }

/* ---------- note strip ---------- */
.note-strip {
  margin-top: 42px; background: var(--green-050); border: 1px solid var(--green-100);
  border-radius: var(--radius); padding: 26px 28px;
}
.note-strip h2 { font-size: 1.4rem; }
.note-strip p { margin: 0; color: var(--body); }

/* ---------- the closing call (the last band of the home page) ---------- */
.closing {
  margin-top: 84px; padding: 66px 0 70px; text-align: center;
  background: linear-gradient(180deg, #123f24 0%, #0b2a17 100%);
  border-top: 3px solid var(--gold-600);
}
.closing-deva { font-family: var(--font-dv); color: var(--gold-400); font-size: 1.35rem; margin: 0 0 10px; }
.closing h2 { color: #f7f0dc; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.closing p { color: #c3d4ba; max-width: 48em; margin: 0 auto 26px; font-size: 1.16rem; }
.closing .btn-row { justify-content: center; }
.btn-gold {
  background: var(--gold-600); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(120, 80, 10, 0.65);
}
.btn-gold:hover { background: var(--gold-400); transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(247, 240, 220, 0.45); color: #f7f0dc; background: transparent; }
.btn-outline-light:hover { border-color: #f7f0dc; background: rgba(247, 240, 220, 0.08); transform: translateY(-1px); }
.home .site-footer { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 84px; background: var(--green-950); color: #d3dfd0; border-top: 3px solid var(--gold-600); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 40px; padding: 54px 0 38px; }
.site-footer h4 { color: #f2f7f0; font-family: var(--font-latin); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #eef6ea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand .fb-en { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #ffffff; margin: 0 0 2px; }
.footer-brand .fb-deva { font-family: var(--font-dv); font-size: 1.18rem; font-weight: 700; color: #f0d9a8; margin: 0 0 12px; }
.footer-brand p { margin: 0 0 8px; font-size: 1.05rem; }
.footer-col p { margin: 0 0 10px; font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 18px 0 22px; font-size: 0.98rem; color: #adc2ab; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .header-inner { min-height: 100px; }
  .brand img { height: 92px; }
  .brand-word { height: 92px; }
  .brand-word .bw-en { font-size: 29.6px; }
  .brand-word .bw-deva { font-size: 24.8px; }
  /* ★ the hero's side gutters (the audit's finding 1 — the user's, 2026-10-12):
     the base rule's shorthand had zeroed the container's 24 px sides at every
     width, so the hero copy ran to the screen edge on smaller screens; from
     here down it carries the site's gutter. Desktop (≥921 px) stays the
     recorded full-width composition, untouched. */
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 42px; padding: 54px 24px 62px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; column-gap: 10px; min-height: 0; padding: 8px 0; }
  .brand { width: 100%; gap: 12px; }
  .brand img { height: 72px; }
  .brand-word { height: 72px; }
  .brand-word .bw-en { font-size: 24px; }
  .brand-word .bw-deva { font-size: 20.2px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: space-between; gap: 2px; }
  .site-nav a { padding: 7px 10px; font-size: 15.7px; }
}
@media (max-width: 620px) {
  body { font-size: 1.1875rem; }   /* = 19px at the default root; scales with the root */
  .brand img { height: 64px; }
  .brand-word { height: 64px; }
  .brand-word .bw-en { font-size: 22.4px; }
  .brand-word .bw-deva { font-size: 18.9px; }
  .section { padding: 54px 0 4px; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; justify-items: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 42px 0 30px; }
  .pcard { padding: 22px; }
}

/* ---------- utilities ---------- */
.mt-2 { margin-top: 22px; }
.muted { color: var(--muted); }

/* ---------- the reading-comfort bar (A− / % / A+) ----------
   The site-wide text-size control.  Its percentage is the root font-size —
   every reading size on the site is in rem and scales with it; the
   banner/nav chrome is in px and stays stable.  The companion sheets carry
   their own identical bar (it scales the sheet, which is set in pt).  The
   preference is remembered under the shared key `ls-zoom`, so the reader's
   choice carries across every reading page. */
.tsbar {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px;
  background: rgba(253, 248, 234, 0.97);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px -16px rgba(90, 60, 10, 0.6);
  transition: opacity 0.18s ease;
}
.tsbar button {
  font-family: var(--font-latin); font-size: 15px; font-weight: 700;
  color: var(--green-900); background: transparent; border: none;
  padding: 9px 12px; border-radius: 999px; cursor: pointer; line-height: 1;
}
.tsbar button:hover { background: var(--green-050); }
.tsbar .tsinfo { min-width: 54px; font-size: 13px; color: var(--muted); }
.tsbar.tsbar-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 620px) {
  .tsbar { right: 10px; bottom: 10px; }
}
@media print { .tsbar { display: none !important; } }

/* ---------- reduced motion (the reader's system preference) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================================
   THE ARRIVAL LAYER — "bright to arrive, calm to read"
   (the user's, 2026-10-05 — raw_prompts.md #724; the two-person feedback)

   The arrival surfaces — the home, the hubs, the cards, the carousels and
   the journey art — carry the brighter second palette (leaf · marigold ·
   coral · sky); the reading surfaces (the lesson chapters and the companion
   sheets) keep the soothing parchment.  Everything here is scoped to
   `.arrival` (the home's body carries it too): the colour rides on
   decoration, so body text, links and controls keep their audited contrast.
   ===================================================================== */

/* the arrival pages sit on a warm cream, not the reading white */
body.arrival, body.resource-page.arrival { background: #fbf7ec; }

/* ---------- the sub-page hero band (the hubs) ---------- */
.arrival .page-hero {
  background:
    radial-gradient(780px 320px at 86% -70px, rgba(242, 167, 46, 0.26), rgba(242, 167, 46, 0) 68%),
    radial-gradient(640px 300px at 2% 130%, rgba(76, 175, 109, 0.22), rgba(76, 175, 109, 0) 70%),
    linear-gradient(180deg, #e8f7db 0%, #fdf3d6 72%, #fbf7ec 100%);
  border-bottom: 1px solid #ecdfba;
}
.arrival .page-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); }

/* ---------- the home hero ---------- */
.arrival .hero {
  background:
    radial-gradient(760px 400px at 84% 2%, rgba(242, 167, 46, 0.26), rgba(242, 167, 46, 0) 66%),
    radial-gradient(620px 360px at 0% 100%, rgba(76, 175, 109, 0.20), rgba(76, 175, 109, 0) 70%),
    linear-gradient(180deg, #e5f6d6 0%, #fbecc6 58%, var(--paper) 100%);
}
.arrival .hero::after {
  background: radial-gradient(circle, rgba(242, 167, 46, 0.32), rgba(242, 167, 46, 0) 66%);
}
.arrival .hero h1 .accent { color: var(--leaf-700); }

/* ---------- the buttons ---------- */
.arrival .btn-primary {
  background: linear-gradient(180deg, #37995b 0%, #1e6b3a 100%);
  box-shadow: 0 12px 26px -12px rgba(46, 134, 76, 0.55);
}
.arrival .btn-primary:hover { background: linear-gradient(180deg, #44ab69 0%, #237a42 100%); }
.arrival .btn-ghost:hover { border-color: var(--leaf-700); }
.arrival .btn-gold {
  background: linear-gradient(180deg, #f6b23e 0%, #e8a01d 100%);
  color: #3a2a06;
  box-shadow: 0 12px 26px -12px rgba(120, 80, 10, 0.6);
}
.arrival .btn-gold:hover { background: linear-gradient(180deg, #ffc159 0%, #f0aa28 100%); }

/* ---------- the section headings ---------- */
.arrival .section-head h2 { font-size: clamp(1.8rem, 3.1vw, 2.35rem); }
.arrival .section-head h2::after {
  width: 74px; height: 5px;
  background: linear-gradient(90deg, var(--leaf), var(--marigold));
}

/* ---------- the journey trail: fresh leaf → jade → coral → gold ---------- */
.arrival .s1 { --ring: #58bf78; }
.arrival .s2 { --ring: #26a06b; }
.arrival .s3 { --ring: #1a9a8e; }
.arrival .s4 { --ring: #e0803f; }
.arrival .s5 { --ring: var(--marigold-600); }
.arrival .tstep.s5 .tlabel { color: #a8650e; }
.arrival .tstep.s5.on .tdot { background: var(--marigold-600); }
.arrival .tstep:not(:last-child)::after {
  background: linear-gradient(90deg, rgba(242, 167, 46, 0.25), var(--marigold));
}
.arrival .tstep:not(:last-child)::before { border-color: var(--marigold); }

/* ---------- the journey carousel ---------- */
.arrival .jcarousel {
  border-top: 5px solid var(--marigold);
  box-shadow: 0 22px 48px rgba(31, 81, 50, 0.14);
}

/* ---------- the companion slider + the verse card ---------- */
.arrival .sample-strip {
  background:
    radial-gradient(680px 240px at 92% 0%, rgba(226, 103, 63, 0.13), rgba(226, 103, 63, 0) 70%),
    linear-gradient(180deg, #fdf4dc 0%, #f8e6bc 100%);
  border-top: 1px solid rgba(242, 167, 46, 0.6);
}
.arrival .verse-card { border-top: 5px solid var(--marigold); }
.arrival .verse-card .vlabel { color: var(--clay); }

/* ---------- the Grammar Pre-requisites band ---------- */
.arrival .prereq-promo {
  background:
    radial-gradient(640px 200px at 88% 20%, rgba(242, 167, 46, 0.30), rgba(242, 167, 46, 0) 70%),
    linear-gradient(120deg, #e7f7da 0%, #fdeec7 100%);
}
.arrival .promo-mark {
  background: linear-gradient(180deg, #fffef8 0%, #fdf1cf 100%);
  border-color: var(--marigold-100);
  box-shadow: 0 10px 24px -16px rgba(120, 90, 20, 0.5);
}

/* ---------- the section bands ---------- */
.arrival .band-sage { background: linear-gradient(180deg, #effae4 0%, #e1f3d2 100%); border-color: #cfe9ba; }
.arrival .band-gold { background: linear-gradient(180deg, #fdf2d0 0%, #f7e3b4 100%); }

/* ---------- the journey stations ---------- */
.arrival .jcard { border-top-width: 5px; }
.arrival .journey .jcard:nth-child(1) { border-top-color: var(--leaf); background: linear-gradient(180deg, #fffef9 0%, #eef9e9 100%); }
.arrival .journey .jcard:nth-child(2) { border-top-color: var(--marigold); background: linear-gradient(180deg, #fffef9 0%, #fdf3d4 100%); }
.arrival .journey .jcard:nth-child(3) { border-top-color: var(--coral); background: linear-gradient(180deg, #fffef9 0%, #fcebe0 100%); }
.arrival .journey .jcard:nth-child(4) { border-top-color: var(--green-800); background: linear-gradient(180deg, #fffef9 0%, #e9f0e2 100%); }
.arrival .journey .jcard:nth-child(1) .jnum { background: var(--leaf-700); }
.arrival .journey .jcard:nth-child(2) .jnum { background: var(--marigold-600); }
.arrival .journey .jcard:nth-child(3) .jnum { background: var(--coral); }
.arrival .journey .jcard:nth-child(4) .jnum { background: var(--green-900); }
/* the stage name wears the same colour as its number badge (the user's #899) */
.arrival .journey .jcard:nth-child(1) .jdv { color: var(--leaf-700); }
.arrival .journey .jcard:nth-child(2) .jdv { color: var(--marigold-600); }
.arrival .journey .jcard:nth-child(3) .jdv { color: var(--coral); }
.arrival .journey .jcard:nth-child(4) .jdv { color: var(--green-900); }
.arrival .jcard .jcan { background: #f1faee; border-color: #d8eed2; }
.arrival .journey .jcard:nth-child(2) .jcan { background: #fdf7e2; border-color: #f2e0ae; }
.arrival .journey .jcard:nth-child(3) .jcan { background: #fdeee3; border-color: #f3d6c2; }
.arrival .journey .jcard:nth-child(4) .jcan { background: #edf5e8; border-color: #d6e7cf; }

/* ---------- the "why the path works" cards ---------- */
.arrival .feature .ficon rect, .arrival .feature .ficon line,
.arrival .feature .ficon path, .arrival .feature .ficon circle { stroke: currentColor; }
.arrival .feature .ficon text { fill: currentColor; }
.arrival .how-grid .feature:nth-child(1) { background: linear-gradient(180deg, #fffef9 0%, #eef9e9 100%); }
.arrival .how-grid .feature:nth-child(2) { background: linear-gradient(180deg, #fffef9 0%, #fdf3d4 100%); }
.arrival .how-grid .feature:nth-child(3) { background: linear-gradient(180deg, #fffef9 0%, #fcebe0 100%); }
.arrival .how-grid .feature:nth-child(4) { background: linear-gradient(180deg, #fffef9 0%, #f6ecf8 100%); }
.arrival .how-grid .feature:nth-child(1) .ficon { color: var(--leaf-700); background: var(--leaf-050); }
.arrival .how-grid .feature:nth-child(2) .ficon { color: #a8650e; background: var(--marigold-050); }
.arrival .how-grid .feature:nth-child(3) .ficon { color: var(--coral); background: var(--coral-050); }
.arrival .how-grid .feature:nth-child(4) .ficon { color: var(--plum-600); background: var(--plum-050); }

/* ---------- the product cards · the work cards · the śloka rows ---------- */
.arrival .pcard { border-top-width: 5px; }
.arrival .cards .pcard:nth-child(1) { border-top-color: var(--leaf); background: linear-gradient(180deg, #fffef9 0%, #eef9e9 100%); }
.arrival .cards .pcard:nth-child(2) { border-top-color: var(--marigold); background: linear-gradient(180deg, #fffef9 0%, #fdf3d4 100%); }
.arrival .cards .pcard:nth-child(3) { border-top-color: var(--coral); background: linear-gradient(180deg, #fffef9 0%, #fcebe0 100%); }
.arrival .cards .pcard:nth-child(4) { border-top-color: var(--plum); background: linear-gradient(180deg, #fffef9 0%, #f6ecf8 100%); }
.arrival .pcard .dv-title { color: var(--leaf-700); }
.arrival .badge-live { background: linear-gradient(180deg, #2f8a4e 0%, #226b3b 100%); color: #fff; border-color: #226b3b; }

/* ---------- the hub: the chips · the cards · the count ---------- */
.arrival .wchip:hover { border-color: var(--marigold-600); }
.arrival .wchip.on { background: var(--leaf-700); border-color: var(--leaf-700); }
.arrival .wcard { border-top-width: 5px; }
.arrival .wgrid .wcard:nth-child(4n+1) { border-top-color: var(--leaf); background: linear-gradient(180deg, #fffef9 0%, #eef9e9 100%); }
.arrival .wgrid .wcard:nth-child(4n+2) { border-top-color: var(--marigold); background: linear-gradient(180deg, #fffef9 0%, #fdf3d4 100%); }
.arrival .wgrid .wcard:nth-child(4n+3) { border-top-color: var(--coral); background: linear-gradient(180deg, #fffef9 0%, #fcebe0 100%); }
.arrival .wgrid .wcard:nth-child(4n+4) { border-top-color: var(--plum); background: linear-gradient(180deg, #fffef9 0%, #f6ecf8 100%); }
.arrival .wc-deva { color: var(--leaf-700); }
.arrival .hub-count {
  display: inline-block; margin-top: 14px; padding: 6px 16px;
  background: rgba(255, 254, 248, 0.8); border: 1px solid var(--marigold-100);
  border-radius: 999px;
}

/* ---------- the work home: the śloka rows ---------- */
.arrival .vcard { border-left: 5px solid var(--leaf); }
.arrival .workhome .vcard:nth-child(4n+1) { border-left-color: var(--leaf); }
.arrival .workhome .vcard:nth-child(4n+2) { border-left-color: var(--marigold); }
.arrival .workhome .vcard:nth-child(4n+3) { border-left-color: var(--coral); }
.arrival .workhome .vcard:nth-child(4n+4) { border-left-color: var(--plum); }
.arrival .vcard:hover { box-shadow: var(--shadow-lift); }
.arrival .lhome-btn.on { background: var(--leaf-700); border-color: var(--leaf-700); }

/* ---------- the small shared pieces ---------- */
.arrival .crumb-band { background: linear-gradient(180deg, #f6efdb 0%, #f0e6ca 100%); }
.arrival .note-strip { background: linear-gradient(180deg, #eefae8 0%, #e4f4dc 100%); border-color: #d2e9c6; }
.arrival .lesson-nav a { background: var(--leaf-050); color: var(--leaf-700); }
.arrival .lesson-nav a:hover { background: var(--leaf-100); }
.arrival .res-chapters li::before { background: var(--leaf-050); color: var(--leaf-700); }
.arrival .res-work { border-top: 5px solid var(--leaf); background: linear-gradient(180deg, #fffef9 0%, #f3faed 100%); }
.arrival .res-title .rt-deva { color: var(--leaf-700); }
.arrival .res-link { background: #fffdf4; }

/* ---------- the screen-size pass (2026-10-13 — the deploy gate: no
   deployment without testing smaller screens; raw_prompts.md #1241) ---------- */
/* the product-card grid forces a 320px track; on the smallest phones the
   track overflowed the viewport — collapse to the container width
   (measured 24px at 320px on the home, products, resources-index and
   Foundation Course pages). */
@media (max-width: 400px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
