/* Layout: one column story, then a two-column checkout with a sticky summary. Thrive brand: forest, teal, lime, cream. */
:root {
  /* Optihealth Group palette */
  --forest: #062a33; --forest-2: #00545f; --teal: #006c78; --moss: #008490; --lime: #5fd0d8; --cream: #f5ece0; --gold: #b05f3e; --peach: #f3c2a8;
  --bg: #fbf8f3; --surface: #FFFFFF; --ink: #062a33; --muted: #4b6569; --line: #e6dccf; --field: #FFFFFF;
  --accent: #006c78; --on-accent: #FFFFFF; --soft: #f5ece0; --ok: #2F7D4F;
  --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-label: "Comfortaa", "Quicksand", system-ui, sans-serif;
  --f-body: "Quicksand", system-ui, sans-serif;
  --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04161c; --surface: #08232b; --ink: #e4f0f1; --muted: #9bb9bd; --line: #17404a; --field: #06202a;
    --accent: #1aa3ad; --on-accent: #04161c; --soft: #0a2128; --gold: #eaa281; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #04161c; --surface: #08232b; --ink: #e4f0f1; --muted: #9bb9bd; --line: #17404a; --field: #06202a;
  --accent: #1aa3ad; --on-accent: #04161c; --soft: #0a2128; --gold: #eaa281; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-weight: 500; font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; max-width: 62ch; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid #1aa3ad; outline-offset: 2px; }
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font-family: var(--f-label); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); }
section { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* Header */
.top { background: #04161c; color: var(--cream); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; }
.logo small { font-weight: 500; color: #a7cdd1; font-size: 0.85rem; }
.top a.back { color: #a7cdd1; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 640px) {
  .logo { font-size: 1rem; min-width: 0; }
  .logo small { display: block; font-size: 0.72rem; line-height: 1.2; }
  .top a.back { white-space: nowrap; flex: none; font-size: 0.85rem; }
}

/* Hero */
.hero { background: linear-gradient(135deg, #04161c 0%, #062a33 40%, #00545f 100%); color: var(--cream); position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .grid > * { min-width: 0; }
.hero .copy { display: flex; flex-direction: column; gap: 1.3rem; }
.hero h1 { color: #fff; }
.hero .lead { color: #a7cdd1; }
.hero .price-line { font-family: var(--f-head); font-weight: 600; color: var(--lime); font-size: 1.15rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; cursor: pointer; border-radius: 999px; padding: 0.95rem 1.6rem; font-family: var(--f-head); font-weight: 700; font-size: 1rem; text-decoration: none; }
.btn-lime { background: var(--lime); color: #04161c; }
.btn-lime:hover { background: #8fe1e6; }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgb(247 243 232 / 0.5); }
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.art { position: relative; display: grid; place-items: center; }
.art .disc { position: absolute; width: min(26rem, 95%); aspect-ratio: 1; border-radius: 50%; background: #f4ebdf; }
.hero .watermark { position: absolute; right: -10rem; top: 50%; translate: 0 -50%; width: 34rem; opacity: 0.07; pointer-events: none; }
.hero .grid { position: relative; }
.art img { position: relative; width: min(23rem, 85%); }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; color: #a7cdd1; font-size: 0.95rem; }
.facts b { color: #fff; font-family: var(--f-head); }

/* Gives */
.gives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.give { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.give .num { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #f3ddd0; color: #b05f3e; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; }
.give p { color: var(--muted); }
@media (max-width: 820px) { .gives { grid-template-columns: 1fr; } .hero .grid { grid-template-columns: 1fr; } .art { order: -1; } .art .disc { width: 16rem; } .art img { width: 14rem; } }

/* Steps */
.how { background: var(--soft); }
.how .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.how .grid > * { min-width: 0; }
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.steps li span { font-family: var(--f-label); font-weight: 700; color: var(--gold); font-size: 1.1rem; }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .how .grid { grid-template-columns: 1fr; } }

/* Checkout */
.checkout .grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 2rem; align-items: start; margin-top: 2rem; }
.checkout .grid > * { min-width: 0; }
@media (max-width: 920px) { .checkout .grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1.4rem; }
.panel + .panel { margin-top: 1.25rem; }
.panel h3 { display: flex; align-items: center; gap: 0.6rem; }
.panel h3 i { font-style: normal; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--teal); color: #fff; display: inline-grid; place-items: center; font-size: 0.85rem; }
.option { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
label.option { cursor: pointer; }
label.option input[type="radio"] { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #006c78; }
.option.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.option.is-off { opacity: 0.45; }
.option.is-off .switch input { cursor: default; }
.btn:disabled { opacity: 0.65; cursor: default; }
.option .t { display: flex; flex-direction: column; gap: 0.15rem; }
.option .t b { font-family: var(--f-head); }
.option .t small { color: var(--muted); font-size: 0.9rem; }
.option .p { font-family: var(--f-head); font-weight: 700; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 2.4rem; height: 2.4rem; border: 0; background: transparent; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty output { min-width: 2rem; text-align: center; font-family: var(--f-head); font-weight: 700; }
.switch { position: relative; width: 3rem; height: 1.7rem; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(1.3rem); }
.switch input:focus-visible + span { outline: 3px solid #1aa3ad; outline-offset: 2px; }
.note { font-size: 0.88rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; font-weight: 600; font-size: 0.95rem; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + span { outline: 3px solid #1aa3ad; outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
label.f { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
input[type=text], input[type=email], textarea { font: inherit; font-weight: 500; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; width: 100%; }
input[type=text]:focus, input[type=email]:focus, textarea:focus { border-color: var(--accent); outline: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.95rem; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: #006c78; }
.err { color: #b3402a; font-size: 0.9rem; font-weight: 600; }
:root[data-theme="dark"] .err { color: #f19a83; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #f19a83; } }

.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1rem); background: linear-gradient(160deg, #062a33, #00545f); color: var(--cream); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.summary h3 { color: #fff; }
.lines { display: flex; flex-direction: column; gap: 0.6rem; border-top: 1px solid rgb(247 243 232 / 0.2); padding-top: 1rem; }
.line { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; color: #cfe6e8; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgb(247 243 232 / 0.2); padding-top: 1rem; }
.total b { font-family: var(--f-head); font-size: 1.9rem; color: #fff; font-variant-numeric: tabular-nums; }
.summary .btn { width: 100%; }
.summary .small { font-size: 0.85rem; color: #a7cdd1; }
.impact { background: rgb(95 208 216 / 0.12); border: 1px solid rgb(95 208 216 / 0.35); border-radius: 12px; padding: 0.8rem 1rem; color: #d9f4f6; font-size: 0.95rem; }
.lock { display: flex; gap: 0.5rem; align-items: center; justify-content: center; font-size: 0.85rem; color: #a7cdd1; }

/* Thank you */
.thanks { display: none; text-align: center; align-items: center; }
.thanks.show { display: flex; }
.thanks img { width: min(16rem, 70%); }

/* Alt routes */
.alts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.alt { border-radius: var(--r); padding: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; background: var(--surface); border: 1px solid var(--line); }
.alt p { color: var(--muted); }
.alt.dark { background: linear-gradient(135deg, #062a33, #00545f); border-color: transparent; color: var(--cream); }
.alt.dark h3 { color: #fff; } .alt.dark p { color: #a7cdd1; }
.alt .more { font-family: var(--f-head); font-weight: 700; text-decoration: none; margin-top: auto; }
.alt.dark .more { color: var(--lime); }
@media (max-width: 760px) { .alts { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0.7rem; color: var(--muted); }

footer { background: #04161c; color: #a7cdd1; font-size: 0.9rem; padding-block: 2.5rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer a { color: #cfe6e8; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.thanks-page { min-height: 70vh; display: grid; align-items: center; }
.thanks-page .panel { text-align: center; align-items: center; max-width: 40rem; margin-inline: auto; }
.thanks-page img { width: min(16rem, 70%); }
