/*
Theme Name: InspectAutoMotion
Theme URI: https://inspectautomotion.com
Author: InspectAutoMotion
Author URI: https://inspectautomotion.com
Description: Custom theme for the InspectAutoMotion marketing site. Hybrid light/dark layout with cinematic dark sections for the Transparency reveal and closing CTA. Uses Space Grotesk + DM Sans typography and the official InspectAutoMotion brand kit.
Version: 2.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: All Rights Reserved
Text Domain: inspectautomotion
*/

/* ==========================================================================
   COLOR SYSTEM — Light theme (default) + Dark theme (Transparency + CTA)
   ========================================================================== */

:root {
  /* Light theme */
  --bg: #fafaf7;
  --bg-alt: #f2f0ea;
  --bg-card: #ffffff;
  --ink: #0f172a;
  --ink-dim: #475569;
  --ink-faint: #94a3b8;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-glow: rgba(13, 148, 136, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.18);

  /* Dark theme (Transparency + CTA only) */
  --d-bg: #0B1120;
  --d-bg-card: #1e293b;
  --d-bg-surface: #162032;
  --d-ink: #e2e8f0;
  --d-ink-dim: #94a3b8;
  --d-ink-faint: #64748b;
  --d-teal: #14B8A6;
  --d-teal-bright: #2dd4bf;
  --d-border: rgba(148, 163, 184, 0.18);

  /* Negative indicator for "Old Thinking" */
  --red: #f87171;
}

/* ==========================================================================
   RESET + BASE
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

/* ==========================================================================
   NAV BAR
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(250, 250, 247, 0.95);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
}

/* HTML logo lockup: mark icon + wordmark + tagline as separate elements */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo-mark {
  height: 48px;
  width: auto;
  display: block;
}
.site-logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.site-logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.005em;
  line-height: 1;
}
.site-logo-accent { color: var(--teal); }
.site-logo-tag {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-dim);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 7px;
  line-height: 1;
}
@media (max-width: 480px) {
  .site-logo-name { font-size: 18px; }
  .site-logo-tag { font-size: 9px; letter-spacing: 0.18em; }
  .site-logo-mark { height: 40px; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink-dim);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-links a.nav-cta {
  background: var(--teal);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--teal-dark); color: #fff; }

@media (max-width: 800px) {
  .site-nav { padding: 14px 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.content-section {
  background: var(--bg);
  color: var(--ink);
  padding: 100px 48px;
  position: relative;
}
.content-section.alt-bg { background: var(--bg-alt); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.section-title .accent { color: var(--teal); font-style: italic; }

.section-lead {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .content-section { padding: 70px 24px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  padding: 160px 48px 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--teal); font-style: italic; }

.hero-lead {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.55;
}

.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.hero-visual.hero-video {
    padding: 0;
    overflow: hidden;
    background: var(--ink);
    position: relative;
}
.hero-visual.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
  .hero { padding: 120px 24px 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */

.stats-bar { padding: 60px 48px; }

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat .stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat .stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar { padding: 50px 24px; }
}

/* ==========================================================================
   BENEFITS GRID (and Features grid — same pattern)
   ========================================================================== */

.benefits-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.benefit-card, .feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover, .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.feature-card { border-left: 3px solid var(--teal); }

.benefit-icon, .feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--teal);
  font-weight: 700;
}

.benefit-card h3, .feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.benefit-card p, .feature-card p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .benefits-grid, .features-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HOW IT WORKS — Numbered steps
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
  position: relative;
}

.step-item {
  position: relative;
  padding-top: 60px;
}
.step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.step-item h3 { font-size: 18px; margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--ink-dim); }

@media (max-width: 800px) {
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   COST SAVINGS — Before/after rows
   ========================================================================== */

.savings-table {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.savings-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.savings-row:last-child { border-bottom: none; }
.savings-row.header {
  background: var(--bg-alt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.savings-row .col-label { font-weight: 600; color: var(--ink); }
.savings-row .col-old { color: var(--red); }
.savings-row .col-new { color: var(--teal); font-weight: 600; }

.pricing-callout {
  margin-top: 32px;
  padding: 32px;
  background: var(--teal-glow);
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  text-align: center;
}
.pricing-callout h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--teal-dark);
}
.pricing-callout p { color: var(--ink-dim); font-size: 15px; }

@media (max-width: 700px) {
  .savings-row { grid-template-columns: 1fr; gap: 8px; }
  .savings-row.header { display: none; }
}

/* ==========================================================================
   DARK SECTIONS — Transparency + Closing CTA
   ========================================================================== */

.content-section.dark-section {
  background: var(--d-bg);
  color: var(--d-ink);
  position: relative;
  overflow: hidden;
}

.content-section.dark-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; height: 80%;
  background: radial-gradient(ellipse at center,
    rgba(20, 184, 166, 0.08) 0%,
    rgba(20, 184, 166, 0.02) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.content-section.dark-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(20, 184, 166, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.content-section.dark-section.cta-section::after {
  background-image:
    radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 15% 75%, rgba(20, 184, 166, 0.04) 0%, transparent 40%);
}

.content-section.dark-section .section-inner {
  position: relative;
  z-index: 2;
}

.dark-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, transparent 100%);
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}
.cta-section .dark-fade-top { height: 80px; opacity: 0.1; }

.content-section.dark-section h1,
.content-section.dark-section h2,
.content-section.dark-section h3,
.content-section.dark-section .section-title { color: var(--d-ink); }
.content-section.dark-section p,
.content-section.dark-section .section-lead { color: var(--d-ink-dim); }
.content-section.dark-section .section-label { color: var(--d-teal-bright); }
.content-section.dark-section .section-title .accent { color: var(--d-teal-bright); }

/* ==========================================================================
   TRANSPARENCY SECTION — Old Thinking vs New Reality
   ========================================================================== */

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.transparency-card {
  background: var(--d-bg-card);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  padding: 32px;
}
.transparency-card .card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.transparency-card.old-thinking { border-color: rgba(248, 113, 113, 0.3); }
.transparency-card.old-thinking .card-label { color: var(--red); }
.transparency-card.new-reality { border-color: rgba(45, 212, 191, 0.3); }
.transparency-card.new-reality .card-label { color: var(--d-teal-bright); }

.transparency-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--d-ink);
}
.transparency-card ul {
  list-style: none;
  padding: 0;
}
.transparency-card ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--d-ink-dim);
  font-size: 15px;
}
.old-thinking ul li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.new-reality ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--d-teal-bright);
  font-weight: 700;
}

.pull-quote {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-style: italic;
  color: var(--d-ink);
  line-height: 1.4;
  border-top: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
}

@media (max-width: 800px) {
  .transparency-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA SECTION — Buttons + Signature
   ========================================================================== */

.cta-section .section-inner { text-align: center; max-width: 720px; }

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 56px;
}

.cta-section .btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-section .btn-primary {
  background: var(--d-teal-bright);
  color: var(--d-bg);
  font-weight: 600;
}
.cta-section .btn-primary:hover {
  background: #5eead4;
  transform: translateY(-1px);
  color: var(--d-bg);
}
.cta-section .btn-secondary {
  background: transparent;
  color: var(--d-ink);
  border-color: rgba(148, 163, 184, 0.3);
}
.cta-section .btn-secondary:hover {
  border-color: var(--d-teal-bright);
  color: var(--d-teal-bright);
}

.closing-signature {
  padding-top: 48px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--d-ink-faint);
  letter-spacing: 0.08em;
}
.closing-signature img { height: 40px; width: auto; }
.closing-signature .contact { color: var(--d-ink-dim); }

@media (max-width: 600px) {
  .closing-signature { flex-direction: column; gap: 16px; text-align: center; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--d-bg);
  color: var(--d-ink-dim);
  padding: 32px 48px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid var(--d-border);
}
.site-footer a { color: var(--d-ink); }
.site-footer a:hover { color: var(--d-teal-bright); }

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   v3 COPY ADDITIONS (2026-05-23 copy update)
   The blocks below add support for: cited stats, 5-step process grid,
   optional badges on feature cards, proof strip in the dark Transparency
   section, capability-comparison table, two-column CTA + contact form.
   ========================================================================== */

/* ---- Stats — citation line ---- */
.stat .stat-num {
  font-size: clamp(40px, 5vw, 56px);
}
.stat .stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto 8px;
}
.stat .stat-cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- How It Works — 5-column variant ---- */
.steps-grid.steps-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .steps-grid.steps-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .steps-grid.steps-grid-5 { grid-template-columns: 1fr; }
}

/* ---- Features — OPTIONAL badge ---- */
.feature-card { position: relative; }
.optional-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---- Transparency — single-paragraph card body + proof strip ---- */
.transparency-card p {
  color: var(--d-ink-dim);
  font-size: 15px;
  line-height: 1.6;
}

.proof-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--d-border);
}
.proof-item {
  text-align: left;
}
.proof-item .proof-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--d-teal-bright);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.proof-item .proof-text {
  font-size: 14px;
  color: var(--d-ink-dim);
  line-height: 1.55;
  margin-bottom: 10px;
}
.proof-item .proof-cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-ink-faint);
}
@media (max-width: 800px) {
  .proof-strip { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- Compare table (capability comparison) ---- */
.compare-table {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 14px;
}
.compare-row:last-child { border-bottom: none; }
.compare-row.header {
  background: var(--bg-alt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.compare-row .col-label { font-weight: 600; color: var(--ink); }
.compare-row .col-label em { color: var(--teal); font-style: italic; }
.compare-row .us { background: var(--teal-glow); }
.compare-row.header .us { color: var(--teal-dark); font-weight: 700; }
.compare-row .yes { color: var(--teal-dark); font-weight: 600; }
.compare-row .yes-muted { color: var(--ink-dim); }
.compare-row .dash { color: var(--ink-faint); }

@media (max-width: 900px) {
  .compare-table { font-size: 13px; }
  .compare-row { grid-template-columns: 1.4fr repeat(4, 1fr); padding: 14px 16px; gap: 8px; }
}
@media (max-width: 600px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row.header { display: none; }
  .compare-row .col-label { color: var(--teal-dark); margin-bottom: 4px; }
  .compare-row .us,
  .compare-row > div:not(.col-label) {
    background: transparent;
    display: flex;
    justify-content: space-between;
  }
  .compare-row .us::before { content: 'InspectAutoMotion'; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
}

/* Bottom savings table — restyle to 3 equal columns (no leading label-only column) */
.savings-row {
  grid-template-columns: 1.2fr 1.2fr 1.2fr;
}

/* ---- CTA — two-column grid with contact form ---- */
.cta-section .section-inner {
  text-align: left;       /* override centered default */
  max-width: 1200px;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}
.cta-pitch .section-title { margin-bottom: 24px; }
.cta-pitch .section-lead {
  margin-bottom: 32px;
  color: var(--d-ink-dim);
}
.cta-secondary-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.cta-secondary-row .btn { align-self: flex-start; }
.cta-supporting {
  font-size: 13px;
  color: var(--d-ink-faint);
  line-height: 1.5;
  margin: 0;
  max-width: 380px;
}

/* Reset old centered CTA button row inside the new grid */
.cta-section .cta-row { display: none; }

/* Contact form */
.cta-form-wrap {
  background: var(--d-bg-card);
  border: 1px solid var(--d-border);
  border-radius: 12px;
  padding: 32px;
}
.contact-form-header { margin-bottom: 20px; }
.contact-form-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: var(--d-ink);
  margin-bottom: 6px;
}
.contact-form-header p {
  font-size: 13px;
  color: var(--d-ink-dim);
  line-height: 1.5;
}

.contact-form .form-row { display: flex; gap: 14px; }
.contact-form .form-row-2 > .form-field { flex: 1 1 0; min-width: 0; }
.contact-form .form-field { margin-bottom: 14px; }
.contact-form label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-ink-dim);
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-form label .optional-text {
  color: var(--d-ink-faint);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--d-ink);
  background: var(--d-bg-surface);
  border: 1px solid var(--d-border);
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--d-teal-bright);
  background: var(--d-bg);
}
.contact-form textarea { resize: vertical; min-height: 80px; }
.contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer; }

.form-submit {
  margin-top: 6px;
  background: var(--d-teal-bright);
  color: var(--d-bg);
  font-weight: 600;
  width: 100%;
  justify-content: center;
}
.form-submit:hover { background: #5eead4; transform: translateY(-1px); }

.form-fallback {
  margin-top: 14px;
  font-size: 12px;
  color: var(--d-ink-faint);
  text-align: center;
}
.form-fallback a { color: var(--d-teal-bright); }

@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-form-wrap { padding: 24px; }
  .contact-form .form-row { flex-direction: column; gap: 0; }
}

/* CTA section text alignment — restore left for closing-signature */
.cta-section .closing-signature { text-align: left; }

/* ==========================================================================
   v3.1 CONTACT FORM (WPForms compat — 2026-05-25)
   Generic selectors so the form plugin's output inherits the dark theme look.
   These overlap with the older .contact-form rules above (kept for any
   inactive references) but apply broadly inside .cta-form-wrap.
   ========================================================================== */

.cta-form-wrap form { margin: 0; }

.cta-form-wrap input[type="text"],
.cta-form-wrap input[type="email"],
.cta-form-wrap input[type="tel"],
.cta-form-wrap input[type="url"],
.cta-form-wrap input[type="number"],
.cta-form-wrap select,
.cta-form-wrap textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--d-ink);
  background: var(--d-bg-surface);
  border: 1px solid var(--d-border);
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: none;
}
.cta-form-wrap input:focus,
.cta-form-wrap select:focus,
.cta-form-wrap textarea:focus {
  outline: none;
  border-color: var(--d-teal-bright);
  background: var(--d-bg);
}
.cta-form-wrap textarea { resize: vertical; min-height: 80px; }
.cta-form-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; }

.cta-form-wrap label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-ink-dim);
  margin-bottom: 6px;
  font-weight: 500;
}

.cta-form-wrap button[type="submit"],
.cta-form-wrap input[type="submit"] {
  margin-top: 6px;
  background: var(--d-teal-bright);
  color: var(--d-bg);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}
.cta-form-wrap button[type="submit"]:hover,
.cta-form-wrap input[type="submit"]:hover {
  background: #5eead4;
  transform: translateY(-1px);
}

/* WPForms-specific tweaks: rein in default container spacing + required asterisk color */
.cta-form-wrap .wpforms-container { margin: 0; }
.cta-form-wrap .wpforms-form .wpforms-field { margin-bottom: 14px; padding: 0; }
.cta-form-wrap .wpforms-form .wpforms-required-label,
.cta-form-wrap .wpforms-required-label { color: var(--d-teal-bright); }
.cta-form-wrap .wpforms-confirmation-container,
.cta-form-wrap .wpforms-confirmation-container-full {
  background: var(--d-bg-surface);
  border: 1px solid var(--d-teal-bright);
  border-radius: 6px;
  padding: 16px;
  color: var(--d-ink);
}
.cta-form-wrap .wpforms-error,
.cta-form-wrap label.wpforms-error {
  color: var(--red);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
}

/* ==========================================================================
   v3.2 WPFORMS HARD OVERRIDES + SECONDARY BUTTON (2026-05-25)
   The plugin's own CSS loads after the theme, with higher specificity. We
   reach for !important on the visual properties because that's the right
   tool for a leaf-of-tree theme override against a third-party plugin.
   Scoped to .cta-form-wrap so nothing else in the theme is affected.
   ========================================================================== */

/* ---- Inputs / selects / textareas (default state) ---- */
.cta-form-wrap .wpforms-form input[type="text"],
.cta-form-wrap .wpforms-form input[type="email"],
.cta-form-wrap .wpforms-form input[type="tel"],
.cta-form-wrap .wpforms-form input[type="url"],
.cta-form-wrap .wpforms-form input[type="number"],
.cta-form-wrap .wpforms-form select,
.cta-form-wrap .wpforms-form textarea {
  background-color: var(--d-bg-surface) !important;
  color: var(--d-ink) !important;
  border: 1px solid var(--d-border) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* ---- Inputs / selects / textareas (focused) ---- */
.cta-form-wrap .wpforms-form input:focus,
.cta-form-wrap .wpforms-form select:focus,
.cta-form-wrap .wpforms-form textarea:focus {
  background-color: var(--d-bg) !important;
  color: var(--d-ink) !important;
  border-color: var(--d-teal-bright) !important;
  outline: none !important;
}

/* ---- Caret stays light on dark ---- */
.cta-form-wrap .wpforms-form input,
.cta-form-wrap .wpforms-form textarea {
  caret-color: var(--d-teal-bright) !important;
}

/* ---- Placeholder text ---- */
.cta-form-wrap .wpforms-form input::placeholder,
.cta-form-wrap .wpforms-form textarea::placeholder {
  color: var(--d-ink-faint) !important;
  opacity: 1 !important;
}

/* ---- Browser autofill — Chrome paints autofilled inputs yellow/white by
   default. The trick is to set a long inset box-shadow that masks the
   browser background, and force the text color via -webkit-text-fill-color. */
.cta-form-wrap .wpforms-form input:-webkit-autofill,
.cta-form-wrap .wpforms-form input:-webkit-autofill:hover,
.cta-form-wrap .wpforms-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--d-ink) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--d-bg-surface) inset !important;
  box-shadow: 0 0 0 1000px var(--d-bg-surface) inset !important;
  caret-color: var(--d-teal-bright) !important;
}

/* ---- Labels (main + sublabel "First / Last" under Name field) ---- */
.cta-form-wrap .wpforms-form .wpforms-field-label,
.cta-form-wrap .wpforms-form label {
  color: var(--d-ink) !important;
}
.cta-form-wrap .wpforms-form .wpforms-field-sublabel {
  color: var(--d-ink-dim) !important;
}

/* ---- Required asterisk ---- */
.cta-form-wrap .wpforms-form .wpforms-required-label,
.cta-form-wrap .wpforms-required-label {
  color: var(--d-teal-bright) !important;
}

/* ---- Submit button ---- */
.cta-form-wrap .wpforms-form button[type="submit"],
.cta-form-wrap .wpforms-form input[type="submit"],
.cta-form-wrap .wpforms-submit-container button,
.cta-form-wrap button.wpforms-submit {
  background-color: var(--d-teal-bright) !important;
  color: var(--d-bg) !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.cta-form-wrap .wpforms-form button[type="submit"]:hover,
.cta-form-wrap .wpforms-form input[type="submit"]:hover,
.cta-form-wrap .wpforms-submit-container button:hover,
.cta-form-wrap button.wpforms-submit:hover {
  background-color: #5eead4 !important;
  transform: translateY(-1px);
}

/* ---- Confirmation message ---- */
.cta-form-wrap .wpforms-confirmation-container,
.cta-form-wrap .wpforms-confirmation-container-full {
  background: var(--d-bg-surface) !important;
  border: 1px solid var(--d-teal-bright) !important;
  border-radius: 6px !important;
  padding: 16px !important;
  color: var(--d-ink) !important;
}

/* ---- "Download the One-Pager" secondary button — give it some weight ---- */
.cta-section .cta-secondary-row .btn-secondary,
.cta-section .btn-secondary {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.45);
  color: var(--d-ink);
}
.cta-section .cta-secondary-row .btn-secondary:hover,
.cta-section .btn-secondary:hover {
  background: rgba(45, 212, 191, 0.16);
  border-color: var(--d-teal-bright);
  color: var(--d-teal-bright);
}