/* ============================================================
   ClearGrade — v3 Cinematic Landing Page
   Dribbble-inspired: hero video, dark cinematic, premium feel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* --- Tokens --- */
:root {
  --bg: #0a0f1a;
  --bg-card: #111827;
  --bg-elevated: #1a2235;
  --text: #f0f2f5;
  --text-dim: #8b95a8;
  --text-muted: #4b5563;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-glow-s: rgba(56, 189, 248, 0.25);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --warm: #f59e0b;
  --warm-glow: rgba(245, 158, 11, 0.08);
  --border: rgba(255, 255, 255, 0.06);
  --border-h: rgba(255, 255, 255, 0.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --max-w: 1200px;
  --nav-h: 64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* Noise */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* --- Utility --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }
.overline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}
.sh { /* section heading */
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}
.sd { /* section description */
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.7;
}

/* --- Animations --- */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.anim.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,15,26,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo { font-family: var(--serif); font-size: 1.35rem; color: var(--text); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-btn {
  padding: 8px 20px; border-radius: 8px; background: var(--accent);
  color: var(--bg); font-weight: 700; font-size: .85rem;
  transition: background .2s, box-shadow .2s;
}
.nav-links .nav-btn:hover { background: var(--accent-hover); box-shadow: 0 0 20px var(--accent-glow); }
.hamburger { display: none; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mob-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,15,26,.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 24px; z-index: 999;
}
.mob-menu.open { display: flex; flex-direction: column; gap: 16px; }
.mob-menu a { font-size: 1rem; font-weight: 500; color: var(--text-dim); padding: 8px 0; }
.mob-menu .nav-btn {
  display: inline-block; text-align: center; padding: 12px 20px;
  border-radius: 8px; background: var(--accent); color: var(--bg); font-weight: 700;
}

/* ============================================================
   HERO — full-viewport, video background
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-vid.active {
  opacity: 1;
}
/* Gradient overlay — darkens left side for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,15,26,0.95) 0%, rgba(10,15,26,0.85) 35%, rgba(10,15,26,0.4) 60%, transparent 100%),
    linear-gradient(180deg, rgba(10,15,26,0.3) 0%, transparent 30%, transparent 70%, rgba(10,15,26,0.6) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 480px;
  padding: var(--nav-h) 0 0 48px;
  text-align: left;
}

.hero .overline {
  opacity: 0;
  animation: fadeUp .6s ease forwards;
  animation-delay: .2s;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.8rem, 5.5vw, 3.8rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .7s ease forwards;
  animation-delay: .4s;
}
.hero h1 em {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #a5f3fc, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .6s ease forwards;
  animation-delay: .7s;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp .6s ease forwards;
  animation-delay: .9s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  transition: background .2s, box-shadow .2s, transform .15s;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--bg);
  box-shadow: 0 0 32px var(--accent-glow-s);
  transform: translateY(-2px);
}

/* 24-hour delivery badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
  font-size: .82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
}

.hero-trust {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp .5s ease forwards;
  animation-delay: 1.1s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.proof-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 1;
  position: relative;
}
.proof-bar p {
  text-align: center;
  font-size: .88rem;
  color: var(--text-dim);
  letter-spacing: .02em;
}
.proof-bar strong { color: var(--text); font-weight: 500; }
.proof-count {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   WHAT WE AUDIT
   ============================================================ */
.audit-dims {
  padding: 72px 0 48px;
}
.dims-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.dim-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color .25s, transform .25s;
}
.dim-item:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}
.dim-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.dim-icon svg { width: 24px; height: 24px; }
.dim-item span {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
}

/* ============================================================
   DELIVERABLES
   ============================================================ */
.deliverables {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(17,24,39,1) 30%, rgba(17,24,39,1) 70%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}
.del-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.del-card {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17,24,39,1), rgba(14,20,33,1));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: transform .35s ease, border-color .3s, box-shadow .35s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.del-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
/* Color accents per card */
.del-card:nth-child(1) { border-left-color: var(--accent); }
.del-card:nth-child(2) { border-left-color: var(--success); }
.del-card:nth-child(3) { border-left-color: #a78bfa; }
.del-card:nth-child(4) { border-left-color: var(--warm); }

.del-card .card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.del-card .card-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.del-card:nth-child(1) .card-icon-wrap { background: rgba(56,189,248,.12); }
.del-card:nth-child(2) .card-icon-wrap { background: rgba(52,211,153,.12); }
.del-card:nth-child(3) .card-icon-wrap { background: rgba(167,139,250,.12); }
.del-card:nth-child(4) .card-icon-wrap { background: rgba(245,158,11,.12); }
.del-card .card-icon-wrap svg { width: 26px; height: 26px; }
.del-card:nth-child(2) .card-icon-wrap svg { stroke: var(--success); }
.del-card:nth-child(3) .card-icon-wrap svg { stroke: #a78bfa; }
.del-card:nth-child(4) .card-icon-wrap svg { stroke: var(--warm); }

.del-card .card-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: .9rem;
  transition: border-color .2s, color .2s;
}
.del-card:hover .card-arrow { border-color: var(--accent); color: var(--accent); }

.del-card h3 {
  font-family: var(--sans); font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
}
.del-card p {
  font-size: .88rem; color: var(--text-dim); line-height: 1.6;
  margin-bottom: auto; padding-bottom: 20px;
}

/* Stats row at bottom */
.card-stats-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-stat-item { display: flex; flex-direction: column; }
.card-stat-val {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 700; line-height: 1.2;
}
.del-card:nth-child(1) .card-stat-val { color: var(--accent); }
.del-card:nth-child(2) .card-stat-val { color: var(--success); }
.del-card:nth-child(3) .card-stat-val { color: #a78bfa; }
.del-card:nth-child(4) .card-stat-val { color: var(--warm); }
.card-stat-label {
  font-size: .65rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin-top: 2px;
}
/* Revenue impact disclaimer */
.card-stat-note {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
  margin-top: 4px;
  font-style: italic;
}
/* "Example from a recent audit" label */
.card-example-label {
  display: block;
  font-size: .68rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 12px;
  letter-spacing: .02em;
  font-style: italic;
}

/* ============================================================
   WHO THIS IS FOR
   ============================================================ */
.who-for {
  padding: 72px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.who-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color .25s, transform .25s;
}
.who-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}
.who-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.who-icon svg { width: 22px; height: 22px; }
.who-card p {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 72px 0;
  position: relative;
}
.how::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 36px; position: relative;
}
/* Animated progress line — two segments that gap around each circle */
.steps::before, .steps::after {
  content: ''; position: absolute; top: 31px; height: 2px;
}
/* Segment 1: step 1 circle edge → step 2 circle edge */
.steps::before {
  left: calc(16.67% + 36px); right: calc(50% + 36px);
  background: rgba(56,189,248,.1);
}
/* Segment 2: step 2 circle edge → step 3 circle edge */
.steps::after {
  left: calc(50% + 36px); right: calc(16.67% + 36px);
  background: rgba(56,189,248,.1);
}
/* Animated overlays on each segment */
.step-line-1, .step-line-2 {
  position: absolute; top: 31px; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(.4,0,.2,1);
}
.step-line-1 {
  left: calc(16.67% + 36px); right: calc(50% + 36px);
}
.step-line-2 {
  left: calc(50% + 36px); right: calc(16.67% + 36px);
  transition-delay: .6s;
}
.steps.line-animate .step-line-1,
.steps.line-animate .step-line-2 { transform: scaleX(1); }

.step { text-align: center; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(56,189,248,.15);
  font-family: var(--serif); font-size: 1.5rem; color: var(--text-muted);
  margin-bottom: 16px; position: relative; z-index: 1;
  transition: border-color .5s, color .5s, box-shadow .5s;
}
.step.step-active .step-num {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.step h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: .85rem; color: var(--text-dim); line-height: 1.5; max-width: 260px; margin: 0 auto; }

/* ============================================================
   DASHBOARD PREVIEW
   ============================================================ */
.preview { padding: 72px 0; }
.toggle-row { display: flex; gap: 8px; margin: 20px 0 24px; }
.tog {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); font-family: var(--sans);
  font-size: .88rem; font-weight: 500; transition: .25s;
}
.tog.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.tog:hover:not(.active) { border-color: var(--border-h); color: var(--text); }

.prev-card {
  background: linear-gradient(180deg, var(--bg-card), rgba(14,20,33,1));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; max-width: 900px;
}

/* Gauge */
.gauge-row {
  display: flex; align-items: center; gap: 32px;
  margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.gauge-wrap { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 10; }
.gauge-fill {
  fill: none; stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1), stroke .4s;
}
.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-score { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.gauge-grade { font-family: var(--sans); font-size: .85rem; font-weight: 700; margin-top: 4px; }
.gauge-info h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 4px; }
.gauge-info p { font-size: .9rem; color: var(--text-dim); }

/* Dimension bars */
.dims { margin-bottom: 20px; }
.dim {
  display: flex; align-items: center; gap: 12px; padding: 7px 0;
}
.dim-label { font-size: .85rem; color: var(--text-dim); width: 180px; flex-shrink: 0; text-align: right; }
.dim-track { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.dim-fill { height: 100%; border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1); }
.dim-val { font-size: .85rem; font-weight: 700; width: 32px; text-align: right; }

/* Quick wins */
.qw-label {
  font-size: .72rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 16px;
}
.qw-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.qw {
  padding: 16px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
}
.qw-n { font-family: var(--serif); font-size: 1.2rem; color: rgba(56,189,248,.3); margin-bottom: 6px; }
.qw h4 { font-size: .88rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.qw p { font-size: .8rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; }
.tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em;
}
.tag-h { background: rgba(52,211,153,.12); color: var(--success); }
.tag-m { background: rgba(251,191,36,.12); color: var(--warning); }

.prev-cta {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.prev-cta .btn-report {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  background: var(--accent); color: var(--bg);
  font-size: .95rem; font-weight: 700; text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.prev-cta .btn-report:hover {
  background: var(--accent-hover); color: var(--bg);
  box-shadow: 0 0 28px var(--accent-glow-s); transform: translateY(-2px);
}
.prev-cta .report-note {
  font-size: .82rem; color: var(--text-dim); line-height: 1.4;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 72px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-list {
  max-width: 700px;
  margin: 32px auto 0;
  text-align: left;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform .3s ease, color .2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-a {
  max-height: 200px;
}
.faq-a p {
  padding: 0 0 20px;
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.faq-a a { color: var(--accent); }
.faq-a a:hover { color: var(--accent-hover); }

/* ============================================================
   FORM
   ============================================================ */
.form-sect {
  padding: 72px 0;
  position: relative;
  border-top: 1px solid var(--border);
}
.form-sect::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.form-wrap { max-width: 560px; margin: 32px auto 0; }
.form-card {
  padding: 40px 36px; border-radius: 16px;
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.fg { margin-bottom: 20px; }
.fg label { display: block; font-size: .82rem; font-weight: 500; color: var(--text-dim); margin-bottom: 8px; }
.fg input {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-family: var(--sans); font-size: .95rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.fg input::placeholder { color: rgba(139,149,168,.5); }
.fg input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.fg input.err { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(248,113,113,.15); }
.f-err { font-size: .78rem; color: var(--danger); margin-top: 6px; display: none; }
.f-err.show { display: block; }
/* Honeypot — off-screen but not display:none so bots still see it */
.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.f-btn {
  width: 100%; padding: 16px; margin-top: 8px; border-radius: 10px;
  background: var(--accent); border: none; color: var(--bg);
  font-size: 1rem; font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.f-btn:hover { background: var(--accent-hover); box-shadow: 0 8px 28px var(--accent-glow-s); transform: translateY(-1px); }
.f-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.f-note { text-align: center; font-size: .82rem; color: var(--text-dim); margin-top: 16px; }
.f-ok { display: none; text-align: center; padding: 32px 16px; }
.f-ok.show { display: block; }
.f-ok-check {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(52,211,153,.12); border: 2px solid var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.f-ok h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 8px; }
.f-ok p { font-size: .95rem; color: var(--text-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0; border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 12px;
}
.footer-l { display: flex; flex-direction: column; gap: 4px; }
.footer-copy { font-size: .82rem; color: var(--text-dim); }
.footer-tagline { font-size: .75rem; color: var(--text-muted); }
.footer-r { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-links { font-size: .82rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: border-color .2s, color .2s;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.social-link svg { width: 16px; height: 16px; }

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky {
  position: fixed; bottom: -80px; left: 0; right: 0; z-index: 900;
  background: rgba(10,15,26,.92); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); padding: 12px 24px;
  display: flex; justify-content: center;
  transition: bottom .4s cubic-bezier(.4,0,.2,1);
}
.sticky.vis { bottom: 0; }
.sticky a {
  padding: 10px 28px; border-radius: 8px; background: var(--accent);
  color: var(--bg); font-weight: 700; font-size: .9rem; transition: background .2s;
}
.sticky a:hover { background: var(--accent-hover); color: var(--bg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { min-height: auto; overflow: visible; }
  .hero-content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: 100%;
    text-align: center;
    padding: calc(var(--nav-h) + 40px) 24px 48px;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10,15,26,.85) 0%, rgba(10,15,26,.5) 50%, rgba(10,15,26,.85) 100%);
  }
  .sd { margin-left: auto; margin-right: auto; }
  .dims-grid { grid-template-columns: repeat(3, 1fr); }
  .del-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before, .steps::after, .step-line-1, .step-line-2 { display: none; }
  .qw-grid { grid-template-columns: 1fr; }
  .gauge-row { flex-direction: column; text-align: center; }
  .dim-label { width: 120px; font-size: .78rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-r { align-items: center; }
  /* Sticky CTA bottom padding for content */
  .footer { padding-bottom: 80px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-sub { font-size: 1rem; }
  .dims-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: 1fr; }
  .prev-card { padding: 24px 16px; }
  .gauge-wrap { width: 120px; height: 120px; }
  .gauge-score { font-size: 2.2rem; }
  .toggle-row { flex-direction: column; }
  .tog { text-align: center; }
  .form-card { padding: 28px 20px; }
  .sticky a { width: 100%; text-align: center; display: block; }
  .hero-badge { font-size: .75rem; padding: 6px 12px; }
  .faq-q { font-size: .88rem; }
  .dim-label { width: 100px; font-size: .72rem; }
  .card-stats-row { gap: 16px; }
  .prev-cta { flex-direction: column; text-align: center; }
  .prev-cta .btn-report { width: 100%; justify-content: center; }
  section { padding-left: 0; padding-right: 0; }
}
