/* =========================================================
   Helixa Health website v2 - shared styles
   tokens, typography, layout, buttons, header, footer,
   loader, page entry and scroll reveal
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f2f8f0;
  --raised: #ffffff;
  --warm: #f6f4ee;
  --line: #e3ebe0;
  --ink: #1a1a1a;
  --sub: #666666;
  --mute: rgba(26, 26, 26, 0.24);
  --primary: #7cbc69;
  --deep: #0d3f3f;
  --on-deep: #ffffff;
  --on-deep-sub: rgba(255, 255, 255, 0.72);
  --cta: #7cbc69;
  --cta-ink: #0d3f3f;
  --cta-hover: #73b45f;
  --cur2: #0d3f3f;
  --leaf: #0d3f3f;
  --leaf-fill: #7cbc69;
  --leaf-soft: #a9d99b;
  --hi: #b42318;
  --hi-bg: #fdecea;
  --md: #a0480b;
  --md-bg: #fdf1e4;
  --gn-bg: #eef6ec;
  --glass: rgba(255, 255, 255, 0.78);

  --s25: 2px; --s50: 4px; --s75: 8px; --s100: 12px; --s200: 16px; --s300: 24px;
  --s400: 32px; --s500: 40px; --s600: 48px; --s700: 64px; --s800: 80px; --s900: 96px;
  --r-sm: 4px; --r: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* hover motion shared by buttons and cards: in is slow and smooth, out is quicker */
  --hov-ease: cubic-bezier(0.45, 0, 0.15, 1); --hov-in: 0.7s; --hov-out: 0.45s;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hi: "Geist", "Noto Sans Devanagari", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181818; --surface: #1f1f1f; --raised: #272727; --warm: #1f1f1f; --line: #313131;
    --ink: #f2f2f2; --sub: #9b9b9b; --mute: rgba(242, 242, 242, 0.28);
    --deep: #000000; --primary: #a9d99b; --cta: #a9d99b; --cta-ink: #0a2b2b; --cta-hover: #bfe6b3;
    --cur2: #8fe5e7; --leaf: #a9d99b; --hi: #f4a3a3; --hi-bg: #272727; --md: #f0c48a; --md-bg: #272727;
    --gn-bg: #272727; --glass: rgba(24, 24, 24, 0.78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #181818; --surface: #1f1f1f; --raised: #272727; --warm: #1f1f1f; --line: #313131;
  --ink: #f2f2f2; --sub: #9b9b9b; --mute: rgba(242, 242, 242, 0.28);
  --deep: #000000; --primary: #a9d99b; --cta: #a9d99b; --cta-ink: #0a2b2b; --cta-hover: #bfe6b3;
  --cur2: #8fe5e7; --leaf: #a9d99b; --hi: #f4a3a3; --hi-bg: #272727; --md: #f0c48a; --md-bg: #272727;
  --gn-bg: #272727; --glass: rgba(24, 24, 24, 0.78);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}
/* entrance motion (scaled photos, rising cards) must never widen the page; clip keeps sticky working */
main, .foot { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* details: selection, caret, form accents, tap highlight, scrollbar */
::selection { background: color-mix(in oklab, var(--primary) 45%, transparent); color: var(--ink); }
.hero-ph ::selection { background: var(--primary); color: #0a2b2b; }
html { accent-color: var(--primary); caret-color: var(--primary); -webkit-tap-highlight-color: transparent; }
body { text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga", "calt"; }
.mono, [class*="mono"] { font-variant-numeric: tabular-nums; }
html { scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--ink) 22%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--ink) 20%, transparent);
  border: 3px solid transparent; background-clip: padding-box; border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); border-width: 2px; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.panel { overscroll-behavior: contain; }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: var(--s200); top: var(--s200); z-index: 100;
  background: var(--ink); color: var(--bg); padding: var(--s75) var(--s100);
  border-radius: var(--r); transform: translateY(-200%); transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- typography ---------- */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 500; letter-spacing: -0.035em; }
.heading-2 { font-size: 3rem; line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.title-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.lead { font-size: 1.125rem; line-height: 1.75rem; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.sub { color: var(--sub); }
.accent { color: var(--leaf); }

@media (min-width: 861px) {
  .heading-1 { font-size: 4.25rem; line-height: 1.04; }
  .heading-2 { font-size: 3.25rem; line-height: 1.05; }
}
@media (max-width: 860px) {
  .heading-1 { font-size: 2.25rem; line-height: 2.5rem; }
  .heading-2 { font-size: 1.875rem; line-height: 2.25rem; }
  .heading-3 { font-size: 1.5rem; line-height: 2rem; }
  .lead { font-size: 1rem; line-height: 1.5rem; }
}

/* ---------- layout ---------- */
.in {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--s300), env(safe-area-inset-left, 0px));
  padding-right: max(var(--s300), env(safe-area-inset-right, 0px));
}
.sec { padding-block: var(--s900); }
.row { display: flex; flex-wrap: wrap; gap: var(--s100); align-items: center; }
.sec-hd { display: flex; flex-direction: column; gap: var(--s200); margin-bottom: var(--s600); max-width: 720px; }
.sec-hd p { color: var(--sub); }
@media (max-width: 860px) { .sec { padding-block: var(--s700); } }
@media (max-width: 560px) {
  .in {
    padding-left: max(var(--s200), env(safe-area-inset-left, 0px));
    padding-right: max(var(--s200), env(safe-area-inset-right, 0px));
  }
  .sec { padding-block: var(--s600); }
}

/* hairline grid */
.hgrid {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.hgrid > * { background: var(--bg); padding: var(--s400); min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .hgrid > * { padding: var(--s300); }
}

/* placeholder box for assets that still have to be supplied */
.phbox {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s50); text-align: center; padding: var(--s200);
  border: 1px dashed var(--sub); border-radius: var(--r-xl); color: var(--sub);
  background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--bg) 12px 24px);
}
.phbox .caption-1 { color: var(--ink); }

/* ---------- buttons ---------- */
/* On hover a fill grows out of the point where the pointer entered (--x, --y set in site.js)
   and the arrow nudges forward; on press the button gives a little. */
.btn {
  --fill: var(--ink); --fill-ink: var(--bg);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: var(--s75);
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.16s var(--ease), color var(--hov-out) var(--hov-ease), border-color var(--hov-out) var(--hov-ease), background-color 0.2s ease;
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--x, 50%); top: var(--y, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%;
  background: var(--fill); transform: translate(-50%, -50%) scale(0);
  transition: transform var(--hov-out) var(--hov-ease);
}
.btn .ic { width: 16px; height: 16px; flex: none; transition: transform var(--hov-out) var(--hov-ease); }
.btn:active { transform: scale(0.97); }
.btn.button-sm { padding: 6px 14px; }
.btn.p { background: var(--cta); color: var(--cta-ink); --fill: #0d3f3f; --fill-ink: #ffffff; }
.btn.o { background: var(--raised); color: var(--ink); border-color: var(--line); }
.btn.l { background: var(--leaf-soft); color: #0a2b2b; --fill: #0d3f3f; --fill-ink: #ffffff; }
.is-dark .btn.p, .is-dark .btn.l { --fill: #ffffff; --fill-ink: #0a2b2b; }
@media (hover: hover) and (pointer: fine) {
  /* the label changes colour once the fill has reached it, the arrow follows last */
  .btn:hover { color: var(--fill-ink); border-color: var(--fill); transition: transform 0.16s var(--ease), color 0.4s var(--hov-ease) 0.12s, border-color 0.4s var(--hov-ease) 0.12s, background-color 0.2s ease; }
  .btn:hover::before { transform: translate(-50%, -50%) scale(1); transition-duration: var(--hov-in); }
  .btn:hover .ic { transform: translateX(3px); transition: transform 0.5s var(--hov-ease) 0.15s; }
  .btn:hover .ic.up { transform: translate(2px, -2px); }
}
.btn:focus-visible { outline-offset: 3px; }

.stores { display: flex; flex-wrap: wrap; gap: var(--s100); align-items: center; }
.stores img { height: 40px; width: auto; }

/* ---------- header ---------- */
/* A floating pill that hugs its content. Over a dark photo it turns into
   tinted glass with light text (.on-dark), elsewhere it is light glass. */
.nav {
  --nav-fg: var(--ink);
  --nav-sub: var(--sub);
  --nav-hover: color-mix(in oklab, var(--ink) 7%, transparent);
  position: fixed; z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + var(--s200)); left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--s100);
  height: 56px; padding: 0 var(--s75) 0 var(--s300);
  color: var(--nav-fg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    background-color 0.45s var(--ease), border-color 0.45s var(--ease),
    color 0.45s var(--ease), box-shadow 0.5s var(--ease), translate 0.45s var(--ease);
}
.nav.scrolled { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -14px rgba(13, 63, 63, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.nav.on-dark {
  --nav-fg: #fff;
  --nav-sub: rgba(255, 255, 255, 0.78);
  --nav-hover: rgba(255, 255, 255, 0.12);
  background: rgba(10, 26, 24, 0.28);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
:root[data-theme="dark"] .nav { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); } }

.logo { display: flex; align-items: center; color: var(--deep); text-decoration: none; }
.logo svg { height: 24px; width: auto; }
.nav .logo { margin-right: var(--s300); transition: color 0.45s var(--ease); }
.nav.on-dark .logo, :root[data-theme="dark"] .logo { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: #fff; } }

.nav-links { display: flex; gap: var(--s25); }
.nav-links a {
  padding: var(--s75) var(--s200); border-radius: 999px;
  text-decoration: none; color: var(--nav-sub);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--nav-fg); background: var(--nav-hover); }
.nav-links a[aria-current="page"] { color: var(--nav-fg); }
.nav-act { display: flex; align-items: center; gap: var(--s75); margin-left: var(--s500); }

/* icon button (theme trigger) */
.icbtn {
  width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--nav-sub); opacity: 0.8; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.12s ease-out;
}
.icbtn:hover, .icbtn[aria-expanded="true"] { color: var(--nav-fg); background: var(--nav-hover); opacity: 1; }
.icbtn:active { transform: scale(0.94); }
.icbtn svg { width: 16px; height: 16px; }

/* theme menu: solid surface (never glass on glass), grows out of its trigger */
.thm { position: relative; }
.thm-menu {
  position: absolute; top: calc(100% + 12px); right: -8px; z-index: 1;
  min-width: 184px; padding: var(--s50);
  color: var(--ink); background: var(--raised);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 18px 40px -16px rgba(13, 63, 63, 0.35);
  transform-origin: calc(100% - 28px) -6px;
  opacity: 0; transform: scale(0.94) translateY(-4px); pointer-events: none;
  transition: opacity 0.16s ease, transform 0.22s var(--ease);
}
.thm-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.thm-menu button, .thm-menu a {
  width: 100%; display: flex; align-items: center; gap: var(--s100);
  padding: var(--s75) var(--s100); border: 0; border-radius: var(--r-lg);
  background: none; color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color 0.15s ease;
}
.thm-menu a { text-decoration: none; }
.thm-menu button:hover, .thm-menu button:focus-visible, .thm-menu a:hover, .thm-menu a:focus-visible { background: var(--surface); outline: none; }
.thm-menu svg { width: 16px; height: 16px; flex: none; color: var(--sub); }
.thm-menu .chk { margin-left: auto; color: var(--primary); opacity: 0; }
.thm-menu [aria-checked="true"] .chk { opacity: 1; }
.thm-menu button[aria-checked="true"] svg:first-child { color: var(--ink); }
/* language: the trigger shows the current code, the menu lists each language in its own name */
.lng-btn { width: auto; min-width: 32px; padding-inline: var(--s75); font-size: 0.75rem; letter-spacing: 0.04em; }
.lng-code { width: 2.2em; flex: none; color: var(--sub); font-size: 0.75rem; }
.lng-row { display: flex; flex-wrap: wrap; gap: var(--s50) var(--s100); }
.lng-row a { color: inherit; text-decoration: none; opacity: 0.7; transition: opacity 0.2s ease; }
.lng-row a:hover, .lng-row a[aria-current="true"] { opacity: 1; }
.lng-row a[aria-current="true"] { text-decoration: underline; text-underline-offset: 3px; }
.panel .lng-row a { padding: var(--s50) 0; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; }
.foot .lng-row { color: var(--f-sub); }
.foot .lng-row a { opacity: 1; }
.foot .lng-row a:hover, .foot .lng-row a[aria-current="true"] { color: #fff; }

/* labeled segmented switch (mobile menu and footer) */
.seg {
  position: relative; display: inline-flex; flex: none; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.seg button {
  position: relative; z-index: 1; height: 30px; padding: 0 var(--s100); border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s50);
  background: none; color: var(--sub); cursor: pointer;
  transition: color 0.2s ease, background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.seg svg { width: 14px; height: 14px; }

.toggle {
  display: none; position: relative; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: none; color: var(--nav-fg); cursor: pointer;
}
.toggle i {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease);
}
.toggle i:first-child { top: 16px; }
.toggle i:last-child { top: 23px; }
.toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.panel {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; gap: var(--s75);
  padding: calc(env(safe-area-inset-top, 0px) + var(--s900)) var(--s300) var(--s400);
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
.panel.open { opacity: 1; pointer-events: auto; }
.panel a {
  text-decoration: none; padding: var(--s75) 0;
  opacity: 0; transform: translateY(var(--s300));
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.panel.open a { opacity: 1; transform: none; }
.panel .panel-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s200); }
/* language picker in the mobile menu: cards in a two-column grid, current one outlined */
.lng-pick { align-self: stretch; display: flex; flex-direction: column; gap: var(--s75); }
.lng-pick-hd { color: var(--sub); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; }
.lng-pick-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s75); }
.panel .lng-pick-g a {
  display: flex; align-items: center; gap: var(--s75); min-height: 44px;
  padding: var(--s75) var(--s100); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  letter-spacing: 0;
}
.panel .lng-pick-g a:active { background: var(--raised); }
.panel .lng-pick-g a[aria-current="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--raised); }
.lng-pick-g .chk { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--primary); opacity: 0; }
.lng-pick-g a[aria-current="true"] .chk { opacity: 1; }

@media (max-width: 900px) {
  .nav { width: calc(100vw - var(--s400)); height: 52px; padding-left: var(--s200); justify-content: space-between; }
  .nav .logo { margin-right: 0; }
  .nav-links, .nav .thm { display: none; }
  .nav-act { margin-left: 0; gap: var(--s50); }
  .toggle { display: block; }
}

/* ---------- footer ---------- */
/* Deep brand teal in both themes, so the page ends on a clear, grounded note. */
.foot {
  --f-ink: #ffffff; --f-sub: rgba(255, 255, 255, 0.66); --f-line: rgba(255, 255, 255, 0.12);
  background: #0d3f3f; color: var(--f-ink);
  padding-block: var(--s800) var(--s400);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  margin-top: var(--s400);
}
:root[data-theme="dark"] .foot { background: #0f2422; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0f2422; } }
.foot ::selection { background: #7cbc69; color: #0a2b2b; }
.foot :focus-visible { outline-color: #a9d99b; }
.foot-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s300);
  padding-bottom: var(--s600); margin-bottom: var(--s600); border-bottom: 1px solid var(--f-line);
}
.foot-cta p { max-width: 18em; letter-spacing: -0.025em; font-weight: 500; }
.foot-dim { color: var(--f-sub); }
.foot .btn.l { --fill: #ffffff; --fill-ink: #0a2b2b; }
.foot-g { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s400); }
.foot .logo, .foot .logo:hover { color: #fff; }
.foot-about p { margin-top: var(--s200); max-width: 24em; color: var(--f-sub); }
.foot-about .stores { margin-top: var(--s300); }
.foot-about .stores img { height: 36px; }
.foot-col h2 { margin: 0 0 var(--s100); color: var(--f-sub); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; }
.foot-col a, .foot-btn {
  display: block; width: fit-content; padding-block: var(--s50);
  color: var(--f-ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 2px) / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.2s ease;
}
.foot-col a:hover, .foot-btn:hover { background-size: 100% 1px; color: #a9d99b; }
.foot-btn { padding-inline: 0; border: 0; font: inherit; text-align: left; cursor: pointer; }
.foot-col a[aria-current="page"] { color: #a9d99b; }
.foot-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s200);
  margin-top: var(--s700); padding-top: var(--s300); border-top: 1px solid var(--f-line); color: var(--f-sub);
}
.foot-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s200); }
.foot .disc { margin-top: var(--s300); color: var(--f-sub); max-width: 72em; }
/* footer variant of the theme switch */
.foot .seg { background: rgba(255, 255, 255, 0.06); border-color: var(--f-line); }
.foot .seg button { color: var(--f-sub); }
.foot .seg button:hover { color: #fff; }
.foot .seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }

/* advertising cookie choice: a small card above the page. Decline is quieter than Accept but stays a
   full button of the same size, one click each, so declining is never the harder path. */
.cookie {
  position: fixed; z-index: 70; right: var(--s200); bottom: calc(var(--s200) + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 2 * var(--s200)));
  padding: var(--s300); background: var(--raised); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 18px 40px -16px rgba(13, 63, 63, 0.35);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.24s ease, transform 0.32s var(--ease);
}
.cookie.in { opacity: 1; transform: none; transition-duration: 0.32s, 0.48s; }
.cookie[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .cookie { transform: none; } }
.cookie h2 { margin: 0 0 var(--s75); }
.cookie p { margin: 0; color: var(--sub); }
.cookie p a { color: var(--ink); }
.cookie .cookie-gpc { margin-top: var(--s100); }
.cookie-acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s100); margin-top: var(--s200); }
.cookie-acts .btn { justify-content: center; }
.cookie-acts .btn:only-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .cookie { left: var(--s200); right: var(--s200); width: auto; } }

/* switch (motion) */
.sw {
  display: inline-flex; align-items: center; gap: var(--s100);
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
}
.sw-track {
  position: relative; width: 34px; height: 20px; flex: none; border-radius: 999px;
  background: rgba(127, 127, 127, 0.35); transition: background-color 0.25s var(--ease);
}
.sw-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.2s var(--ease);
}
.sw[aria-checked="true"] .sw-track { background: #7cbc69; }
.sw[aria-checked="true"] .sw-thumb { transform: translateX(14px); }
.sw:active .sw-thumb { width: 20px; }
.sw[aria-checked="true"]:active .sw-thumb { transform: translateX(10px); }
.foot .sw { color: var(--f-sub); }
.foot .sw:hover { color: #fff; }

@media (max-width: 860px) {
  .foot { border-radius: var(--r-xl) var(--r-xl) 0 0; padding-top: var(--s600); }
  .foot-g { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .foot-cta { margin-bottom: var(--s500); padding-bottom: var(--s500); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 95; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: var(--s700);
  transition: transform 0.8s var(--ease);
  animation: ldfail 0.01s linear 2.6s forwards; /* safety net if JS stalls */
}
.loader .in { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s300); }
.loader.done { transform: translateY(-100%); }
@keyframes ldfail { to { transform: translateY(-100%); visibility: hidden; } }
.lhx {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  display: flex; gap: var(--s100); height: 96px; align-items: center;
}
.lhx span { position: relative; width: 8px; height: 96px; }
.lhx span::after { content: ""; position: absolute; left: 3.5px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.lhx i, .lhx b {
  position: absolute; left: 0; top: 44px; z-index: 1; width: 8px; height: 8px; border-radius: 50%;
  animation: lhA 1.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: calc(var(--i) * -0.1s);
}
.lhx i { background: var(--primary); }
.lhx b { background: var(--cur2); animation-name: lhB; }
@keyframes lhA { 0%, 100% { transform: translateY(-36px) scale(1); } 50% { transform: translateY(36px) scale(0.55); } }
@keyframes lhB { 0%, 100% { transform: translateY(36px) scale(0.55); } 50% { transform: translateY(-36px) scale(1); } }

/* ---------- page entry / exit ---------- */
.nav { animation: navin 0.9s var(--ease) both; }
.has-loader .nav { animation-delay: 1s; }
.arriving .nav { animation-delay: 0.45s; }
@keyframes navin { from { opacity: 0; transform: translate(-50%, calc(var(--s300) * -1)); } }
.page-enter main { animation: pageIn 0.7s var(--ease) backwards; }
.has-loader.page-enter main { animation-delay: 0.9s; }
.arriving.page-enter main { animation-delay: 0.35s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(var(--s400)); } }
main, .foot { transition: opacity 0.5s var(--ease), transform 0.56s cubic-bezier(0.76, 0, 0.24, 1); }
.leaving main, .leaving .foot { opacity: 0.4; transform: translateY(calc(var(--s700) * -1)); }

/* curtain between pages: rises over the page you leave, lifts off the page you arrive on */
.curtain {
  position: fixed; inset: 0; z-index: 96; pointer-events: none;
  display: grid; place-items: center; background: #0d3f3f; color: #fff;
  transform: translateY(100%); border-radius: 50% 50% 0 0 / 96px 96px 0 0;
}
.curtain.cover {
  transform: none; border-radius: 0; pointer-events: auto;
  transition: transform 0.56s cubic-bezier(0.76, 0, 0.24, 1), border-radius 0.56s cubic-bezier(0.76, 0, 0.24, 1);
}
.curtain.lift {
  transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 96px 96px;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.1s, border-radius 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.1s;
}
.curtain.instant, .curtain.instant .curtain-label { transition: none !important; }
.curtain-label {
  display: flex; align-items: center; gap: var(--s100);
  opacity: 0; transform: translateY(var(--s300));
  transition: opacity 0.3s ease, transform 0.5s var(--ease);
}
.curtain-in { display: flex; flex-direction: column; align-items: center; gap: var(--s300); }
/* the loader helix, smaller and on teal; it keeps turning while the next page loads */
.lhx.lhx-sm {
  position: static; transform: none; height: 64px; gap: 8px;
  opacity: 0; transition: opacity 0.3s ease;
}
.lhx-sm span { width: 6px; height: 64px; }
.lhx-sm span::after { left: 2.5px; top: 8px; bottom: 8px; background: rgba(255, 255, 255, 0.14); }
.lhx-sm i, .lhx-sm b { width: 6px; height: 6px; top: 29px; animation-name: lhSmA; }
.lhx-sm i { background: #7cbc69; }
.lhx-sm b { background: #a9d99b; animation-name: lhSmB; }
@keyframes lhSmA { 0%, 100% { transform: translateY(-24px) scale(1); } 50% { transform: translateY(24px) scale(0.55); } }
@keyframes lhSmB { 0%, 100% { transform: translateY(24px) scale(0.55); } 50% { transform: translateY(-24px) scale(1); } }
.curtain.cover .lhx-sm { opacity: 1; transition-delay: 0.12s; }
.curtain.lift .lhx-sm { opacity: 0; transition-duration: 0.25s; }
.curtain.cover .curtain-label { opacity: 1; transform: none; transition-delay: 0.18s; }
.curtain.lift .curtain-label { opacity: 0; transform: translateY(calc(var(--s300) * -1)); transition-duration: 0.35s; }

/* ---------- side index rail (legal contents, platform chapters; site.js) ---------- */
/* A quiet rail: every section sits on one hairline, a green indicator slides
   to the section you are reading, and a bar at the top shows reading progress. */
.toc {
  position: sticky; top: 112px; align-self: start;
  display: flex; flex-direction: column; max-height: calc(100vh - 140px);
}
.toc-hd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s100); padding-left: var(--s200); }
.toc-hd b { font-weight: 600; color: var(--ink); letter-spacing: 0; }
.toc-pct { color: var(--sub); font-variant-numeric: tabular-nums; }
.toc-bar { position: relative; height: 2px; margin: var(--s100) 0 var(--s200) var(--s200); border-radius: 2px; background: var(--line); overflow: hidden; }
.toc-bar i { position: absolute; inset: 0; background: var(--primary); transform-origin: left; transform: scaleX(0); }
.toc-scroll {
  position: relative; overflow: auto; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  padding-block: var(--s100);
}
.toc-scroll::-webkit-scrollbar { display: none; }
.toc ol { position: relative; list-style: none; margin: 0; padding: 0; }
.toc ol::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.toc-ind {
  position: absolute; left: 0; top: 0; width: 2px; height: 0; border-radius: 2px; background: var(--primary);
  transform: translateY(var(--y, 0)); height: var(--h, 0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.toc a {
  display: grid; grid-template-columns: 1.9em minmax(0, 1fr); gap: var(--s25);
  padding: 6px var(--s100) 6px var(--s200);
  font-size: 0.875rem; line-height: 1.25rem; text-decoration: none; color: var(--sub);
  transition: color 0.25s ease;
}
.toc a .lnum { color: var(--mute); font-size: 0.75rem; line-height: 1.25rem; transition: color 0.25s ease; }
.toc a.done { color: color-mix(in oklab, var(--ink) 62%, var(--bg)); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 500; }
.toc a.on .lnum { color: var(--leaf); }
.toc-top {
  display: inline-flex; align-items: center; gap: var(--s50); margin: var(--s200) 0 0 var(--s200);
  padding: 0; border: 0; background: none; color: var(--sub); cursor: pointer; font: inherit;
  transition: color 0.2s ease;
}
.toc-top:hover { color: var(--ink); }
.toc-top .ic { width: 14px; height: 14px; transform: rotate(-90deg); }
/* below 900px the rail is hidden; pages show their own compact version */
@media (max-width: 900px) { .toc { display: none; } }

/* ---------- chips: one style for every pick-one row (sample paths, sample people, legal documents) ---------- */
.chip {
  display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--sub);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; font: inherit;
  transition: background-color var(--hov-out) var(--hov-ease), color var(--hov-out) var(--hov-ease), border-color var(--hov-out) var(--hov-ease), transform 0.16s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip:active { transform: scale(0.97); }
.chip[aria-selected="true"], .chip[aria-current="page"] { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }

/* ---------- check marks: one style for every "included" or "done" mark ---------- */
/* A soft green disc with a drawn check. .no is an empty ring with a dash.
   Inside a list, .tick.off is the empty ring and the check pops in when the row turns on. */
.tick {
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle;
  background: color-mix(in oklab, var(--primary) 26%, var(--bg)); color: var(--leaf);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 45%, transparent);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tick::after {
  content: ""; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.tick.no {
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
  background: none; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line);
}
.tick.off { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.tick.off::after { transform: scale(0.3); opacity: 0; }

/* ---------- smooth scroll (Lenis, site.js): rules from lenis.css ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- hero entrance: the opening block of every page rises line by line ---------- */
.page-enter .enter > * { animation: heroUp 0.9s var(--ease) backwards; animation-delay: calc(0.1s + var(--hd, 0s)); }
.has-loader.page-enter .enter > * { animation-delay: calc(0.9s + var(--hd, 0s)); }
.arriving.page-enter .enter > * { animation-delay: calc(0.35s + var(--hd, 0s)); }
.enter > :nth-child(2) { --hd: 0.1s; }
.enter > :nth-child(3) { --hd: 0.2s; }
.enter > :nth-child(4) { --hd: 0.28s; }
.enter > :nth-child(5) { --hd: 0.36s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(var(--s300)); } }
/* the hero carries its own entrance, so main does not fade as a whole */
.page-enter main:has(.enter) { animation: none; }

/* ---------- scroll reveal ---------- */
.rv { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.rv.pre { opacity: 0; transform: translateY(var(--s200)); }

/* ---------- card grids assemble (site.js): separate cards grow together into one hairline grid ---------- */
.asm-pre { background-color: transparent !important; border-color: transparent !important; }
.asm-pre.asm-pre > * {
  opacity: 0; transform: translate(var(--ax, 0), var(--ay, 0)) scale(0.9);
  border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line);
}
.asm-run { transition: background-color 0.5s var(--ease) 0.35s, border-color 0.5s var(--ease) 0.35s; }
.asm-run.asm-run > * {
  transition: opacity 0.55s var(--ease), transform 0.9s var(--ease), border-radius 0.7s var(--ease) 0.2s, box-shadow 0.6s var(--ease) 0.25s;
  transition-delay: var(--ad, 0ms), var(--ad, 0ms), calc(var(--ad, 0ms) + 0.2s), calc(var(--ad, 0ms) + 0.25s);
}
.calm .asm-pre > * { opacity: 1; transform: none; border-radius: 0; box-shadow: none; }
.calm .asm-pre { background-color: var(--line) !important; border-color: var(--line) !important; }

/* ---------- statement words: light up one by one as the text scrolls up (site.js) ---------- */
[data-words] .w { color: var(--mute); transition: color 0.6s var(--ease); }
[data-words] .w.on, .calm [data-words] .w { color: inherit; }

/* ---------- green wipe: bars slide off a group of short claims (site.js, [data-wipe]) ---------- */
.red { position: relative; display: block; color: var(--sub); }
.red::after { content: ""; position: absolute; inset: 0; background: var(--primary); border-radius: 2px; transform-origin: right; transform: scaleX(1); transition: transform 0.8s var(--ease); }
.red.open::after, .calm .red::after { transform: scaleX(0); }

/* ---------- reduced motion: OS setting or footer toggle (.calm) ---------- */
.calm *, .calm *::before, .calm *::after { transition-duration: 0.01ms !important; animation: none !important; }
.calm .rv.pre { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .rv.pre { opacity: 1; transform: none; }
  [data-words] .w { color: inherit; }
  .red::after { transform: scaleX(0); }
  .loader { display: none; }
  .curtain { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .panel { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.on-dark { background: #0d3f3f; }
}

/* ---------- Hindi: Devanagari face (loaded only on /hi/ pages) ---------- */
:root:lang(hi) { --font: var(--font-hi); }
:lang(hi) .heading-1, :lang(hi) .heading-2, :lang(hi) .heading-3 { line-height: 1.3; }

/* ---------- forced colors (Windows high contrast): bars and fills keep a visible system colour ---------- */
@media (forced-colors: active) {
  .btn, .chip, .icbtn, .seg { border: 1px solid ButtonText; }
  .xc i, .pviz-b i, .toc-bar i, .story .meter b, .story .meter b::after, .red::after { forced-color-adjust: none; background: CanvasText; }
  .red::after { background: Highlight; }
  :focus-visible { outline: 2px solid Highlight; }
}
