/*
 * The public marketing site.
 *
 * Deliberately NOT the app shell. The signed-in surfaces share a sidebar chassis
 * (app-shell.css) because a member and a clinician are working through screens
 * they return to. A visitor deciding whether to buy is doing something else
 * entirely, so this is a full-width scrolling page with wide bands of content.
 *
 * The PALETTE and TYPEFACES are the same tokens as everywhere else, from
 * brand.css. SCOPE 13 lifts them verbatim from inspirationhealth.org and says
 * they were "not invented" - a marketing page in a different palette would make
 * the product look like it belonged to somebody else.
 *
 * No JS is required by anything in this file. The FAQ uses <details>, the nav
 * uses a checkbox, and the layout uses grid - so the page works with scripting
 * off, which matters when a good share of this audience is on a cheap phone on
 * clinic wifi.
 */

/* ── Bands ───────────────────────────────────────────────────────────────── */

.band {
  padding: 68px 0;
  border-bottom: 1px solid var(--hair);
}
.band-tint { background: var(--cream); }
.band-deep { background: var(--navy); color: #e8eef6; border-bottom: 0; }
.band-tight { padding: 44px 0; }

.band-head { max-width: 42em; margin: 0 0 34px; }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.band h2 {
  font-family: var(--serif);
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 600;
}
.band-deep h2, .band-deep h3 { color: #fff; }

.band-head p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-mid);
}
.band-deep .band-head p { color: rgba(232, 238, 246, .82); }

.kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.band-deep .kicker { color: var(--gold); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: 74px 0 64px;
  background:
    radial-gradient(1100px 460px at 82% -12%, rgba(228, 162, 13, .17), transparent 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--hair);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 54px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.04;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.hero-body {
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.62;
  color: var(--ink-mid);
  max-width: 34em;
  margin: 0 0 26px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-from {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 16px 0 0;
}
.hero-from b { color: var(--ink); font-size: 15px; }

/* The hero's right column: a real card, the thing being sold. */
.hero-art {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.hero-art .card3d-stage { max-width: 380px; width: 100%; }

/* ── The not-insurance statement ─────────────────────────────────────────── */
/* SCOPE 9 - unmistakable, not buried in terms. It gets its own band, its own
   border and a left rule so it reads as a statement rather than fine print. */

.disclaimer {
  border-left: 4px solid var(--gold-deep);
  background: var(--shell-raised);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  max-width: 64em;
}
.disclaimer h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-family: var(--sans);
  font-weight: 700;
}
.disclaimer p { margin: 0; color: var(--ink-mid); line-height: 1.62; font-size: 15px; }

/* ── Trust strip ─────────────────────────────────────────────────────────── */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px 34px;
}
.trust-item { display: flex; gap: 13px; align-items: flex-start; }
.trust-item svg {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  stroke: var(--gold-deep); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.trust-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.trust-item span { font-size: 13.8px; color: var(--ink-mid); line-height: 1.55; }

/* ── Feature tiles ───────────────────────────────────────────────────────── */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}

.tile {
  background: var(--shell-raised);
  border: 1px solid var(--shell-hair);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tile-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--cream-deep);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.tile-icon svg {
  width: 21px; height: 21px;
  stroke: var(--gold-deep); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.tile h3 { margin: 0; font-size: 16.5px; font-family: var(--sans); font-weight: 600; }
.tile p { margin: 0; font-size: 14.2px; line-height: 1.6; color: var(--ink-mid); }
.tile .price {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}

/* ── Numbered steps ──────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px 26px;
  counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 13px;
}
.step h3 { margin: 0 0 6px; font-size: 16.5px; font-family: var(--sans); font-weight: 600; }
.step p { margin: 0; font-size: 14.2px; line-height: 1.6; color: var(--ink-mid); }

/* ── Packages ────────────────────────────────────────────────────────────── */

.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pack {
  position: relative;
  background: var(--shell-raised);
  border: 1px solid var(--shell-hair);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pack:hover {
  transform: translateY(-3px);
  border-color: var(--gold-deep);
  box-shadow: 0 16px 34px -20px rgba(36, 31, 26, .38);
}

/* The most-chosen package, marked once. Two "recommended" badges recommend
   nothing. */
.pack.featured {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 1px var(--gold-deep) inset;
}
.pack-flag {
  position: absolute;
  top: -11px; left: 22px;
  background: var(--gold-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.pack h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-family: var(--sans);
  font-weight: 600;
}
.pack .pack-for { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }

.pack .amount {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.02em;
}
.pack .amount span { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.pack .each { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; }

.pack ul {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.8px;
  color: var(--ink-mid);
}
.pack li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.pack li::before {
  content: "";
  width: 15px; height: 15px; flex: none; margin-top: 2px;
  background: var(--gold-deep);
  border-radius: 50%;
  /* A tick, drawn with a mask so it needs no icon font and no extra request. */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%23fff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round" d="M5 12.5l4.5 4.5L19 7.5"/></svg>') center/13px no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%23fff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round" d="M5 12.5l4.5 4.5L19 7.5"/></svg>') center/13px no-repeat;
}
.pack .btn { margin-top: auto; text-align: center; }

/* ── Split sections (text beside a list) ─────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
  align-items: center;
}

.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; line-height: 1.58; }
.ticks li::before {
  content: "";
  width: 19px; height: 19px; flex: none; margin-top: 2px;
  border-radius: 50%;
  background: var(--gold-deep);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%23fff" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round" d="M5 12.5l4.5 4.5L19 7.5"/></svg>') center/16px no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%23fff" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round" d="M5 12.5l4.5 4.5L19 7.5"/></svg>') center/16px no-repeat;
}
.band-deep .ticks li { color: rgba(232, 238, 246, .9); }
.band-deep .ticks li::before { background: var(--gold); }

/* ── Audience cards ──────────────────────────────────────────────────────── */

.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }

.aud {
  background: var(--shell-raised);
  border: 1px solid var(--shell-hair);
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aud h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.aud p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-mid); }
.aud a { margin-top: auto; padding-top: 8px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
/* <details>, so it opens, closes and is keyboard-reachable with no script. */

.faq { max-width: 54em; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--hair);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 34px 17px 0;
  font-size: 16.5px;
  font-weight: 600;
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  background: var(--ink-soft);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%23000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M6 9l6 6 6-6"/></svg>') center/12px no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%23000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M6 9l6 6 6-6"/></svg>') center/12px no-repeat;
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-mid);
  max-width: 46em;
}

/* ── Closing CTA ─────────────────────────────────────────────────────────── */

.closer { text-align: center; padding: 74px 0; }
.closer h2 { margin-bottom: 10px; }
.closer p { max-width: 34em; margin: 0 auto 26px; font-size: 16.5px; color: rgba(232, 238, 246, .82); line-height: 1.6; }
.closer .hero-actions { justify-content: center; }

/* On the navy band the secondary button needs its own treatment - the default
   cream border disappears against it. */
.band-deep .btn:not(.btn-primary) {
  background: transparent;
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.band-deep .btn:not(.btn-primary):hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ── Site footer ─────────────────────────────────────────────────────────── */

.site-foot { background: var(--navy); color: rgba(232, 238, 246, .74); padding: 52px 0 26px; }
.site-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 34px;
}
.site-foot h4 {
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, .55);
  font-weight: 700;
}
.site-foot a { color: rgba(232, 238, 246, .82); text-decoration: none; font-size: 14px; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-foot .foot-about { font-size: 14.2px; line-height: 1.62; max-width: 30em; }
.site-foot .foot-brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff;
  margin-bottom: 13px;
}
.site-foot .foot-tel { color: var(--gold); font-weight: 600; font-size: 15.5px; }

.site-foot-base {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 12.8px;
  color: rgba(232, 238, 246, .58);
}

/* ── Public header ───────────────────────────────────────────────────────── */

.pub-head {
  background: var(--shell-raised);
  border-bottom: 1px solid var(--shell-hair);
  position: sticky;
  top: 0;
  z-index: 30;
}
.pub-head-in { display: flex; align-items: center; gap: 18px; padding: 13px 0; }
.pub-nav { display: flex; gap: 3px; margin-left: 14px; }
.pub-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.2px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  white-space: nowrap;
}
.pub-nav a:hover { background: var(--cream); color: var(--ink); }
.pub-nav a.on { color: var(--gold-deep); font-weight: 600; }
.pub-head .spacer { flex: 1; }
.pub-head-actions { display: flex; align-items: center; gap: 8px; }

/* The mobile nav is a checkbox and a label - no script, and it survives a
   back-button return with the menu closed, which a JS toggle often does not. */
.pub-burger { display: none; }
.pub-burger-btn { display: none; }

@media (max-width: 940px) {
  .pub-burger-btn {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 1px solid var(--shell-hair);
    border-radius: 9px;
    background: var(--shell-raised);
    cursor: pointer;
    order: 3;
  }
  .pub-burger-btn svg {
    width: 19px; height: 19px;
    stroke: var(--ink-mid); fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .pub-nav {
    display: none;
    order: 9;
    flex-basis: 100%;
    flex-direction: column;
    margin: 4px 0 8px;
    gap: 1px;
  }
  .pub-burger:checked ~ .pub-nav { display: flex; }
  .pub-nav a { padding: 11px 12px; font-size: 15px; }
  .pub-head-in { flex-wrap: wrap; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 44px; }
  .band { padding: 50px 0; }
  .split { gap: 30px; }
  .closer { padding: 54px 0; }
}

@media (max-width: 560px) {
  .band { padding: 40px 0; }
  .tile, .pack, .aud { padding: 20px 18px; }
  .site-foot-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* Respect a reduced-motion preference: the hover lift is decoration. */
@media (prefers-reduced-motion: reduce) {
  .pack, .pack:hover { transition: none; transform: none; }
  .faq summary::after { transition: none; }
}

/* Three sample cards, fanned. Shows the choice a member gets (7.1) without
   needing three separate figures down the page. */
.sample-stack {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  perspective: 1400px;
}
.sample-stack > * {
  position: absolute;
  width: min(330px, 88%);
  transition: transform .22s ease;
}
.sample-stack > *:nth-child(1) { transform: translate(-26px, -46px) rotate(-6deg); z-index: 1; }
.sample-stack > *:nth-child(2) { transform: translate(0, 0) rotate(-1deg);         z-index: 3; }
.sample-stack > *:nth-child(3) { transform: translate(26px, 46px) rotate(5deg);    z-index: 2; }

/* Hovering the stack spreads it, so all three are readable. */
.sample-stack:hover > *:nth-child(1) { transform: translate(-46px, -62px) rotate(-8deg); }
.sample-stack:hover > *:nth-child(3) { transform: translate(46px, 62px) rotate(7deg); }

.hero-art { display: flex; justify-content: center; perspective: 1400px; }
.hero-art > * { width: min(380px, 100%); }

@media (max-width: 640px) {
  /* Fanned cards do not survive a narrow column - stack them plainly instead. */
  .sample-stack { display: flex; flex-direction: column; gap: 16px; min-height: 0; perspective: none; }
  .sample-stack > * { position: static; width: 100%; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sample-stack > *, .sample-stack:hover > * { transition: none; }
}

/* ── How it works, as an infographic ─────────────────────────────────────── */
/*
 * The four steps were a plain numbered list. This makes them a JOURNEY: a
 * connected track with an illustrated panel per stage, so the sequence is read
 * from the shape of the thing rather than only from the numbers.
 *
 * Every illustration is inline SVG drawn from the same brand tokens. No icon
 * font, no image files, nothing to fail to load - the audience for this page is
 * substantially on a cheap phone on someone else's wifi.
 */

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
  counter-reset: jstep;
}

/* The connecting track. One line behind all four, drawn with a pseudo-element on
   the container so it cannot fall out of alignment with the markers. */
.journey::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--gold-deep) 0%,
    var(--gold) 34%,
    var(--teal) 68%,
    var(--blue) 100%);
  opacity: .38;
  z-index: 0;
}

.jstep {
  counter-increment: jstep;
  position: relative;
  z-index: 1;
  padding: 0 16px;
  text-align: center;
}

/* The numbered marker, sitting on the track. */
.jstep-dot {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--shell-raised);
  border: 2px solid var(--gold-deep);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--gold-deep);
  box-shadow: 0 4px 14px -6px rgba(20, 16, 12, .3);
}
.jstep-dot::before { content: counter(jstep); }

/* The illustration. Deliberately generous - this is the part that makes it an
   infographic rather than a list with circles. */
.jart {
  width: 100%;
  max-width: 168px;
  margin: 0 auto 16px;
  aspect-ratio: 1.35;
  display: block;
}
.jart .ln  { fill: none; stroke: var(--ink-mid); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.jart .hl  { fill: none; stroke: var(--gold-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jart .fl  { fill: var(--cream-deep); }
.jart .fg  { fill: var(--gold); }
.jart .ft  { fill: var(--teal); }
.jart .fb  { fill: var(--blue); }
.jart .fo  { fill: var(--orange); }

.jstep h3 {
  margin: 0 0 7px;
  font-size: 16.5px;
  font-family: var(--sans);
  font-weight: 600;
}
.jstep p { margin: 0; font-size: 14px; line-height: 1.58; color: var(--ink-mid); }

/* Two-up, then one-up. The track only makes sense on a single row, so it goes
   away below that and each step keeps its own marker. */
@media (max-width: 1000px) {
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .journey::before { display: none; }
}

@media (max-width: 560px) {
  .journey { grid-template-columns: 1fr; gap: 34px; }
  .jstep { padding: 0; display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; text-align: left; align-items: start; }
  .jstep-dot { margin: 0; }
  .jart { grid-column: 2; max-width: 150px; margin: 0 0 12px; }
  .jstep h3, .jstep p { grid-column: 2; }
}
