/* ============================================================
   LANDING PAGE BOILERPLATE — styles.css
   Greyscale theme. Swap --color-accent to rebrand instantly.
   ============================================================ */

:root {
  /* Colors — change accent to your brand color */
  --color-bg:       #f7f7f7;
  --color-white:    #ffffff;
  --color-black:    #FFDD03;
  --color-grey-100: #f2f2f2;
  --color-grey-200: #e5e5e5;
  --color-grey-300: #cccccc;
  --color-grey-400: #999999;
  --color-grey-500: #666666;
  --color-grey-600: #333333;
  --color-accent:   #FFDD03;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 100px;

  /* Shadow */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);

  /* Layout */
  --max-width:     1100px;
  --header-height: 68px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll on iOS Safari */
}
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Utilities ──────────────────────────────────────────── */
.nowrap { white-space: nowrap; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-grey-500);
  margin-bottom: 10px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover  { opacity: 0.82; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-secondary {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}
.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
  border-radius: var(--radius-pill);
}
.btn-full { width: 100%; }


/* Header CTA — yellow bg, black text, Inter Medium */
.header-cta {
  background: #ffdd03 !important;
  color: #000 !important;
  min-width: 158px;
  height: 40px;
  padding: 0 20px;
  font-family: 'Inter', var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  border: none;
}
.header-cta:hover { opacity: 0.88; transform: translateY(-1px); }


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--header-height);
  background: rgba(247, 246, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  padding: 0 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #000;
  flex-shrink: 0;
}
.logo-lemon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.logo-text {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: #000;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-family: 'Inter', var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: opacity 0.18s;
}
.site-nav a:hover { opacity: 0.65; }

/* CTA inside mobile nav — hidden on desktop */
.nav-mobile-cta {
  display: none;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animate to × when menu is open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 110px 0 88px;
  text-align: center;
  background: #f7f6f5;
  position: relative;
}

.hero-inner {
  max-width: 984px;
  margin: 0 auto;
}

/* Hover trigger — wraps h1, triggers both animations */
.hero-headline-wrap {
  position: relative;
  display: block;
  margin-bottom: 40px;
  cursor: default;
}

/* Mobile heading variant — hidden by default, shown at ≤600px */
.hero-title-mobile { display: none; }

/* Headline — Atkinson Hyperlegible Bold */
.hero-title {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: clamp(2.4rem, 5.5vw, 4.375rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #000;
  margin-bottom: 0;
}

/*
  Line 1 — lemon lives inline here, so it always sits right after "Check".
  nowrap prevents line 1 from breaking mid-sentence.
*/
.hero-line1 {
  white-space: nowrap;
}

/* Lemon — inline after "Check", lifts above the text baseline */
.hero-lemon {
  display: inline-block;
  width: 0.95em;   /* scales with font-size, ~66px at 70px */
  height: 0.95em;
  object-fit: contain;
  vertical-align: top;
  position: relative;
  top: -0.18em;    /* peeks above the cap-height */
  margin-left: 0.04em;
  filter: grayscale(1);
  transform: rotate(10deg) scale(1);
  transform-origin: center center;
  transition:
    filter    0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.hero-headline-wrap:hover .hero-lemon {
  filter: grayscale(0);
  transform: rotate(16deg) scale(1.2);
}

/*
  Highlight — D7E2C2 green strip at rest (38% line height, bottom-anchored).
  Blue slides in from left on hover.
*/
.hero-highlight {
  display: inline;
  background-image:
    linear-gradient(rgba(74, 145, 217, 0.5), rgba(74, 145, 217, 0.5)),
    linear-gradient(#D7E2C2, #D7E2C2);
  background-repeat: no-repeat, no-repeat;
  background-size: 0% 38%, 100% 38%;
  background-position: left bottom, left bottom;
  transition: background-size 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 12px;
}

/* No highlight on "Check" at larger breakpoints — only the second line gets it */
.hero-line1 .hero-highlight {
  background: none;
  padding: 0;
  transition: none;
}

.hero-headline-wrap:hover .hero-highlight {
  background-size: 100% 38%, 100% 38%;
}

/* Subtext — Inter Medium, 150% line height */
.hero-sub {
  font-family: 'Inter', var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  color: #000;
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* Bullets — Inter Regular, 150% line height */
.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 36px;
  font-family: 'Inter', var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
}
.hero-bullets li { display: flex; align-items: center; gap: 8px; }

/* Hero CTA — Inter Medium, black on yellow */
.hero .btn-lg {
  font-family: 'Inter', var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  color: #000;
  background: #ffdd03;
  height: 62px;
  padding: 0 36px;
  border: none;
}

/* ── Touch / no-hover devices: always show "hover" state ── */
@media (hover: none) {
  .hero-highlight {
    background-size: 100% 38%, 100% 38%;
  }
  .hero-lemon {
    filter: grayscale(0);
    transform: rotate(16deg) scale(1.1);
  }
}

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-sub  { font-size: 20px; max-width: 90%; }
  .hero-bullets { font-size: 18px; }
  .hero .btn-lg { height: 62px; font-size: 24px; padding: 0 36px; }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
  .hero { padding: 80px 0 40px; }

  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }

  /* Swap heading variants */
  .hero-title-desktop { display: none; }
  .hero-title-mobile  { display: block; }

  /* Only suppress the br inside the desktop span; the mobile br is needed */
  .hero-title-desktop br { display: none; }
  .hero-line1 { white-space: normal; }

  /* Pull lemon out of text flow — float it top-right of the wrapper */
  .hero-headline-wrap { padding-top: 16px; }
  .hero-lemon {
    position: absolute;
    top: -8px;
    right: 4px;
    width: 54px;
    height: 54px;
    margin: 0;
    vertical-align: unset;
    /* Always show hover state on mobile */
    filter: grayscale(0);
    transform: rotate(16deg) scale(1);
    transition: none;
  }

  /* Always show blue highlight on mobile */
  .hero-highlight {
    background-size: 100% 38%, 100% 38%;
    transition: none;
    padding: 0;
    /* Clone the stripe onto every wrapped line */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  /* Re-enable highlight on "Check" at mobile + one word-space after it */
  .hero-line1 .hero-highlight {
    background-image:
      linear-gradient(rgba(74, 145, 217, 0.5), rgba(74, 145, 217, 0.5)),
      linear-gradient(#D7E2C2, #D7E2C2);
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 38%, 100% 38%;
    background-position: left bottom, left bottom;
    padding-right: 0.28em;
  }

  .hero-sub    { font-size: 18px; max-width: 100%; }
  .hero-bullets { font-size: 16px; }
  .hero .btn-lg {
    width: 100%;
    max-width: 360px;
    height: 58px;
    font-size: 20px;
    padding: 0 28px;
  }

}


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: #e5e5e4;
  padding: 140px 0;
}
.how-it-works .container {
  max-width: 1400px;
}

.how-it-works-content {
  padding-left: 48px;
}

.how-it-works-inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
  align-items: center;
}

.how-it-works-title {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin-bottom: 52px;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hiw-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hiw-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b2ceea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.hiw-step-text {
  font-family: 'Inter', var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  white-space: nowrap;
}

.hiw-step-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Logo cycle */
.hiw-logo-cycle {
  position: relative;
  width: 190px;
  min-width: 190px;
  height: 36px;
  flex-shrink: 0;
}

.hiw-logo {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: auto;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hiw-logo.active { opacity: 1; }

/* Mockup */
.hiw-mockup {
  overflow: hidden;
  border-radius: 42px;
}
.hiw-mockup img,
.hiw-mockup video {
  width: 100%;
  display: block;
}
.hiw-mockup video {
  transform: scale(1.14);
}

@media (max-width: 1000px) {
  .hiw-step-text { font-size: 20px; }
}

@media (max-width: 900px) {
  .how-it-works { padding: 80px 0; }
  .how-it-works-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hiw-mockup { order: -1; }
  .hiw-step-text { white-space: normal; }
  /* Remove the desktop left-indent — wastes space in single-column layout */
  .how-it-works-content { padding-left: 0; }
}

@media (max-width: 600px) {
  .how-it-works { padding: 60px 0; }
  .hiw-step-text { font-size: 18px; }

  /* Number stays pinned left; content group wraps to its right */
  .hiw-step {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
  }
  .hiw-step-num { flex-shrink: 0; margin-top: 2px; }
  .hiw-step-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
  }
  .hiw-step-text { white-space: normal; flex-shrink: 1; min-width: 0; }
  /* Chrome icon */
  .hiw-step-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  /* Logo cycle */
  .hiw-logo-cycle {
    min-width: unset;
    width: 140px;
    height: 32px;
    flex-shrink: 0;
  }
  .hiw-logo {
    width: auto !important;
    max-width: 140px;
    height: 32px;
    object-fit: contain;
    object-position: left center;
  }
}


/* ============================================================
   LOGO / SOCIAL PROOF STRIP
   ============================================================ */
.logo-strip {
  padding: 39px 0;
  background: #f7f6f5;
  text-align: center;
  overflow: hidden; /* clips the mobile marquee */
}

.logo-strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: nowrap;
}

.logo-strip .container {
  max-width: 1400px;
}

.logo-strip-img {
  display: block;
  height: auto;
  filter: grayscale(1);
  pointer-events: none;
}

/* Marquee shown at all breakpoints; static row hidden */
.logo-strip .container { display: none; }

.logo-marquee {
  display: flex;
  width: max-content;
  animation: logo-scroll 36s linear infinite;
  will-change: transform;
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
  flex-shrink: 0;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .logo-strip { padding: 20px 0; }
  .logo-marquee { animation-duration: 18s; }
  .logo-marquee-track {
    gap: 36px;
    padding-right: 36px;
  }
  /* Per-logo mobile widths — uniform height override fails due to
     varying image aspect ratios (e.g. Facebook is nearly square) */
  .logo-marquee-track img:nth-child(1) { width: 160px !important; } /* AutoTrader */
  .logo-marquee-track img:nth-child(2) { width: 80px !important; }  /* eBay */
  .logo-marquee-track img:nth-child(3) { width: 145px !important; } /* Facebook */
  .logo-marquee-track img:nth-child(4) { width: 128px !important; } /* Motors */
  .logo-marquee-track img:nth-child(5) { width: 119px !important; } /* CarGurus */
  .logo-marquee-track img:nth-child(6) { width: 70px !important; }  /* Cinch */
  .logo-marquee-track img:nth-child(7) { width: 94px !important; }  /* Cazoo */
  .logo-marquee-track img:nth-child(8) { width: 156px !important; } /* PistonHeads */
}


/* ============================================================
   COMPARISON CARDS
   ============================================================ */
.comparison {
  padding: 88px 0;
  background: var(--color-bg);
}

.comparison-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.comp-card {
  position: relative;
  width: 360px;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.comp-card--bad  { background: #ffeaea; border: 4px solid #f52527; }
.comp-card--good { background: #f4f8ed; border: 4px solid #90b546; }

/* Header */
.comp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.comp-card-title {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.comp-card--bad  .comp-card-title { color: #f52527; }
.comp-card--good .comp-card-title { color: #90b546; }

/* Icon — SVGs are self-contained (fill + ring + symbol) */
.comp-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

/* Screenshot */
.comp-screenshot {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.comp-screenshot img,
.comp-screenshot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comp-card--good .comp-screenshot video {
  object-position: bottom right;
}
.comp-card--bad .comp-screenshot video {
  object-position: center;
}

/* Steps */
.comp-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comp-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  min-height: 28px;
}
.comp-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}
.comp-badge--bad  { background: rgba(245, 37,  39,  0.3); }
.comp-badge--good { background: rgba(144, 181, 70,  0.4); }

/* "Easy peasy lemon squeezy" */
.comp-squeezy {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-10%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.comp-squeezy-arrow {
  width: 52px;
  height: auto;
}
.comp-squeezy-text {
  font-family: 'Inter', var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.25;
  text-align: center;
  transform: rotate(-8deg);
  transform-origin: center top;
}

@media (max-width: 960px) {
  .comparison { padding: 60px 0; }
  .comp-card { width: 100%; max-width: 500px; min-height: unset; }
  .comparison-cards { flex-direction: column; align-items: center; }
}
@media (max-width: 600px) {
  .comparison { padding: 60px 0; }
  .comp-card { min-height: unset; }
  .comp-card-title { font-size: 30px; }
  .comp-steps li { font-size: 20px; }
  /* Take squeezy out of absolute positioning so it flows below the steps */
  .comp-squeezy {
    position: static;
    transform: none;
    margin-top: 20px;
    align-self: center;
  }
}


/* ============================================================
   LEMON SPOT
   ============================================================ */
.lemon-spot {
  background: #e5e5e4;
  padding: 160px 0;
  overflow: hidden; /* prevents negatively-positioned badges causing h-scroll */
}

.lemon-spot .container {
  max-width: 1400px; /* wider than default 1100px — gives car more space */
}

.lemon-spot-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* car column slightly wider to accommodate badges */
  gap: 60px;
  align-items: center;
}

/* Car image column */
.lemon-car-wrap {
  position: relative;
}

.lemon-car-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Badges */
.lemon-badge {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 1000px;
  font-family: 'Inter', var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lemon-badge svg { flex-shrink: 0; margin-top: 1px; }
.lemon-badge--advisory { background: rgb(255, 237, 204); color: orange; }
.lemon-badge--major    { background: rgb(253, 211, 212);      color: #f52427; }
.lemon-badge.badge-visible { opacity: 1; transform: translateY(0); }

/* Rust bucket text + arrow */
.rust-bucket {
  position: absolute;
  bottom: -8%;
  left: 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.rust-bucket.badge-visible { opacity: 1; }

.rust-arrow {
  width: 48px;
  height: auto;
  transform: scaleY(-1) rotate(184deg);
  transform-origin: center;
  position: relative;
  top: -10px;
}

.rust-text {
  font-family: 'Inter', var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  text-align: center;
  transform: rotate(18deg);
  transform-origin: center top;
}

/* Right copy column */
.lemon-title {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin-bottom: 36px;
}
.lemon-title span {
  display: inline;
}

.lemon-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lemon-body p {
  font-family: 'Inter', var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
}

@media (max-width: 900px) {
  .lemon-spot { padding: 80px 0; }
  .lemon-spot-inner { grid-template-columns: 1fr; gap: 48px; }
  /* Cap car image width so it doesn't fill the whole viewport */
  .lemon-car-wrap { max-width: 480px; margin: 0 auto; padding-bottom: 48px; }
  .lemon-copy { text-align: center; }
}

@media (max-width: 600px) {
  .lemon-spot { padding: 60px 0; }
  /* Hide badges on mobile */
  .lemon-badge, .rust-bucket { display: none; }
  .lemon-car-wrap { padding-bottom: 0; }
  .lemon-spot-inner { gap: 64px; }
}


/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  background: #f7f6f5;
  padding: 80px 0;
}

.video-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Hand-drawn annotation blocks */
.video-annot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 130px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.video-annot--left  { transform: rotate(15deg);  margin-right: -40px; }
.video-annot--right { transform: rotate(-15deg); margin-left:  -40px; }

.video-annot-arrow {
  width: 50px;
  height: 40px;
  display: block;
  overflow: visible;
}
/* Left arrow: flip vertically so it points up-right toward the video */
.video-annot--left  .video-annot-arrow { transform: scaleY(-1); }
/* Right arrow: rotate 180° so it points up-left toward the video */
.video-annot--right .video-annot-arrow { transform: rotate(180deg); }

.video-annot-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
  line-height: 1.3;
  margin: 0;
}

.video-box {
  flex: 1;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

@media (max-width: 680px) {
  .video-annot { display: none; }
}


/* ============================================================
   FEATURE SECTIONS (alternating left / right)
   ============================================================ */
.features { background: var(--color-white); }

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--color-grey-200);
}
.feature-block:first-child { padding-top: 80px; }
.feature-block:last-child  { border-bottom: none; padding-bottom: 88px; }

/* Flip layout for even blocks */
.feature-block.flip { direction: rtl; }
.feature-block.flip > * { direction: ltr; }

.feature-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.feature-text p {
  color: var(--color-grey-500);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.feature-text .btn { margin-top: 8px; }

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-grey-500);
}
.feature-bullets li::before {
  content: '→';
  color: var(--color-black);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Square media placeholder — swap for <img> or <video> */
.feature-media {
  aspect-ratio: 1 / 1;
  background: var(--color-grey-100);
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey-400);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}


/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: #fff;
  padding: 120px 0;
}

.cta-banner-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-banner-title {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin-bottom: 40px;
}

.cta-banner-body {
  font-family: 'Inter', var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  margin-bottom: 24px;
}

.btn-cta-banner {
  background: #ffdd03;
  color: #000;
  font-family: 'Inter', var(--font-sans);
  font-weight: 500;
  border: none;
  min-width: 220px;
}

@media (max-width: 600px) {
  .cta-banner { padding: 80px 0; }
}


/* ============================================================
   BETA BANNER
   ============================================================ */
.beta-banner {
  display: flex;
  overflow: hidden;
  background: #ffdd03;
  padding: 10px 0;
  white-space: nowrap;
}

.beta-banner-track {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  flex-shrink: 0;
  animation: beta-scroll 20s linear infinite;
  will-change: transform;
}

.beta-banner-track span {
  font-family: 'Inter', var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #000;
}

@keyframes beta-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  /* populate.js sets --color-black to the brand yellow — re-scope it here */
  --color-black: #0a0a0a;
  padding: 88px 0;
  background: #e5e5e4;
  text-align: center;
}

.pricing-header { margin-bottom: 52px; }
.pricing-header h2 {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #0a0a0a;
}
.pricing-header p {
  font-family: 'Inter', var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-grey-500);
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pricing-card {
  position: relative;
  width: 320px;
  background: var(--color-white);
  border: 2px solid var(--color-grey-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  text-align: left;
  transition: box-shadow 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }

/* Featured card */
.pricing-card.featured {
  background: var(--color-white);
  border-color: var(--color-grey-200);
  color: #0a0a0a;
}

.card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-grey-600);
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-card.featured .card-badge {
  background: #ffdd03;
  color: #000;
}
.card-badge--beta {
  left: auto;
  right: 16px;
  background: #000;
  color: #fff;
}

.plan-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0a0a0a;
  margin-bottom: 16px;
}
.pricing-card.featured .plan-name { color: #0a0a0a; }

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 4px;
}
.price-currency {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.price-amount {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #0a0a0a;
}
.price-period {
  font-size: 14px;
  color: var(--color-grey-400);
  margin-left: 2px;
}

.price-desc {
  font-size: 14px;
  color: #0a0a0a;
  margin-bottom: 32px;
  min-height: 18px;
}

/* "Unlimited" highlight */
.price-highlight {
  background: rgba(74, 145, 217, 0.25);
  border-radius: 3px;
  margin-right: -4px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 36px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #0a0a0a;
}
.plan-features li::before {
  content: '✓';
  font-weight: 700;
  flex-shrink: 0;
  color: #0a0a0a;
}
.pricing-card.featured .plan-features li { color: #0a0a0a; }
.pricing-card.featured .plan-features li::before { color: #0a0a0a; }

.btn-plan {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 15px;
  font-size: 16px;
}
.pricing-card.featured .btn-plan {
  background: #ffdd03;
  color: #000;
  border-color: #ffdd03;
}
.pricing-card.featured .btn-plan:hover { opacity: 0.88; }
.btn-plan--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.pricing-card.featured .plan-name,
.pricing-card.featured .price-row,
.pricing-card.featured .plan-features {
  opacity: 0.4;
  text-decoration: line-through;
}

.pricing-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--color-grey-400);
  text-align: center;
}


/* ============================================================
   FAQ
   ============================================================ */
.faq {
  /* populate.js sets --color-black to the brand yellow — re-scope it here */
  --color-black: #0a0a0a;
  padding: 88px 0;
  background: #f7f6f5;
}
.faq-left h2 { color: #0a0a0a; }

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: flex-start;
}

/* Left column — explicitly match .feature-text styles */
.faq-left .section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-grey-500);
  margin-bottom: 10px;
}
.faq-left h2 {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

/* Right column — accordion */
.faq-list { display: flex; flex-direction: column; }

.faq-item { border-top: 1px solid var(--color-grey-200); }
.faq-item:last-child { border-bottom: 1px solid var(--color-grey-200); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--color-black);
  font-family: 'Inter', var(--font-sans);
}
.faq-question:hover { color: var(--color-grey-600); }

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--color-grey-500);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
  font-family: 'Inter', var(--font-sans);
  font-size: 15px;
  color: var(--color-grey-500);
  line-height: 1.75;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 22px;
}


/* ============================================================
   MOT BENEFITS — accordion left · image right
   ============================================================ */
.mot-benefits {
  /* Re-scope --color-black — populate.js sets it to brand yellow globally */
  --color-black: #0a0a0a;
  padding: 88px 0;
  background: #e5e5e4;
}

.mot-benefits-header {
  text-align: center;
  margin: 0 auto 56px;
}

.mot-benefits-title {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 auto 16px;
  max-width: 680px;
  color: #000;
}

.mot-benefits-sub {
  font-size: 16px;
  color: #666666;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

.mot-benefits-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mot-benefits-list { flex: 1; }
.mot-benefits-list .faq-item { border-top-color: #c8c8c8; }
.mot-benefits-list .faq-item:last-child { border-bottom-color: #c8c8c8; }

.mot-benefits-q-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
}

.mot-benefits-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mot-benefits-img-inner {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.mot-benefits-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ── Image annotations ──────────────────────────────────── */
.img-annots {
  display: none;
  pointer-events: none;
}
.img-annots.visible { display: block; }

.img-annot {
  position: absolute;
  left: calc(100% - 40px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: 150px;
}
.img-annot--top { top: 11%; transform: rotate(-6deg); }
.img-annot--mid { top: 36%; transform: rotate(5deg);  }
.img-annot--bot { top: 54%; transform: rotate(-4deg); }

.img-annot-text {
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  line-height: 1.35;
  margin: 0;
}

.img-annot-arrow {
  width: 44px;
  height: 36px;
  flex-shrink: 0;
}

#img-annots-2 .img-annot--mid { top: 48%; }
#img-annots-2 .img-annot--bot { top: 68%; }
#img-annots-3 .img-annot--mid { top: 52%; }
#img-annots-4 .img-annot--mid { top: 52%; }

@media (max-width: 1100px) {
  .img-annot { display: none; }
}

@media (max-width: 768px) {
  .mot-benefits-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mot-benefits-img-wrap { order: -1; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--color-grey-200);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 14px;
  color: var(--color-grey-400);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--color-grey-400);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-links a:hover { color: #0a0a0a; }


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  min-height: calc(100vh - var(--header-height));
  padding: 80px 0 100px;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}
.contact-inner .section-label { margin-bottom: 10px; text-transform: none; letter-spacing: 0; font-family: 'Inter', var(--font-sans); font-size: 17px; font-weight: 400; }
.contact-inner h1 {
  font-family: 'Atkinson Hyperlegible', var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #0a0a0a;
}
.contact-lead {
  font-family: 'Inter', var(--font-sans);
  font-size: 17px;
  color: var(--color-grey-500);
  margin-bottom: 48px;
  line-height: 1.7;
}

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-family: 'Inter', var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-grey-600);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: 'Inter', var(--font-sans);
  color: #0a0a0a;
  background: var(--color-white);
  outline: none;
  transition: border-color 0.18s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(74, 145, 217, 0.8);
}
.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-submit { margin-top: 8px; }
.form-submit .btn {
  font-family: 'Inter', var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: #000;
  background: #ffdd03;
  height: 40px;
  padding: 0 20px;
}

.form-success {
  display: none;
  padding: 24px;
  background: var(--color-grey-100);
  border-radius: var(--radius-md);
  text-align: center;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--color-grey-500); font-size: 15px; }


/* ── Mobile menu backdrop ───────────────────────────────── */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 9998; /* below header (10000) but above page content */
  transition: opacity 0.25s ease;
}
.menu-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  /* Header */
  .menu-toggle { display: flex; }
  .header-cta  { display: none; }
  /* Raise header above notifications when mobile menu is open,
     and make it solid so it matches the nav dropdown */
  .site-header.menu-open {
    z-index: 10000;
    background: #f7f6f5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: #f7f6f5;
    flex-direction: column;
    padding: 20px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--color-grey-200);
  }
  .site-nav.open { display: flex; }
  .nav-mobile-cta {
    display: flex;
    width: 100%;
    background: #ffdd03;
    color: #000;
    font-family: 'Inter', var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    border: none;
    margin-top: 4px;
  }

  /* Features */
  .feature-block {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 0;
  }
  .feature-block.flip { direction: ltr; }

  /* Pricing */
  .pricing-cards { flex-direction: column; align-items: center; }

  /* Logo strip */
  .logo-strip-row { gap: 28px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-lemon { width: 60px; height: 60px; right: -32px; top: -6px; }
  .pricing-card { width: 100%; }
}
