/* ==========================================================================
   Back of the Box — recovery suite, Alton
   Warm & natural design system
   ========================================================================== */

:root {
  /* Surfaces — warm paper, not white */
  --paper:        #FAF6F0;
  --paper-2:      #F3ECE1;
  --paper-3:      #E9DECE;
  --ink:          #2B2521;
  --ink-2:        #5C5148;
  --ink-3:        #8B7F73;

  /* Timber */
  --timber:       #A9714B;
  --timber-dark:  #7A4E31;
  --timber-light: #C79A73;

  /* Heat */
  --ember:        #D07A34;
  --ember-soft:   #EBB27E;

  /* Cold plunge */
  --plunge:       #4E748A;
  --plunge-soft:  #A8C2CE;

  /* Green */
  --sage:         #75856B;

  --line:         rgba(43, 37, 33, 0.12);
  --line-soft:    rgba(43, 37, 33, 0.07);

  --shadow-sm: 0 1px 2px rgba(43,37,33,.06), 0 2px 8px rgba(43,37,33,.05);
  --shadow-md: 0 2px 6px rgba(43,37,33,.06), 0 12px 32px rgba(43,37,33,.09);
  --shadow-lg: 0 4px 12px rgba(43,37,33,.07), 0 24px 60px rgba(43,37,33,.13);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* The wordmark face from the logo files, so the HTML lockup matches the artwork. */
  --brand: "Barlow Condensed", "Oswald", "Arial Narrow", Helvetica, sans-serif;

  /* Straight from the badge artwork — used wherever the badge sits on a panel. */
  --brand-black: #0B0B0B;
  --brand-cream: #EDE7DC;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

/* The browser hides [hidden] elements with display:none, but any author rule
   setting display (flex, grid…) beats it. Without this, anything we hide from
   JavaScript that also has a display rule stays stubbornly visible. */
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 20, "WONK" 0;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--ember-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--timber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* -------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 780px; }

section { position: relative; }

/* The header is sticky, so anchor jumps must stop short of it — otherwise
   the heading you clicked to reach lands hidden underneath the nav bar. */
:target,
section[id],
[id^="founding"],
[id^="evidence"] { scroll-margin-top: 96px; }

.section {
  padding-block: clamp(72px, 11vw, 140px);
}

.section--tight { padding-block: clamp(52px, 7vw, 88px); }

.section--paper2  { background: var(--paper-2); }
.section--dark {
  background: #241E1A;
  color: rgba(250, 246, 240, .72);
}
.section--dark h2, .section--dark h3 { color: var(--paper); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--timber);
  margin: 0 0 1.1rem;
}
.section--dark .eyebrow { color: var(--ember-soft); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.section--dark .lede { color: rgba(250,246,240,.75); }

.section-head { max-width: 68ch; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* -------------------------------------------------------------- button -- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .95rem;
  font-weight: 550;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--timber-dark); }
.btn--primary:hover { --btn-bg: #683f26; }

.btn--ember { --btn-bg: var(--ember); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(43,37,33,.04); border-color: rgba(43,37,33,.25); box-shadow: none; }

.section--dark .btn--ghost { --btn-fg: var(--paper); border-color: rgba(250,246,240,.28); }
.section--dark .btn--ghost:hover { background: rgba(250,246,240,.08); }

.btn--lg { padding: 1.15rem 2.15rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ----------------------------------------------------------------- nav -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 240, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line-soft); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.brand__mark { width: 38px; height: 38px; flex: none; }

/* Wordmark rebuilt in HTML so it stays crisp and legible at nav size —
   the logo's own stacked lettering is far too small to read at 40px tall. */
.brand__text {
  font-family: var(--brand);
  line-height: 1;
  color: var(--ink);
  display: block;
}
.brand__pre {
  display: block;
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 2px;
}
.brand__main {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.brand__place {
  display: block;
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
}

/* Badge artwork. Clipping to a circle removes the black corners of the
   source file, so it drops onto any background without a visible square. */
.badge {
  border-radius: 50%;
  display: block;
  background: var(--brand-black);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding-block: .4rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--timber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* The call-to-action in the nav is a button, not a text link. Without this it
   inherits the grey link colour (which beats .btn on specificity) and picks up
   the link underline, giving grey text on brown with a stray line under it. */
.nav__links .btn {
  color: var(--btn-fg);
  padding-block: .7rem;
}
.nav__links .btn::after { content: none; }
.nav__links .btn:hover { color: var(--btn-fg); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: var(--ink);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { border-top: 1px solid var(--line-soft); }
  .nav__links li:first-child { border-top: none; }
  .nav__links a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav__links .btn { margin-top: 1rem; }
  .nav__links li.nav__cta { border-top: none; }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding-block: clamp(80px, 12vw, 150px) clamp(72px, 10vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 80% 8%,  rgba(208,122,52,.16),  transparent 62%),
    radial-gradient(80% 60% at 8% 92%,  rgba(78,116,138,.12),  transparent 60%),
    linear-gradient(178deg, var(--paper) 0%, var(--paper-2) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: .35em; }
.hero h1 em {
  font-style: italic;
  color: var(--timber-dark);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem .45rem .7rem;
  border-radius: 999px;
  background: rgba(208,122,52,.12);
  border: 1px solid rgba(208,122,52,.26);
  color: var(--timber-dark);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(208,122,52,.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(208,122,52,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(208,122,52,0); }
  100% { box-shadow: 0 0 0 0 rgba(208,122,52,0); }
}

.hero__cta { margin-top: 2.2rem; }
.hero__note {
  margin-top: 1.4rem;
  font-size: .87rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Hero artwork — the badge */
.hero__art { position: relative; display: grid; place-items: center; }
.hero__badge {
  width: min(100%, 400px);
  height: auto;
  box-shadow: 0 30px 70px rgba(43,37,33,.24), 0 0 0 1px rgba(43,37,33,.06);
}
@media (max-width: 940px) {
  .hero__badge { width: min(72%, 300px); }
}

/* --------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--paper);
  padding: clamp(24px, 3.4vw, 40px) clamp(18px, 2.5vw, 32px);
  text-align: center;
}
.stat__n {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--ink);
  line-height: 1;
  margin-bottom: .45rem;
}
.stat__n.hot  { color: var(--ember); }
.stat__n.cold { color: var(--plunge); }
.stat__l {
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

/* --------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; }

.card__icon {
  width: 46px; height: 46px;
  margin-bottom: 1.4rem;
  color: var(--timber);
}
.card__meta {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- flow -- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

.flow__item { position: relative; padding-top: 2.6rem; }
.flow__item::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--timber);
  letter-spacing: .04em;
}
.flow__item::after {
  content: "";
  position: absolute;
  top: .75rem; left: 2.6rem; right: -1.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.flow__item:last-child::after { display: none; }
@media (max-width: 900px) { .flow__item::after { display: none; } }

.section--dark .flow__item::before { color: var(--ember-soft); }
.section--dark .flow__item::after { background: linear-gradient(90deg, rgba(250,246,240,.18), transparent); }

.flow__item h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.flow__item p { font-size: .94rem; }

/* ------------------------------------------------------------- pricing -- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 26px);
  align-items: start;
}
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--feature {
  border-color: var(--timber);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(178deg, #FFFDFA, var(--paper));
}
.plan__flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--timber-dark);
  color: var(--paper);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .42rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: .3rem;
}
.plan__blurb { font-size: .92rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-bottom: .3rem;
}
.plan__price b {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.plan__price span { font-size: .92rem; color: var(--ink-3); }
.plan__was {
  font-size: .85rem;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
}
.plan__was s { opacity: .7; }

.plan ul {
  list-style: none;
  margin: 0 0 1.9rem;
  padding: 0;
  display: grid;
  gap: .7rem;
  font-size: .94rem;
}
.plan li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  line-height: 1.5;
}
.plan li svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--sage); }
.plan .btn { margin-top: auto; }

/* ---------------------------------------------------------------- form -- */

.field { margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }

.field label,
.legend {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .5rem;
}
.field .hint {
  display: block;
  font-size: .84rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
  margin-top: .35rem;
}

.input, .select, .textarea {
  width: 100%;
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--timber);
  box-shadow: 0 0 0 3px rgba(169,113,75,.15);
}
.textarea { resize: vertical; min-height: 110px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238B7F73' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.6rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.check {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .93rem;
  line-height: 1.5;
  cursor: pointer;
  color: var(--ink-2);
}
.check input {
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  accent-color: var(--timber-dark);
  cursor: pointer;
}

.form-note {
  font-size: .84rem;
  color: var(--ink-3);
  margin-top: 1rem;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

.form-status {
  margin-top: 1.1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--r-md);
  font-size: .92rem;
  display: none;
}
.form-status.is-ok   { display: block; background: rgba(117,133,107,.14); color: #445039; border: 1px solid rgba(117,133,107,.3); }
.form-status.is-err  { display: block; background: rgba(184,72,52,.1);   color: #8e3a28; border: 1px solid rgba(184,72,52,.26); }

/* ------------------------------------------------------------- booking -- */

.booking {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(26px, 3.5vw, 48px);
  align-items: start;
}
@media (max-width: 1000px) { .booking { grid-template-columns: 1fr; } }

.steps {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.step__n {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-size: .78rem;
  background: var(--paper);
}
.step.is-active { color: var(--ink); }
.step.is-active .step__n { border-color: var(--timber-dark); background: var(--timber-dark); color: var(--paper); }
.step.is-done .step__n { border-color: var(--sage); background: var(--sage); color: #fff; }
.step__sep { width: 22px; height: 1px; background: var(--line); }
@media (max-width: 620px) { .step__label { display: none; } .step__sep { width: 14px; } }

.panel { display: none; }
.panel.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* session type picker */
.opt-list { display: grid; gap: .8rem; }
.opt {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.opt:hover { border-color: var(--timber-light); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__radio {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: border-color .18s ease;
}
.opt__radio::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--timber-dark);
  transform: scale(0);
  transition: transform .18s ease;
}
.opt input:checked ~ .opt__radio { border-color: var(--timber-dark); }
.opt input:checked ~ .opt__radio::after { transform: scale(1); }
.opt:has(input:checked) {
  border-color: var(--timber-dark);
  background: linear-gradient(178deg, #FFFCF8, var(--paper));
  box-shadow: var(--shadow-sm);
}
.opt__body { flex: 1; min-width: 0; }
.opt__title { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.opt__desc { font-size: .89rem; color: var(--ink-3); margin-top: .15rem; }
.opt__price {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  flex: none;
  white-space: nowrap;
}
.opt__price small { font-size: .72rem; font-family: var(--sans); color: var(--ink-3); display: block; text-align: right; letter-spacing: .04em; }

/* calendar */
.cal {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2.2vw, 24px);
  background: var(--paper);
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.cal__month {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}
.cal__nav {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .18s ease, border-color .18s ease;
}
.cal__nav:hover:not([disabled]) { background: rgba(43,37,33,.05); border-color: rgba(43,37,33,.2); }
.cal__nav[disabled] { opacity: .3; cursor: default; }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow {
  text-align: center;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  padding-bottom: .5rem;
}
.cal__day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  position: relative;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.cal__day:hover:not(:disabled) { background: var(--paper-3); }
.cal__day:disabled { color: rgba(139,127,115,.4); cursor: default; }
.cal__day.is-empty { pointer-events: none; }
.cal__day.is-today { border-color: var(--line); }
.cal__day.is-selected {
  background: var(--timber-dark);
  color: var(--paper);
  border-color: var(--timber-dark);
}
.cal__day.has-slots::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ember);
}
.cal__day.is-selected.has-slots::after { background: var(--ember-soft); }

/* slots */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: .6rem;
  margin-top: 1.6rem;
}
.slot {
  padding: .8rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 550;
  color: var(--ink);
  text-align: center;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.slot small { display: block; font-weight: 400; font-size: .74rem; color: var(--ink-3); margin-top: .2rem; }
.slot:hover:not(:disabled) { border-color: var(--timber-light); transform: translateY(-1px); }
.slot.is-selected {
  border-color: var(--timber-dark);
  background: var(--timber-dark);
  color: var(--paper);
}
.slot.is-selected small { color: rgba(250,246,240,.7); }
.slot:disabled { opacity: .4; cursor: default; text-decoration: line-through; }

.empty-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  font-size: .93rem;
  color: var(--ink-3);
  text-align: center;
}

/* summary rail */
.summary {
  position: sticky;
  top: 96px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 1000px) { .summary { position: static; } }

.summary h3 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: .93rem;
}
.summary__row:first-of-type { border-top: none; }
.summary__row dt { color: var(--ink-3); margin: 0; }
.summary__row dd { margin: 0; color: var(--ink); font-weight: 550; text-align: right; }
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1.5px solid var(--line);
}
.summary__total span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.summary__total b { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--ink); }
.summary .btn { margin-top: 1.4rem; }
.summary__fine { font-size: .78rem; color: var(--ink-3); margin-top: .9rem; text-align: center; line-height: 1.5; }

.panel-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}

/* health screening */
.screen-list { display: grid; gap: .85rem; margin: 1.2rem 0 0; }
.screen-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: .93rem;
  line-height: 1.5;
  cursor: pointer;
}
.screen-item input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--timber-dark); }
.screen-item:has(input:checked) { border-color: var(--ember); background: rgba(208,122,52,.06); }

.alert {
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  font-size: .92rem;
  line-height: 1.55;
  border: 1px solid;
  margin-top: 1.2rem;
}
.alert--warn { background: rgba(208,122,52,.09); border-color: rgba(208,122,52,.32); color: #7a4213; }
.alert--info { background: rgba(78,116,138,.08); border-color: rgba(78,116,138,.25); color: #33586c; }

/* ------------------------------------------------------------ evidence -- */

.findings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
@media (max-width: 900px) { .findings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .findings { grid-template-columns: 1fr; } }

.finding {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
}
.finding__n {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  line-height: 1;
  color: var(--timber-dark);
  margin-bottom: .1rem;
}
.finding__n small {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-top: .55rem;
}
.finding p {
  font-size: .93rem;
  line-height: 1.5;
  margin: .8rem 0 0;
}
.finding__src {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: .76rem;
  color: var(--ink-3);
  letter-spacing: .02em;
}

.evidence-note {
  border-left: 3px solid var(--timber);
  padding: .2rem 0 .2rem 1.4rem;
  margin: 0;
}

.sources {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
  margin-top: clamp(32px, 4vw, 48px);
}
.sources b {
  display: block;
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .6rem;
}

/* --------------------------------------------------------- dormant -- */
/* Shows a finished feature that isn't switched on yet: faded back and
   completely untouchable. Paired with the `inert` attribute so keyboard
   users can't tab into it either. */
.dormant {
  opacity: .38;
  filter: saturate(.5);
  pointer-events: none;
  user-select: none;
}

.dormant-notice {
  border: 1px solid var(--timber-light);
  background: linear-gradient(178deg, #FFFDFA, var(--paper-2));
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 40px);
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.dormant-notice h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 .6rem;
}
.dormant-notice p {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--ink-2);
}
.dormant-notice .btn-row { justify-content: center; margin-top: 1.6rem; }

/* ------------------------------------------------ founding countdown -- */

.counter {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  margin: 0 0 1.2rem;
  font-size: .95rem;
  color: var(--ink-2);
}
.counter b {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 500;
  color: var(--ember);
}
.counter__bar {
  flex: 1 1 140px;
  min-width: 120px;
  height: 6px;
  border-radius: 999px;
  background: var(--paper-3);
  overflow: hidden;
}
.counter__bar > span {
  display: block;
  height: 100%;
  width: 0;                 /* starts empty; JavaScript sets the real width */
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember-soft), var(--ember));
  transition: width .5s ease;
}
.counter.is-low b { color: #B8452A; }

/* Once the places are gone, the old offer is struck through rather than
   silently vanishing — people can see what they've just missed. */
[data-founding-live].is-gone {
  position: relative;
  opacity: .5;
}
[data-founding-live].is-gone h2,
[data-founding-live].is-gone .lede,
[data-founding-live].is-gone .tag {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--timber);
}
[data-founding-live].is-gone .btn,
[data-founding-live].is-gone form { display: none; }

/* ------------------------------------------------------------- account -- */

.acct-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.acct-stat {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  line-height: 1;
  color: var(--timber-dark);
  margin-bottom: .5rem;
}

.meter {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-3);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember-soft), var(--ember));
  transition: width .4s ease;
}

.bk {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper);
  margin-bottom: .7rem;
}
.bk__when {
  font-weight: 600;
  color: var(--ink);
  min-width: 12ch;
}
.bk__what { color: var(--ink-2); font-size: .94rem; flex: 1; min-width: 14ch; }
.bk__ref  { font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; }
.bk__act  { margin-left: auto; }
.bk--past { opacity: .78; }

.pill-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(117,133,107,.16);
  color: #4d5b44;
}
.pill-tag--warn { background: rgba(208,122,52,.16); color: #8a5320; }

/* ----------------------------------------------------------------- faq -- */

.faq { border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink);
  transition: color .18s ease;
}
.faq__q:hover { color: var(--timber-dark); }
.faq__icon {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: var(--timber);
  transition: transform .25s ease, opacity .25s ease;
}
.faq__icon::before { width: 14px; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 14px; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.6rem; max-width: 72ch; font-size: .97rem; }

/* ---------------------------------------------------------------- misc -- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.photo-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(208,122,52,.16), rgba(78,116,138,.14)),
    var(--paper-3);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--ink-3);
  font-size: .85rem;
  letter-spacing: .06em;
  overflow: hidden;
  position: relative;
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(43,37,33,.045) 0 1px, transparent 1px 14px);
  opacity: .8;
}
.photo-slot span { position: relative; max-width: 26ch; }

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

.mark-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.mark-list li { display: flex; gap: .85rem; align-items: flex-start; font-size: 1rem; line-height: 1.55; }
.mark-list li svg { flex: none; width: 19px; height: 19px; margin-top: 4px; color: var(--timber); }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(117,133,107,.16);
  color: #4d5b44;
}

/* -------------------------------------------------------------- footer -- */

.footer {
  background: #241E1A;
  color: rgba(250,246,240,.6);
  padding-block: clamp(56px, 7vw, 88px) 2.5rem;
  font-size: .93rem;
}
.footer a { color: rgba(250,246,240,.78); text-decoration: none; }
.footer a:hover { color: var(--ember-soft); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(250,246,240,.45);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer .brand__text { color: var(--brand-cream); }
.footer .brand__place { color: rgba(250,246,240,.42); }
.footer .brand__tagline {
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250,246,240,.5);
  margin-top: 6px;
}

.footer__base {
  border-top: 1px solid rgba(250,246,240,.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(250,246,240,.42);
}

/* ------------------------------------------------------------ reveal ---- */

/* Only ever hide content when JavaScript is definitely running to bring it
   back. Without the .js class the page is simply visible — so a blocked
   script, an old browser or a failed observer can never leave it blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ utility --- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
