/* ============================================================
   TP SCOUT — Landing site
   Sovereign + Ember design system (always dark)
   Mirrored from frontend/src/app/globals.css
   ============================================================ */

:root {
  /* -- Backgrounds -- */
  --bg-void: #060F22;
  --bg-base: #060F22;
  --bg-surface: #0B1F45;
  --bg-elevated: #142D55;

  /* -- Gold -- */
  --gold: #C9952A;
  --gold-light: #D4A94C;
  --gold-dim: rgba(201, 149, 42, 0.15);
  --gold-glow: rgba(201, 149, 42, 0.08);

  /* -- Ember (primary action) -- */
  --ember: #C8603A;
  --ember-hover: #B5522D;

  /* -- Silver -- */
  --silver: #A8B4C0;

  /* -- Text -- */
  --text-primary: #F2F4F7;
  --text-secondary: #B8C8DA;
  --text-muted: #A8B4C0;
  --text-inverted: #060F22;

  /* -- Borders -- */
  --border-faint: rgba(168, 180, 192, 0.08);
  --border-subtle: rgba(168, 180, 192, 0.15);
  --border-default: rgba(168, 180, 192, 0.20);
  --border-strong: rgba(168, 180, 192, 0.35);
  --border-gold: rgba(201, 149, 42, 0.45);

  /* -- Semantic -- */
  --success: #4ADE80;
  --error: #F87171;
  --processing: #60A5FA;

  /* -- Radius -- */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-2xl: 24px;

  /* -- Shadows -- */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.50);
  --shadow-gold: 0 0 24px rgba(201, 149, 42, 0.25);

  /* -- Transitions -- */
  --t-fast: 110ms ease;
  --t-base: 200ms ease;
  --t-slow: 340ms ease;

  /* -- Fonts (Marcellus across the whole site — matches the app's brand serif) -- */
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Marcellus", Georgia, "Times New Roman", serif;
  --font-mono: "Marcellus", Georgia, "Times New Roman", serif;

  /* -- Layout -- */
  --maxw: 1140px;
  --nav-h: 70px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.015em;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Stop mobile browsers inflating text in landscape. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

p { color: var(--text-secondary); }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--ember); }

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

/* Remove the grey tap flash on touch devices (focus-visible still shows). */
a, button, .btn, input, textarea { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }


/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--tight { padding: 72px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  opacity: 0.7;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin: 16px 0 14px;
  letter-spacing: 0.02em;
}

.section-lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 60ch;
}

.section-head { margin-bottom: 56px; }
.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accent-italic {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}

/* Decorative dot-grid + glow */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(168, 180, 192, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
.glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base),
    transform var(--t-fast), box-shadow var(--t-base), color var(--t-base);
  white-space: nowrap;
}
.btn svg { transition: transform var(--t-base); }
.btn--primary {
  background: var(--ember);
  color: #fff;
}
.btn--primary:hover {
  background: var(--ember-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--gold {
  background: var(--gold);
  color: var(--text-inverted);
}
.btn--gold:hover {
  background: var(--gold-light);
  color: var(--text-inverted);
  box-shadow: var(--shadow-gold);
}
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }


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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 15, 34, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
}
.nav-brand:hover { color: var(--text-primary); }
.nav-brand img { height: 40px; width: auto; }
.nav-brand b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.nav-brand b span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--t-base);
}
.nav-links a:hover::after { width: 100%; }
/* The CTA button lives in .nav-links only for the mobile drawer; on desktop the
   .nav-cta button is the visible one, so hide this duplicate. */
.nav-links .btn { display: none; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger:hover { border-color: var(--gold); color: var(--gold); }


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

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  border-bottom: 1px solid var(--border-faint);
}
.hero .glow--a {
  width: 640px; height: 640px;
  left: -180px; bottom: -260px;
  background: radial-gradient(circle, rgba(201, 149, 42, 0.16) 0%, transparent 62%);
}
.hero .glow--b {
  width: 520px; height: 520px;
  right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(200, 96, 58, 0.12) 0%, transparent 62%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-title {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 22px 0 22px;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust svg { color: var(--gold); flex-shrink: 0; }

/* ---- Evidence-card hero visual ---- */
.evidence {
  position: relative;
  background: linear-gradient(160deg, var(--bg-surface), var(--bg-void));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.evidence::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(140deg, var(--border-gold), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Project header: name on the left, completed counter + progress bar on the
   right — mirrors the real app's companies view header. */
.evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 14px;
}
.evidence-project {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.evidence-progress { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.evidence-progress .lbl {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.evidence-progress .lbl b { color: var(--text-secondary); font-weight: 600; letter-spacing: 0.04em; }
.evidence-track {
  width: 120px; height: 3px;
  border-radius: 3px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.evidence-track i { display: block; height: 100%; width: 97%; background: var(--gold); border-radius: 3px; }
.evidence-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(6, 15, 34, 0.6);
  margin-top: 10px;
}
.evidence-thumb {
  width: 52px; height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.evidence-thumb::after {
  content: "";
  position: absolute;
  left: 7px; right: 7px; top: 9px;
  height: 3px; border-radius: 2px;
  background: var(--border-strong);
  box-shadow: 0 7px 0 rgba(168,180,192,0.18), 0 13px 0 rgba(168,180,192,0.12);
}
.evidence-meta { flex: 1; min-width: 0; }
.evidence-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.evidence-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evidence-site { color: var(--gold-light); }

/* status pill (reused look from app) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--success); background: rgba(74,222,128,0.10); border: 1px solid rgba(74,222,128,0.25); }
.pill--gold { color: var(--gold-light); background: rgba(212,169,76,0.10); border: 1px solid rgba(212,169,76,0.25); }
.pill--proc { color: var(--processing); background: rgba(96,165,250,0.10); border: 1px solid rgba(96,165,250,0.28); }


/* ============================================================
   PROBLEM BAND
   ============================================================ */

.band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.band .glow--c {
  width: 540px; height: 540px;
  left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201,149,42,0.08) 0%, transparent 60%);
}
.problem-wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.problem-wrap p {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.5;
  color: var(--text-secondary);
}
.problem-wrap strong { color: var(--text-primary); font-weight: 600; }


/* ============================================================
   FEATURES GRID
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.feature:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 19px;
  letter-spacing: 0.02em;
  margin-bottom: 9px;
}
.feature p { font-size: 15px; color: var(--text-muted); line-height: 1.55; }


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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-inverted);
  background: var(--gold);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-gold);
}
.step h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: 0.02em; }
.step p { font-size: 14.5px; color: var(--text-muted); }
/* connector line between steps on desktop */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 45px;
  right: -12px;
  width: 24px;
  height: 1.5px;
  background: var(--border-gold);
  z-index: 1;
}


/* ============================================================
   WHO IT'S FOR
   ============================================================ */

.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.audience-card {
  background: linear-gradient(165deg, var(--bg-surface), var(--bg-void));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.audience-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.audience-card p { font-size: 15px; color: var(--text-muted); }


/* ============================================================
   CTA BAND
   ============================================================ */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(200, 96, 58, 0.14) 0%, transparent 60%),
    var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.cta p { font-size: 18px; margin-bottom: 32px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }


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

.footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 46px; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; color: var(--text-muted); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-main { padding: 56px 0 88px; position: relative; overflow: hidden; }
.contact-main .glow--a {
  width: 620px; height: 620px;
  left: -200px; top: -160px;
  background: radial-gradient(circle, rgba(201,149,42,0.12) 0%, transparent 62%);
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ---- Left brand panel ---- */
.contact-brand { padding-top: 14px; }
.contact-brand h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  margin: 18px 0 18px;
}
.contact-brand .lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 44ch;
  margin-bottom: 30px;
}
.contact-reasons { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.contact-reasons li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text-secondary);
}
.contact-reasons svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-direct {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 18px 20px;
}
.contact-direct .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact-direct a { font-size: 17px; font-weight: 500; }
.contact-direct .note { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ---- Right form panel ---- */
.form-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.form-card h2 { font-size: 24px; margin-bottom: 4px; letter-spacing: 0.02em; }
.form-card .form-intro { font-size: 14.5px; color: var(--text-muted); margin-bottom: 24px; }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--text-muted); font-weight: 400; font-size: 11px; }
.input, .textarea {
  background: var(--bg-void);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  /* 16px (not 15) so iOS Safari doesn't zoom in when a field gets focus. */
  font-size: 16px;
  padding: 0 14px;
  height: 46px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 0.55; }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--error);
}
.field-error {
  font-size: 12.5px;
  color: var(--error);
  line-height: 1.35;
  min-height: 0;
}
/* honeypot — visually hidden but present for bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* form result states */
.form-status {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.form-status--error {
  background: rgba(248, 113, 113, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.30);
  color: var(--error);
}
.form-fallback-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.form-fallback-link:hover { opacity: 0.85; }
.form-success {
  text-align: center;
  padding: 24px 8px;
}
.form-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--success);
}
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { font-size: 15px; color: var(--text-muted); }
.is-hidden { display: none !important; }

/* spinner inside submit button */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ============================================================
   SCROLL REVEAL
   ============================================================ */

/* Only hide reveals when JS is available (the inline <head> script adds
   `.js`). Without JS the content stays fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .audience { grid-template-columns: 1fr; }
}

/* ---- Tablet / large phone: nav collapses, hero stacks ---- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-burger { display: flex; }

  /* mobile drawer */
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 18px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav-links a { padding: 12px 0; font-size: 17px; width: 100%; }
  .nav.is-open .nav-links a::after { display: none; }
  .nav.is-open .nav-links .btn {
    display: inline-flex;
    margin-top: 10px;
    width: 100%;
  }

  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-title { font-size: clamp(38px, 7vw, 56px); }
  .hero-sub { font-size: 17.5px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .footer-cols { gap: 48px; }
}

/* ---- Phones ---- */
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .container { padding: 0 18px; }
  .form-card { padding: 24px 20px; }

  /* Tighter vertical rhythm so sections aren't mostly empty space. */
  .hero { padding: 44px 0 52px; }
  .hero-title { font-size: 34px; }
  .hero-actions { gap: 12px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .contact-main { padding: 40px 0 64px; }
  .contact-brand h1 { font-size: 34px; }

  /* Slightly denser cards on narrow screens. */
  .feature { padding: 24px 20px; }
  .step { padding: 24px 20px 22px; }
  .audience-card { padding: 22px 20px; }

  .footer { padding: 44px 0 32px; }
  .footer-cols { gap: 40px; }
}

/* ---- Small phones (iPhone SE / Mini and similar) ---- */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 30px; }
  .contact-brand h1 { font-size: 30px; }
  .hero-trust { font-size: 12.5px; gap: 8px 14px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.18em; }
  .evidence { padding: 14px; }
  .evidence-row { padding: 11px 10px; gap: 10px; }
  .footer-cols { gap: 28px; }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
