/* NKAF Journey
   Layout concept: a field walk — one calm column like a path between tree rows,
   with growth rings marking how far the visitor has come.
   Colour: winter-morning mist ground, soil-dark ink, poplar-leaf green, mustard bloom used sparingly.
   Type: Rozha One (display, Latin + Devanagari), Mukta (reading, Latin + Devanagari). */

@font-face { font-family: "Rozha One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/rozha-one-latin-400-normal.woff2") format("woff2");
  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+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rozha One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/rozha-one-devanagari-400-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/mukta-latin-400-normal.woff2") format("woff2");
  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+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/mukta-devanagari-400-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/mukta-latin-600-normal.woff2") format("woff2");
  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+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/mukta-devanagari-600-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/mukta-latin-700-normal.woff2") format("woff2");
  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+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/mukta-devanagari-700-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --ground: #edf1e9;      /* winter-morning mist */
  --surface: #f8faf5;     /* raised paper */
  --ink: #25221b;         /* soil after rain */
  --ink-soft: #5b584c;    /* bark */
  --leaf: #2d5a39;        /* poplar leaf */
  --leaf-soft: #dbe6d6;   /* young leaf wash */
  --mustard: #8a6400;     /* mustard bloom, text-safe */
  --bloom: #e2ac1e;       /* mustard bloom, fills only */
  --wood: #d8c5a1;        /* pale poplar wood */
  --wood-dark: #a88a5c;   /* ring lines */
  --line: #cbd4c4;
  --control: #7c8272;     /* outlines of things you can press (3:1) */
  --focus: #1f6fd1;
  --on-leaf: #f8faf5;

  --display: "Rozha One", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.889rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: clamp(1.8rem, 1.3rem + 2.4vw, 2.6rem);
  --step-4: clamp(2.35rem, 1.5rem + 4.6vw, 4.4rem);

  --measure: 34rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --bar-h: 3.6rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #10140e; --surface: #171c14; --ink: #e8ebe1; --ink-soft: #a7ad9c;
    --leaf: #8cc59a; --leaf-soft: #22301f; --mustard: #e8b947; --bloom: #e2ac1e;
    --wood: #5c4d36; --wood-dark: #8f7a55; --line: #2b3427; --control: #6b7464; --focus: #7fb2ff; --on-leaf: #10140e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #10140e; --surface: #171c14; --ink: #e8ebe1; --ink-soft: #a7ad9c;
  --leaf: #8cc59a; --leaf-soft: #22301f; --mustard: #e8b947; --bloom: #e2ac1e;
  --wood: #5c4d36; --wood-dark: #8f7a55; --line: #2b3427; --control: #6b7464; --focus: #7fb2ff; --on-leaf: #10140e;
  color-scheme: dark;
}

html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 0.75rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 1rem);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ground); }
img, video, svg, canvas { max-width: 100%; }
a { color: var(--leaf); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; white-space: pre-line; }
ul, ol { margin: 0; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter-l); top: -10rem; background: var(--surface); color: var(--ink); padding: 0.6rem 1rem; z-index: 50; border-radius: 6px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; min-height: var(--bar-h);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  max-width: 76rem; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.brand-mark { font-family: var(--display); font-size: 1.35rem; line-height: 1; letter-spacing: 0.01em; }
.brand-name { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; font-size: var(--step--1); color: var(--ink-soft); }
.progress svg { width: 1.9rem; height: 1.9rem; flex: none; }
.progress .track { fill: none; stroke: var(--line); stroke-width: 3; }
.progress .fill { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }
.progress .heart { fill: var(--bloom); }
.progress-label { display: none; }
.tbtn {
  font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--control); border-radius: 999px;
  min-height: 2.6rem; padding: 0 0.9rem; cursor: pointer; white-space: nowrap;
}
.tbtn:hover { border-color: var(--ink); }
@media (min-width: 640px) { .progress-label { display: inline; } }

/* ---------- Layout ---------- */
.layout { max-width: 76rem; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sidenav { display: none; }
main, .maincol { min-width: 0; }
@media (min-width: 1100px) {
  body { padding-bottom: 0; }
  .layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 3.5rem; }
  .sidenav {
    display: flex; flex-direction: column; gap: 1.25rem;
    position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 1.5rem);
    align-self: start; max-height: calc(100vh - var(--bar-h) - 3rem); overflow-y: auto;
    padding-block: 1.5rem 1rem;
  }
  .bottombar { display: none !important; }
  .contents-btn { display: none; }
}

/* ---------- Navigation lists (side + dialog) ---------- */
.navlist { display: flex; flex-direction: column; gap: 0.8rem; }
.navgroup h3 { font-family: var(--body); font-size: var(--step--1); font-weight: 700; color: var(--mustard); margin-bottom: 0.35rem; }
.navgroup ol { list-style: none; display: flex; flex-direction: column; }
.navgroup a {
  display: block; padding: 0.22rem 0 0.22rem 0.85rem; border-left: 2px solid var(--line);
  color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); line-height: 1.35;
}
.navgroup a:hover { color: var(--ink); }
.navgroup a[aria-current="true"] { color: var(--ink); border-left-color: var(--leaf); font-weight: 600; }
.sidenav .actions { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  min-height: 3rem; padding: 0.7rem 1.25rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--leaf); background: transparent; color: var(--leaf);
}
.btn:hover { background: var(--leaf-soft); }
.btn.primary { background: var(--leaf); color: var(--on-leaf); }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 0.55rem var(--gutter-r) calc(0.55rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.bottombar .btn { min-height: 2.9rem; padding-inline: 0.6rem; font-size: var(--step--1); }

/* ---------- Sections ---------- */
.screen { padding-block: clamp(3rem, 8vw, 5.5rem); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.5rem; }
.screen:first-child { border-top: 0; }
.screen-head { display: flex; flex-direction: column; gap: 0.75rem; }
.screen-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.screen h2 { font-family: var(--display); font-weight: 400; font-size: var(--step-3); line-height: 1.12; letter-spacing: 0.005em; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.listen {
  flex: none; display: inline-flex; align-items: center; gap: 0.4rem;
  font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--leaf);
  background: var(--leaf-soft); border: 0; border-radius: 999px; min-height: 2.5rem; padding: 0 0.9rem; cursor: pointer;
}
.listen svg { width: 1rem; height: 1rem; }

/* ---------- Figures / media ---------- */
.fig { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.fig img, .fig video { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--leaf-soft); display: block; max-width: 100%; }
.fig figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.slot {
  aspect-ratio: 3 / 2; max-width: 100%; border: 2px dashed var(--wood-dark); border-radius: 10px;
  display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--ink-soft); font-size: var(--step--1);
}
.slot code { font-family: inherit; font-weight: 700; color: var(--mustard); }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* ---------- 1. Welcome ---------- */
.hero { display: grid; gap: 1.75rem; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.005em; max-width: 13ch; }
.hero .lead { max-width: 30rem; }
.hero-art { position: relative; border-radius: 14px; overflow: hidden; background: var(--wood); aspect-ratio: 4 / 3; max-width: 100%; }
.hero-art canvas { width: 100%; height: 100%; display: block; }
.hero-art img, .hero-art video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vidbtn {
  position: absolute; right: 0.6rem; top: 0.6rem; font: inherit; font-size: var(--step--1); font-weight: 600;
  color: #fff; background: rgba(16, 20, 14, 0.62); border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  min-height: 2.5rem; padding: 0 0.9rem; cursor: pointer;
}
.hero-art figcaption { position: absolute; left: 0.75rem; bottom: 0.6rem; font-size: var(--step--1); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero-meta { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 759px) {
  .hero { padding-top: 1rem; }
  .hero-art { order: -1; aspect-ratio: 16 / 7; }
  .hero-art.rings { aspect-ratio: 16 / 4; }
}
@media (max-width: 419px) {
  .brand-name { font-size: 0.78rem; }
  .brand-mark { display: none; }
}
@media (max-width: 379px) { .progress { display: none; } }
@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; }
  .hero-art { aspect-ratio: 1 / 1; }
}

/* ---------- 2. Agroforestry ---------- */
.points { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.points details { background: var(--surface); }
.points summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; font-weight: 600; font-size: var(--step-1); line-height: 1.3;
}
.points summary::-webkit-details-marker { display: none; }
.points summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 1.6rem; color: var(--leaf); line-height: 1; transition: transform .2s ease; }
.points details[open] summary::after { transform: rotate(45deg); }
.points .body { padding: 0 1.1rem 1.1rem; color: var(--ink-soft); }

/* ---------- 3. For you ---------- */
.two { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; } }
.fit { padding: 1.25rem 1.25rem 1.4rem; border-radius: 10px; display: flex; flex-direction: column; gap: 0.8rem; }
.fit.yes { background: var(--leaf-soft); }
.fit.no { background: var(--surface); border: 1px solid var(--line); }
.fit h3 { font-family: var(--body); font-size: var(--step-1); font-weight: 700; }
.fit ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.fit li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.5rem; align-items: start; }
.fit li svg { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; }
.fit.yes svg { color: var(--leaf); }
.fit.no svg { color: var(--ink-soft); }

/* ---------- 4. Farm ---------- */
.facts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }
.fact { display: flex; flex-direction: column; gap: 0.1rem; }
.fact .value { font-family: var(--display); font-size: clamp(2.4rem, 1.8rem + 3vw, 3.4rem); line-height: 1; color: var(--leaf); }
.fact .label { color: var(--ink-soft); max-width: 16rem; }
.infos { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.info h3 { font-family: var(--body); font-size: var(--step-0); font-weight: 700; margin-bottom: 0.25rem; }

/* ---------- 5. Journey ---------- */
.swipe { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.steps { align-items: start; list-style: none; margin: 0; padding: 0.25rem 0.1rem 0.75rem; display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 0.9rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; scroll-padding-left: 0.1rem; }
.steps::-webkit-scrollbar { display: none; }
.steps:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
@media (min-width: 700px) { .steps { grid-auto-columns: calc((100% - 0.9rem) / 2); } }
@media (min-width: 1100px) { .steps { grid-auto-columns: calc((100% - 1.8rem) / 3); } }
.step { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.15rem 1.15rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; box-shadow: 0 1px 0 var(--line); }
.step-num { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
.step-num .big { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.2rem;
  border: 2px solid var(--leaf); color: var(--leaf); background: var(--leaf-soft); }
.step-body { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.step h3, .step p { overflow-wrap: anywhere; }
.step h3 { font-family: var(--body); font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.step .step-media { margin: -1.15rem -1.15rem 0; }
.step .step-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px 14px 0 0; display: block; background: var(--leaf-soft); }
.step .step-media video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 14px 14px 0 0; display: block; }
.step .step-media figcaption { padding: 0.4rem 1.15rem 0; font-size: var(--step--1); color: var(--ink-soft); }
.step .slot { border-radius: 10px; }
.step .more { font-weight: 600; color: var(--leaf); margin-top: 0.25rem; }
.swctl { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.swbtn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--control); background: var(--surface); color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.swbtn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.swdot[hidden] { display: none; }
.swbtn:focus-visible, .swdot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.swdots[hidden] { display: none; }
.swdots { display: flex; gap: 0; flex-wrap: nowrap; flex-shrink: 1; min-width: 0; overflow: hidden; justify-content: center; }
.swdot { width: 1.6rem; flex-shrink: 1; min-width: 1.1rem; height: 2.75rem; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.swdot::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--control); transition: width 0.2s, background 0.2s; }
.swdot[aria-current]::before { width: 1.1rem; border-radius: 99px; background: var(--leaf); }
.swcount { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.swhint { text-align: center; }
@media (min-width: 700px) { .swhint { display: none; } }
@media (prefers-reduced-motion: reduce) { .swdot::before { transition: none; } }
.receive { font-size: var(--step--1); color: var(--ink-soft); }
.receive b { color: var(--mustard); font-weight: 700; }
.after { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .after { grid-template-columns: 1fr 1fr; } }
.after > div { display: flex; flex-direction: column; gap: 0.4rem; }
.after h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; }

/* ---------- 6. Grow ---------- */
.stages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 78%); gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; overscroll-behavior-x: contain; }
@media (min-width: 900px) { .stages { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }
.stage { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.stage .when { font-size: var(--step--1); color: var(--mustard); font-weight: 700; }
.stage h4 { margin: 0;  font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.stage dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.6rem; margin: 0; font-size: var(--step--1); }
.stage dt { color: var(--ink-soft); }
.stage dd { margin: 0; font-weight: 600; }
.stage img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; width: 100%; height: auto; }
.scale { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }
.scale-bars { display: flex; align-items: flex-end; gap: 1.1rem; height: 15rem; border-bottom: 2px solid var(--wood-dark); padding-inline: 0.5rem; }
.bar { width: 2.4rem; border-radius: 6px 6px 0 0; }
.bar.tree { background: linear-gradient(to top, var(--wood-dark), var(--leaf) 30%); }
.bar.person { background: var(--bloom); }
.scale-legend { display: flex; flex-direction: column; gap: 0.6rem; font-size: var(--step--1); }
.scale-legend b { display: block; font-family: var(--display); font-weight: 400; font-size: var(--step-2); color: var(--leaf); line-height: 1.1; }
.sources { font-size: var(--step--1); color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.35rem; }
.sources ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }

/* ---------- 7. Map ---------- */
.lotcard {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.25rem 1.25rem 1.1rem; display: flex; flex-direction: column; gap: 0.9rem; max-width: 30rem;
  background-image: radial-gradient(circle at 100% 0%, var(--leaf-soft), transparent 55%);
}
.lotcard .tag { align-self: flex-start; font-size: var(--step--1); font-weight: 700; color: var(--mustard); border: 1.5px solid var(--mustard); border-radius: 999px; padding: 0.05rem 0.7rem; }
.lotcard h4 { margin: 0;  font-family: var(--body); font-size: var(--step-0); font-weight: 600; color: var(--ink-soft); }
.lotcard dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1rem; }
.lotcard dt { color: var(--ink-soft); }
.lotcard dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- 8. Pay ---------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; gap: 1.1rem; max-width: 36rem; }
.stepper { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.stepper label { font-weight: 700; }
.stepper .ctl { display: flex; align-items: center; border: 1px solid var(--control); border-radius: 999px; overflow: hidden; }
.stepper button { font: inherit; font-size: 1.4rem; width: 3rem; height: 3rem; border: 0; background: transparent; color: var(--leaf); cursor: pointer; }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper input { width: 3.5rem; height: 3rem; border: 0; border-inline: 1px solid var(--control); text-align: center; font: inherit; font-weight: 700; font-size: var(--step-1); background: transparent; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .saplings { color: var(--ink-soft); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px dashed var(--line); }
.row span:last-child { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row.total { border-bottom: 0; padding-top: 0.9rem; }
.row.total span:first-child { font-weight: 700; }
.row.total span:last-child { font-family: var(--display); font-weight: 400; font-size: var(--step-2); color: var(--leaf); }
.notes { display: flex; flex-direction: column; gap: 0.5rem; }
.notes p { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.45rem; }
.notes svg { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; color: var(--leaf); }

/* ---------- 9. Answers ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; color: var(--leaf); line-height: 1; transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.2rem; color: var(--ink-soft); }

/* ---------- 10. Market ---------- */
.how { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.how h3, .why h3 { font-family: var(--body); font-size: var(--step-0); font-weight: 700; margin-bottom: 0.2rem; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1rem 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.chart h3 { font-family: var(--body); font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--ink-soft); font-family: var(--body); }
.chart .path { fill: none; stroke: var(--wood-dark); stroke-width: 2; stroke-dasharray: 5 5; }
.chart .dot { fill: var(--leaf); stroke: var(--surface); stroke-width: 2; }
.chart .range { stroke: var(--leaf); stroke-width: 7; stroke-linecap: round; }
.chart .val { fill: var(--ink); font-family: var(--body); font-weight: 700; }
.chart-list { list-style: none; display: grid; gap: 0.25rem 1rem; grid-template-columns: max-content 1fr; font-size: var(--step--1); }
.chart-list li { display: contents; }
.chart-list .w { color: var(--ink-soft); }
.example { border-left: 4px solid var(--bloom); padding: 0.25rem 0 0.25rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.example h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
.why { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.why-title { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
.promise { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.25; color: var(--leaf); max-width: 28rem; }

/* ---------- 11. People ---------- */
.factlist { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.factlist li { display: grid; grid-template-columns: 0.9rem 1fr; gap: 0.75rem; }
.factlist li::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 2px solid var(--leaf); margin-top: 0.55rem; }
.factlist .src { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.people-cols { display: grid; gap: 2rem; }
@media (min-width: 800px) { .people-cols { grid-template-columns: 1fr 1fr; } }
.people-cols h4 { margin-top: 0;  font-family: var(--display); font-weight: 400; font-size: var(--step-2); margin-bottom: 0.75rem; }

/* ---------- 12. Questions ---------- */
.checklist { list-style: none; counter-reset: q; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.checklist li { counter-increment: q; display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.75rem; align-items: baseline; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.checklist li::before { content: counter(q); font-family: var(--display); color: var(--mustard); font-size: 1.15rem; }
.checklist a { font-size: var(--step--1); font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) { .checklist li { grid-template-columns: 1.6rem 1fr; } .checklist a { grid-column: 2; } }

/* ---------- 13. Learn ---------- */
.reading { list-style: none; display: flex; flex-direction: column; }
.reading li { padding-block: 1rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.15rem; }
.reading li:first-child { border-top: 1px solid var(--line); }
.reading a { font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.reading .pub { font-size: var(--step--1); color: var(--mustard); font-weight: 600; }

/* ---------- 14. Talk ---------- */
.talk-actions { display: grid; gap: 0.75rem; max-width: 30rem; }
.contact { display: grid; gap: 0.6rem; }
.contact div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.contact b { min-width: 5.5rem; }
.contact .val { font-weight: 600; user-select: all; }
.copy { font: inherit; font-size: var(--step--1); border: 1px solid var(--control); background: transparent; color: var(--ink); border-radius: 999px; padding: 0.2rem 0.8rem; min-height: 2.2rem; cursor: pointer; }
.more { display: flex; flex-direction: column; gap: 0.6rem; }
.more h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }

footer.site { border-top: 1px solid var(--line); padding-block: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Dialogs ---------- */
dialog {
  border: 0; border-radius: 16px; padding: 0; width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(16, 20, 14, 0.55); }
.dlg { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dlg-head h2 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
legend { font-weight: 700; margin-bottom: 0.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1rem; border: 1.5px solid var(--control); border-radius: 999px; cursor: pointer; }
.chip input:checked + span { border-color: var(--leaf); background: var(--leaf-soft); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Motion: one orchestrated moment (hero rings draw on load) ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

/* ---------- 1.1.0 additions ---------- */
.hero-text { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.hero-cost {
  font-size: var(--step-0); line-height: 1.5; max-width: 32rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 1rem;
}
.hero-cost a { font-weight: 600; white-space: nowrap; }
.textlink { align-self: center; font-weight: 600; padding: 0.6rem 0.25rem; }
.gap-top { margin-top: 0.6rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.info h3 { font-family: var(--body); font-size: var(--step-0); font-weight: 700; margin-bottom: 0.25rem; }
.subblock { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 2.25rem; margin-top: 0.5rem; border-top: 1px dashed var(--line); }
.subblock .subtitle { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; }
.further { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fold { border-bottom: 1px solid var(--line); }
.fold > summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-family: var(--display); font-size: var(--step-2); line-height: 1.2;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-family: var(--body); font-size: 1.6rem; color: var(--leaf); transition: transform .2s ease; }
.fold[open] > summary::after { content: "−"; }
.fold > .subblock { border-top: 0; padding-top: 0; margin-top: 0; padding-bottom: 1.5rem; }
.fold > .subblock .screen-head-row .subtitle { display: none; }
.fold-title { font: inherit; margin: 0; }
.quickwrap { display: flex; flex-direction: column; gap: 0.5rem; }
.quick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chiplink {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--control); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step--1);
}
.chiplink:hover { border-color: var(--leaf); background: var(--leaf-soft); }
.bottombar { transition: transform 0.25s ease, visibility 0s linear 0s; }
body.at-talk .bottombar { transform: translateY(110%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
@media (prefers-reduced-motion: reduce) { .bottombar, body.at-talk .bottombar { transition: none; } }
.swipe.single .steps { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }

.unitpic { display: flex; flex-direction: column; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin: 0; }
.unitgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.45rem; max-width: 22rem; }
.unitgrid .sap { aspect-ratio: 1; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--leaf); opacity: 0.85; }
.unitgrid .sap:nth-child(3n) { opacity: 1; }
.unitgrid .sap:nth-child(4n+1) { opacity: 0.7; }
.unitpic figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.unitpic figcaption b { color: var(--ink); }

/* preview banner on the public page (only with ?draft=1) */
.draftbar { background: var(--bloom); color: #1d1a12; padding: 0.6rem var(--gutter-r) 0.6rem var(--gutter-l); font-weight: 600; font-size: var(--step--1); text-align: center; }
.draftbar a { color: inherit; }

.hindi-line { font-size: var(--step-0); }
.hindi-line a { color: var(--leaf); font-weight: 600; }

.swcount.shown { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 1099px) { html { scroll-padding-bottom: calc(var(--bar-h) + 1.5rem + env(safe-area-inset-bottom, 0px)); } }
button[lang="hi"], .hindi-line a { font-weight: 400; }
