/* =============================================================================
 * Marketing homepage ("/") — ported from the design demo in homepage-demo/.
 *
 * The demo was a Claude "Design Component": a React runtime (support.js) that
 * pulled React + ReactDOM + Babel from unpkg and rendered the page in the
 * browser from inline styles with {{ }} bindings. This is the same design as a
 * plain server-rendered page: the {{ }} responsive bindings the demo computed in
 * JS (narrow < 1040px, mobile < 720px) are media queries here, and its
 * style-hover / style-active attributes are :hover / :active rules.
 *
 * Only genuinely stateful things stay in JS — see homepage.js.
 * ========================================================================== */

:root {
  --ink: #16281C;
  --ink-deep: #0E1F14;
  --green: #3DDC97;
  --green-deep: #25C983;
  --green-mid: #5FE6B0;
  --green-text: #2F6644;
  --body: #3E5745;
  --body-strong: #22332A;
  --body-soft: #2A3B30;
  --muted: #5A5F5A;
  --hero-bg: #F0FFF6;
  --band-bg: #F6FEF9;
  --hairline: rgba(22, 40, 28, 0.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body.h2h-home {
  margin: 0;
  background: #FFFFFF;
  overflow-x: hidden;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
}

/* Element-level reset.
 *
 * These selectors must stay BARE. This stylesheet is only ever loaded by the
 * standalone homepage template, so there is nothing else on the page to guard
 * against — and a `.h2h-home p` style compound would score 0,1,1 and outrank
 * every single-class component rule below it, silently dropping their
 * margin-top and colour. That is a real bug this file already shipped once. */
* { -webkit-tap-highlight-color: rgba(61, 220, 151, 0.25); }

a { color: #3C6E4E; text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, p, figure, blockquote { margin: 0; }

/* Display type. The demo set this per-element; it is always Instrument Sans with
   a tight negative track, so it is one class here. */
.display {
  font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.05;
  text-wrap: pretty;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green-text);
}

/* Section label — "For brokers" / "For buyers", underlined and centred. */
.band-label {
  font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}

.band-label > span {
  display: inline-block;
  border-bottom: 3px solid var(--green-mid);
  padding-bottom: 8px;
}

/* -----------------------------------------------------------------------------
 * Logo
 * -------------------------------------------------------------------------- */

.h2h-logo { display: block; width: 100%; height: auto; }
.h2h-logo--dark .h2h-logo__word { fill: #FFFFFF; }

/* -----------------------------------------------------------------------------
 * Buttons
 *
 * The primary pill's "glow" is a radial gradient scaled from 0 to 140% 230% on
 * hover — background-size animates far more cheaply than a box-shadow spread.
 * -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--green);
  background-image: radial-gradient(farthest-side circle at 50% 100%,
      rgba(198, 255, 228, 0.92) 0%,
      rgba(140, 255, 205, 0.55) 32%,
      rgba(123, 255, 196, 0.16) 62%,
      rgba(123, 255, 196, 0) 88%);
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0% 0%;
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 30px;
  will-change: background-size, transform, box-shadow;
  backface-visibility: hidden;
  transition: background-size 170ms cubic-bezier(0.2, 0.8, 0.3, 1),
              box-shadow 200ms ease,
              transform 200ms ease;
}

.btn-primary:hover {
  color: var(--ink-deep);
  background-size: 140% 230%;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 40, 28, 0.22), 0 0 26px rgba(123, 255, 196, 0.7);
}

.btn-primary:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(22, 40, 28, 0.2); }

.btn-primary--nav { font-weight: 600; font-size: 14px; padding: 12px 22px; }
.btn-primary--nav:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(22, 40, 28, 0.18), 0 0 20px rgba(123, 255, 196, 0.65); }

.btn-primary--hero { font-size: 16px; padding: 17px 34px; box-shadow: 0 12px 30px rgba(22, 40, 28, 0.18); }
.btn-primary--hero:hover { box-shadow: 0 18px 38px rgba(22, 40, 28, 0.24), 0 0 26px rgba(123, 255, 196, 0.7); }

.btn-primary--buyers { font-size: 16px; padding: 16px 32px; }

.btn-ghost {
  gap: 10px;
  border: 1px solid rgba(22, 40, 28, 0.25);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.btn-ghost:hover { color: var(--ink); border-color: var(--ink); background: #FFFFFF; transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost svg { flex-shrink: 0; }

.cta-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* -----------------------------------------------------------------------------
 * Nav
 * -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 0 0 rgba(14, 31, 20, 0);
  transition: box-shadow 280ms ease;
}

.nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(14, 31, 20, 0.4); }

.nav__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 56px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.5vw, 32px);
}

.nav__brand { width: 100%; max-width: 198px; flex-shrink: 0; }

.nav__links {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 2px 0;
}

.nav__link {
  color: var(--body-soft);
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
  transition: color 180ms ease;
}

.nav__link:hover { color: var(--ink); }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease;
}

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); flex-shrink: 0; }

.nav__signin {
  font-size: 15px;
  font-weight: 500;
  color: var(--body-soft);
  white-space: nowrap;
  padding-bottom: 4px;
  position: relative;
  transition: color 180ms ease;
}

.nav__signin:hover { color: var(--ink); }

.nav__signin::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms ease;
}

.nav__signin:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(22, 40, 28, 0.2);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.nav__burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }

.nav__panel {
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(22, 40, 28, 0.12);
  padding: 14px clamp(20px, 4vw, 56px) 22px;
  box-sizing: border-box;
  gap: 4px;
  background: #FFFFFF;
}

/* .is-open is only honoured below the breakpoint — see the media query at the
   bottom — so a panel left open while the window widens can't reappear. */

.nav__panel-link {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(22, 40, 28, 0.08);
  transition: color 180ms ease;
}

.nav__panel-link:last-of-type { border-bottom: 0; }
.nav__panel-link:hover { color: var(--green-text); }

.nav__panel-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 14px; }
.nav__panel-actions .btn-primary { width: 100%; font-size: 15px; padding: 15px 28px; }

.nav__panel-signin {
  font-size: 15px;
  font-weight: 500;
  color: var(--body-soft);
  text-align: center;
  padding: 6px 0;
  transition: color 180ms ease;
}

.nav__panel-signin:hover { color: var(--ink); }

/* -----------------------------------------------------------------------------
 * Animated background blobs (hero + brokers band)
 * -------------------------------------------------------------------------- */

.blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; }

@keyframes h2hDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(7%, -8%, 0) scale(1.16); }
}
@keyframes h2hDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%      { transform: translate3d(-9%, 7%, 0) rotate(26deg) scale(1.1); }
}
@keyframes h2hDriftC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.08); }
  50%      { transform: translate3d(6%, 9%, 0) scale(0.9); }
}
@keyframes h2hDriftD {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.95); }
  50%      { transform: translate3d(-6%, -6%, 0) scale(1.14); }
}

/* -----------------------------------------------------------------------------
 * 1. Hero
 * -------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--hero-bg); }

.hero__blob-1 {
  top: -22%; right: -10%;
  width: min(74vw, 900px); height: min(74vw, 900px);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, #3DDC97 0%, rgba(61, 220, 151, 0.55) 42%, rgba(61, 220, 151, 0) 74%);
  filter: blur(30px); opacity: 0.85;
  animation: h2hDriftA 22s ease-in-out infinite;
}
.hero__blob-2 {
  top: -6%; right: 26%;
  width: min(46vw, 600px); height: min(46vw, 600px);
  border-radius: 40% 60% 55% 45% / 48% 38% 62% 52%;
  background: linear-gradient(135deg, #39C9E8 0%, #5B8CFF 100%);
  filter: blur(52px); opacity: 0.5;
  animation: h2hDriftB 27s ease-in-out infinite;
}
.hero__blob-3 {
  bottom: -26%; right: 2%;
  width: min(56vw, 720px); height: min(56vw, 720px);
  border-radius: 50%;
  background: conic-gradient(from 190deg, #C7F94E 0deg, #3DDC97 110deg, #39C9E8 210deg, #C7F94E 360deg);
  filter: blur(62px); opacity: 0.45;
  animation: h2hDriftC 31s ease-in-out infinite;
}
.hero__blob-4 {
  bottom: -14%; left: 14%;
  width: min(40vw, 520px); height: min(40vw, 520px);
  border-radius: 56% 44% 48% 52% / 44% 56% 44% 56%;
  background: linear-gradient(200deg, #FFC9A3 0%, #C7F94E 100%);
  filter: blur(66px); opacity: 0.42;
  animation: h2hDriftD 25s ease-in-out infinite;
}
.hero__blob-5 {
  top: 24%; left: -12%;
  width: min(38vw, 480px); height: min(38vw, 480px);
  border-radius: 50%;
  background: radial-gradient(circle, #A9B6FF 0%, rgba(169, 182, 255, 0) 70%);
  filter: blur(48px); opacity: 0.38;
  animation: h2hDriftA 29s ease-in-out infinite reverse;
}

/* Keeps the headline legible over the blobs, and fades the band into the next
   section. */
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.5) 34%, rgba(255, 255, 255, 0) 62%);
}
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
}

.hero__inner {
  position: relative;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px) clamp(64px, 8vw, 104px);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 4vw, 64px);
  align-items: center;
}

.hero__copy { flex: 1 1 380px; min-width: 0; max-width: 560px; }

.hero__title { font-size: clamp(46px, 10vw, 92px); line-height: 0.93; letter-spacing: -0.04em; }

.hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--body-strong);
  margin-top: 22px;
  max-width: 520px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__ctas { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero__trial { font-size: 14px; color: var(--body-soft); margin-top: 20px; font-weight: 500; }

.hero__trust { margin-top: 40px; border-top: 1px solid rgba(22, 40, 28, 0.16); padding-top: 22px; max-width: 520px; }

.hero__trust-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green-text);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  column-gap: clamp(16px, 3vw, 28px);
  row-gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body-strong);
  justify-items: start;
}

/* Hero reel ---------------------------------------------------------------- */

.hero__reel { flex: 1.55 1 480px; min-width: 0; }

.reel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 40px 90px -28px rgba(14, 31, 20, 0.5);
}

.reel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 900ms ease, transform 1600ms ease;
}

.reel__slide.is-active { opacity: 1; transform: scale(1); }

.reel__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.reel__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 31, 20, 0) 48%, rgba(14, 31, 20, 0.6) 100%);
}

.reel__controls {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.reel__pills {
  display: flex;
  background: rgba(14, 31, 20, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.reel__pill {
  border: 0;
  background: rgba(255, 255, 255, 0);
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.reel__pill:hover { background: rgba(255, 255, 255, 0.34); }
.reel__pill.is-on { background: #FFFFFF; color: var(--ink-deep); }

/* Only offered while the reel is paused on a Before/After frame. */
.reel__play {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(14, 31, 20, 0.32);
  transition: transform 200ms ease, background 200ms ease;
}

.reel.is-paused .reel__play { display: flex; }
.reel__play:hover { transform: scale(1.08); background: #FFFFFF; }
.reel__play:active { transform: scale(0.96); }

.reel__play i {
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--ink-deep);
  margin-left: 3px;
}

.reel__bars { display: flex; align-items: center; gap: 6px; flex: 1 1 60px; min-width: 0; }

.reel__bar {
  flex: 1;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
  cursor: pointer;
  transition: background 200ms ease;
}

.reel__bar:hover { background: rgba(255, 255, 255, 0.55); }

.reel__bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #FFFFFF;
  transition: width 140ms linear;
}

/* -----------------------------------------------------------------------------
 * 2. Problem
 * -------------------------------------------------------------------------- */

.problem { padding: clamp(56px, 9vw, 116px) clamp(20px, 5vw, 64px); box-sizing: border-box; }
.problem__inner { max-width: 860px; margin: 0 auto; text-align: center; }
.problem__title { font-size: clamp(30px, 6vw, 50px); line-height: 1.06; }

.problem__body {
  font-size: clamp(17px, 1.9vw, 19px);
  color: var(--body);
  margin-top: 26px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* -----------------------------------------------------------------------------
 * 3. For brokers
 * -------------------------------------------------------------------------- */

.brokers { position: relative; overflow: hidden; background: var(--band-bg); border-top: 1px solid var(--hairline); }

.brokers__blob-1 {
  top: -6%; left: -8%;
  width: min(62vw, 760px); height: min(62vw, 760px);
  border-radius: 50%;
  background: radial-gradient(circle, #3DDC97 0%, rgba(61, 220, 151, 0) 70%);
  filter: blur(50px); opacity: 0.34;
  animation: h2hDriftA 26s ease-in-out infinite;
}
.brokers__blob-2 {
  top: 14%; right: -10%;
  width: min(58vw, 700px); height: min(58vw, 700px);
  border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
  background: linear-gradient(140deg, #7FF0D0 0%, #39C9E8 100%);
  filter: blur(64px); opacity: 0.3;
  animation: h2hDriftB 30s ease-in-out infinite;
}
.brokers__blob-3 {
  top: 42%; left: 18%;
  width: min(56vw, 680px); height: min(56vw, 680px);
  border-radius: 50%;
  background: conic-gradient(from 200deg, #C7F94E 0deg, #3DDC97 130deg, #39C9E8 240deg, #C7F94E 360deg);
  filter: blur(72px); opacity: 0.26;
  animation: h2hDriftC 34s ease-in-out infinite;
}
.brokers__blob-4 {
  bottom: -10%; right: 6%;
  width: min(52vw, 640px); height: min(52vw, 640px);
  border-radius: 54% 46% 48% 52% / 46% 54% 46% 54%;
  background: linear-gradient(200deg, #3DDC97 0%, #C7F94E 100%);
  filter: blur(66px); opacity: 0.28;
  animation: h2hDriftD 28s ease-in-out infinite;
}

.brokers__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px) 0;
  box-sizing: border-box;
}

/* 3a. Overview */

.overview {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 5vw, 64px);
}

.overview__copy { position: relative; z-index: 1; flex: 1 1 360px; min-width: 0; }
.overview__title { font-size: clamp(29px, 5.4vw, 46px); max-width: 520px; }

.overview__body {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--body-strong);
  margin-top: 22px;
  line-height: 1.65;
  max-width: 520px;
  text-wrap: pretty;
}

.overview__visual {
  position: relative;
  z-index: 1;
  flex: 0 1 340px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 100%;
  border-radius: 36px;
  padding: 10px;
  box-sizing: border-box;
  background: var(--ink);
  box-shadow: 0 26px 60px -34px rgba(14, 31, 20, 0.5);
}

.phone__screen { position: relative; border-radius: 27px; overflow: hidden; background: var(--ink-deep); aspect-ratio: 640 / 1138; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.phone__notch {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 17px; border-radius: 999px; background: var(--ink-deep); z-index: 3;
}
.phone__bar {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.65); z-index: 3;
}

/* 3b. Three steps */

.steps { position: relative; padding-top: clamp(56px, 7vw, 104px); }
.steps__eyebrow, .steps__title { position: relative; z-index: 1; }
.steps__title { font-size: clamp(29px, 5.4vw, 46px); margin-top: 12px; max-width: 760px; }

.steps__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 3vw, 36px);
  margin-top: clamp(36px, 4vw, 56px);
}

.step {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(22px, 2.5vw, 30px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step__n { font-weight: 700; font-size: 15px; color: var(--green-text); }

.step__title {
  font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 24px);
  margin-top: 12px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.step__body { font-size: 16px; color: var(--body); margin-top: 12px; line-height: 1.6; }

/* margin-top:auto pins every card's art to the bottom so the three line up even
   though their copy runs to different lengths. */
.step__art {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: auto;
  padding-top: 26px;
  flex-shrink: 0;
  box-sizing: content-box;
  position: relative;
}

.step__art > * {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 26px);
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: #F2F8F4;
}

/* 3c. Pricing — full-bleed inside the max-width band. */

.pricing {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 7vw, 104px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: linear-gradient(175deg, #EAFBEF 0%, #A8F5D2 34%, #5FE6B0 66%, #25C983 100%);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px) clamp(56px, 8vw, 104px);
  box-sizing: border-box;
}

.pricing__head { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; text-align: center; }
.pricing__eyebrow { color: #0E4A31; }
.pricing__title { font-size: clamp(32px, 6vw, 52px); letter-spacing: -0.032em; line-height: 1.02; margin-top: 12px; }

.pricing__sub {
  font-size: clamp(17px, 1.9vw, 19px);
  color: #0E2B1D;
  margin-top: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.pricing__card {
  position: relative;
  z-index: 1;
  margin: clamp(30px, 4vw, 48px) auto 0;
  width: fit-content;
  background: #FFFFFF;
  border: 1px solid var(--green);
  border-radius: 22px;
  padding: clamp(26px, 3.4vw, 44px);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  box-shadow: 0 24px 60px -34px rgba(14, 31, 20, 0.4);
}

.pricing__plan { flex: 0 1 auto; min-width: 0; }
.pricing__plan-name { font-weight: 600; font-size: 22px; }
.pricing__amount { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }

.pricing__price {
  font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 58px);
  letter-spacing: -0.032em;
  line-height: 1;
}

.pricing__per { font-size: 16px; color: var(--body); font-weight: 500; }
.pricing__cta { margin-top: 26px; }

.pricing__features { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pricing__feature { display: flex; align-items: center; gap: 14px; }
.pricing__feature span { font-size: 16px; color: var(--ink); line-height: 1.45; }

.pricing__tick {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--green);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing__foot {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
  color: #0B2417;
  margin-top: 22px;
  text-align: center;
}

/* -----------------------------------------------------------------------------
 * 4. For buyers
 * -------------------------------------------------------------------------- */

.buyers__label { max-width: 1440px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px) 0; box-sizing: border-box; }

.buyers__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(56px, 9vw, 120px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(44px, 5vw, 80px);
  align-items: center;
}

.buyers__visual { min-width: 0; position: relative; }
.buyers__shot { position: relative; border-radius: 20px; overflow: hidden; background: #F7FDF9; aspect-ratio: 4 / 3; }
.buyers__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The cards ride up over the bottom edge of the screenshot. */
.buyers__cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(12px, 1.5vw, 18px);
  margin: -48px clamp(14px, 2vw, 26px) 0;
  position: relative;
  z-index: 3;
}

.estimate {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 22px 24px;
  flex: 1 1 150px;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(22, 40, 28, 0.12);
  box-shadow: 0 18px 40px -22px rgba(14, 31, 20, 0.35);
}

.estimate__label { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-text); }

.estimate__total {
  font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 34px;
  margin-top: 8px;
  letter-spacing: -0.03em;
}

.estimate__lines { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--body); }
.estimate__lines div { display: flex; justify-content: space-between; }
.estimate__lines b { color: var(--ink); font-weight: 600; }

.products { display: flex; flex-direction: column; gap: clamp(12px, 1.5vw, 18px); flex: 1 1 150px; min-width: 0; }

.product {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex: 1 1 0;
  min-height: 54px;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid rgba(22, 40, 28, 0.12);
  border-radius: 22px;
  padding: 7px 12px 7px 7px;
  box-shadow: 0 16px 34px -18px rgba(14, 31, 20, 0.45);
}

.product__thumb { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #F2F8F4; position: relative; }
.product__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product__name { font-size: 13px; color: var(--body); line-height: 1.25; }
.product__price { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 2px; }

.buyers__copy { min-width: 0; }
.buyers__title { font-size: clamp(29px, 5.4vw, 46px); }

.buyers__body {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--body);
  margin-top: 22px;
  line-height: 1.65;
  max-width: 520px;
  text-wrap: pretty;
}

.buyers__cta { margin-top: 34px; }

/* -----------------------------------------------------------------------------
 * 5. Social proof
 * -------------------------------------------------------------------------- */

.proof { background: var(--ink); padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px); box-sizing: border-box; }
.proof__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.proof__label { font-size: 12px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--green); }

.proof__quote {
  font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 31px);
  letter-spacing: -0.015em;
  color: #FFFFFF;
  line-height: 1.45;
  margin-top: 30px;
  text-wrap: pretty;
}

.proof__quote q { quotes: none; }
.proof__mark { color: var(--green); }

.proof__cite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
}

.proof__name { color: #FFFFFF; font-size: 18px; }
.proof__firm { text-transform: uppercase; }
.proof__rule { border-top: 1px solid rgba(255, 255, 255, 0.18); max-width: 520px; margin: clamp(36px, 5vw, 56px) auto 0; }

.proof__logos {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-items: center;
  justify-content: center;
  column-gap: clamp(20px, 4vw, 44px);
  row-gap: 12px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* -----------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */

.site-foot { border-top: 1px solid rgba(22, 40, 28, 0.12); }

.site-foot__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 56px) clamp(20px, 5vw, 64px);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  flex-wrap: wrap;
}

.site-foot__brand { width: 100%; max-width: 188px; }
.site-foot__legal { font-size: 13px; color: var(--muted); }
.site-foot__links { display: flex; gap: 20px; font-size: 13px; }
.site-foot__links a { color: var(--muted); }
.site-foot__links a:hover { color: var(--ink); }

/* -----------------------------------------------------------------------------
 * Responsive — the two breakpoints the demo computed in JS as `narrow` and
 * `mobile`. Keep these values in sync with homepage.js, which uses the same
 * 1040px cut to decide whether the nav panel may open.
 * -------------------------------------------------------------------------- */

@media (max-width: 1039px) {
  .nav__links,
  .nav__signin,
  .nav__actions .btn-primary--nav { display: none; }

  .nav__burger { display: flex; }
  .nav__panel.is-open { display: flex; }

  /* Hero stacks: art first, copy under it, centred. */
  .hero__copy { order: 2; max-width: 100%; text-align: center; }
  .hero__reel { order: 1; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__trust { margin-left: auto; margin-right: auto; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; }

  .proof__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-foot__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 719px) {
  .hero__inner { padding-bottom: 40px; }

  /* Full-width stacked CTAs. */
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn,
  .pricing__cta,
  .buyers__cta { width: 100%; }

  .reel__controls { left: 10px; right: 10px; bottom: 10px; gap: 8px; }
  .reel__pill { font-size: 11px; padding: 6px 11px; }
  .reel__play { width: 26px; height: 26px; }
  .reel__play i { border-width: 5px 0 5px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h2h-home *,
  .h2h-home *::after { animation: none !important; transition: none !important; }
}
