/* OIOA – One India One App · site styles
   Tokens first, then base, layout, components, pages. No framework, no build step. */

@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-var-latin.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026, U+20B9, U+2192, U+21C4, U+2212;
}

:root {
  --ink: #14234B;          /* app navy */
  --ink-2: #3D4A70;        /* secondary text */
  --ink-3: #5B678A;        /* tertiary text, ≥4.5:1 on paper */
  --paper: #F6F8FC;        /* app off-white */
  --white: #FFFFFF;
  --mist: #E8EDF6;
  --line: #D3DAE8;
  --marigold: #F2B33D;     /* festive accent, used on navy */
  --rose: #F08A9B;         /* festive accent, used on navy */
  --focus: #14234B;

  /* community wayfinding accents (alphabetical) */
  --c-hindu: #E08A1E;        --c-hindu-text: #8A4B06;        --c-hindu-tint: #FBF0E1;
  --c-islamic: #1F8A63;      --c-islamic-text: #0F5E41;      --c-islamic-tint: #E4F3EC;
  --c-jain: #1A8C99;         --c-jain-text: #0B5D67;         --c-jain-tint: #E2F2F4;
  --c-parsi: #B8434F;        --c-parsi-text: #8A2632;        --c-parsi-tint: #F7E6E8;
  --c-sikh: #3A68C4;         --c-sikh-text: #22479A;         --c-sikh-tint: #E5ECF8;

  --accent: var(--ink);
  --accent-text: var(--ink);
  --accent-tint: var(--mist);

  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.3rem + 3vw, 3.25rem);

  --wrap: 74rem;
  --measure: 42rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --radius: 10px;
  --radius-lg: 18px;
}

.c-hindu { --accent: var(--c-hindu); --accent-text: var(--c-hindu-text); --accent-tint: var(--c-hindu-tint); }
.c-islamic { --accent: var(--c-islamic); --accent-text: var(--c-islamic-text); --accent-tint: var(--c-islamic-tint); }
.c-jain { --accent: var(--c-jain); --accent-text: var(--c-jain-text); --accent-tint: var(--c-jain-tint); }
.c-parsi { --accent: var(--c-parsi); --accent-text: var(--c-parsi-text); --accent-tint: var(--c-parsi-tint); }
.c-sikh-punjabi { --accent: var(--c-sikh); --accent-text: var(--c-sikh-text); --accent-tint: var(--c-sikh-tint); }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--sans);
  font-feature-settings: "kern";
  padding-bottom: 4.25rem; /* room for sticky store bar on phones */
}
@media (min-width: 60rem) { body { padding-bottom: 0; } }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.1; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; --focus: var(--marigold); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
code { font-size: 0.9em; background: var(--mist); padding: 0.1em 0.35em; border-radius: 4px; }

/* ------------------------------------------------------------------ the thread (signature) */
.thread { display: flex; height: 5px; }
.thread span { flex: 1; }
.t-hindu { background: var(--c-hindu); } .t-islamic { background: var(--c-islamic); } .t-jain { background: var(--c-jain); }
.t-parsi { background: var(--c-parsi); } .t-sikh-punjabi { background: var(--c-sikh); }
.thread--top { height: 4px; }
.thread--hero { height: 10px; }

/* ------------------------------------------------------------------ header + mega menu */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 248, 252, 0.97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(246, 248, 252, 0.88); backdrop-filter: blur(8px); } }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.75rem; color: var(--ink-2); letter-spacing: 0.01em; }
.brand--light { color: #fff; }
.brand--light .brand-text small { color: #C9D2EA; }

.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 0.95rem var(--sans); background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -5px; } .nav-toggle-icon::after { top: 5px; }

.primary-nav { display: none; }
.primary-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100vh - 4rem); overflow: auto; padding: 0.5rem var(--gutter) 1.5rem; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu-item { border-bottom: 1px solid var(--line); }
.mega > summary, .menu-link { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 0.25rem; font-weight: 600; cursor: pointer; list-style: none; text-decoration: none; color: var(--ink); }
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 0.5rem; }
.mega[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.mega-inner { display: grid; gap: 1rem; padding: 0 0.25rem 1rem; }
.mega-heading { font-size: var(--step--1); color: var(--ink-2); font-weight: 600; margin: 0.25rem 0 0.35rem; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col a { display: block; padding: 0.3rem 0; text-decoration: none; }
.mega-col a:hover { text-decoration: underline; }
.nav-tools { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; padding-top: 1rem; }
.tool-link, .lang-switch > summary { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink); cursor: pointer; padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; list-style: none; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch { position: relative; }
.lang-list { list-style: none; margin: 0.5rem 0 0; padding: 0.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: repeat(2, minmax(9rem, 1fr)); gap: 0.1rem; }
.lang-list a { display: flex; flex-direction: column; padding: 0.4rem 0.6rem; border-radius: 6px; text-decoration: none; font-size: 1.05rem; }
.lang-list a:hover { background: var(--mist); }
.lang-en { font-size: 0.75rem; color: var(--ink-3); }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .primary-nav, .primary-nav.is-open { display: flex; align-items: center; gap: 1rem; position: static; background: none; border: 0; padding: 0; max-height: none; overflow: visible; }
  .menu { display: flex; gap: 0.15rem; }
  .menu-item { border: 0; }
  .mega { position: static; }
  .mega > summary, .menu-link { padding: 0.5rem 0.7rem; border-radius: 999px; font-size: 0.98rem; }
  .mega > summary:hover, .menu-link:hover, .mega[open] > summary { background: var(--mist); }
  .mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(20, 35, 75, 0.45); }
  .mega-inner { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--gutter) 1.75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
  .nav-tools { padding: 0; }
  .lang-list { position: absolute; right: 0; top: 100%; z-index: 60; width: 22rem; box-shadow: 0 18px 30px -20px rgba(20, 35, 75, 0.4); }
}

/* ------------------------------------------------------------------ buttons + badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: 600 1rem/1.2 var(--sans); padding: 0.75rem 1.2rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #22356A; }
.btn--quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--quiet:hover { background: var(--ink); color: #fff; }
.btn--festive { background: var(--marigold); color: var(--ink); }
.btn--festive:hover { background: #F7C766; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; min-width: 9.5rem; padding: 0.45rem 1rem 0.5rem; border-radius: 12px; background: #0B1530; color: #fff; text-decoration: none; border: 1px solid #0B1530; line-height: 1.15; }
.badge-top { font-size: 0.72rem; color: #D7DEF0; }
.badge-main { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.badge:hover { background: #1D2E5E; }
.badge--sm { min-width: 0; padding: 0.3rem 0.75rem 0.35rem; }
.badge--sm .badge-main { font-size: 1rem; }
.badge--sm .badge-top { font-size: 0.66rem; }
.badge--lg .badge-main { font-size: 1.35rem; }
.badge--soon { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink-3); cursor: default; }
.badge--soon .badge-top { color: var(--ink-2); }
.badge-note { font-size: var(--step--1); color: var(--ink-2); margin: 0.6rem 0 0; max-width: 34rem; }
.on-dark .badge, .hero .badge, .cta-band .badge, .sticky-get .badge { background: #fff; color: var(--ink); border-color: #fff; }
.on-dark .badge-top, .hero .badge-top, .cta-band .badge-top, .sticky-get .badge-top { color: var(--ink-2); }
.hero .badge--soon, .cta-band .badge--soon, .sticky-get .badge--soon { background: transparent; color: #fff; border-color: #AEB9D8; }
.hero .badge--soon .badge-top, .cta-band .badge--soon .badge-top, .sticky-get .badge--soon .badge-top { color: #D7DEF0; }
.hero .badge-note, .cta-band .badge-note { color: #C9D2EA; }

.sticky-get { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem var(--gutter); background: var(--ink); color: #fff; border-top: 4px solid var(--marigold); --focus: var(--marigold); }
.sticky-get-label { font-family: var(--serif); font-weight: 600; margin-right: auto; white-space: nowrap; }
.sticky-get .badge-top { white-space: nowrap; }
@media (min-width: 60rem) {
  .sticky-get { left: auto; right: 1.25rem; bottom: 1.25rem; border-radius: 16px; border-top: 0; box-shadow: 0 14px 30px -12px rgba(11, 21, 48, 0.55); padding: 0.55rem 0.6rem 0.55rem 1rem; }
}

/* ------------------------------------------------------------------ page head + layout */
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: var(--step--1); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.page-head { padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) 0 clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-bottom: 1px solid var(--line); background: var(--white); }
.page-head--community { background: var(--accent-tint); border-bottom: 6px solid var(--accent); }
.page-head h1 { max-width: 22ch; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 46rem; margin: 0; line-height: 1.5; }
.meta-line { margin: 0.9rem 0 0; font-size: var(--step--1); color: var(--ink-3); }

.layout { display: grid; gap: 2rem; padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 62rem) {
  .layout { grid-template-columns: minmax(0, var(--measure)) minmax(16rem, 20rem); justify-content: space-between; align-items: start; }
  .layout--single { grid-template-columns: minmax(0, 52rem); }
  .side { position: sticky; top: 5.5rem; }
}
/* On phones the "what you get" box sits right after the article intro (grid order) */
@media (max-width: 61.99rem) { .side { order: -1; } }

/* ------------------------------------------------------------------ prose */
.prose { min-width: 0; }
.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; padding-top: 0.2em; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: 0.25em 0 0.25em 1.2em; border-left: 4px solid var(--accent); color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose strong { font-weight: 650; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; padding: 0.75rem 1rem; color: var(--ink-2); font-size: var(--step--1); caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 1rem; border-top: 1px solid var(--line); }
thead th { background: var(--mist); border-top: 0; font-weight: 650; }
.compare tbody tr { box-shadow: inset 5px 0 0 var(--accent); }

.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.toc-h { font-weight: 650; margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { font-size: 0.95rem; break-inside: avoid; }
.toc .toc-plain { list-style: none; margin: 0; padding-left: 0; columns: 2 16rem; column-gap: 2rem; }
.sticky-get { transition: opacity 0.2s ease, visibility 0.2s; }
.sticky-get.is-hidden { opacity: 0; visibility: hidden; }

.note { border-left: 4px solid var(--accent); background: var(--accent-tint); padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0; }
.note p { margin: 0; }

/* figures */
.fig { margin: 2em 0; }
.fig img { width: 100%; height: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.fig figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: 0.6rem; }
.fig--hero { margin-top: 0; }
.text-eq { margin-top: 0.4rem; }
.text-eq summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.text-eq > div, .text-eq p, .text-eq ul, .text-eq ol { font-size: 0.95rem; color: var(--ink); }

/* what-you-get box */
.oioa-box { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 1.35rem 1.35rem 1.4rem; border-top: 6px solid var(--accent, var(--marigold)); --focus: var(--marigold); }
body:not([class*="c-"]) .oioa-box { border-top-color: var(--marigold); }
.oioa-box-title { font-size: 1.25rem; margin-bottom: 0.7rem; color: #fff; }
.oioa-box ul { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.oioa-box li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; font-size: 0.97rem; line-height: 1.45; }
.oioa-box li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--marigold); }
.oioa-box a { color: #fff; }
.oioa-box .badge { background: #fff; color: var(--ink); border-color: #fff; }
.oioa-box .badge-top { color: var(--ink-2); }
.oioa-box .badge--soon { background: transparent; color: #fff; border-color: #AEB9D8; }
.oioa-box .badge--soon .badge-top { color: #D7DEF0; }

/* missing prompt */
.missing { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; justify-content: space-between; margin: 2.5rem 0 0; padding: 1rem 1.25rem; border: 1px dashed var(--ink-3); border-radius: var(--radius); background: var(--white); max-width: var(--measure); }
.missing p { margin: 0; flex: 1 1 18rem; font-size: 0.97rem; }

/* card lists (hubs, related, learn picks) */
.card-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); max-width: none !important; }
.card-list li { margin: 0; }
.card-list a { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 1rem 1.1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); text-decoration: none; }
.card-list a:hover { border-color: var(--ink); border-left-color: var(--accent); }
.cl-title { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.cl-desc { font-size: 0.93rem; color: var(--ink-2); line-height: 1.5; }
@media (min-width: 62rem) { .card-list--3 { grid-template-columns: repeat(3, 1fr); } }

.related { padding: 2.5rem var(--gutter) 3rem; }
.related h2 { font-size: var(--step-2); }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.related-list a { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem; border-top: 3px solid var(--accent); background: var(--white); text-decoration: none; border-radius: 0 0 var(--radius) var(--radius); height: 100%; }
.related-title { font-weight: 650; }
.related-desc { font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }

/* ------------------------------------------------------------------ community tiles */
.tiles-c { container-type: inline-size; max-width: none !important; }
.tiles { list-style: none; margin: 1.5rem 0 0.75rem; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
.tile { margin: 0 !important; }
.tile-link { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.4rem 1.2rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; overflow: hidden; }
.tile-strand { position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--accent); transition: height 0.2s ease; }
.tile-link:hover .tile-strand, .tile-link:focus-visible .tile-strand { height: 14px; }
.tile-name { font-family: var(--serif); font-size: 1.5rem; margin: 0.3rem 0 0.4rem; color: var(--ink); }
.tile-sum { color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; }
.tile-list { list-style: none; padding: 0 !important; margin: 0.9rem 0 1rem; font-size: 0.9rem; color: var(--ink); }
.tile-list li { padding: 0.35rem 0; border-top: 1px solid var(--mist); margin: 0; }
.tile-list li::marker { content: none; }
.tile-go { margin-top: auto; font-weight: 650; color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; font-size: 0.95rem; }
.tiles-note { font-size: var(--step--1); color: var(--ink-2); }
@container (min-width: 36rem) {
  .tile-link { display: grid; grid-template-columns: 10rem 1fr; column-gap: 1.5rem; padding: 1.3rem 1.3rem 1.1rem 1.6rem; }
  .tile-strand { inset: 0 auto 0 0; width: 8px; height: auto; }
  .tile-link:hover .tile-strand, .tile-link:focus-visible .tile-strand { height: auto; width: 14px; }
  .tile-name { grid-row: 1 / span 3; margin: 0; }
  .tile-list { margin: 0.6rem 0; }
}
@container (min-width: 64rem) {
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .tile-link { display: flex; padding: 1.4rem 1.2rem 1.2rem; }
  .tile-strand { inset: 0 0 auto 0; width: auto; height: 8px; }
  .tile-link:hover .tile-strand, .tile-link:focus-visible .tile-strand { width: auto; height: 14px; }
  .tile-name { margin: 0.3rem 0 0.4rem; }
}

.pill { display: inline-block; font-size: 0.78rem; font-weight: 650; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.pill--live { background: #DDF1E6; color: #0B5132; }
.pill--coming-soon { background: #FDF0D5; color: #6E4703; }
.pill--requested { background: var(--mist); color: var(--ink); }

/* ------------------------------------------------------------------ home */
.hero { background: var(--ink); color: #fff; --focus: var(--marigold); position: relative; overflow: hidden; }
.hero a { color: #fff; }
.hero-grid { display: grid; gap: 2rem; padding-top: clamp(2.25rem, 1rem + 5vw, 5rem); padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 58rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 4.2vw, 4.1rem); line-height: 1.04; max-width: 15ch; margin-bottom: 0.45em; color: #fff; }
.hero-lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: #DCE3F4; max-width: 34rem; line-height: 1.5; margin-bottom: 1.6rem; }
.hero-langs { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; color: #C9D2EA; font-size: 1rem; max-width: 36rem; }
.hero-visual { justify-self: center; width: min(72%, 22rem); }
@media (min-width: 58rem) { .hero-visual { width: min(100%, 22rem); } }
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }

.section { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0; }
.section h2 { max-width: 24ch; }
.section-lede { color: var(--ink-2); max-width: 40rem; font-size: 1.1rem; }
.chooser { background: var(--paper); }
.mission { background: var(--white); border-block: 1px solid var(--line); }
.mission-grid { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .mission-grid { grid-template-columns: 0.8fr 1.3fr 0.9fr; align-items: start; } .mission h2 { position: sticky; top: 6rem; } }
.mission .prose p:first-child { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 1.2rem 1.2rem 1.2rem 4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.05rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font: 600 1rem/2rem var(--serif); text-align: center; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.features-home { background: var(--white); border-block: 1px solid var(--line); }
.feature-grid { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid a { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.1rem 1.25rem; height: 100%; text-decoration: none; }
.feature-grid a:hover { background: var(--paper); }
.feature-grid .ico { color: var(--ink); margin-bottom: 0.3rem; }
.fg-title { font-weight: 650; }
.fg-desc { color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }

.invite-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 58rem) { .invite-grid { grid-template-columns: 1fr 1fr; } }
.invite .fig { margin: 0; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; --focus: var(--marigold); }
.cta-inner { display: grid; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.75rem; align-items: center; }
@media (min-width: 56rem) { .cta-inner { grid-template-columns: 1.1fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: 0.35em; max-width: 22ch; }
.cta-band p { color: #DCE3F4; margin: 0; max-width: 34rem; }

/* ------------------------------------------------------------------ forms */
.req-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 0.8rem + 1.5vw, 1.75rem); margin: 1.5rem 0; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; }
.req, .opt { font-weight: 400; color: var(--ink-2); font-size: 0.9rem; }
.hint { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
input[type="text"], input[type="search"], input[type="email"], select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #7A86A6; border-radius: 8px; padding: 0.6rem 0.75rem; width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
[aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: 0.9rem; margin: 0; }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field--check input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; flex: none; accent-color: var(--ink); }
.field--check label { font-weight: 400; font-size: 0.95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status.is-ok { color: #0B5132; }
.form-status.is-err { color: #B3261E; }
.search-form label { font-weight: 600; display: block; margin-bottom: 0.4rem; }
.search-row { display: flex; gap: 0.5rem; }
#search-results ol { padding-left: 1.2rem; }
#search-results li { margin-bottom: 1rem; }
#search-results .sr-desc { display: block; color: var(--ink-2); font-size: 0.95rem; }

/* ------------------------------------------------------------------ roadmap, faq, languages, sitemap, legal */
.roadmap { display: grid; gap: 1rem; max-width: none !important; }
.rm-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem 1.2rem; }
.rm-group h2 { font-size: var(--step-1); margin: 0 0 0.6rem; padding: 0; }
.rm-list { list-style: none; padding: 0 !important; margin: 0 !important; }
.rm-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid var(--mist); margin: 0; }
.rm-empty { color: var(--ink-2); margin: 0; }
.rm-updated { font-size: var(--step--1); color: var(--ink-3); }

.faq section { margin-bottom: 2rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 0.9rem 2rem 0.9rem 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.7rem; font-size: 1.4rem; font-weight: 300; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary h3 { display: inline; font-family: var(--sans); font-size: 1.05rem; font-weight: 650; margin: 0; }
.faq-a { padding: 0 0 0.8rem; color: var(--ink); }

.lang-grid { list-style: none; padding: 0 !important; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); max-width: none !important; }
.lang-grid li { margin: 0; }
.lang-grid a { display: flex; flex-direction: column; padding: 0.9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.lg-native { font-size: 1.35rem; }
.lg-en { font-size: 0.85rem; color: var(--ink-2); }

.html-sitemap { display: grid; gap: 1rem 2.5rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); max-width: none !important; }
.html-sitemap h2 { font-size: var(--step-1); margin-top: 1rem; }
.html-sitemap ul { list-style: none; padding: 0; }
.html-sitemap li { font-size: 0.95rem; }
.html-sitemap .d-3 { padding-left: 0.9rem; } .html-sitemap .d-4 { padding-left: 1.8rem; }

.legal-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 1.1rem 0 0; font-size: var(--step--1); }
.legal-meta div { display: flex; gap: 0.4rem; }
.legal-meta dt { color: var(--ink-2); }
.legal-meta dd { margin: 0; font-weight: 650; }
.draft-banner { margin: 1rem 0 0; padding: 0.75rem 1rem; background: #FDF0D5; border: 1px solid #E9C46A; border-radius: var(--radius); font-size: 0.95rem; max-width: 46rem; }
.prose--legal h2 { font-size: var(--step-2); }
.history { margin-top: 3rem; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #DCE3F4; --focus: var(--marigold); margin-top: 0; }
.site-footer a { color: #fff; }
.footer-top { display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 2rem; }
@media (min-width: 62rem) { .footer-top { grid-template-columns: 1fr 2fr; } }
.footer-mission p { max-width: 26rem; margin-top: 1rem; }
.footer-small { font-size: var(--step--1); color: #AEB9D8; }
.footer-nav { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.fh { font-family: var(--serif); color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { padding: 0.2rem 0; font-size: 0.95rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2D3D6B; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: var(--step--1); color: #AEB9D8; }
.footer-bottom p { max-width: 60rem; }

/* RTL language pages */
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.3rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .sticky-get, .cta-band, .related, .side { display: none !important; } body { background: #fff; } }

/* Home: differentiators and use cases */
.diff { background: var(--white); }
.diff-grid { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
@media (min-width: 62rem) { .diff-grid { grid-template-columns: repeat(3, 1fr); } }
.diff-grid li { margin: 0; }
.diff-grid a { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 1.4rem 1.3rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); }
.diff-grid a:hover { border-color: var(--ink); background: var(--white); }
.diff-grid .ico { color: var(--ink); margin-bottom: 0.2rem; }
.dg-title { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.25; }
.dg-desc { color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; flex: 1; }
.dg-more { font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.usecases-home { background: var(--paper); }
@media (min-width: 52rem) { .card-list--2 { grid-template-columns: repeat(2, 1fr); } }
