/* ─────────────────────────────────────────────
   Pine Beach — style.css
   Aesthetic: clean line-art, charcoal on white,
   boxed/framed motif — drawn from the logo.
───────────────────────────────────────────── */

/* ── CSS Custom Properties ── */
:root {
  /* Accent palette — green & amber used sparingly */
  --green:      #2D4A3E;
  --green-dark: #1e3329;
  --green-mid:  #3a5c4e;
  --green-light:#4a7260;
  --amber:      #D4A574;
  --amber-light:#e8c49a;
  --amber-dim:  #b8895a;

  /* Primary palette — charcoal + white, matching logo */
  --white:      #FFFFFF;
  --offwhite:   #F9F8F6;   /* very near-white warm tone */
  --cream:      #F3F2EF;   /* subtle warm surface */
  --charcoal:   #1C1C1C;   /* prominent charcoal — logo's dark ink */
  --charcoal-90:#242424;
  --charcoal-80:#333333;
  --charcoal-60:#555555;
  --charcoal-40:#888888;
  --charcoal-20:#CCCCCC;
  --charcoal-10:#E5E5E5;

  /* Borders — single-weight line art feel */
  --border:        rgba(28,28,28,.14);
  --border-mid:    rgba(28,28,28,.22);
  --border-strong: rgba(28,28,28,.36);
  --border-light:  rgba(255,255,255,.15);

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Sharp corners — matching the framed/boxed logo */
  --radius-sm:  2px;
  --radius-md:  2px;
  --radius-lg:  2px;
  --radius-xl:  2px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.13);
  --shadow-lift: 0 0 0 1.5px var(--charcoal), 0 6px 24px rgba(0,0,0,.1);

  --transition: 200ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 400ms cubic-bezier(.4,0,.2,1);

  --max-width: 1120px;
  --gutter:    1.25rem;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font: inherit; }

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

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Section Base ── */
.section {
  padding-block: 5rem 5.5rem;
}

.section-label {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 1rem;
}
.section-label--light { color: var(--amber-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: .75rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--charcoal-60);
  max-width: 44ch;
  margin-bottom: 3rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Primary: charcoal fill — confident, logo-adjacent */
.btn-primary {
  background: var(--charcoal);
  color: #fff;
  border: 1.5px solid var(--charcoal);
}
.btn-primary:hover {
  background: var(--charcoal-80);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border-mid);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  transform: translateY(-1px);
}

.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Button loading state */
.btn-loading { display: none; }
.btn.loading .btn-label { display: none; }
.btn.loading .btn-loading { display: flex; }
.spinner { animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Inline Link ── */
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1.5px solid var(--charcoal);
  transition: gap var(--transition), opacity var(--transition);
  padding-bottom: 1px;
}
.inline-link:hover {
  gap: .6rem;
  opacity: .7;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}

.site-nav.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.nav-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: none;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: .9375rem;
  font-weight: 450;
  color: var(--charcoal-80);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--charcoal); }

.nav-cta {
  display: none;
  margin-left: auto;
}

.nav-hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem var(--gutter) 1.5rem;
  border-top: 1.5px solid var(--border);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 1rem;
  font-weight: 450;
  color: var(--charcoal-80);
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu a:last-child { border-bottom: none; margin-top: .5rem; }

@media (min-width: 768px) {
  .nav-links  { display: flex; }
  .nav-cta    { display: inline-flex; margin-left: 0; }
  .nav-hamburger { display: none; }
  .nav-mobile-menu { display: none !important; }
  .nav-links { margin-left: auto; }
  .nav-cta   { margin-left: 1.5rem; }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 4rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Fine grid — evokes the logo's precise line art */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--charcoal-10) 1px, transparent 1px),
    linear-gradient(90deg, var(--charcoal-10) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: .5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 760px;
  width: 100%;
  padding-inline: var(--gutter);
}

/* Hero badge — framed box, no pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  background: transparent;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--charcoal-60);
  letter-spacing: .03em;
}

.hero-logo {
  width: clamp(160px, 30vw, 240px);
  height: auto;
  margin-block: .5rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--charcoal);
  letter-spacing: -.01em;
  max-width: 18ch;
  margin-inline: auto;
}

.hero-headline em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--charcoal-60);
  max-width: 46ch;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
  max-width: 340px;
  margin-top: .5rem;
}

@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; max-width: none; justify-content: center; width: auto; flex-wrap: wrap; }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem .75rem;
  font-size: .8125rem;
  color: var(--charcoal-60);
  margin-top: .5rem;
}

.trust-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 0;  /* square dot, logo-inspired */
  background: var(--green);
  flex-shrink: 0;
}

.trust-sep { opacity: .4; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--charcoal-40);
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════
   WHAT WE DO
═══════════════════════════════════════════ */
.what-we-do {
  background: var(--offwhite);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}

.what-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.what-headline-col h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--charcoal);
}

.what-body-col {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.what-body-col p {
  font-size: 1.0625rem;
  color: var(--charcoal-80);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .what-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
  }
}

/* Stat strip — charcoal on white, framed */
.stat-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--charcoal);
  background: var(--white);
  color: var(--charcoal);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 2rem 2.5rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--charcoal);
}

.stat-label {
  font-size: .875rem;
  color: var(--charcoal-60);
  font-weight: 400;
}

.stat-divider {
  height: 1.5px;
  background: var(--border);
  width: 100%;
}

@media (min-width: 600px) {
  .stat-strip {
    flex-direction: row;
    align-items: stretch;
  }
  .stat-item {
    flex: 1;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
  }
  .stat-divider {
    height: auto;
    width: 1.5px;
    background: var(--border);
  }
}

/* ═══════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════ */
.products {
  background: var(--white);
}

.products-grid {
  display: grid;
  gap: 1.5px;  /* tight join, creates a diptych frame */
  border: 1.5px solid var(--border-mid);
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card--brand { grid-column: 1 / -1; }
}

@media (min-width: 1060px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .product-card--brand { grid-column: auto; }
}

/* Product Card — box frame motif */
.product-card {
  position: relative;
  overflow: hidden;
  transition: background var(--transition-slow);
}

.product-card--free {
  background: var(--white);
}

.product-card--paid {
  background: var(--charcoal);
  color: #fff;
}

.product-card-inner {
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.product-badge {
  display: inline-flex;
  padding: .3rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid;
}

.product-badge--free {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.product-badge--paid {
  background: var(--amber);
  color: var(--charcoal);
  border-color: var(--amber-dim);
}

.product-icon {
  color: var(--charcoal-40);
}
.product-card--paid .product-icon { color: rgba(255,255,255,.3); }

.product-name {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--charcoal);
}
.product-card--paid .product-name { color: #fff; }

.product-tagline {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--charcoal-60);
  font-style: italic;
}
.product-card--paid .product-tagline { color: rgba(255,255,255,.55); }

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: baseline;
  gap: .375rem;
}
.product-card--paid .product-price { color: var(--amber); }
.product-price span { font-size: .875rem; font-weight: 400; opacity: .7; }

.product-desc {
  font-size: .9375rem;
  color: var(--charcoal-60);
  line-height: 1.65;
  flex-grow: 1;
}
.product-card--paid .product-desc { color: rgba(255,255,255,.65); }

.product-who {
  font-size: .875rem;
  color: var(--charcoal-60);
  line-height: 1.55;
  border-left: 2px solid var(--border-mid);
  padding-left: .75rem;
}
.product-card--paid .product-who {
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.15);
}
.product-who strong {
  color: var(--charcoal-80);
}
.product-card--paid .product-who strong { color: rgba(255,255,255,.8); }

.product-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--charcoal-80);
}
.product-card--paid .product-features li { color: rgba(255,255,255,.8); }
.product-features li svg { flex-shrink: 0; color: var(--green); }
.product-card--paid .product-features li svg { color: var(--amber); }

.product-cta-group { margin-top: .5rem; }

/* Brand card — deep forest, amber accents */
.product-card--brand {
  background: var(--green-dark);
  color: #fff;
}

.product-card--brand .product-icon { color: rgba(255,255,255,.25); }
.product-card--brand .product-name { color: #fff; }
.product-card--brand .product-tagline { color: rgba(255,255,255,.55); font-style: italic; }
.product-card--brand .product-price { color: var(--amber); }
.product-card--brand .product-desc { color: rgba(255,255,255,.65); }
.product-card--brand .product-who {
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.12);
}
.product-card--brand .product-who strong { color: rgba(255,255,255,.8); }
.product-card--brand .product-features li { color: rgba(255,255,255,.8); }
.product-card--brand .product-features li svg { color: var(--amber); }
.product-card--brand .btn-outline {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.product-card--brand .btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
}
.product-card--brand .btn-primary {
  background: var(--amber);
  color: var(--charcoal);
  border-color: transparent;
}
.product-card--brand .btn-primary:hover {
  background: var(--amber-light);
  box-shadow: 0 4px 20px rgba(212,165,116,.3);
}
.product-card--brand .product-badge--paid {
  background: rgba(212,165,116,.15);
  color: var(--amber);
  border-color: rgba(212,165,116,.35);
}

/* Bundle banner — Launch in a Box */
.bundle-banner {
  margin-top: 1.5px;
  border: 1.5px solid var(--border-mid);
  border-top: none;
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  flex-wrap: wrap;
}

.bundle-banner-content {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.bundle-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-dim);
  white-space: nowrap;
}

.bundle-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--charcoal);
  line-height: 1.3;
}

.bundle-desc {
  font-size: .875rem;
  color: var(--charcoal-60);
}

.bundle-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}

.bundle-price s {
  font-weight: 400;
  color: var(--charcoal-40);
  font-size: .9375rem;
  text-decoration: line-through;
}

@media (max-width: 639px) {
  .bundle-banner { padding: 1.25rem 1.5rem; }
  .bundle-banner-content { gap: .5rem; }
}

/* Paid card button overrides */
.product-card--paid .btn-outline {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.product-card--paid .btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}
.product-card--paid .btn-primary {
  background: var(--amber);
  color: var(--charcoal);
  border-color: transparent;
}
.product-card--paid .btn-primary:hover {
  background: var(--amber-light);
  box-shadow: 0 4px 20px rgba(212,165,116,.35);
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.how-it-works {
  background: var(--offwhite);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5px;  /* tight join, frame motif */
  border: 1.5px solid var(--border-mid);
}

@media (min-width: 768px) {
  .steps-grid {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 2.5rem;
  background: var(--white);
  border-right: 1.5px solid var(--border);
  transition: background var(--transition);
}
.step:last-child { border-right: none; }
.step:hover { background: var(--offwhite); }

/* Mobile: horizontal borders instead */
@media (max-width: 767px) {
  .step {
    border-right: none;
    border-bottom: 1.5px solid var(--border);
  }
  .step:last-child { border-bottom: none; }
}

.step-number {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--amber-dim);
}

.step-icon {
  color: var(--charcoal);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-mid);
  background: var(--white);
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--charcoal);
}

.step-desc {
  font-size: .9375rem;
  color: var(--charcoal-60);
  line-height: 1.65;
}

.step-connector {
  display: none;
}

/* ═══════════════════════════════════════════
   SOCIAL PROOF
═══════════════════════════════════════════ */
.social-proof {
  background: var(--white);
}

.proof-inner {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.proof-badge-row {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  background: transparent;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--charcoal-60);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.proof-icon { color: var(--amber-dim); }

.proof-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.proof-body {
  font-size: 1.0625rem;
  color: var(--charcoal-60);
  line-height: 1.7;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.proof-attribution {
  font-size: .9375rem;
  color: var(--charcoal-40);
  font-style: italic;
  margin-bottom: 3rem;
}

/* Quotes as clean pull-quote boxes */
.quotes-grid {
  display: grid;
  gap: 1.5px;
  border: 1.5px solid var(--border-mid);
  text-align: left;
}

@media (min-width: 640px) {
  .quotes-grid { grid-template-columns: repeat(3, 1fr); }
}

.quote-card {
  padding: 2rem;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-card:nth-child(even) {
  background: var(--charcoal-90);
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: #fff;
  line-height: 1.5;
  font-style: italic;
  text-align: center;
}

/* ═══════════════════════════════════════════
   EMAIL CAPTURE
═══════════════════════════════════════════ */
.email-capture {
  background: var(--offwhite);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding-block: 5rem;
}

.email-inner {
  display: grid;
  gap: 2.5rem;
  max-width: 860px;
  margin-inline: auto;
  border: 1.5px solid var(--border-mid);
  background: var(--white);
  padding: 3rem;
}

@media (min-width: 768px) {
  .email-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 3.5rem;
  }
}

.email-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: .75rem;
}

.email-sub {
  font-size: 1rem;
  color: var(--charcoal-60);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.email-benefits {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.email-benefits li {
  font-size: .9375rem;
  color: var(--charcoal-60);
  padding-left: 1.25rem;
  position: relative;
}
.email-benefits li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber-dim);
  font-weight: 600;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.email-form-row {
  display: flex;
  gap: .625rem;
  flex-direction: column;
}

@media (min-width: 480px) {
  .email-form-row { flex-direction: row; }
}

.form-field { flex: 1; }

.email-form input[type="email"] {
  width: 100%;
  padding: .8125rem 1rem;
  background: var(--offwhite);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: .9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.email-form input[type="email"]::placeholder {
  color: var(--charcoal-40);
}

.email-form input[type="email"]:focus {
  border-color: var(--charcoal);
}

.form-fine-print {
  font-size: .8125rem;
  color: var(--charcoal-40);
  line-height: 1.5;
}

.form-success {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--green);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.65);
  padding-block: 4rem 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  object-position: left;
  opacity: .9;
  filter: brightness(1.15);
  transition: opacity var(--transition);
}
.footer-logo:hover img { opacity: 1; }

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: rgba(255,255,255,.75);
  margin-top: .25rem;
}

.footer-supporting {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.footer-link-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: .125rem;
}

.footer-link-group a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-link-group a:hover { color: var(--amber-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding-top: 2rem;
  border-top: 1.5px solid rgba(255,255,255,.08);
}

.footer-copy {
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
}

.footer-built {
  font-size: .8125rem;
  color: rgba(255,255,255,.25);
}

/* ═══════════════════════════════════════════
   ANIMATIONS — scroll reveal
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(.4,0,.2,1), transform 600ms cubic-bezier(.4,0,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ═══════════════════════════════════════════
   RESPONSIVE POLISH
═══════════════════════════════════════════ */

@media (max-width: 480px) {
  .section { padding-block: 3.5rem 4rem; }
  .product-card-inner { padding: 1.75rem; }
  .step { padding: 1.75rem; }
  .stat-item { padding: 1.5rem; }
  .quote-card { padding: 1.5rem; }
  .email-inner { padding: 1.75rem; }
  .email-capture { padding-block: 3.5rem; }
}

/* Prevent text orphans */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ═══════════════════════════════════════════
   RESPONSIVE POLISH — MOBILE / TABLET FIXES
   Breakpoints: mobile ≤599px, tablet 600–767px
═══════════════════════════════════════════ */

/* ── Nav: mobile menu CTA button full-width ── */
.nav-mobile-menu .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* ── Hero CTAs ──────────────────────────────
   Row layout starts at 600px (changed from 400px) so two long
   `white-space:nowrap` buttons never overflow on phones.
   Below 600px: full-width column buttons.
───────────────────────────────────────────── */
@media (max-width: 599px) {
  .hero-ctas {
    max-width: 100%;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

/* ── Stat strip: left-align on single-column mobile ── */
@media (max-width: 599px) {
  .stat-item {
    align-items: flex-start;
  }
  .stat-number {
    font-size: 2.5rem;
  }
}

/* ── Bundle hero: reduce padding + fix 4-col screenshot tabs ──
   .bundle-hero-content has `padding: 2.5rem` in index.html <style>.
   On 320px: 320 – 40px gutter – 2×40px padding = 200px, too tight.
   Use !important to override the page-level <style> block.
───────────────────────────────────────────── */
@media (max-width: 599px) {
  .bundle-hero-content {
    padding: 1.25rem !important;
  }
  .bundle-hero-screenshots {
    padding: 1rem !important;
  }
  .bundle-hero .btn {
    white-space: normal;
  }
}

/* Screenshots 4-col tabs: reduce to 2 cols on mobile */
@media (max-width: 599px) {
  .screenshots-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── Bundle banner: stack + full-width button on mobile ── */
@media (max-width: 599px) {
  .bundle-banner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .bundle-banner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Proof section CTA: full-width on mobile ──
   `white-space:nowrap` on "Get Business in a Box — $197"
   requires ~300px; overflows a 280px container on 320px screens.
───────────────────────────────────────────── */
@media (max-width: 599px) {
  .proof-inner .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

/* ── Footer top: stack logo + tagline on mobile ──
   Inline `style="display:flex; align-items:center; gap:2rem"` prevents
   CSS stacking — override with !important.
───────────────────────────────────────────── */
@media (max-width: 639px) {
  .footer-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.875rem !important;
  }
}

/* ── Footer bottom: stack + centre on mobile ── */
@media (max-width: 639px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
  }
  .footer-copy,
  .footer-built {
    text-align: center;
  }
}

/* ── Getting Started doc CTA bar: full-width buttons ──
   The button wrapper has inline style="display:flex; flex-wrap:wrap"
   so needs !important to force column on mobile.
───────────────────────────────────────────── */
@media (max-width: 639px) {
  .doc-cta-inner > div {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.625rem !important;
  }
  .doc-cta-inner .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ── Use Cases CTA actions: full-width + column on mobile ── */
@media (max-width: 599px) {
  .uc-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .uc-cta-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* ── Getting Started: quickstart steps readable at 320px ── */
@media (max-width: 480px) {
  .qs-step {
    padding: 1.25rem;
  }
  .quickstart-section {
    padding: 2.5rem 0;
  }
}

/* ── Getting Started: doc meta chips wrap cleanly ── */
@media (max-width: 480px) {
  .doc-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .doc-meta-chip {
    width: 100%;
  }
}

/* ── Use cases hero: back link + title padding ── */
@media (max-width: 480px) {
  .uc-hero {
    padding: 6rem 0 2.5rem;
  }
}

/* ── General: section label / sub max-width respects container ── */
@media (max-width: 600px) {
  .section-sub {
    max-width: 100%;
  }
}

/* ── Nav logo: constrain width on mobile so hamburger stays visible ── */
@media (max-width: 767px) {
  .nav-logo img {
    max-width: 160px;
    height: 44px;
  }
  .nav-inner {
    gap: 0.75rem;
  }
}

/* ── Support email link: allow wrapping on very small screens ── */
@media (max-width: 400px) {
  .support-email-link {
    width: 100%;
    justify-content: center;
    word-break: break-all;
  }
}

/* ── General: prevent any single element from causing horizontal scroll ── */
@media (max-width: 767px) {
  .site-nav,
  .hero,
  .section,
  .what-we-do,
  .products,
  .how-it-works,
  .social-proof,
  .email-capture,
  .site-footer,
  .support-section,
  .doc-hero,
  .quickstart-section,
  .uc-hero,
  .uc-category,
  .uc-cta,
  .doc-cta-bar {
    max-width: 100vw;
    overflow-x: hidden;
  }
}
