/* ─────────────────────────────────────────────────────────────────────────────
 * Herz P1 Smart Band — design tokens
 *
 * Mirrors the Figma variable collection for the Smart Band funnel 1:1
 * (Figma: Herz-P1, "Smart Band Funnel - June 30"). Names follow the Figma
 * variable names so a value can be traced back to the design without guessing.
 *
 * Type scale is responsive: the --fs-* customs are redefined at the two
 * breakpoints below so a section can say `font-size: var(--fs-h2)` once and
 * still land on 28 / 32 / 40 px across mobile / tablet / desktop, which is what
 * the three Figma frames (375 / 820 / 1440) specify.
 * ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* ── Palette ─────────────────────────────────────────────────────────── */
  --white: #ffffff;
  --black: #1a1a1a;
  --soft-teal: #0a9db8;
  --teal: #017186;
  --teal-hover: #015b6c;
  --soft-beige: #f3f2ee;
  --beige-deep: #ebe9e1;   /* quote cards / installment strip */
  --grey: #f7f7fb;
  --text-primary: #020b1e;
  --text-white: #ffffff;
  --border-default: #d4d1cd;
  --ui-yellow: #ffc800;
  --trust-green: #00b67a;
  --icon-tint: rgba(59, 137, 157, 0.1);   /* icon chip background */
  --teal-tint: rgba(10, 157, 184, 0.12);  /* badge / selected-card background */
  --teal-wash: rgba(226, 243, 246, 0.5);  /* selected bundle card fill */
  --scrim: rgba(25, 25, 25, 0.5);         /* photo overlay: problem, faq */
  --scrim-strong: rgba(25, 25, 25, 0.8);  /* photo overlay: comparison table */

  /* ── Radii ───────────────────────────────────────────────────────────── */
  --r-tiny: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 100px;

  /* ── Spacing ─────────────────────────────────────────────────────────── */
  --gap-4: 4px;
  --gap-8: 8px;
  --gap-tiny: 12px;
  --gap-sm: 20px;
  --gap-md: 32px;
  --gap-big: 48px;
  --gap-lg: 60px;

  --pad-tiny: 12px;
  --pad-sm: 20px;
  --pad-md: 40px;
  --pad-big: 60px;

  /* ── Responsive type scale (mobile / 375 frame) ──────────────────────── */
  --fs-h1: 28px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-p-lg: 18px;
  --fs-p-big: 18px;
  --fs-p-md: 14px;
  --fs-p-sm: 14px;
  --fs-p-tiny: 12px;
  --fs-cta: 18px;

  /* ── Responsive rhythm ───────────────────────────────────────────────── */
  --section-pad-x: 12px;      /* gutter of the outer section */
  --section-pad-y: 40px;
  --card-pad: 24px;           /* inner padding of the big rounded cards */
  --card-radius: var(--r-md);
  --cta-pad-y: 12px;
}

@media (min-width: 768px) {
  :root {
    --fs-h1: 36px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --fs-p-lg: 20px;
    --fs-p-big: 20px;
    --fs-p-md: 14px;
    --fs-p-sm: 14px;
    --fs-p-tiny: 12px;
    --fs-cta: 18px;

    --section-pad-x: 32px;
    --section-pad-y: 48px;
    --card-pad: 32px;
    --card-radius: var(--r-lg);
    --cta-pad-y: 14px;
  }
}

@media (min-width: 1200px) {
  :root {
    --fs-h1: 44px;
    --fs-h2: 40px;
    --fs-h3: 28px;
    --fs-p-lg: 24px;
    --fs-p-big: 20px;
    --fs-p-md: 18px;
    --fs-p-sm: 16px;
    --fs-p-tiny: 14px;
    --fs-cta: 20px;

    --section-pad-x: 40px;
    --section-pad-y: 60px;
    --card-pad: 40px;
    --card-radius: var(--r-lg);
    --cta-pad-y: 20px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Reset + primitives
 * ───────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: var(--fs-p-sm);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* `height: auto` matters: every <img> carries width/height attributes for
   layout stability, and without this the attribute height wins over a CSS
   `aspect-ratio`, so square stages and photo tiles render at intrinsic height.
   Class rules that set an explicit height still win on specificity. */
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:where(a, button, [role="button"], summary):focus-visible {
  outline: 2px solid var(--soft-teal);
  outline-offset: 2px;
  border-radius: var(--r-tiny);
}

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

/* Section shell — every band on the page shares this gutter/rhythm. */
.sb-section {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--white);
}
.sb-section--flush { padding-block: var(--section-pad-x); } /* hero / problem: gutter all round */
.sb-shell { max-width: 1440px; margin-inline: auto; }

/* ── Shared heading treatments ───────────────────────────────────────────── */
.sb-h1,
.sb-h2 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--black);
}
.sb-h1 { font-size: var(--fs-h1); }
/* Section headings carry Figma's `capitalize` (h2 only — the hero h1 and the
   reviews/FAQ headings are set as written, so those opt back out). */
.sb-h2 { font-size: var(--fs-h2); text-transform: capitalize; }
.sb-h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--black);
}
.sb-body {
  font-size: var(--fs-p-md);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

/* ── Shared CTA ──────────────────────────────────────────────────────────── */
.sb-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--cta-pad-y) 24px;
  border-radius: var(--r-md);
  background: var(--teal);
  color: var(--white);
  font-size: var(--fs-cta);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-align: center;
  transition: background-color 0.2s ease;
}
.sb-cta:hover { background: var(--teal-hover); }

.sb-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--cta-pad-y) var(--gap-sm);
  border: 1px solid var(--teal);
  border-radius: var(--r-md);
  color: var(--teal);
  font-size: var(--fs-cta);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.025em;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sb-cta-outline:hover { background: var(--teal); color: var(--white); }

/* ── Klarna / Affirm installment strip ───────────────────────────────────── */
.sb-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--gap-8);
  width: 100%;
  padding: var(--gap-8) var(--gap-tiny);
  border-radius: var(--r-sm);
  background: var(--beige-deep);
  font-size: var(--fs-p-sm);
  letter-spacing: -0.005em;
  color: var(--black);
  text-align: center;
}
.sb-pay__klarna {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px; height: 18px;
  padding: 3.26px 4.07px;
  border-radius: 2.44px;
  background: #ffa8cd;
  overflow: hidden;
}
.sb-pay__klarna img { width: 24.5px; height: 6px; object-fit: contain; }
.sb-pay__affirm { flex: none; width: 41.14px; height: 16px; object-fit: contain; }

/* ── Guarantee line ──────────────────────────────────────────────────────── */
.sb-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-8);
  font-size: var(--fs-p-sm);
  letter-spacing: -0.005em;
  color: var(--black);
}
.sb-guarantee img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.sb-guarantee--on-dark { color: var(--white); }

/* ── Trustpilot-style star clusters ──────────────────────────────────────── */
.sb-stars { flex: none; height: 20px; width: 106.668px; }
.sb-stars--sm { height: 16px; width: 85.334px; }

/* ── Verified-review pill ────────────────────────────────────────────────── */
.sb-verified {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-4);
  padding: 6px 10px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--trust-green);
  font-size: var(--fs-p-tiny);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.sb-verified img { flex: none; width: 16px; height: 16px; }
.sb-verified--grey { background: var(--grey); }

/* ── Rating line ("Excellent" ★★★★★ 4.8 out of 25,000+ verified owners) ─── */
.sb-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-4);
  font-size: var(--fs-p-sm);
  letter-spacing: -0.005em;
  color: var(--black);
}
.sb-rating__row { display: flex; align-items: center; gap: var(--gap-tiny); }
.sb-rating__label { font-weight: 700; white-space: nowrap; }
.sb-rating__count { white-space: nowrap; }
.sb-rating__count b { font-weight: 700; }

@media (min-width: 768px) {
  .sb-rating { flex-direction: row; justify-content: center; gap: var(--gap-tiny); }
}

/* ── Horizontal carousel primitive ───────────────────────────────────────── *
 * Every slider on this page (review cards, UGC videos, gallery, thumbs) is the
 * same thing: a scroll-snapping flex row. Native scrolling gives momentum,
 * trackpad and touch handling for free; the JS in js/landing/int3.js only adds
 * arrows, dots and the auto-advance timer on top.
 * ───────────────────────────────────────────────────────────────────────── */
.sb-track {
  display: flex;
  gap: var(--gap-tiny);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Deliberately NOT `scroll-behavior: smooth`. With it set here, Chrome
     animates every programmatic scroll on the container and ignores a
     `behavior: 'auto'` option, so an instant jump — the one a rail needs to take
     up its designed load position — silently never lands. int3.js asks for
     smooth per call instead, which animates arrow, dot and autoplay moves and
     leaves instant jumps instant. Native touch/trackpad scrolling is unaffected
     by this property either way. */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.sb-track::-webkit-scrollbar { display: none; }
.sb-track > * { scroll-snap-align: center; flex: none; }
.sb-track--start > * { scroll-snap-align: start; }

/* ── Round slider arrow ──────────────────────────────────────────────────── */
.sb-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 30px;
  background: var(--soft-beige);
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.sb-arrow:hover { background: var(--border-default); }
.sb-arrow img { width: 16px; height: 16px; }
.sb-arrow[disabled] { opacity: 0.35; cursor: default; }

/* ── Slider dots (pill for the current slide) ────────────────────────────── */
.sb-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-8);
  height: 40px;
  min-width: 200px;
  padding-inline: var(--gap-sm);
  border-radius: 30px;
  background: var(--soft-beige);
}
.sb-dots button {
  width: 9.86px; height: 9.86px;
  border-radius: 10px;
  background: var(--soft-teal);
  opacity: 0.35;
  transition: width 0.2s ease, opacity 0.2s ease;
}
.sb-dots button[aria-current="true"] { width: 27.8px; opacity: 1; }
