/* ==========================================================
   Uncount: one-page site
   ========================================================== */

/* Headline face, served from this site (no requests to Google). SIL Open Font License: fonts/OFL.txt */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-condensed-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff;
  --tile: #f2f6f3;
  --forest: #0c2a21;
  --hair: rgba(16, 36, 29, .12);

  --ink: #10241d;
  --ink-2: #4b5953;
  --ink-3: #6f7a74;

  --green: #0f8f59;
  --green-ink: #0b6e46;
  --green-hi: #3fd394;
  --brand: linear-gradient(135deg, #0a7d4b 0%, #12a466 55%, #3ccb87 100%);
  --brand-text: linear-gradient(100deg, #0a6e45 0%, #0f9259 50%, #1fae6c 100%);
  --clay: #a9532f;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --topbar-h: 56px;
  --gutter: 20px;
  --settle: cubic-bezier(.22, 1, .36, 1); /* fast start, no overshoot */

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.0625rem/1.5 var(--text);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a, button, summary { touch-action: manipulation; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: 760px; }
.wrap--wide { max-width: 1440px; } /* top bar and hero: headline far left, phones far right */
.section { padding: 80px 0; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.004em; text-wrap: balance; }
.h1 { font-size: clamp(3rem, 13.2vw, 6.4rem); line-height: .92; }
.h2 { font-size: clamp(2.5rem, 10vw, 4.4rem); line-height: .94; margin-bottom: 28px; }
.grad { background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font: 600 .875rem/1.2 var(--text); letter-spacing: -.005em; color: var(--green-ink); margin-bottom: 14px; }
.kicker--light { color: var(--green-hi); }
.lede {
  font-size: clamp(1.125rem, 4.4vw, 1.375rem); line-height: 1.4; letter-spacing: -.016em;
  color: var(--ink-2); max-width: 30ch; margin: 18px 0 26px;
}
.big {
  font-size: clamp(1.25rem, 4.8vw, 1.625rem); line-height: 1.4; letter-spacing: -.02em;
  color: var(--ink-2); max-width: 34ch;
}
.micro { font-size: .875rem; color: var(--ink-3); margin-top: 10px; }
.micro--light { color: #a9c0b4; }
.fine { font-size: .8125rem; line-height: 1.45; color: var(--ink-3); margin-top: 16px; letter-spacing: 0; }
.fine--light { color: #8fa69a; margin-top: 40px; }
.fine--center { text-align: center; margin-top: 24px; }

/* ---------- Buttons & badge (feedback on press) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--brand); color: #fff; text-decoration: none;
  font: 600 1.0625rem/1 var(--text); letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 20px -10px rgba(10, 125, 75, .65);
  transition: transform .35s var(--settle), filter .2s ease;
  user-select: none; -webkit-user-select: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .9375rem; }
.btn--quiet { background: rgba(15, 143, 89, .1); color: var(--green-ink); box-shadow: none; }

/* corner radius matches the artwork: 34px on a 720 × 213 image */
.badge { display: inline-block; line-height: 0; border-radius: 4.72% / 15.96%; transition: transform .35s var(--settle); -webkit-touch-callout: none; }
.badge:active { transform: scale(.96); transition-duration: .1s; }
.badge img { width: 170px; height: auto; }
.cta { margin-top: 40px; }
.hero .cta { margin-top: 0; }
.cta--center { text-align: center; }

/* ---------- Top bar: translucent material ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow .3s ease, background-color .3s ease;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--hair); }
/* over a dark green section the bar turns dark glass instead of a muddy grey */
.topbar.is-dark { background: rgba(12, 42, 33, .74); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.topbar.is-dark .logo { color: #eef4ef; }
.topbar .logo { transition: color .3s ease; display: inline-flex; align-items: center; gap: 8px; }
/* The Uncount mark, drawn in the text colour: black on white, white over the dark green sections */
.topbar .logo::before {
  content: ""; flex: none; width: 21px; height: 24px; margin-top: -2px;
  background: currentColor;
  -webkit-mask: url("images/mark.png") center / contain no-repeat;
          mask: url("images/mark.png") center / contain no-repeat;
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font: 700 1.5rem/1 var(--display); letter-spacing: -.005em; text-decoration: none; color: var(--ink); }

/* ---------- iPhone frame ---------- */
.phone {
  --w: 240px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * .028);
  border-radius: calc(var(--w) * .172);
  background: #151917;
  box-shadow:
    inset 0 0 0 1px #4a514d,
    inset 0 0 0 calc(var(--w) * .012) #0b0d0c,
    0 30px 60px -28px rgba(16, 36, 29, .5),
    0 60px 100px -50px rgba(16, 36, 29, .3);
}
.phone img { width: 100%; height: auto; aspect-ratio: 402 / 874; border-radius: calc(var(--w) * .145); background: #eef4ef; }
[data-speed] { transform: translate3d(0, var(--py, 0px), 0); }

/* ---------- Hero: copy + two phones ---------- */
/* the hero slides up under the translucent top bar, so the photo shows through it */
.hero {
  position: relative; isolation: isolate;
  margin-top: calc(-1 * var(--topbar-h));
  padding: calc(28px + var(--topbar-h)) 0 24px;
}
/* Frosted photo: blurred, then veiled in white so the headline and phones stay in front.
   Phones: clearest low down behind the phones, near-white behind the headline at the top. */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  filter: blur(6px) saturate(1.15);
  transform: scale(1.08); /* hides the soft edge the blur leaves */
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,.8) 0%, rgba(255,255,255,.68) 38%,
    rgba(255,255,255,.32) 62%, rgba(255,255,255,.45) 80%, #fff 94%);
}
.hero__grid { display: grid; gap: 32px; }
.hero__art { position: relative; height: 480px; display: flex; justify-content: center; }
.hero__art::before {
  content: ""; position: absolute; inset: -4% -10% 0;
  background: radial-gradient(closest-side, rgba(60, 203, 135, .26), rgba(60, 203, 135, 0));
  pointer-events: none;
}
.hero__back { position: absolute; left: 50%; top: 44px; margin-left: -178px; }
.hero__back .phone { --w: 200px; transform: rotate(-7deg); }
.hero__front { position: relative; margin-left: 76px; }
.hero__front .phone { --w: 232px; transform: rotate(2.5deg); }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > * { animation: fade-up .9s var(--settle) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: .05s; }
  .js .hero__copy > :nth-child(3) { animation-delay: .1s; }
  .js .hero__copy > :nth-child(4) { animation-delay: .15s; }
  .js .hero__front, .js .hero__back { animation: rise 1.1s var(--settle) both; }
  .js .hero__front { animation-delay: .12s; }
  .js .hero__back { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; translate: 0 50px; } }
@keyframes fade-up { from { opacity: 0; translate: 0 12px; } }

/* ---------- Why ---------- */
.why { padding-top: 72px; }
.why__shift { font: 600 1.0625rem/1.3 var(--text); letter-spacing: -.015em; margin: 56px 0 18px; }
.levers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.levers li {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: 18px; background: var(--tile);
  font: 700 1.3125rem/1.05 var(--display);
}
.lever__icon { flex: none; display: block; line-height: 0; }
.lever__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Dark green sections ---------- */
.dark {
  background:
    radial-gradient(700px 420px at 88% 0%, rgba(52, 194, 127, .2), transparent 62%),
    radial-gradient(560px 360px at 0% 100%, rgba(52, 194, 127, .08), transparent 60%),
    var(--forest);
  color: #eef4ef;
}
.dark .grad, .dark .step__n { background-image: linear-gradient(100deg, #3fd394 0%, #8fe6b8 100%); }
.dark .micro { color: #a9c0b4; }
.dark .big, .dark .step p { color: #c3d3ca; }
.dark .step, .dark .step:last-child { border-color: rgba(255, 255, 255, .12); }
.dark :focus-visible { outline-color: var(--green-hi); }

/* ---------- How it works ---------- */
.steps { display: grid; }
.step { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--hair); }
.step:last-child { border-bottom: 1px solid var(--hair); }
.step__n {
  flex: none; width: 40px;
  font: 700 3rem/.85 var(--display);
  background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font: 700 1.625rem/1.05 var(--display); margin-bottom: 6px; }
.step p { color: var(--ink-2); max-width: 36ch; }

/* ---------- What you get: gallery ---------- */
.inside .h2 { margin-bottom: 24px; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 320px);
  gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -3px; }
.card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  height: 470px; overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(320px 260px at 100% 0%, rgba(52, 194, 127, .16), transparent 70%),
    var(--forest);
  color: #f3efe6;
  padding: 26px 24px 0;
}
.card h3 { font: 700 1.75rem/1 var(--display); margin-bottom: 8px; text-wrap: balance; }
.card p { font-size: .9375rem; line-height: 1.45; color: #c3d3ca; }
.card__media { margin-top: 24px; display: flex; justify-content: center; }
.card__media .phone { --w: 220px; box-shadow: inset 0 0 0 1px #4a514d, inset 0 0 0 calc(var(--w) * .012) #0b0d0c, 0 30px 60px -20px rgba(0,0,0,.6); }
/* the coach chat sits low on its screen: show the lower half, text underneath */
.card--low { padding: 0 24px 26px; }
.card--low .card__media { order: -1; flex: 1; margin: 0 0 22px; align-items: flex-end; min-height: 0; }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(16, 36, 29, .18); transition: background-color .3s ease, width .35s var(--settle); }
.dots i.is-on { width: 20px; border-radius: 4px; background: var(--green); }


/* ---------- MRI ---------- */
.mri {
  background:
    radial-gradient(700px 420px at 85% 15%, rgba(52, 194, 127, .22), transparent 60%),
    radial-gradient(600px 380px at 0% 100%, rgba(169, 83, 47, .14), transparent 60%),
    var(--forest);
  color: #f3efe6;
  padding: 80px 0 56px;
  overflow: hidden;
}
.mri__grid { display: grid; gap: 40px; align-items: center; }
.mri__copy > p:not(.kicker) { color: #c3d3ca; max-width: 42ch; }
.scale { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; font-size: .9375rem; color: #e4ece6; }
.scale li { display: inline-flex; align-items: center; gap: 8px; }
.scale b { color: var(--green-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.scale .b--r { color: #ff7a62; }
.scale .b--o { color: #f5b83d; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sw--r { background: #e0452c; }
.sw--o { background: #f29a33; }
.sw--g { background: #34c27f; }
.mri__cta { margin-top: 0; text-align: center; }

.mri__panel {
  padding: 32px 20px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.1);
}
.gauge { position: relative; max-width: 320px; margin: 0 auto; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 16; stroke-linecap: round; }
.gauge__arc { fill: none; stroke: url(#gArc); stroke-width: 16; stroke-linecap: round; }
.gauge__knob { fill: #f3efe6; stroke: #34c27f; stroke-width: 5; }
.gauge__read { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-direction: column; align-items: center; }
.gauge__label { font: 600 .6875rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--green-hi); }
.gauge__num { font: 700 5.25rem/.85 var(--display); font-variant-numeric: tabular-nums; margin-top: 8px; color: var(--green-hi); transition: color .4s ease; }
.gauge__num.is-okay { color: #f5b83d; }
.gauge__num.is-resisting { color: #ff7a62; }
.gauge__state { margin-top: 6px; font-weight: 600; font-size: .9375rem; color: #dfe9e2; }

.weeks { margin-top: 26px; }
.weeks svg { width: 100%; height: auto; }
.weeks__band { fill: rgba(52, 194, 127, .12); stroke: rgba(52, 194, 127, .3); stroke-dasharray: 3 4; transition: fill .4s ease, stroke .4s ease; }
.weeks__bandlabel { fill: var(--green-hi); font: 700 10px var(--text); letter-spacing: .14em; transition: fill .4s ease; }
.weeks[data-state="resisting"] .weeks__band { fill: rgba(224, 69, 44, .12); stroke: rgba(224, 69, 44, .38); }
.weeks[data-state="resisting"] .weeks__bandlabel { fill: #ff7a62; }
.weeks[data-state="okay"] .weeks__band { fill: rgba(242, 154, 51, .12); stroke: rgba(242, 154, 51, .38); }
.weeks[data-state="okay"] .weeks__bandlabel { fill: #f5b83d; }
.weeks__head { fill: #0e3226; stroke: #e0452c; stroke-width: 3.5; opacity: 0; } /* drawn like the end dot, so the hand-off is invisible */
.weeks__area { fill: url(#gArea); transition: opacity .6s ease; }
.weeks__line { fill: none; stroke: url(#gLine); stroke-width: 4; stroke-linecap: round; }
.weeks__dot { fill: #0e3226; stroke-width: 3.5; }
.weeks__dot--start { stroke: #e0452c; }
.weeks__dot--end { stroke: #34c27f; }
.weeks__val { font: 700 22px var(--display); }
.weeks__val--start { fill: #ff7a62; }
.weeks__val--end { fill: var(--green-hi); transition: opacity .15s ease; }
.weeks__x text { fill: #93a99d; font: 500 10.5px var(--text); }
.weeks figcaption { font-size: .8125rem; color: #93a99d; text-align: center; margin-top: 10px; }

/* ---------- Plan ---------- */
.plan__grid { display: grid; gap: 40px; align-items: center; }
.plan__copy > p:not(.stat):not(.fine) { color: var(--ink-2); max-width: 44ch; }
.stat { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hair); color: var(--ink-2); }
.stat__num {
  display: block; font-size: clamp(3.5rem, 15vw, 5rem); line-height: .95; margin-bottom: 4px;
  background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__text { display: block; max-width: 32ch; }
.stat__label { display: block; font-weight: 600; font-size: .875rem; color: var(--green-ink); margin-bottom: 6px; }
.plan__media { display: flex; justify-content: center; }
.plan__media .phone { --w: 250px; rotate: -2.5deg; }

/* ---------- Social proof ---------- */
.quotes {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 26px 24px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.1);
}
.quote__stars { color: #f5b83d; letter-spacing: .12em; font-size: .9375rem; margin-bottom: 14px; }
.quote blockquote { font: 600 1.1875rem/1.38 var(--text); letter-spacing: -.02em; margin-bottom: 22px; }
.quote figcaption { margin-top: auto; font-size: .9375rem; color: #93a99d; }

/* ---------- FAQ ---------- */
.faq__list { border-bottom: 1px solid var(--hair); }
.faq details { border-top: 1px solid var(--hair); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font: 600 1.0625rem/1.3 var(--text); letter-spacing: -.016em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310241d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--settle);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); padding: 0 28px 22px 0; max-width: 60ch; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--settle), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Final CTA ---------- */
.final { position: relative; padding: 96px 0 104px; text-align: center; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 480px 320px at 50% 50%, rgba(60, 203, 135, .22), rgba(60, 203, 135, 0));
  pointer-events: none;
}
.final .wrap { position: relative; }
.final__title { max-width: 15ch; margin: 0 auto 36px; font-size: clamp(2.6rem, 11vw, 5.25rem); }
.final__close { margin: 24px auto 0; color: #c3d3ca; max-width: 30ch; text-wrap: balance; }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 116px; font-size: .875rem; color: var(--ink-3); }
.footer__inner { display: grid; gap: 12px; }
.footer .logo { font-size: 1.375rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { text-decoration: none; color: var(--ink-2); }
.footer nav a:hover { color: var(--green-ink); text-decoration: underline; }

/* ---------- Mobile sticky CTA ---------- */
.stickybar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 9px 9px 18px; border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.7), 0 0 0 .5px rgba(16,36,29,.12), 0 14px 40px -12px rgba(16, 36, 29, .35);
  transform: translateY(calc(100% + 24px));
  transition: transform .55s var(--settle);
}
.stickybar.is-visible { transform: none; }
.stickybar__text { display: flex; flex-direction: column; line-height: 1.2; }
.stickybar__text strong { font: 700 1.25rem/1 var(--display); }
.stickybar__text span { font-size: .8125rem; color: var(--ink-3); margin-top: 3px; }
.stickybar .btn { min-height: 42px; padding: 0 18px; font-size: 1rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--settle), transform .8s var(--settle); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Short phones: keep the hero CTA above the fold
   ========================================================== */
@media (max-height: 720px) and (max-width: 767px) {
  .hero { padding-top: calc(16px + var(--topbar-h)); }
  .h1 { font-size: clamp(2.7rem, 12.2vw, 3.8rem); }
  .lede { margin: 12px 0 18px; font-size: 1.0625rem; }
  .kicker { margin-bottom: 10px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .levers li { font-size: 1.125rem; }
}

/* ==========================================================
   Tablet
   ========================================================== */
@media (min-width: 640px) {
  .levers { grid-template-columns: repeat(4, 1fr); }
  .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; max-width: 1120px; margin: 0 auto; }
}

/* ==========================================================
   Desktop
   ========================================================== */
@media (min-width: 900px) {
  :root { --gutter: 32px; --topbar-h: 60px; }
  .section { padding: 112px 0; }
  .h2 { margin-bottom: 40px; }

  .hero { padding: calc(48px + var(--topbar-h)) 0 72px; }
  /* Desktop: near-white behind the headline on the left, more photo behind the phones on the right */
  .hero__bg img { object-position: 50% 45%; }
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 92%), /* fully white before the edge: no seam */
      linear-gradient(90deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.7) 34%, rgba(255,255,255,.3) 62%, rgba(255,255,255,.2) 100%);
  }
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  /* the two-phone group sits against the right edge instead of the middle of its column */
  .hero__art { width: 500px; max-width: 100%; justify-self: end; }
  .h1 { font-size: clamp(3.5rem, 6vw, 6.4rem); } /* scales with the half-width column, so small laptops keep 3 lines */
  .lede { max-width: 32ch; }
  .badge img { width: 184px; }
  .hero__art { height: 640px; }
  .hero__back { margin-left: -250px; top: 70px; }
  .hero__back .phone { --w: 262px; }
  .hero__front { margin-left: 110px; }
  .hero__front .phone { --w: 300px; }

  .why { padding-top: 96px; }
  .why__text { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
  .why__text .h2 { margin: 0; }
  .levers { gap: 14px; }
  .levers li { padding: 18px; font-size: 1.5rem; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step, .step:last-child { flex-direction: column; gap: 14px; border-bottom: 0; padding: 26px 0 0; }
  .step__n { font-size: 4rem; }
  .step h3 { font-size: 1.875rem; }

  .gallery {
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto;
    overflow: visible; gap: 16px;
    max-width: 1120px; margin: 0 auto;
  }
  .card { height: 520px; padding: 30px 26px 0; }
  .card--low { padding: 0 26px 30px; }
  .card__media .phone { --w: 230px; }
  .dots { display: none; }

  .mri { padding: 120px 0 72px; }
  .mri__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "copy panel" "cta panel"; gap: 32px 72px; }
  .mri__copy { grid-area: copy; align-self: end; }
  .mri__panel { grid-area: panel; }
  .mri__cta { grid-area: cta; align-self: start; text-align: left; }
  .mri__panel { padding: 40px 36px 28px; }
  .gauge__num { font-size: 6.25rem; }

  .plan__grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .plan__media .phone { --w: 300px; }

  .quotes { padding: 0 var(--gutter); gap: 16px; }
  .faq .wrap--text { max-width: 1120px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
  .faq .h2 { margin: 0; }
  .final { padding: 144px 0 152px; }

  .footer { padding-bottom: 40px; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; }
  .footer nav { justify-content: center; }

  .stickybar { display: none; }
}

/* ==========================================================
   Accessibility preferences
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  [data-speed] { transform: none !important; }
  .btn, .badge { transition: none; }
  .btn:active, .badge:active { transform: none; opacity: .8; }
  .stickybar { transform: none; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .stickybar.is-visible { opacity: 1; pointer-events: auto; }
  .gauge__num, .dots i { transition: none; }
  .faq details::details-content { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar.is-dark { background: var(--forest); }
  .hero__bg::after { background: rgba(255, 255, 255, .94); }
  .stickybar { background: var(--tile); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #26332e; --ink-3: #3e4a44; --hair: rgba(16, 36, 29, .35); }
  .hero__bg { display: none; }
  .quote, .levers li { box-shadow: inset 0 0 0 1px var(--hair); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: rgba(255, 255, 255, .97); }
  .stickybar { background: rgba(255, 255, 255, .98); }
}
