/* Sahi v0.5 look (22 Nov 2026). Loaded AFTER v3.css on every page: it re-colours v3's tokens (so all pages change at once)
   and adds the new layout pieces. Season 3 palette (forest green, cream and sand, vermilion, saffron), Geist type.
   Nothing in v3.css is deleted; to go back, remove the v4.css link from the pages.
   Floors: body 17px+, nothing under 14px, 44px tap targets, contrast 4.5:1 or better, dark mode. */
:root {
  --paper: #F7EFDD; --sheet: #FFFDF7; --ink: #1C2A21; --deep: #17402C; --gold: #E0A84E; --muted: #5B6359; --rule: #DDD3BC;
  --marker: #F6CF5F; --sahi: #176B45; --sahi-ink: #0F4D32; --wash: #E7EBD7; --warn: #B3301B;
  --vermfill: #C9361F; --verm: #B3301B; --sand: #EFE2C4; --onDeep: #FAEACC; --onDeepMuted: #C9D3BC; --line: rgba(250,234,204,.18);
  --field: #FFFDF7; --pill: #FBF0D4; --pillInk: #7A5A0E; --btnText: #fff; --chipBg: #FFF3B8; --chipInk: #5C4A00; --quiet: #ECEDEA;
  --step--1: .875rem; --step-0: 1.0625rem; --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --vermfill: #C9361F; --verm: #FF8A6B; --sand: #132319; --paper: #0F1A14; --sheet: #17261D; --ink: #F3EBD8; --deep: #0A1B12; --muted: #B3BDA9;
    --rule: #2B3F31; --sahi: #6FD39B; --sahi-ink: #9BE3BB; --wash: #1B3426; --warn: #FF8A6B; --field: #17261D; --pill: #3A3010; --pillInk: #F2D68A;
    --btnText: #0A1B12; --chipBg: #3A3010; --chipInk: #F2D68A; --quiet: #22302A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --vermfill: #C9361F; --verm: #FF8A6B; --sand: #132319; --paper: #0F1A14; --sheet: #17261D; --ink: #F3EBD8; --deep: #0A1B12; --muted: #B3BDA9;
  --rule: #2B3F31; --sahi: #6FD39B; --sahi-ink: #9BE3BB; --wash: #1B3426; --warn: #FF8A6B; --field: #17261D; --pill: #3A3010; --pillInk: #F2D68A;
  --btnText: #0A1B12; --chipBg: #3A3010; --chipInk: #F2D68A; --quiet: #22302A; color-scheme: dark;
}
body { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
a { color: var(--sahi); }
.wrap { max-width: var(--max); padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gap)); padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gap)); }

/* ---- header: dark, sticky, full width (same markup as before) ---- */
body > .wrap:has(> .top) { background: var(--deep); box-shadow: 0 0 0 100vmax var(--deep), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax -1px -100vmax); }
.top { min-height: 68px; padding: .5rem 0; }
.brand, .brand b { color: var(--onDeep); }
.brand b i { color: var(--marker); }
.brand .brand-2 { color: var(--onDeepMuted); }
.brand .logo { color: var(--onDeep); }
.top nav { gap: 1.5rem; font-size: .95rem; }
.top nav a { color: var(--onDeep); opacity: .9; }
.top nav a:hover { opacity: 1; }
.top nav a.btn { opacity: 1; min-height: 40px; background: transparent; border-color: var(--onDeepMuted); color: var(--onDeep); text-decoration: none; }
.top nav a.btn:hover { background: var(--marker); border-color: var(--marker); color: #1C2A21; }
@media (max-width: 359px) { .brand .brand-2 { display: none; } }

/* ---- buttons and fields ---- */
.btn { background: var(--deep); border-color: var(--deep); color: var(--onDeep); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.go { background: var(--marker); border-color: var(--marker); color: #1C2A21; }
.btn.go:hover { background: #fff; border-color: #fff; color: #1C2A21; }
.btn.ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn.ghost:hover { background: var(--sheet); color: var(--ink); }
input[type=email], textarea { background: var(--field); color: var(--ink); }
input[type=email]:focus, textarea:focus { border-color: var(--sahi); box-shadow: 0 0 0 3px rgba(23,107,69,.25); }

/* ---- the home page ---- */
.in { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gap)); padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gap)); }
.heroband { background: var(--deep); color: var(--onDeep); position: relative; overflow: hidden; }
.heroband .lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; pointer-events: none; }
.heroband .hero { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow, .k { display: flex; flex-direction: column; gap: .8rem; margin: 0 0 1rem; font-size: var(--step--1); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before, .k::before { content: ""; width: 44px; height: 1.5px; background: currentColor; }
.k { color: var(--sahi); }
.heroband h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1; letter-spacing: -.045em; max-width: 14ch; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); }
.heroband .lede { color: var(--onDeep); font-size: 1.2rem; line-height: 1.45; max-width: 32ch; }
.heroband .lede b { color: var(--marker); font-weight: 650; }
.heroband .invite { max-width: 30rem; }
.heroband .invite .row input { background: var(--field); color: #1C2A21; border-color: transparent; }
.heroband .invite .row input:focus { outline: 3px solid var(--marker); outline-offset: 2px; box-shadow: none; }
.heroband .invite .tick, .heroband .invite .fine { color: var(--onDeepMuted); }
.heroband .invite .tick input { accent-color: var(--marker); }
.heroband .invite .tick.off { opacity: 1; }
.heroband .invite .tick.off span { opacity: .8; }
h1 .blk { display: block; }
.heroband .invite .tick .pill { background: var(--pill); color: var(--pillInk); }
.heroband .invite .msg.ok { color: var(--marker); }
.heroband .invite .msg.err { color: #FFB59A; }
.heroband .fine a { color: var(--marker); }
.screen { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.screen video { width: 100%; height: 100%; object-fit: cover; background: #0A1B12; }
.cap { display: flex; align-items: center; gap: .6rem; margin: .8rem 0 0; font-size: .95rem; color: var(--onDeepMuted); }
.cap b { color: var(--onDeep); font-weight: 620; }
.stripe { height: 8px; background: linear-gradient(90deg, var(--vermfill) 0 50%, var(--gold) 50% 100%); }
.ally { flex: none; display: block; }

section.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
section.band.sand { background: var(--sand); }
section.band:first-of-type { border-top: 0; }
.band h2 { max-width: 22ch; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 1.6rem; max-width: 54ch; }
.meet-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 2.5rem); align-items: start; }
.meet-row .big { filter: drop-shadow(0 14px 18px rgba(10,27,18,.3)); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.6rem; counter-reset: n; }
.three > div { counter-increment: n; border-top: 4px solid var(--vermfill); padding-top: .9rem; min-width: 0; }
.three > div::before { content: counter(n); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--vermfill); color: #fff; font-weight: 650; font-size: .95rem; margin-bottom: .6rem; }
.three h3 { font-size: 1.15rem; }
.three p { margin: 0; color: var(--muted); font-size: .97rem; }
.vow { margin: 1.6rem 0 0; padding: .9rem 1.1rem; background: var(--wash); border-radius: 10px; max-width: 56ch; }
.vow b { color: var(--sahi-ink); }
.mark { background-image: linear-gradient(var(--marker), var(--marker)); color: #1C2A21; }
.answer { grid-column: 1 / -1; background: var(--deep); color: var(--onDeep); border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.8rem); display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.2rem; }
.answer .who { font-size: var(--step--1); color: var(--onDeepMuted); margin: 0 0 .3rem; }
.answer h3 { margin: 0 0 .5rem; font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2; font-weight: 620; color: #fff; }
.answer h3 b { color: var(--marker); }
.answer p { margin: 0 0 .8rem; max-width: 64ch; }
.answer .say { background: rgba(255,255,255,.08); border-radius: 10px; padding: .8rem 1rem; font-size: 1.02rem; max-width: none; margin: 0; letter-spacing: 0; font-weight: 400; line-height: 1.5; }
.answer .say small { display: block; color: var(--marker); font-weight: 620; font-size: var(--step--1); margin-bottom: .2rem; }
.answer .chip { display: inline-block; font-size: var(--step--1); font-weight: 600; padding: .1rem .6rem; border-radius: 999px; background: var(--marker); color: #1C2A21; margin-bottom: .6rem; }
.answer .fn { font-size: var(--step--1); color: var(--onDeepMuted); margin: .8rem 0 0; }
.answer .fn a { color: var(--marker); }
.alsoh { margin: 2rem 0 .8rem; font-size: 1.15rem; letter-spacing: -.015em; font-weight: 620; }
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.also li { background: var(--sheet); border: 1px solid var(--rule); border-left: 5px solid var(--vermfill); border-radius: 10px; padding: .9rem 1rem; min-width: 0; }
.also b { display: block; font-weight: 620; }
.also span { color: var(--muted); font-size: .95rem; }
.people { margin-top: 1.5rem; }
.person { border-top: 6px solid var(--vermfill); min-width: 0; }
.person:nth-child(2) { border-top-color: var(--gold); }
.person:nth-child(3) { border-top-color: var(--sahi); }
.person .who { font-size: 1.2rem; }
.person .what { font-size: .95rem; }
.person .found { font-size: .95rem; color: var(--ink); font-weight: 550; margin-top: .5rem; }
.person .sum { font-size: .95rem; }
.person .sum span { background: var(--marker); color: #1C2A21; padding: 0 .2em; }
.trustgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1.6rem; list-style: none; padding: 0; margin: 0; }
.trustgrid li { padding-left: 1.5rem; position: relative; font-size: .98rem; min-width: 0; }
.trustgrid li::before { content: ""; position: absolute; left: 0; top: .4rem; width: .8rem; height: .45rem; border-left: 2.5px solid var(--sahi); border-bottom: 2.5px solid var(--sahi); transform: rotate(-45deg); }
.trustgrid b { display: block; font-weight: 620; }
.trustgrid span { color: var(--muted); font-size: .95rem; }
@media (max-width: 880px) {
  .heroband .hero, .meet-row { grid-template-columns: 1fr; }
  .three, .also, .trustgrid { grid-template-columns: 1fr; }
  .answer { grid-template-columns: 1fr; }
}

/* the sign-up confirmation panel (was inline style in v3-site.js) */
.msg.confirmed { padding: 1rem 1.1rem; border-radius: 10px; background: var(--wash); border: 1px solid var(--sahi); color: var(--ink); }
.msg.confirmed strong { display: block; font-size: 1.35em; margin-bottom: .25em; }
.msg.confirmed a { display: block; margin-top: .6em; font-weight: 600; color: var(--sahi-ink); }
.heroband .msg.confirmed { color: var(--ink); }
.heroband .msg.confirmed a { color: var(--sahi-ink); }

/* ---- the other pages ---- */
.soon { color: var(--muted); }
.tc-grid > div, .paper, .report, .person, .why-invite { background: var(--sheet); }
.tc-status { background: var(--wash); color: var(--sahi-ink); font-size: var(--step--1); }
.tc-status.soon { background: var(--quiet); color: var(--muted); }
.conf.HIGH { background: var(--wash); color: var(--sahi-ink); font-size: var(--step--1); }
.conf.MEDIUM { background: var(--chipBg); color: var(--chipInk); font-size: var(--step--1); }
.conf.LOW, .conf.CANT { background: var(--quiet); color: var(--muted); font-size: var(--step--1); }
.invite .tick .pill { background: var(--pill); color: var(--pillInk); }
.tabs button[aria-selected=true] { background: var(--deep); border-color: var(--deep); color: var(--onDeep); }
.scale input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--onDeep); }
.fb { border-top-color: var(--deep); }
.paper header span, .made-up, .film-cap, .fineprint, .ends, .script-f { font-size: var(--step--1); }
.src { font-size: var(--step--1); }
.tc-grid ul, .evidence li, .promises p { font-size: 1rem; }
.page-intro { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.page-intro h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 18ch; }
.page-intro .lede { max-width: 44ch; color: var(--ink); }
.call-grid .big-q .n { color: var(--muted); }
.coming-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; counter-reset: c; }
.coming-steps li { counter-increment: c; border-top: 4px solid var(--vermfill); padding-top: .9rem; }
.coming-steps li:nth-child(2) { border-top-color: var(--gold); }
.coming-steps li:nth-child(3) { border-top-color: var(--sahi); }
.coming-steps li:nth-child(4) { border-top-color: var(--ink); }
.coming-steps b { display: block; font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: .3rem; }
.coming-steps span { color: var(--muted); }
.coming-steps .state { display: inline-block; margin-top: .5rem; font-size: var(--step--1); font-weight: 600; padding: .1rem .6rem; border-radius: 999px; background: var(--wash); color: var(--sahi-ink); }
.coming-steps .state.next { background: var(--chipBg); color: var(--chipInk); }
@media (max-width: 700px) { .coming-steps { grid-template-columns: 1fr; } }

/* ---- footer: dark band ---- */
body > .wrap:has(> footer) { background: var(--deep); box-shadow: 0 0 0 100vmax var(--deep); clip-path: inset(0 -100vmax); margin-top: 2rem; }
footer { color: var(--onDeepMuted); font-size: .95rem; padding: 1.6rem 0 2.4rem; }
footer a, footer .mailbtn { color: var(--onDeep); }
body > .wrap:has(> .close) + .wrap:has(> footer) { margin-top: 0; }
.fb-tab { background: var(--vermfill); }

.call { background: transparent; }

/* Confirmation panel: one fixed look in every theme (dark green, cream text, saffron link), so it reads the same in light, dark and in-app browsers that force a theme. */
.heroband .msg.confirmed, .msg.confirmed {
  background: #17402C; color: #F5EFE1; border: 2px solid #F2B544; }
.msg.confirmed strong, .msg.confirmed span { color: #F5EFE1; }
.msg.confirmed a, .heroband .msg.confirmed a { color: #F2B544; }

/* v0.5.1: the byline "A ThinkArray product" is its own link back to thinkarray.com, beside the Sahi logo link (a link cannot sit inside a link) */
footer a[href="https://thinkarray.com/"] { text-decoration: underline; }

/* v0.5.2: centred hero, the film sits in the middle under the headline and the invite box */
.heroband .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: clamp(1.8rem, 4vw, 2.6rem); }
.heroband h1, .heroband .lede, .heroband .invite { margin-left: auto; margin-right: auto; }
.heroband h1 { max-width: 18ch; }
.heroband .lede { max-width: 40ch; }
.heroband .invite { width: 100%; text-align: left; }
.heroband .invite .fine { text-align: center; }
.heroband #film { width: 100%; max-width: 820px; }
.heroband .cap { justify-content: center; text-align: left; }

/* v0.5.2: trust block: sub line and link sit with the three points */
#trust .trustgrid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 2.4rem; }
#trust .trustgrid li { font-size: 1.05rem; }
#trust .trustgrid span { font-size: 1rem; }
@media (max-width: 880px) { #trust .trustgrid { grid-template-columns: 1fr; } }

/* v0.5.2: links on dark bands keep a light colour on hover (the global a:hover colour is dark green) */
.top nav a:not(.btn):hover, .top nav a:not(.btn):focus-visible, .brand:hover, .brand:focus-visible { color: #fff; }
footer a:hover, footer a:focus-visible, footer .mailbtn:hover, footer .mailbtn:focus-visible { color: var(--marker); text-decoration: underline; }
.heroband a:not(.btn):hover, .heroband a:not(.btn):focus-visible { color: #fff; }

/* v0.5.2: comfortable tap targets for the footer links on phones and tablets */
@media (max-width: 880px) {
  footer a, footer .mailbtn { display: inline-block; padding: .75rem .15rem; }
  footer > span[style] { gap: 0 1rem !important; }
}

/* v0.5.2: the dot of the wordmark sits in the middle of the line, centred between "sahi" and "health", same size as before */
.brand b i { display: inline-block; transform: translateY(-.21em); margin: 0 -.07em 0 .27em; }
.brand .brand-2 { margin-left: 0; }
@media (max-width: 380px) {
  .brand b, .brand .brand-2 { font-size: 1.25rem; }
  .brand b i { margin: 0 -.1em 0 .2em; }
  .top nav a.btn { padding-left: .85rem; padding-right: .85rem; }
}

/* wrapper around the logo link in the header */
.brandline { display: inline-flex; align-items: center; gap: 0; }
