/* ==========================================================================
   Ingage Pro — Landing page styles
   Sibling of ingage.io. Warm light mode w/ occasional dark sections.
   ========================================================================== */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #FBF9F4; /* slightly warmer than Metro White */
  color: var(--whale-gray);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* warm cast across the whole page */
:root {
  --warm-bg: #FBF9F4;
  --warm-bg-2: #F5F1E8;       /* deeper warm */
  --warm-line: #E8E2D3;
  --warm-fg: #2A2A2E;
  --warm-fg-2: #5A554B;
  --wood-dark: #1C1A17;
  --wood-deep: #2B2620;
}

.page-wrap { width: 100%; overflow-x: clip; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: var(--whale-gray);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav.scrolled { box-shadow: 0 2px 14px rgba(0,0,0,0.18); }
.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-logo { height: 28px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--metro-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 22px;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  border-radius: 6px; border: 0; cursor: pointer;
  text-decoration: none;
  transition: background .12s ease, color .12s ease, transform .12s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--swell-green); color: var(--whale-gray);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary {
  background: transparent; color: var(--whale-gray);
  border: 1.5px solid var(--whale-gray);
}
.btn-secondary:hover { background: var(--whale-gray); color: var(--metro-white); }
.btn-ghost-dark {
  background: rgba(255,255,255,0.06); color: var(--metro-white);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.12); }
.btn-arrow { gap: 8px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 14px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--swell-green-dark);
}
.eyebrow.on-dark { color: var(--swell-green); }
.h-display {
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--whale-gray);
  text-wrap: balance;
  margin: 0;
}
.h-section {
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--whale-gray);
  text-wrap: balance;
  margin: 0;
}
.h-feature {
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--whale-gray);
  text-wrap: balance;
  margin: 0 0 16px 0;
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--warm-fg);
  font-weight: 600;
  margin: 0;
}
.body-lg {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--warm-fg);
  margin: 0;
}
.body-lg p + p { margin-top: 1em; }
.body-lg.on-dark { color: rgba(255,255,255,0.82); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section {
  padding: clamp(80px, 9vw, 140px) 48px;
  max-width: 1320px; margin: 0 auto;
}
.section-tight { padding: clamp(60px, 7vw, 100px) 48px; }
.section-dark {
  background: var(--wood-dark);
  color: var(--metro-white);
}
.section-dark .h-section,
.section-dark .h-feature { color: var(--metro-white); }
.section-dark .lead { color: rgba(255,255,255,0.72); }

.section-warm-deep {
  background: var(--warm-bg-2);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(60px, 7vw, 96px) 48px clamp(48px, 6vw, 88px);
  background: #ffffff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}
.hero-copy { max-width: 620px; }
.hero-eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; }
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--warm-fg);
  margin: 0 0 32px 0;
  max-width: 540px;
}
.hero-sub b { color: var(--whale-gray); font-weight: 700; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { min-width: 240px; padding: 0 32px; }
.hero-micro {
  margin-top: 18px;
  font-size: 14px;
  color: var(--warm-fg-2);
  max-width: 240px;
  text-align: center;
}
.hero-micro .dot { display: inline-block; margin: 0 8px; opacity: 0.5; }

/* iPad video placeholder */
.hero-video-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--warm-bg-2);
  box-shadow:
    0 30px 80px -20px rgba(80, 50, 20, 0.35),
    0 8px 24px -8px rgba(0,0,0,0.18);
}
.hero-video {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 226, 178, 0.55), transparent 55%),
    radial-gradient(ellipse at 75% 90%, rgba(60, 30, 10, 0.45), transparent 60%),
    linear-gradient(160deg, #d9b377 0%, #b07d44 35%, #6b4322 70%, #3a230f 100%);
}
.hero-video::before {
  /* wood grain */
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(91deg,
      rgba(80,40,15,0.0) 0px,
      rgba(80,40,15,0.0) 14px,
      rgba(80,40,15,0.18) 14px,
      rgba(80,40,15,0.18) 15px),
    repeating-linear-gradient(89deg,
      rgba(255,220,170,0.0) 0px,
      rgba(255,220,170,0.0) 22px,
      rgba(255,220,170,0.06) 22px,
      rgba(255,220,170,0.06) 23px);
  mix-blend-mode: overlay;
  opacity: 0.7;
}
/* The "iPad" floating in the kitchen-table scene */
.hero-ipad {
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 72%;
  aspect-ratio: 4 / 3;
  background: #0E0E10;
  border-radius: 18px;
  padding: 14px;
  box-shadow:
    0 28px 50px -10px rgba(0,0,0,0.55),
    0 6px 12px rgba(0,0,0,0.35),
    inset 0 0 0 1.5px #2a2a30;
}
.hero-ipad-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #FAFAF7 0%, #ECEAE2 100%);
}
.hero-ipad-content {
  position: absolute; inset: 0;
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.hero-ipad-eyebrow {
  font-size: 9px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--swell-green-dark); text-transform: uppercase;
}
.hero-ipad-title {
  font-weight: 700; font-size: 22px; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--whale-gray);
  margin: 0;
}
.hero-ipad-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  flex: 1;
}
.hero-ipad-tile {
  border-radius: 4px;
  background: linear-gradient(135deg, #c9a26a, #6b4322);
}
.hero-ipad-tile.b { background: linear-gradient(135deg, #5b6671, #1f242a); }
.hero-ipad-tile.c { background: linear-gradient(135deg, #d9d4c4, #98927f); }
.hero-ipad-tile.d {
  background: var(--whale-gray);
  display: flex; align-items: flex-end; padding: 8px;
  color: var(--swell-green); font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
/* the "hand" at the bottom of the hero */
.hero-hand {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 38%;
  height: 50%;
  background:
    radial-gradient(ellipse at 35% 30%, rgba(245,210,170,0.95) 0%, rgba(220,170,120,0.85) 35%, rgba(140,90,55,0.0) 65%);
  filter: blur(2px);
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 22px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  color: white;
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em;
}
/* "live" pulse indicator on hero video */
.hero-live {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.92);
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero-live .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--swell-green);
  box-shadow: 0 0 0 0 rgba(42,212,192,0.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(42,212,192,0.6); }
  100% { box-shadow: 0 0 0 10px rgba(42,212,192,0); }
}
/* subtle "tap ripple" simulating the hand interaction */
.hero-ipad::after {
  content: "";
  position: absolute; left: 30%; top: 65%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(42,212,192,0.6);
  animation: tap 4.5s ease-out infinite;
}
@keyframes tap {
  0% { transform: scale(0.4); opacity: 0; }
  10% { opacity: 0.8; }
  60% { transform: scale(4); opacity: 0; }
  100% { transform: scale(4); opacity: 0; }
}

/* ============================================================
   PROBLEM (Section 2)
   ============================================================ */
.problem-section { background: var(--warm-bg-2); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}
.problem-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.problem-head h2 { margin-bottom: 14px; max-width: none; text-wrap: balance; }
.problem-head .eyebrow { display: inline-block; margin-bottom: 6px !important; }
.problem-head .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.problem-subhead {
  margin: 8px auto 0 auto;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--warm-fg-2);
  max-width: 760px;
}

.problem-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.problem-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #ddd;
  box-shadow: var(--shadow-2);
}
.problem-card .label {
  position: absolute; left: 18px; top: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.problem-card .caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.78) 75%);
  color: white;
}
.problem-card .caption h4 {
  font-size: 22px; font-weight: 700; margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.problem-card .caption p {
  font-size: 14px; margin: 0;
  color: rgba(255,255,255,0.78);
}

/* Left card — desaturated paper-folder scene */
.problem-card.left .scene {
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, #c8c0b3 0%, #8a8378 60%, #5a5448 100%);
  filter: saturate(0.4) brightness(0.85);
  transition: filter 1.2s ease, transform 1.2s ease;
}
.problem-card.left .scene::before {
  /* "homeowner with phone" silhouette */
  content: ""; position: absolute;
  right: 12%; bottom: 18%;
  width: 36%; aspect-ratio: 1 / 1.4;
  background:
    radial-gradient(ellipse at 50% 18%, #7a6f60 0%, #7a6f60 22%, transparent 23%),
    linear-gradient(180deg, transparent 35%, #4a4438 36%, #3a352c 100%);
  border-radius: 40% 40% 8% 8%;
}
.problem-card.left .scene::after {
  /* "contractor with brochure" silhouette */
  content: ""; position: absolute;
  left: 10%; bottom: 12%;
  width: 38%; aspect-ratio: 1 / 1.5;
  background:
    radial-gradient(ellipse at 50% 16%, #8a7e6a 0%, #8a7e6a 22%, transparent 23%),
    linear-gradient(180deg, transparent 30%, #6a614f 31%, #4a4338 100%);
  border-radius: 40% 40% 6% 6%;
}
.problem-card.left .brochure {
  position: absolute;
  left: 32%; bottom: 36%;
  width: 16%; aspect-ratio: 3 / 4;
  background: #e8dfc8;
  border-radius: 2px;
  transform: rotate(-6deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Right card — vivid iPad scene */
.problem-card.right { background: #2a1f15; }
.problem-card.right .scene {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 220, 170, 0.6), transparent 55%),
    linear-gradient(160deg, #c89259 0%, #8a5a2c 50%, #3a2516 100%);
  filter: saturate(0.5) brightness(0.7);
  transition: filter 1.6s cubic-bezier(0.4, 0, 0.2, 1), transform 1.6s ease;
}
.problem-card.right .scene::before {
  content: ""; position: absolute;
  right: 8%; bottom: 16%;
  width: 38%; aspect-ratio: 1 / 1.35;
  background:
    radial-gradient(ellipse at 50% 18%, #d4a888 0%, #d4a888 22%, transparent 23%),
    linear-gradient(180deg, transparent 32%, #6a4a36 33%, #3a2918 100%);
  border-radius: 40% 40% 8% 8%;
  transform: translateX(-8%) rotate(2deg);
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.problem-card.right .scene::after {
  content: ""; position: absolute;
  left: 8%; bottom: 12%;
  width: 38%; aspect-ratio: 1 / 1.5;
  background:
    radial-gradient(ellipse at 50% 16%, #c89e7a 0%, #c89e7a 22%, transparent 23%),
    linear-gradient(180deg, transparent 30%, #8a6448 31%, #5a3e2a 100%);
  border-radius: 40% 40% 6% 6%;
}
.problem-card.right .ipad {
  position: absolute;
  left: 38%; bottom: 32%;
  width: 22%; aspect-ratio: 4 / 3;
  background: #0E0E10;
  border-radius: 4px;
  padding: 3px;
  transform: rotate(-4deg);
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
  z-index: 2;
  opacity: 0;
  transition: opacity 1.6s ease 0.3s;
}
.problem-card.right .ipad-screen {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2AD4C0 0%, #00B09B 60%, #232329 100%);
  border-radius: 2px;
}
.problem-card.right.in-view .scene { filter: saturate(1.1) brightness(1.02); }
.problem-card.right.in-view .scene::before { transform: translateX(0) rotate(0); }
.problem-card.right.in-view .ipad { opacity: 1; }

/* ---------- Problem stage (single panel, Ingage running on iPad) ---------- */
.problem-stage {
  position: relative;
  margin-top: 56px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3, 0 24px 60px rgba(20, 16, 12, 0.22));
  background: #1a140e;
}
.problem-stage-photo {
  position: absolute; inset: 0;
  background-image: url("assets/problem-ipad-still.png");
  background-size: cover;
  background-position: center center;
  filter: saturate(0.95) brightness(0.92);
  transform: scale(1.04);
  transition: filter 1.4s ease, transform 1.4s ease;
}
.problem-stage.in-view .problem-stage-photo {
  filter: saturate(1.05) brightness(1);
  transform: scale(1);
}
.problem-stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
}
.problem-stage-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.92);
  transform: scale(1.04);
  transition: filter 1.4s ease, transform 1.4s ease;
}
.problem-stage.in-view .problem-stage-video {
  filter: saturate(1.05) brightness(1);
  transform: scale(1);
}
.problem-stage-restart {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 5;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(20, 16, 12, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.problem-stage-restart:hover { background: rgba(20, 16, 12, 0.78); transform: scale(1.05); }
.problem-stage-restart:focus-visible { outline: 2px solid var(--swell-green); outline-offset: 2px; }
.problem-stage-restart svg { width: 18px; height: 18px; display: block; }

.ps-tag {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ps-tag.tl { left: 22px; top: 22px; }
.ps-tag.br { right: 22px; bottom: 22px; }
.ps-tag .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--swell-green);
  box-shadow: 0 0 0 0 rgba(42, 212, 192, 0.7);
  animation: psPulse 1.6s ease-out infinite;
}
@keyframes psPulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 212, 192, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(42, 212, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 212, 192, 0); }
}

/* Floating "iPad screen" composited over the photo */
.ps-screen {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateY(14px) scale(0.96);
  opacity: 0;
  width: min(62%, 720px);
  aspect-ratio: 4 / 3;
  background: #16171A;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 4px 14px rgba(0,0,0,0.35);
  overflow: hidden;
  transition: opacity 1s ease 0.2s, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}
.problem-stage.in-view .ps-screen {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}
.ps-screen-chrome {
  position: absolute; left: 0; right: 0; top: 0;
  height: 38px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center;
  padding: 0 14px;
}
.ps-screen-tabs {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ps-tab.active {
  color: var(--swell-green);
  position: relative;
}
.ps-tab.active::after {
  content: "";
  position: absolute; left: -4px; right: -4px; bottom: -12px;
  height: 2px; background: var(--swell-green);
  border-radius: 2px;
}
.ps-screen-body {
  position: absolute; inset: 38px 0 0 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}
.ps-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.ps-card-1 {
  grid-row: 1 / span 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(135deg, #6b4a30 0%, #2a1f15 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.ps-card-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--swell-green);
  margin-bottom: 6px;
}
.ps-card-title {
  font-size: 17px; font-weight: 700; color: white;
  letter-spacing: -0.01em; line-height: 1.15;
}
.ps-card-meta {
  font-size: 10px; color: rgba(255,255,255,0.6);
  margin-top: 8px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.ps-swatches { display: flex; gap: 6px; margin-bottom: 10px; }
.ps-swatches span {
  width: 28px; height: 28px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.18);
}
.ps-swatches span:first-child { border-color: var(--swell-green); }
.ps-card-3 { padding: 0; }
.ps-ba {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #4a3a2a 0%, #2a201a 100%);
  overflow: hidden;
}
.ps-ba-before, .ps-ba-after {
  position: absolute; inset: 0;
}
.ps-ba-before {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0 6px, rgba(0,0,0,0) 6px 12px),
    linear-gradient(135deg, #5a4632 0%, #2a1f15 100%);
  filter: grayscale(0.6) brightness(0.85);
  clip-path: polygon(0 0, 55% 0, 55% 100%, 0 100%);
}
.ps-ba-after {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 8px, rgba(0,0,0,0) 8px 16px),
    linear-gradient(135deg, #8d6b48 0%, #4a3a28 100%);
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 55% 100%);
}
.ps-ba-handle {
  position: absolute; left: 55%; top: 0; bottom: 0;
  width: 2px; background: white;
  transform: translateX(-1px);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}
.ps-ba-handle::before, .ps-ba-handle::after {
  content: ""; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  border-radius: 999px; background: white;
}
.ps-ba-handle::after {
  width: 8px; height: 8px;
  background: var(--swell-green);
}

/* Tap ripples */
.ps-touch {
  position: absolute; z-index: 5;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(42, 212, 192, 0.6);
  pointer-events: none;
  opacity: 0;
}
.problem-stage.in-view .ps-touch-1 {
  left: 32%; top: 56%;
  animation: psTouch 3s ease-out 1.4s infinite;
}
.problem-stage.in-view .ps-touch-2 {
  left: 70%; top: 40%;
  animation: psTouch 3s ease-out 2.6s infinite;
}
@keyframes psTouch {
  0% { transform: scale(0.4); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 760px) {
  .problem-stage { aspect-ratio: 4 / 5; }
  .ps-screen { width: 84%; }
  .ps-tag.br { display: none; }
}

.problem-columns {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.problem-col { display: flex; flex-direction: column; }
.problem-col .body-lg {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--warm-fg);
}
.problem-callout {
  margin-top: 0;
  padding: 28px 32px;
  background: white;
  border: 1px solid var(--warm-line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.problem-callout.body-lg { color: var(--whale-gray); }

/* ---------- Selection highlight ---------- */
::selection {
  background: var(--swell-green);
  color: var(--whale-gray);
}
::-moz-selection {
  background: var(--swell-green);
  color: var(--whale-gray);
}
.hl {
  background: var(--swell-green);
  color: var(--whale-gray);
  padding: 0 6px;
  border-radius: 2px;
  border: 1px solid rgba(35, 35, 41, 0.18);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ============================================================
   GUIDE (Section 3) — dark
   ============================================================ */
.guide-section { background: var(--whale-gray); color: var(--metro-white); }
.guide-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.guide-section .h-section { color: var(--metro-white); }
.guide-section .body-lg { color: rgba(255,255,255,0.78); font-size: 19px; }
.guide-section .body-lg b { color: var(--metro-white); font-weight: 600; }

.guide-stack { padding-top: 8px; }
.guide-stack p + p { margin-top: 18px; }

/* logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.logo-cell {
  aspect-ratio: 4 / 3;
  min-width: 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: white;
  padding: 18px 22px;
  overflow: hidden;
  transition: background .2s, transform .2s;
}
.logo-cell-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-cell:hover { background: white; }

.logo-wall-foot {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Manufacturer logo strip (auto-scroll) ---------- */
.logo-strip {
  position: relative;
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--warm-line);
  border-bottom: 1px solid var(--warm-line);
  background: white;
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, black 0%, black 92%, transparent 100%);
}
.logo-strip-track {
  display: flex; gap: 64px;
  align-items: center;
  animation: scrollx 50s linear infinite;
  width: max-content;
}
.logo-strip-item {
  font-weight: 700; font-size: 26px; letter-spacing: -0.01em;
  color: rgba(35,35,41,0.4);
  white-space: nowrap;
  transition: color .2s ease, filter .2s ease;
  cursor: default;
}
.logo-strip-item:hover { color: var(--whale-gray); }
.logo-strip-item-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter .25s ease;
  flex-shrink: 0;
}
.logo-strip-item-img:hover { filter: grayscale(0) opacity(1); }
@keyframes scrollx {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   PLAN (Section 4) — interactive 3-step
   ============================================================ */
.plan-section { background: var(--warm-bg); }
.plan-head { margin-bottom: 56px; text-align: center; }
.plan-head h2 { margin-bottom: 16px; max-width: none; text-wrap: balance; margin-left: auto; margin-right: auto; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  align-items: stretch;
}
.plan-step {
  background: white;
  border: 1px solid var(--warm-line);  border-radius: 14px;
  padding: 32px;
  display: flex; flex-direction: column;
  min-height: 480px;
  transition: border-color .2s ease, transform .2s ease;
}
.plan-step { transition: none; }

/* Image placeholder slot — same height across all three steps */
.plan-placeholder {
  margin: -32px -32px 24px -32px;
  border-bottom: 1px solid var(--warm-line);
  background: var(--warm-bg);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}
.plan-real {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--whale-gray);
}
.plan-real img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.plan-real-top img { object-position: center top; }
.plan-ph-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg,
      rgba(35, 35, 41, 0.04) 0 1px,
      transparent 1px 14px);
}
.plan-ph-corner {
  position: absolute; width: 14px; height: 14px;
  border: 1.5px solid rgba(35, 35, 41, 0.35);
}
.plan-ph-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.plan-ph-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.plan-ph-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.plan-ph-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.plan-ph-x {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top right,
      transparent calc(50% - 0.5px),
      rgba(35, 35, 41, 0.18) calc(50% - 0.5px),
      rgba(35, 35, 41, 0.18) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)),
    linear-gradient(to top left,
      transparent calc(50% - 0.5px),
      rgba(35, 35, 41, 0.18) calc(50% - 0.5px),
      rgba(35, 35, 41, 0.18) calc(50% + 0.5px),
      transparent calc(50% + 0.5px));
}
.plan-ph-meta {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--warm-line);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warm-fg-2);
  white-space: nowrap;
}
.plan-ph-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--swell-green);
}

/* Feature image placeholder — fills the feature-visual slot */
.fv-offline-cover,
.fv-truck-cover {
  background: var(--warm-bg);
  padding: 0 !important;
}
.fv-offline-cover img,
.fv-truck-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.fv-truck-cover img { object-position: center center; }

.feature-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(35, 35, 41, 0.04) 0 1px,
      transparent 1px 14px),
    var(--warm-bg);
}
.fp-corner {
  position: absolute; width: 14px; height: 14px;
  border: 1.5px solid rgba(35, 35, 41, 0.35);
}
.fp-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.fp-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.fp-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.fp-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.fp-x {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top right,
      transparent calc(50% - 0.5px),
      rgba(35, 35, 41, 0.18) calc(50% - 0.5px),
      rgba(35, 35, 41, 0.18) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)),
    linear-gradient(to top left,
      transparent calc(50% - 0.5px),
      rgba(35, 35, 41, 0.18) calc(50% - 0.5px),
      rgba(35, 35, 41, 0.18) calc(50% + 0.5px),
      transparent calc(50% + 0.5px));
}
.fp-meta {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--warm-line);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warm-fg-2);
  white-space: nowrap;
}
.fp-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--swell-green);
}
.plan-step .step-num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--swell-green-dark);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.plan-step h3 {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.015em; margin: 0 0 12px 0;
  line-height: 1.1;
}
.plan-step p.desc {
  font-size: 15px; color: var(--warm-fg-2); line-height: 1.5;
  margin: 0 0 20px 0;
}
.plan-interaction {
  margin-top: auto;
  background: var(--warm-bg);
  border: 1px solid var(--warm-line);
  border-radius: 8px;
  padding: 18px;
  min-height: 200px;
  display: flex; flex-direction: column;
}

/* Step 1: URL input */
.url-form {
  display: flex; gap: 8px;
  margin-bottom: 14px;
}
.url-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  background: white;
  border: 1.5px solid var(--warm-line);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--whale-gray);
  outline: none;
  transition: border-color .15s;
}
.url-input:focus { border-color: var(--whale-gray); }
.url-input::placeholder { color: var(--fg-3); }
.url-submit {
  height: 40px; padding: 0 14px;
  background: var(--whale-gray); color: white;
  border: 0; border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.url-submit:hover { background: black; }
.url-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.extract-status {
  font-size: 12px; color: var(--warm-fg-2); margin-bottom: 10px;
  font-weight: 500; min-height: 16px;
}
.extract-status .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--swell-green); border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
  animation: pulse-dot 1s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.extract-result {
  display: flex; gap: 10px; align-items: center;
  padding: 10px;
  background: white;
  border: 1px solid var(--warm-line);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.extract-result.show { opacity: 1; transform: translateY(0); }
.extract-logo {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--whale-gray);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: white; font-size: 18px;
}
.extract-meta { flex: 1; min-width: 0; }
.extract-meta .name { font-size: 13px; font-weight: 700; color: var(--whale-gray); }
.extract-meta .url { font-size: 11px; color: var(--fg-3); }
.extract-swatches { display: flex; gap: 4px; }
.extract-swatch {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
  opacity: 0;
  animation: swatch-in 0.4s ease forwards;
}
.extract-swatch.s1 { animation-delay: 1.2s; background: #1a3d2c; }
.extract-swatch.s2 { animation-delay: 1.5s; background: #c8a44a; }
.extract-swatch.s3 { animation-delay: 1.8s; background: #f2efe6; }
@keyframes swatch-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

/* Step 2: manufacturer picker */
.mfr-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.mfr-tile {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 6px;
  background: white;
  border: 1.5px solid var(--warm-line);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all .15s ease;
  user-select: none;
  position: relative;
  min-height: 56px;
}
.mfr-tile:hover { border-color: var(--whale-gray); }
.mfr-tile.selected {
  background: var(--whale-gray);
  border-color: var(--whale-gray);
}
.mfr-tile .check {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--swell-green);
  color: var(--whale-gray);
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.mfr-tile.selected .check { opacity: 1; }
.mfr-tile-img {
  max-width: 100%; max-height: 32px;
  width: auto; height: auto;
  object-fit: contain;
  filter: none;
  transition: filter .15s;
}
.mfr-tile.selected .mfr-tile-img { filter: brightness(0) invert(1) opacity(0.95); }
.mfr-status {
  margin-top: 12px;
  font-size: 12px; font-weight: 600;
  color: var(--whale-gray);
}
.mfr-status .count { color: var(--swell-green-dark); font-weight: 700; }

/* Step 3: iPad preview */
.plan-ipad-wrap {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,210,160,0.6), transparent 60%),
    linear-gradient(160deg, #c89259 0%, #6b4322 60%, #3a230f 100%);
  min-height: 200px;
}
.plan-ipad {
  position: relative;
  width: 76%;
  aspect-ratio: 4 / 3;
  background: #0E0E10;
  border-radius: 8px;
  padding: 6px;
  transform: rotate(-2deg);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.plan-ipad-screen {
  width: 100%; height: 100%;
  border-radius: 3px;
  background: white;
  display: flex; flex-direction: column;
  padding: 8px 10px;
}
.plan-ipad-eyebrow {
  font-size: 6px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--swell-green-dark); text-transform: uppercase;
}
.plan-ipad-h {
  font-weight: 700; font-size: 11px; line-height: 1.05;
  letter-spacing: -0.02em; margin: 2px 0 4px;
  color: var(--whale-gray);
}
.plan-ipad-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  flex: 1;
}
.plan-ipad-tiles div { border-radius: 2px; }
.plan-caption {
  margin-top: 12px;
  font-size: 12px; color: var(--warm-fg-2);
  font-weight: 500;
  text-align: center;
}

/* Plan closer */
.plan-closer {
  margin-top: 40px;
  text-align: center;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  color: var(--warm-fg);
  letter-spacing: -0.005em;
}
.plan-closer b { color: var(--whale-gray); font-weight: 700; }

/* ============================================================
   SOFT CTA (Section 5) — dark mid-roll break
   ============================================================ */
.softcta {
  position: relative;
  background: var(--whale-gray);
  color: var(--metro-white);
  padding: clamp(96px, 11vw, 160px) 48px;
  overflow: hidden;
  isolation: isolate;
}
.softcta-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 70% at 80% 110%, rgba(42, 212, 192, 0.10) 0%, transparent 60%),
    radial-gradient(60% 60% at 10% -10%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
}
.softcta-glow {
  position: absolute;
  left: 50%; bottom: -120px;
  width: 720px; height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(42, 212, 192, 0.18), transparent 70%);
  filter: blur(40px);
}
.softcta-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  text-align: center;
}
.softcta-eyebrow {
  color: var(--swell-green) !important;
  margin-bottom: 28px;
}
.softcta-headline {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 48px 0;
  text-wrap: balance;
  color: var(--metro-white);
}
.softcta-actions {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.softcta .btn-primary {
  height: 60px; padding: 0 48px; font-size: 18px; min-width: 320px;
}
.softcta-micro {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

/* ============================================================
   FEATURES (Section 6)
   ============================================================ */
.features-section { background: white; border-top: 1px solid var(--warm-line); border-bottom: 1px solid var(--warm-line); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
}
.feature {
  padding: 64px 48px;
  border-right: 1px solid var(--warm-line);
  border-bottom: 1px solid var(--warm-line);
  display: flex; flex-direction: column;
  min-height: 0;
}
.feature:nth-child(2n) { border-right: 0; }
.feature:nth-child(n+3) { border-bottom: 0; }
.feature-visual {
  margin-bottom: 28px;
  background: var(--warm-bg);
  border: 1px solid var(--warm-line);
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.feature h3 {
  font-size: 32px; font-weight: 700; letter-spacing: -0.018em;
  line-height: 1.05;
  margin: 0 0 14px 0; color: var(--whale-gray);
}
.feature p {
  font-size: 17px; line-height: 1.5; color: var(--warm-fg);
  margin: 0;
}

/* feature visuals */
.fv-presentation {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #f2efe6 0%, #d9d4c4 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.fv-presentation .frame {
  width: 100%; height: 100%;
  background: white; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  padding: 14px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
}
.fv-presentation .nav {
  background: var(--warm-bg);
  border-radius: 4px;
  padding: 8px 6px;
  display: flex; flex-direction: column; gap: 4px;
  position: static; backdrop-filter: none; border: 0;
}
.fv-presentation .nav .pg {
  height: 28px; background: white;
  border: 1px solid var(--warm-line);
  border-radius: 2px;
}
.fv-presentation .nav .pg.active { border: 2px solid var(--swell-green); }
.fv-presentation .stage {
  background: var(--whale-gray);
  border-radius: 4px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--swell-green);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fv-presentation .slider {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  height: 4px; background: rgba(255,255,255,0.18);
  border-radius: 2px;
}
.fv-presentation .slider::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 60%; background: var(--swell-green); border-radius: 2px;
}
.fv-presentation .slider::before {
  content: ""; position: absolute; left: 60%; top: -4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: white; transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fv-cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fv-templates-cover {
  position: absolute; inset: 0;
  background: var(--whale-gray);
}
.fv-templates-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fv-catalog {
  position: absolute; inset: 0;
  background: var(--whale-gray);
  overflow: hidden;
}
.fv-catalog-track {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  padding: 14px;
  width: 100%;
  animation: fvCatalogScroll 30s linear infinite;
}
.fv-catalog-cell {
  background: white;
  border-radius: 8px;
  padding: 22px 28px;
  height: 120px;
  display: flex; align-items: center; justify-content: center;
}
.fv-catalog-cell img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
@keyframes fvCatalogScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.fv-templates {
  position: absolute; inset: 0;
  padding: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}
.fv-templates .tpl {
  background: white; border: 1px solid var(--warm-line);
  border-radius: 4px;
  position: relative; overflow: hidden;
}
.fv-templates .tpl::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--swell-green-dark), var(--whale-gray));
  opacity: 0.85;
}
.fv-templates .tpl:nth-child(2)::before { background: linear-gradient(135deg, #c89259, #3a230f); }
.fv-templates .tpl:nth-child(3)::before { background: linear-gradient(135deg, #c8c0b3, #5a5448); }
.fv-templates .tpl:nth-child(4)::before { background: linear-gradient(135deg, var(--whale-gray), #1a3d2c); opacity: 1; }
.fv-templates .tpl:nth-child(5)::before { background: linear-gradient(135deg, #d9d4c4, #98927f); }
.fv-templates .tpl:nth-child(6)::before { background: linear-gradient(135deg, var(--swell-green), var(--swell-green-dark)); }
.fv-templates .tpl:nth-child(7)::before { background: linear-gradient(135deg, #c89259, #6b4322); }
.fv-templates .tpl:nth-child(8)::before { background: linear-gradient(135deg, #5b6671, #1f242a); }

.fv-offline {
  position: absolute; inset: 0;
  padding: 24px;
  display: flex; align-items: center; justify-content: space-around;
  gap: 16px;
}
.fv-device {
  background: var(--whale-gray); border-radius: 4px;
  padding: 4px;
  position: relative;
}
.fv-device .scr {
  background: linear-gradient(135deg, var(--swell-green) 0%, var(--swell-green-dark) 100%);
  border-radius: 2px;
}
.fv-device.ipad { width: 110px; height: 84px; }
.fv-device.ipad .scr { width: 100%; height: 100%; }
.fv-device.laptop { width: 140px; height: 96px; padding-bottom: 0; border-radius: 4px 4px 0 0; }
.fv-device.laptop .scr { width: 100%; height: 78px; }
.fv-device.laptop::after { content: ""; display: block; height: 4px; margin: 0 -8px; background: var(--whale-gray); border-radius: 0 0 6px 6px; }
.fv-device .badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--whale-gray); color: var(--swell-green);
  font-size: 8px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 5px; border-radius: 2px;
  border: 1px solid var(--swell-green);
}

/* ============================================================
   JOSH (Section 7)
   ============================================================ */
.josh-section { background: var(--warm-bg-2); }
.josh-section .section { max-width: 1100px; }
.josh-section h2 { margin-bottom: 32px; max-width: none; text-wrap: balance; }
.josh-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.josh-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--warm-bg-2);
  box-shadow: var(--shadow-3);
}
.josh-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.josh-stamp {
  position: absolute; left: 22px; bottom: 22px;
  background: rgba(35,35,41,0.92);
  backdrop-filter: blur(8px);
  color: var(--metro-white);
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 3px solid var(--swell-green);
}
.josh-stamp-line {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.josh-stamp-big {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
  margin-top: 2px;
  color: var(--swell-green);
}
.josh-text { padding-top: 12px; }
.josh-text .body-lg + .body-lg { margin-top: 18px; }

.pull-quote {
  margin: 48px auto 16px auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  max-width: 640px;
}
.pull-quote::before {
  content: "“";
  display: block;
  font-family: "Calibre", system-ui, sans-serif;
  font-weight: 700;
  font-size: 96px;
  line-height: 0.6;
  color: var(--swell-green-dark);
  margin-bottom: 12px;
}
.pull-quote .q {
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--whale-gray);
  margin: 0 0 18px 0;
  text-wrap: balance;
  text-align: center;
  text-indent: 0;
}
.pull-quote .q::before,
.pull-quote .q::after { content: none; }
.pull-quote .attr {
  font-size: 14px; font-weight: 700;
  color: var(--warm-fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pull-quote .attr .name { color: var(--whale-gray); }

.josh-closing {
  margin-top: 24px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--warm-fg);
}
.josh-closing b { color: var(--whale-gray); font-weight: 700; }

/* ============================================================
   PRICING (Section 8)
   ============================================================ */
.pricing-section { padding: clamp(80px, 9vw, 140px) 48px; }
.pricing-card {
  max-width: 980px; margin: 0 auto;
  background: var(--whale-gray);
  color: var(--metro-white);
  border-radius: 18px;
  padding: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  box-shadow: var(--shadow-3);
}
.pricing-card .price-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--swell-green);
  margin-bottom: 18px;
}
.pricing-card h2 {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 700; line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--metro-white);
  margin: 0 0 24px 0;
  text-wrap: balance;
}
.pricing-card .price-body {
  font-size: 17px; line-height: 1.5;
  color: rgba(255,255,255,0.78);
  margin: 0 0 14px 0;
}
.pricing-features {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255,255,255,0.92);
}
.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background-color: var(--swell-green);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9.5l2.8 2.8L13 7' fill='none' stroke='%23232329' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.pricing-cta {
  display: flex; flex-direction: column; gap: 14px;
}
.pricing-cta .btn {
  width: 100%; height: 60px; font-size: 18px;
}
.pricing-cta .micro {
  font-size: 13px; color: rgba(255,255,255,0.6);
  text-align: center;
}
/* ============================================================
   CLOSING (Section 9)
   ============================================================ */
.closing-section {
  background: var(--wood-dark);
  color: var(--metro-white);
  padding: clamp(96px, 11vw, 160px) 48px;
  text-align: center;
}
.closing-inner { max-width: 880px; margin: 0 auto; }
.closing-section h2 {
  color: var(--metro-white);
  font-size: clamp(36px, 4.4vw, 60px);
  margin: 0 0 28px 0;
}
.closing-section p {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  margin: 0 0 18px 0;
}
.closing-section p.tonight {
  font-weight: 700; color: var(--metro-white);
  margin-bottom: 36px; font-size: clamp(20px, 1.6vw, 24px);
}
.closing-section .btn { height: 60px; padding: 0 48px; font-size: 18px; min-width: 320px; }
.closing-micro {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--wood-dark);
  color: rgba(255,255,255,0.6);
  padding: 32px 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-left {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.footer-copyright { font-weight: 600; color: rgba(255,255,255,0.85); }
.footer-links { display: inline-flex; align-items: center; gap: 14px; }
.footer-links a {
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  text-decoration: none;
}
.footer-links a:hover { color: white; }
.footer-divider { color: rgba(255,255,255,0.35); }
.footer-socials { display: flex; align-items: center; gap: 16px; }
.footer-socials a {
  color: rgba(255,255,255,0.85);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.footer-socials a:hover { color: white; transform: translateY(-1px); }

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 100;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.sticky-cta.show {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta .btn {
  height: 48px; padding: 0 18px; font-size: 15px;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.15);
}
.sticky-cta .micro {
  font-size: 11px; font-weight: 500;
  color: var(--warm-fg-2);
  background: rgba(251,249,244,0.85);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE — phone-first contractor reading on the road
   ============================================================ */
@media (max-width: 920px) {
  .nav { padding: 14px 20px; }
  .problem-columns { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 72px 20px; }
  .hero { padding: 32px 20px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .problem-split { grid-template-columns: 1fr; }
  .problem-card { aspect-ratio: 4 / 4; }

  .guide-grid { grid-template-columns: 1fr; gap: 48px; }

  .plan-grid { grid-template-columns: 1fr; }
  .plan-step { min-height: 0; }

  .features-grid { grid-template-columns: 1fr; }
  .feature {
    padding: 48px 20px;
    border-right: 0;
    min-height: 0;
  }
  .feature:nth-child(n+3) { border-bottom: 1px solid var(--warm-line); }
  .feature:last-child { border-bottom: 0; }

  .josh-body { grid-template-columns: 1fr; gap: 32px; }

  .pricing-card { grid-template-columns: 1fr; gap: 24px; padding: 32px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .sticky-cta { right: 12px; bottom: 12px; }
  .sticky-cta .btn { height: 44px; font-size: 14px; }
}
