/* ==========================================================================
   Hey Shalin — styles
   Every value comes from tokens.css. No hex, no shadows, no radii, no
   gradients. Mobile first (375), then 768, 1024 (strip row), 1280.
   ========================================================================== */

/* ---- Reset & base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: var(--selection-bg); color: var(--selection-fg); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-variation-settings: var(--display-settings);
  font-optical-sizing: auto;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  color: var(--fg);
}

p, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: var(--sp-2); left: var(--sp-2);
  z-index: var(--z-skip-link);
  background: var(--c-lime);
  color: var(--c-ink);
  padding: var(--sp-2) var(--sp-4);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.noscript { padding: var(--sp-6) var(--gutter); }

/* ---- Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { border-bottom: var(--border); }

.band { background: var(--c-emerald); }

/* ---- Type helpers ------------------------------------------------------ */
.label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-mint);
  line-height: var(--lh-snug);
}
.label--muted { color: var(--fg-muted); }
.label--ink { color: var(--c-ink); }

.lede {
  font-size: var(--fs-md);
  max-width: var(--measure);
}

.dot { color: var(--c-watermelon); }
.accent { color: var(--c-mint); font-style: italic; }

/* ---- Buttons (lime = click) -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: 0 var(--sp-5);
  background: var(--c-lime);
  color: var(--c-ink);
  border: var(--bw) solid var(--c-lime);
  border-radius: var(--radius);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: calc(var(--tap) + var(--sp-2)); padding: 0 var(--sp-6); font-size: var(--fs-md); }
.btn--sm { min-height: var(--tap); padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--c-border);
}
.btn--ghost:hover { border-color: var(--c-mint); color: var(--c-mint); text-decoration: none; }

.btn--icon {
  width: var(--tap);
  padding: 0;
}
.btn--icon svg { width: 22px; height: 22px; }

.btn-sub {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.band .btn-sub { color: var(--fg-soft); }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  background: var(--c-deepest);
  border-bottom: var(--border);
}
.nav__inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  min-height: var(--tap);
}
.brand img { width: 36px; height: 36px; }
.brand__word {
  font-weight: var(--fw-black);
  font-size: var(--fs-md);
  letter-spacing: var(--tracking-tight);
}

/* ---- 1. Brands row: "Our team has worked with" ------------------------- */
.trust__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}
/* Phones: the row drifts slowly sideways (a duplicate list closes the loop). */
.trust__track { overflow: hidden; }
.trust__belt {
  display: flex;
  width: max-content;
  animation: belt 32s linear infinite;
}
.trust__list {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--sp-7);
  padding-right: var(--sp-7);
}
@keyframes belt { to { transform: translateX(-50%); } }
/* Logos read as one muted set: one colour, inert, no link styling. */
.wm {
  display: flex;
  align-items: center;
  height: 28px;
  color: var(--c-cream);
  opacity: 0.6;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.wm--logo { width: var(--w); height: var(--h); }
.wm--logo svg { display: block; width: 100%; height: 100%; }
.wm--text {
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

/* ---- 2. Headline + 3. Strip (hero) ------------------------------------- */
.hero {
  position: relative;
  overflow: clip;
}
/* Mobile: the squiggle sits in the top-right corner above the headline. */
.squiggle {
  position: absolute;
  right: var(--gutter);
  top: var(--sp-3);
  width: 150px;
  color: var(--c-watermelon);
  pointer-events: none;
}
.squiggle__pen {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: pen 1.2s cubic-bezier(0.55, 0.1, 0.35, 1) 0.25s forwards;
}
@keyframes pen { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .squiggle__pen { animation: none; stroke-dashoffset: 0; }
}
.hero__inner {
  position: relative;
  padding-top: calc(var(--sp-3) + 56px + var(--sp-4));
  padding-bottom: var(--sp-6);
}
.headline {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  max-width: 22ch;
}
.headline .hl {
  background: var(--c-watermelon);
  color: var(--c-ink);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.subline {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--fg-soft);
  max-width: 44ch;
}

/* Below 1024px the strip is a horizontal swipe row that bleeds to the
   viewport edge (the cut-off tile is the scroll hint, plus the text hint). */
.strip-scroller {
  margin: var(--sp-6) calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip-scroller::-webkit-scrollbar { display: none; }
.strip-scroller:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }
.strip {
  width: max-content;
  background: var(--c-surface);
  border: var(--border);
  padding: var(--sp-2);
  display: flex;
  align-items: stretch;
  gap: var(--sp-1);
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-1);
  width: 148px;
  min-height: 148px;
  flex: none;
  padding: var(--sp-3);
  color: var(--c-ink);
  text-align: left;
  scroll-snap-align: start;
}
/* The first tile carries a real button: deep green on lime, so it reads as
   the one thing to press in the strip. */
.tile__btn { margin-top: var(--sp-2); align-self: flex-start; }
.btn--ink {
  min-height: var(--tap);
  padding: 0 var(--sp-3);
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-lime);
  font-size: var(--fs-sm);
}
.btn--ink:hover { background: var(--c-deepest); border-color: var(--c-deepest); }
.tile--we { background: var(--c-mint); }
.tile--you { background: var(--c-lime); }
.tile__title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
}
.tile__note { font-size: var(--fs-sm); line-height: var(--lh-snug); }

.arrow {
  width: 20px;
  height: 20px;
  color: var(--c-watermelon);
  align-self: center;
  flex: none;
}
.strip__hint { margin-top: var(--sp-3); }

/* ---- 3b. The Feed: case-study reels -------------------------------------- */
.feed {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
/* Dynamic background: a 48px canvas of the current frame, blown up and
   blurred, then held back by a veil of the page colour so text stays AA. */
.feed__ambient {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  z-index: -2;
  filter: blur(56px) saturate(1.5);
  opacity: 1;
  pointer-events: none;
}
.feed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--c-page) 50%, transparent);
  pointer-events: none;
}
.feed__inner {
  display: grid;
  gap: var(--sp-6);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.feed__heading { margin-top: var(--sp-2); font-size: var(--fs-2xl); max-width: 16ch; }
.feed__intro { margin-top: var(--sp-3); font-size: var(--fs-md); max-width: 36ch; }

.feed__phone {
  position: relative;
  width: min(320px, 100%);
  margin: 0 auto;
}
.feed__screen {
  --chip: color-mix(in srgb, var(--c-deepest) 72%, transparent);
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--c-deepest);
  border: var(--border);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.feed__screen:focus-visible { outline-offset: var(--focus-offset); }
.feed__track {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  cursor: pointer;
}
.feed__track::-webkit-scrollbar { display: none; }
.feed__slide {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.feed__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* One shared player on top of the posters; it steps aside mid-swipe. */
.feed__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.feed__screen.is-ready .feed__player { opacity: 1; }
.feed__screen.is-scrolling .feed__player { opacity: 0; transition-duration: 60ms; }

.feed__progress {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  right: var(--sp-2);
  z-index: 3;
  display: flex;
  gap: var(--sp-1);
  pointer-events: none;
}
.feed__seg { flex: 1; height: 3px; background: color-mix(in srgb, var(--c-cream) 30%, transparent); overflow: hidden; }
.feed__fill {
  display: block;
  height: 100%;
  background: var(--c-cream);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* Centre play mark, shown only while paused. */
.feed__state {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chip);
  border: var(--bw) solid color-mix(in srgb, var(--c-cream) 25%, transparent);
  color: var(--c-cream);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.feed__state svg { width: 36px; height: 36px; }
.feed__screen.is-paused:not(.is-scrolling) .feed__state { opacity: 1; }

/* Double-tap heart. */
.feed__burst {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  color: var(--c-watermelon);
  --heart-fill: var(--c-watermelon);
  pointer-events: none;
  opacity: 0;
}
.feed__burst svg { width: 100%; height: 100%; }
.feed__screen.is-burst .feed__burst { animation: burst 700ms var(--ease) both; }
@keyframes burst {
  0% { opacity: 0; transform: scale(0.4); }
  25% { opacity: 1; transform: scale(1.1); }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15) translateY(-12px); }
}

/* Handle chip, bottom left, like reels. */
.feed__who {
  position: absolute;
  left: var(--sp-2);
  bottom: var(--sp-2);
  z-index: 3;
  max-width: calc(100% - 64px);
  padding: var(--sp-1) var(--sp-2);
  background: var(--chip);
  color: var(--c-cream);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed__who:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Right rail: like, questions, share. */
.feed__rail {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.feed__act {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  background: var(--chip);
  border: var(--bw) solid color-mix(in srgb, var(--c-cream) 25%, transparent);
  color: var(--c-cream);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.feed__act svg { width: 24px; height: 24px; }
.feed__act:hover { border-color: var(--c-cream); }
.feed__like.is-on { color: var(--c-watermelon); --heart-fill: var(--c-watermelon); }
.feed__like.is-pop svg { animation: pop 320ms var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }

/* Questions panel slides up inside the phone. */
.feed__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  background: var(--c-surface);
  border-top: var(--border);
  animation: sheet-in var(--dur-reveal) var(--ease) both;
}
.feed__sheet[hidden] { display: none; }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.feed__sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border);
  padding-bottom: var(--sp-2);
}
.feed__sheet-title { font-weight: var(--fw-bold); }
.feed__sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin-right: calc(-1 * var(--sp-3));
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--fg);
  cursor: pointer;
}
.feed__sheet-close svg { width: 20px; height: 20px; }
.feed__comment {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.feed__avatar { width: 36px; height: 36px; }
.feed__comment-who { font-weight: var(--fw-bold); }
.feed__badge {
  margin-left: var(--sp-1);
  padding: 0 var(--sp-1);
  border: var(--bw) solid var(--c-mint);
  color: var(--c-mint);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}
.feed__sheet-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.feed__screen.is-sheet .feed__rail,
.feed__screen.is-sheet .feed__who { visibility: hidden; }

.feed__toast {
  position: absolute;
  top: var(--sp-6);
  left: 50%;
  z-index: 6;
  transform: translate(-50%, -8px);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-deepest);
  border: var(--bw) solid var(--c-mint);
  color: var(--c-mint);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.feed__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Up/down arrows sit outside the frame on wider screens. Phones swipe. */
.feed__nav { display: none; }
.feed__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  background: var(--c-surface);
  border: var(--bw) solid var(--c-mint);
  color: var(--c-mint);
  cursor: pointer;
}
.feed__arrow:hover { background: var(--c-mint); color: var(--c-ink); }
.feed__arrow svg { width: 22px; height: 22px; }
.feed__meta { margin-top: var(--sp-4); }
.feed__caption { min-height: 4.65em; }
.feed__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

/* ---- Shared section heading ------------------------------------------------ */
.section-head { margin-bottom: var(--sp-6); }
.section-head h2 { margin-top: var(--sp-2); font-size: var(--fs-xl); }

/* ---- 5. Who it's for: crossfading photo cards --------------------------- */
.reviews__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
.review {
  background: var(--c-surface);
  border: var(--border);
  display: flex;
  flex-direction: column;
}
.review__pic {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--c-page);
  border-bottom: var(--border);
  overflow: hidden;
}
.review__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-fade) var(--ease);
}
.review__pic .is-hidden { opacity: 0; }
/* Line and label share one left edge; the label is pinned to the bottom so
   they line up across cards. */
.review__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5) var(--sp-4);
}
.review__quote {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--c-mint);
  line-height: 1.35;
}
.review__quote .q { color: var(--c-watermelon); }
.review__who { margin-top: auto; padding-top: var(--sp-4); }
.review__name { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.review__title { font-size: var(--fs-sm); color: var(--fg-soft); }

/* ---- 4. Hey, I'm Shalin ------------------------------------------------- */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.about__photo {
  position: relative;
  width: 180px;
  aspect-ratio: 1;
  flex: none;
  margin: var(--sp-3) 0 var(--sp-2) var(--sp-3);
}
/* Mint disc sits behind, nudged down and right, like a sticker shadow. */
.about__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-mint);
  transform: translate(12px, 12px);
}
.about__img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--c-mint);
}
.about__img--logo { object-fit: contain; padding: 8%; }
/* Hand-drawn watermelon stroke hugging the top-left of the circle. */
.about__arc {
  position: absolute;
  inset: 0;
  color: var(--c-watermelon);
  pointer-events: none;
}
.about__arc svg { width: 100%; height: 100%; overflow: visible; }
/* The logo as a tilted sticker on the bottom-right. */
.about__sticker {
  position: absolute;
  right: -10px;
  bottom: -6px;
  width: 30%;
  height: auto;
  transform: rotate(-10deg);
}
.about__heading { font-size: var(--fs-2xl); }
.about__lines {
  margin-top: var(--sp-3);
  font-size: var(--fs-md);
  max-width: var(--measure);
}
.about__lines p + p { margin-top: var(--sp-1); }
.about__cta { margin-top: var(--sp-5); }

/* ---- 6. FAQ ------------------------------------------------------------- */
.faq__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.faq__list { border-top: var(--border); }
.faq__item { border-bottom: var(--border); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--tap);
  padding: var(--sp-4) 0;
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  width: var(--sp-5);
  text-align: center;
  color: var(--c-watermelon);
  font-weight: var(--fw-black);
  font-size: var(--fs-lg);
  line-height: 1;
}
.faq__item[open] summary::after { content: "\2013"; }
.faq__item summary:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }
.faq__answer {
  padding: 0 0 var(--sp-5);
  max-width: var(--measure);
  color: var(--fg);
}

/* ---- 7. Final CTA -------------------------------------------------------- */
.final__inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  text-align: center;
}
.final__heading {
  font-size: var(--fs-2xl);
  max-width: 18ch;
  margin: 0 auto var(--sp-5);
}

/* ---- Footer -------------------------------------------------------------- */
.footer {
  background: var(--c-deepest);
  color: var(--fg);
  font-size: var(--fs-sm);
}
/* On mobile the home page footer carries the space under the sticky bar,
   so the band below the footer is footer-coloured. */
body[data-page="home"] .footer { padding-bottom: var(--sticky-bar-h); }
.footer__inner {
  display: grid;
  gap: var(--sp-6);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: var(--fw-black);
  font-size: var(--fs-lg);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.footer__brand img { width: 40px; height: 40px; flex: none; }
.footer__addr { margin-top: var(--sp-3); color: var(--fg-muted); font-style: normal; }
.footer .label { margin: 0 0 var(--sp-3); line-height: 1; }
.footer ul li + li { margin-top: var(--sp-1); }
.footer a {
  display: inline-block;
  min-height: 28px;
  text-decoration: none;
  padding: var(--sp-1) 0;
}
.footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer__legal {
  border-top: var(--border);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
  color: var(--fg-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
  justify-content: space-between;
}
.footer__legal a {
  display: inline-flex;
  align-items: center;
  padding: 0;
  min-height: var(--sp-5);
}

/* ---- Sticky mobile bar --------------------------------------------------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky-bar);
  background: var(--c-deepest);
  border-top: var(--border);
  padding: var(--sp-3) var(--gutter);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom));
}
body.quiz-open .sticky-bar { display: none; }

/* ---- Subpages (thanks, privacy) ----------------------------------------- */
.page {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.page h1 { font-size: var(--fs-2xl); margin-top: var(--sp-2); }
.page h2 { font-size: var(--fs-lg); margin-top: var(--sp-7); }
.page p { max-width: var(--measure); margin-top: var(--sp-4); font-size: var(--fs-md); }
.page ul { margin-top: var(--sp-3); max-width: var(--measure); list-style: square; padding-left: var(--sp-5); }
.page li { margin-top: var(--sp-2); }
.page li::marker { color: var(--c-watermelon); }
.page .updated { color: var(--fg-muted); font-size: var(--fs-sm); }
.page .signoff { font-family: var(--font-display); font-variation-settings: var(--display-settings); font-style: italic; font-size: var(--fs-xl); color: var(--c-mint); }
.page .back { margin-top: var(--sp-7); }
.page__summary {
  margin-top: var(--sp-5);
  max-width: var(--measure);
  background: var(--c-surface);
  border: var(--border);
  padding: var(--sp-1) var(--sp-5) var(--sp-5);
}
.page a { color: var(--c-mint); }
.page a { text-underline-offset: 0.2em; }

/* ---- Quiz overlay --------------------------------------------------------- */
.quiz {
  position: fixed;
  inset: 0;
  z-index: var(--z-quiz);
  background: var(--c-page);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.quiz[hidden] { display: none; }
/* Faint video-icon pattern, question screens only. */
.quiz__pattern {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--c-border);
  opacity: 0.45;
  pointer-events: none;
}
.quiz[data-screen="question"] .quiz__pattern { display: block; }
.quiz__inner {
  position: relative;
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--sp-3) var(--gutter) var(--sp-10);
  min-height: 100%;
}
.quiz__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--nav-h);
}
.quiz__bar .btn--icon { flex: none; }
.quiz__back[hidden] { display: inline-flex; visibility: hidden; } /* keeps the dots centred */
.quiz__title[tabindex]:focus-visible { outline: none; }
.quiz__progress {
  display: flex;
  gap: var(--sp-2);
  flex: 1;
  justify-content: center;
}
.quiz__progress[hidden] { visibility: hidden; }
.quiz__dot {
  width: 10px; height: 10px;
  border: var(--bw) solid var(--c-mint);
  background: transparent;
}
.quiz__dot.is-done { background: var(--c-mint); }
.quiz__dot.is-current { background: var(--c-cream); border-color: var(--c-cream); }

.quiz__stage { padding-top: var(--sp-6); }
.screen { animation: screen-in var(--dur-quiz) var(--ease) both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.quiz__kicker { margin-bottom: var(--sp-3); }
.quiz__title { font-size: var(--fs-xl); max-width: 24ch; }
.quiz__hint { margin-top: var(--sp-2); color: var(--fg-muted); font-size: var(--fs-md); }

.opts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.opts--single { margin-top: var(--sp-5); }
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: calc(var(--tap) + var(--sp-3));
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-surface);
  color: var(--fg);
  border: var(--border);
  border-radius: var(--radius);
  text-align: left;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.opt:hover { border-color: var(--c-mint); }
.opt::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border: var(--bw) solid var(--c-border);
}
.opt:hover::after { border-color: var(--c-mint); }
.opt.is-selected,
.opt[aria-pressed="true"] {
  background: var(--c-mint);
  color: var(--c-ink);
  border-color: var(--c-mint);
}
.opt.is-selected::after,
.opt[aria-pressed="true"]::after {
  background: var(--c-ink);
  border-color: var(--c-ink);
}

/* Budget slider */
.range {
  --pct: 0;
  --thumb: 28px;
  position: relative;
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
}
.range__value {
  --bubble: 6rem;
  position: absolute;
  top: 0;
  width: var(--bubble);
  text-align: center;
  /* Centred over the thumb, but never past the track ends. */
  left: clamp(0px, calc(var(--thumb) / 2 + var(--pct) * (100% - var(--thumb)) - var(--bubble) / 2), calc(100% - var(--bubble)));
  background: var(--c-lime);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  line-height: 1;
  padding: var(--sp-2) var(--sp-3);
  white-space: nowrap;
}
.range__input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: var(--thumb);
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range__input::-webkit-slider-runnable-track { height: var(--bw-thick); background: var(--c-border); }
.range__input::-moz-range-track { height: var(--bw-thick); background: var(--c-border); }
.range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc((var(--bw-thick) - var(--thumb)) / 2);
  background: var(--c-lime);
  border: var(--bw) solid var(--c-ink);
  border-radius: var(--radius);
}
.range__input::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  background: var(--c-lime);
  border: var(--bw) solid var(--c-ink);
  border-radius: var(--radius);
}
.range__input:focus-visible { outline-offset: var(--sp-1); }
.range__ends {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
/* "Let's talk" selected: the slider steps back. */
.range.is-off .range__value { background: var(--c-surface); color: var(--fg-muted); border: var(--border); }
.range.is-off .range__input::-webkit-slider-thumb { background: var(--c-surface); border-color: var(--c-border); }
.range.is-off .range__input::-moz-range-thumb { background: var(--c-surface); border-color: var(--c-border); }

.quiz__reply {
  margin-top: var(--sp-5);
  min-height: 2em;
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--c-mint);
}
.quiz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.quiz__note {
  margin-top: var(--sp-4);
  color: var(--fg-muted);
}
.quiz__error {
  margin-top: var(--sp-4);
  padding-left: var(--sp-3);
  border-left: var(--bw-thick) solid var(--c-watermelon);
}
.quiz__error[hidden] { display: none; }
.quiz__privacy {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.quiz__privacy a { color: var(--c-mint); text-underline-offset: 0.2em; }

/* Results: three cards, one shared value style, equal heights */
.prizes {
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.prize {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--sp-3);
  min-height: 8rem;
  border: var(--border);
  background: var(--c-surface);
  padding: var(--sp-5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-quiz) var(--ease), transform var(--dur-quiz) var(--ease);
}
.prize.is-in { opacity: 1; transform: none; }
.prize__value {
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  text-wrap: balance;
}
.prize__unit { font-size: 0.6em; font-weight: var(--fw-semibold); }
.prizes__note { font-size: var(--fs-sm); }

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-confetti);
}

/* Form */
.form { margin-top: var(--sp-6); }
.field + .field { margin-top: var(--sp-4); }
.field label {
  display: block;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}
.field input {
  width: 100%;
  min-height: calc(var(--tap) + var(--sp-1));
  padding: 0 var(--sp-4);
  background: var(--c-surface);
  color: var(--fg);
  border: var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--fs-md);
}
.field input:focus-visible { outline-offset: 0; border-color: var(--c-mint); }
.field input::placeholder { color: var(--fg-soft); }

/* ---- Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .prize { opacity: 1; transform: none; }
  .trust__belt { width: 100%; animation: none; }
  .trust__list { flex: 1 1 auto; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); padding-right: 0; }
  .trust__list--copy { display: none; }
}

/* ==========================================================================
   Tablet: 768px
   ========================================================================== */
@media (min-width: 768px) {
  :root { --gutter: var(--sp-6); }

  body[data-page="home"] .footer { padding-bottom: 0; }
  /* Keep "Get a call" in reach while scrolling (phones have the bottom bar). */
  .nav { position: sticky; top: 0; z-index: var(--z-nav); }
  [id] { scroll-margin-top: calc(var(--nav-h) + var(--sp-4)); }
  .sticky-bar { display: none; }

  .brand img { width: 40px; height: 40px; }

  /* Tablet and up: the brands sit still in one or two rows. */
  .trust__inner { gap: var(--sp-3); }
  .trust__belt { width: 100%; animation: none; }
  .trust__list { flex: 1 1 auto; flex-wrap: wrap; gap: var(--sp-3) var(--sp-8); padding-right: 0; }
  .trust__list--copy { display: none; }

  .feed__inner {
    grid-template-columns: minmax(0, 28rem) auto;
    justify-content: center;
    align-items: center;
    gap: var(--sp-8);
  }
  .feed__phone { width: 300px; margin: 0 calc(var(--tap) + var(--sp-4)) 0 0; }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
  .feed__nav {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    position: absolute;
    top: 0;
    left: calc(100% + var(--sp-3));
  }

  .squiggle { width: 170px; right: var(--gutter); top: var(--sp-3); }
  .hero__inner { padding-top: var(--sp-7); }
  .headline { max-width: min(20ch, calc(100% - 170px - var(--sp-6))); }

  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-7);
  }
  .about__photo { width: 210px; margin: 0 0 0 var(--sp-4); }


  .footer__inner {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: var(--sp-6);
  }
  .footer__legal { grid-column: 1 / -1; }

  .opts { grid-template-columns: 1fr 1fr; }
  .opts--single { grid-template-columns: 1fr 1fr; }
  .prizes { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
}

/* ==========================================================================
   Strip goes horizontal: 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  .hero__inner {
    padding-top: var(--sp-7);
    padding-bottom: var(--sp-7);
  }
  .squiggle { width: 240px; right: var(--gutter); top: var(--sp-2); }
  .headline { max-width: min(20ch, calc(100% - 240px - var(--sp-7))); }
  .subline { margin-top: var(--sp-4); }

  .strip-scroller {
    margin: var(--sp-6) 0 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .strip {
    width: auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr) auto) minmax(0, 1fr);
    gap: var(--sp-2);
    align-items: stretch;
    padding: var(--sp-3);
  }
  .tile {
    /* Near-square: the row stretches to the tallest tile. */
    width: auto;
    min-height: 9.5rem;
    padding: var(--sp-3);
    text-align: center;
    align-items: center;
  }
  .tile__title { font-size: var(--fs-sm); }
  .tile__note { font-size: var(--fs-xs); }
  .arrow { width: 24px; height: 24px; }
  .strip__hint { display: none; }
}

/* ==========================================================================
   Desktop: 1280px
   ========================================================================== */
@media (min-width: 1280px) {
  .squiggle { width: 340px; right: 2%; top: var(--sp-2); }
  .headline { max-width: 18ch; }
  .tile { padding: var(--sp-4); }
  .tile__title { font-size: var(--fs-base); }
  .about__photo { width: 260px; }
  .reviews__grid { gap: var(--sp-5); }
  .review__body { padding: var(--sp-5); }
  .trust__inner { flex-direction: row; align-items: center; gap: var(--sp-7); }
  .trust__inner .label { white-space: nowrap; flex: none; }
  .trust__list { flex-wrap: nowrap; justify-content: space-between; width: 100%; gap: var(--sp-7); }
  .trust__track, .trust__belt { flex: 1; }
  .feed__phone { width: 340px; }
  .feed__inner { gap: var(--sp-10); }
}
