/* ==================================================================
   Cliconnect — calf recovery device
   Palette reads clinical, not consumer-tech: deep pine field for the
   3D hero, cool mineral paper below it, amber only where air moves.
   ================================================================== */

:root {
  --pine:      #06231d;
  --pine-lift: #0e332b;
  --mineral:   #dde4e0;
  --paper:     #f4f6f3;
  --ink:       #10201c;
  --steel:     #556661;   /* muted text — AA on paper (5.6) and mineral (4.7) */

  /* From the logo gradient. Two greens on purpose: the bright one is for
     dark surfaces and for fills, the deep one for green TEXT on light,
     where the bright one only reaches 1.9:1 and disappears. */
  --signal:     #5fc96f;  /* on pine: 8.0 — CTAs, indicators, fills   */
  --signal-ink: #237035;  /* on light: 5.6 paper / 4.7 mineral — text */
  --cyan:       #1fd6d6;  /* motion and active state, dark surfaces   */
  --teal:       #136466;  /* on light: 6.4 paper / 5.3 mineral        */
  --clay:       #a83c24;
  --line:       color-mix(in srgb, var(--ink) 22%, transparent);
  --line-soft:  color-mix(in srgb, var(--ink) 12%, transparent);

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body:    "Karla", system-ui, -apple-system, sans-serif;

  --shell: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
}

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

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

/* the masthead is fixed, so anchor targets need room above them */
:target, section, [id] { scroll-margin-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.09rem);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; }

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

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--signal); color: var(--pine); padding: .7rem 1.1rem; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------------------- type ---------------------------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  font-variation-settings: "wdth" 92;
}

h1 { font-size: clamp(2.9rem, 8.4vw, 6.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -.01em; }

p { margin: 0 0 1.1em; max-width: 62ch; }

.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--steel); }

/* --------------------------- header --------------------------- */

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  color: var(--paper);
  transition: background .45s cubic-bezier(.22, .61, .36, 1),
              color .45s cubic-bezier(.22, .61, .36, 1),
              box-shadow .45s cubic-bezier(.22, .61, .36, 1);
}
.masthead.is-docked {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  font-family: var(--display); font-weight: 800; font-size: 1.12rem;
  letter-spacing: -.03em; text-decoration: none;
}
.wordmark img { width: 30px; height: auto; }
.wordmark-text b { color: var(--signal-ink); font-weight: inherit; }
/* over the dark hero the bright green is the legible one */
.masthead:not(.is-docked) .wordmark-text b { color: var(--signal); }

.masthead nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.75rem); font-size: .93rem; }
.masthead nav a {
  text-decoration: none; opacity: .82;
  display: inline-flex; align-items: center; min-height: 44px;
}
.masthead nav a:hover { opacity: 1; }
/* needs to out-specify `.masthead nav a`, which sets display for tap size */
@media (max-width: 720px) { .masthead nav a.nav-hide { display: none; } }

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

.hero {
  position: relative;
  min-height: 100svh;
  background: radial-gradient(120% 90% at 78% 18%, var(--pine-lift) 0%, var(--pine) 62%);
  color: var(--paper);
  display: grid;
  align-items: end;
  padding: 7rem 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}

#stage {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-photo { /* WebGL fallback */
  position: absolute; inset: 0; z-index: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .34; filter: saturate(.5) contrast(1.05);
  display: none;
}
.no-webgl .hero-photo { display: block; }
.no-webgl .hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg,
    color-mix(in srgb, var(--pine) 92%, transparent) 0%,
    color-mix(in srgb, var(--pine) 70%, transparent) 45%,
    color-mix(in srgb, var(--pine) 38%, transparent) 100%);
}
.no-webgl #stage { display: none; }

.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 12ch; text-shadow: 0 2px 40px rgba(0,0,0,.45); }
.hero-copy p { max-width: 40ch; color: color-mix(in srgb, var(--mineral) 88%, transparent); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.6rem;
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--mineral) 26%, transparent);
}
.hero-meta div { min-width: 7rem; }
.hero-meta b {
  display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700;
  letter-spacing: -.03em; color: var(--signal);
}
.hero-meta small { color: color-mix(in srgb, var(--mineral) 70%, transparent); font-size: .84rem; }

/* readout tied to the stage the 3D wrap is in */
.readout {
  position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); top: 42%;
  z-index: 2; text-align: right; font-family: var(--display);
  color: color-mix(in srgb, var(--mineral) 75%, transparent);
  font-size: .82rem; line-height: 2.1; letter-spacing: .02em;
}
.readout li { list-style: none; opacity: .38; transition: opacity .3s, color .3s; }
.readout li.on { opacity: 1; color: var(--cyan); }
.readout ul { margin: 0; padding: 0; }
@media (max-width: 720px) { .readout { display: none; } }

/* --------------------------- buttons -------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; padding: .95rem 1.75rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  background: transparent; border: 1.5px solid transparent; border-radius: 999px;
  transition: transform .2s cubic-bezier(.22, .61, .36, 1),
              background .28s cubic-bezier(.22, .61, .36, 1),
              color .28s cubic-bezier(.22, .61, .36, 1),
              border-color .28s cubic-bezier(.22, .61, .36, 1);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--pine); }
.btn-primary:hover { background: #74dd83; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.btn-wide { width: 100%; }

/* -------------------------- sections -------------------------- */

section { padding-block: var(--section-y); }

.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  /* Text and picture should carry similar visual weight. Capping the picture
     stops a tall portrait shot from dwarfing three short paragraphs. */
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
  .split.flip > *:first-child { order: 2; }
}
.split figure { margin: 0; }
.split h2 { max-width: 20ch; }

/* Pictures sit in a mount, the way a print sits in a frame: paper border,
   hairline rule, and just enough shadow to lift it off the band behind. */
.frame {
  background: var(--paper);
  padding: clamp(.55rem, 1.3vw, .95rem);
  border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent);
  border-radius: 3px;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent),
    0 18px 40px -24px color-mix(in srgb, var(--ink) 45%, transparent);
  transition: box-shadow .5s cubic-bezier(.22, .61, .36, 1);
}
.frame:hover {
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent),
    0 24px 52px -24px color-mix(in srgb, var(--ink) 55%, transparent);
}
.frame img {
  border-radius: 1px;
  display: block;
  width: 100%;
  outline: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  outline-offset: -1px;
}

/* The box shots are objects, not scenes, so they run at half size. The column
   narrows with them, otherwise the small picture floats in an empty half. */
.figure-half { max-width: 275px; margin-inline: auto; }
@media (min-width: 860px) {
  /* The figure is always first in the grid flow, even in a flipped split, so
     the narrow track is always the first one. The text track is capped too,
     otherwise a half-size picture sits beside a stretched wall of prose. */
  .split.compact { grid-template-columns: 17.5rem minmax(0, 40rem); justify-content: center; }
  /* Sections alternate sides down the page, so the narrow track has to be
     able to sit on the right as well as the left. */
  .split.compact.picture-right { grid-template-columns: minmax(0, 40rem) 17.5rem; }
}

/* Sections built around a small picture don't need full-height breathing room */
.section-tight { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* how it works — one cycle in three stages, so numbered */
.cycle { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 760px) { .cycle { grid-template-columns: repeat(3, 1fr); } }
.cycle-step { background: var(--paper); padding: 2rem clamp(1.2rem, 2.5vw, 2rem); }


.cycle-step b {
  font-family: var(--display); font-size: 2.6rem; font-weight: 800;
  color: var(--signal-ink);
  display: block; line-height: 1; margin-bottom: .6rem;
}
.cycle-step p { margin: 0; font-size: .97rem; color: var(--steel); }

/* specs */
.specs { border-top: 1px solid var(--line); }
.specs dl { display: grid; margin: 0; }
@media (min-width: 700px) { .specs dl { grid-template-columns: 14rem 1fr; } }
.specs dt {
  font-family: var(--display); font-weight: 700; padding: 1rem 0 .2rem;
  border-top: 1px solid var(--line);
}
.specs dd { margin: 0; padding: 1rem 0 1rem; color: var(--steel); }
@media (min-width: 700px) { .specs dd { border-top: 1px solid var(--line); padding-top: 1rem; } .specs dt { padding-bottom: 1rem; } }

/* read more / disclosure */
/* ------------------------------------------------------------------
   Disclosures. Each one is a card, not a hairline row: on a phone a
   1px rule at 14% opacity is invisible, and the question needs to look
   like something you can press.
   ------------------------------------------------------------------ */
.reveal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: .7rem;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.reveal:last-of-type { margin-bottom: 0; }

.reveal summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 56px;                       /* comfortably tappable */
  padding: 1.05rem 1.1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.3;
  color: var(--ink);
  transition: color .25s ease;
}
.reveal summary::-webkit-details-marker { display: none; }

/* The control: a filled circle with a + that becomes a −. Solid brand
   green, so it is visible at arm's length on a phone in daylight. */
.reveal summary::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 12px 2.5px no-repeat,
    linear-gradient(#fff, #fff) center / 2.5px 12px no-repeat,
    var(--signal-ink);
  transition: transform .38s cubic-bezier(.22, .61, .36, 1),
              background-size .38s cubic-bezier(.22, .61, .36, 1);
}
.reveal[open] summary::after {
  transform: rotate(180deg);
  background-size: 12px 2.5px, 0 12px;     /* the vertical stroke closes */
}

.reveal:hover { border-color: color-mix(in srgb, var(--signal-ink) 45%, var(--line)); }
.reveal summary:hover { color: var(--signal-ink); }

.reveal[open] {
  border-color: color-mix(in srgb, var(--signal-ink) 40%, transparent);
  box-shadow: 0 6px 22px -14px color-mix(in srgb, var(--ink) 55%, transparent);
}
.reveal[open] summary { padding-bottom: .55rem; }

.reveal .reveal-body {
  padding: 0 1.1rem 1.25rem;
  animation: unfold .42s cubic-bezier(.22, .61, .36, 1);
}
.reveal .reveal-body p { color: var(--steel); }
.reveal .reveal-body p:last-child { margin-bottom: 0; }
@keyframes unfold {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* On the mineral band the cards are paper, so they lift off it. */
.band-mineral .reveal, #faq .reveal { background: #fff; }

/* pricing */
.pricing { background: var(--pine); color: var(--paper); }
.pricing h2 { color: var(--paper); }
.pricing .lede { color: color-mix(in srgb, var(--mineral) 72%, transparent); }
.plans { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  transition: border-color .4s cubic-bezier(.22, .61, .36, 1),
              background .4s cubic-bezier(.22, .61, .36, 1);
  border: 1px solid color-mix(in srgb, var(--mineral) 28%, transparent);
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 6px;
  display: flex; flex-direction: column; gap: .35rem;
}
.plan.featured { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 8%, transparent); }
.plan .tag {
  align-self: flex-start; background: var(--signal); color: var(--pine);
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  padding: .25rem .65rem; border-radius: 3px;
}
.plan .tag-slot { min-height: 1.9rem; display: flex; align-items: flex-start; }
.plan p { flex: 1; }             /* pushes both cards' buttons to the same line */
.plan .price { font-family: var(--display); font-size: 3.1rem; font-weight: 800; letter-spacing: -.04em; }
.plan .was { color: color-mix(in srgb, var(--mineral) 55%, transparent); text-decoration: line-through; font-size: 1.15rem; margin-left: .5rem; }
.plan p { color: color-mix(in srgb, var(--mineral) 72%, transparent); }
.plan .btn { margin-top: 1rem; }
.plan small { color: color-mix(in srgb, var(--mineral) 55%, transparent); font-size: .82rem; }

.stock-note {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  font-size: .88rem; color: var(--signal);
}
.stock-note::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* order form */
.order { background: var(--paper); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .35rem; }
input, textarea, select {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: 1rem;
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 6px; background: #fff; color: var(--ink);
}
input, textarea, select { transition: border-color .25s ease, box-shadow .25s ease; }
input:focus, textarea:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent);
}
textarea { min-height: 6.5rem; resize: vertical; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--clay); font-size: .85rem; margin-top: .3rem; }
.notice { padding: 1rem 1.2rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: .95rem; }
.notice.ok { background: color-mix(in srgb, var(--pine) 12%, var(--paper)); border-left: 4px solid var(--pine); }
.notice.bad { background: color-mix(in srgb, var(--clay) 12%, var(--paper)); border-left: 4px solid var(--clay); }

/* faq + footer */
.faq { max-width: 780px; }
#faq { background: var(--mineral); }
#faq h2 { margin-bottom: .4rem; }
#faq .faq > .lede { margin-bottom: 2rem; }
footer {
  background: var(--pine); color: color-mix(in srgb, var(--mineral) 70%, transparent);
  padding-block: 3.5rem 2.5rem; font-size: .92rem;
}
footer a { color: var(--mineral); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
footer h3 { color: var(--paper); font-size: 1rem; margin-bottom: .8rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: .1rem; }
footer li a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding-block: .35rem;   /* thumb-sized, not text-sized */
}
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--mineral) 18%, transparent); font-size: .82rem; }

/* consent bar */
.consent {
  transition: opacity .4s cubic-bezier(.22, .61, .36, 1);
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 34rem; background: var(--ink); color: var(--paper);
  padding: 1.1rem 1.25rem; border-radius: 6px; font-size: .88rem;
  display: none; box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.consent.show { display: block; }
@media (min-width: 900px) { .consent { left: auto; right: 1.5rem; bottom: 1.5rem; } }
.consent p { margin: 0 0 .8rem; max-width: none; }
.consent div { display: flex; gap: .6rem; }
.consent button { padding: .5rem 1.1rem; font-size: .88rem; }
.consent .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 45%, transparent); }
.consent .btn-ghost:hover { background: color-mix(in srgb, var(--paper) 14%, transparent); }

/* ---- small utilities (kept minimal; inline style attributes are blocked by CSP) ---- */
.narrow        { max-width: 820px; }
.measure-short { max-width: 34ch; }
.band-mineral  { background: var(--mineral); }
.mt-lg         { margin-top: 2.5rem; }
.mt-md         { margin-top: 1.5rem; }
.mb-md         { margin-bottom: 1rem; }
.unit          { font-size: 1rem; }
.fineprint     { font-size: .85rem; color: var(--steel); }
.muted         { color: var(--steel); }
.lede-center   { color: var(--mineral); margin-inline: auto; }

/* the five icons printed on the retail box */
.badges { display: grid; gap: 1px; background: var(--line); margin-top: 2rem; }
@media (min-width: 380px) { .badges { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px) { .badges { grid-template-columns: repeat(5, 1fr); } }
.badge { background: var(--paper); padding: 1.4rem 1rem; text-align: center; }
.badge b {
  display: block; font-family: var(--display); font-size: .95rem;
  margin-bottom: .25rem; letter-spacing: -.01em;
}
.badge span { font-size: .84rem; color: var(--steel); }

/* ------------------------------------------------------------------
   Sticky order bar. Phones only: the desktop header already carries an
   Order button, but on a phone the nav collapses and the price scrolls
   away, so it comes back along the bottom once the hero is behind you.
   ------------------------------------------------------------------ */
.mobile-bar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  display: none; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--pine) 96%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid color-mix(in srgb, var(--signal) 25%, transparent);
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
.mobile-bar.up { transform: none; }
.mobile-bar b {
  font-family: var(--display); font-size: 1.5rem; color: var(--signal);
  display: block; line-height: 1;
}
.mobile-bar span { font-size: .78rem; color: color-mix(in srgb, var(--mineral) 70%, transparent); }
.mobile-bar .btn { padding: .8rem 1.4rem; }

@media (max-width: 720px) {
  .mobile-bar { display: flex; }
  footer { padding-bottom: 6.5rem; }      /* clear the bar */
  .consent { bottom: 1rem; }
}

/* no grey flash on tap */
a, button, summary { -webkit-tap-highlight-color: color-mix(in srgb, var(--signal) 22%, transparent); }

/* ------------------------------------------------------------------
   Assurance strip under the hero. Three claims, hairline separated,
   no icons — the words carry it.
   ------------------------------------------------------------------ */
.assurances { padding-block: clamp(2.25rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); }
.assurances ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .assurances ul { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .assurances li { padding-inline: clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
  .assurances li:first-child { padding-left: 0; border-left: 0; }
  .assurances li:last-child { padding-right: 0; }
}
.assurances b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 1.02rem; letter-spacing: -.015em; margin-bottom: .25rem;
}
.assurances b::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 7px; height: 7px; margin-right: .55rem; border-radius: 50%;
  background: var(--signal-ink);
}
.assurances span { font-size: .92rem; color: var(--steel); }

/* ------------------------------------------------------------------
   Reviews. Deliberately plain: no stock avatars, no giant quote marks.
   A real message from a real person is more convincing left alone.
   ------------------------------------------------------------------ */
.reviews { background: var(--mineral); }
.review-grid { display: grid; gap: 1px; background: var(--line); margin-top: 2.5rem; border-block: 1px solid var(--line); }
@media (min-width: 820px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

.review {
  margin: 0; background: #fff;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; flex-direction: column; gap: .9rem;
}
.review .stars { color: var(--signal-ink); letter-spacing: .12em; font-size: 1.05rem; line-height: 1; }
.review blockquote {
  margin: 0; flex: 1;
  font-size: 1.01rem; line-height: 1.6;
}
.review figcaption {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  padding-top: .8rem; border-top: 1px solid var(--line);
}
.review figcaption span {
  display: block; font-family: var(--body); font-weight: 400;
  font-size: .85rem; color: var(--steel); margin-top: .1rem;
}

/* ==================================================================
   Phone layout pass. One rhythm for every section, even gutters, and
   headings that do not eat half the screen.
   ================================================================== */
@media (max-width: 720px) {

  /* one vertical rhythm everywhere, so the page scrolls evenly */
  section { padding-block: 3.5rem; }
  .assurances { padding-block: 2rem; }
  .section-tight { padding-block: 3.5rem; }

  /* headings sized for a 390px screen rather than a desktop column */
  h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.75rem, 7.4vw, 2.2rem); }

  /* a consistent gap between every section intro and what follows */
  section > .shell > h2 { margin-bottom: .45rem; }
  section > .shell > .lede { margin-bottom: 1.75rem; }
  .split h2, .split .lede { max-width: none; }

  /* equal side gutters, matched to the shell, on every full-width band */
  .shell { width: calc(100% - 2.5rem); }

  /* stacked splits: picture and text get the same spacing either way */
  .split { gap: 1.75rem; }
  .split figure { order: 2; }            /* text first, picture under it */
  .figure-half { max-width: 240px; }

  /* the stage-three rows read as one list instead of three loose blocks */
  .cycle { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
  .cycle-step { padding: 1.4rem 1.25rem; }
  .cycle-step b { font-size: 2rem; }

  .badges { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
  .badge { padding: 1.15rem .9rem; }

  .review-grid { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }

  /* buttons go full width so every tap target lines up */
  .hero-copy .btn, .split .btn, .order .btn[type="submit"] { width: 100%; }
  .hero-copy p:has(.btn) { display: grid; gap: .6rem; }

  /* the four figures as a true 2x2, so the columns line up */
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem 1rem;
    margin-top: 1.8rem;
  }
  .hero-meta div { min-width: 0; }

  /* specs: even rows instead of a label hugging its rule */
  .specs dt { padding: 1.05rem 0 0; border-top: 1px solid var(--line); }
  .specs dd { padding: .2rem 0 1.05rem; }

  /* the assurance list gets the same card treatment as everything else */
  .assurances ul { gap: 1.15rem; }
}
