/* ============================================================
   T5 TEAM — Contractor Funnel
   Shared design system (mobile-first, conversion-optimized)
   ============================================================ */

:root {
  /* Brand palette (matched to T5 reference funnel)
     - Deep navy = trust / authority (dark sections, logo)
     - Electric blue gradient = primary CTA / action
     - Green     = success / risk reversal / "go"
  */
  --navy-900: #07090f;
  --navy-800: #0f1726;
  --navy-700: #16243a;
  --navy-600: #24395c;
  --navy-100: #e8eef6;

  /* Accent — electric blue gradient (replaces old orange) */
  --action: #00AAFF;        /* primary accent */
  --action-hover: #0090e0;
  --action-soft: #e8f6ff;
  --accent: #00AAFF;
  --accent-2: #2244FF;
  --accent-gradient: linear-gradient(135deg, #2244FF, #00D4FF);

  --green: #16a34a;
  --green-soft: #e9f8ef;

  --amber: #f0b429;         /* accents / scarcity */
  --amber-soft: #fdf3da;

  --ink: #0f1115;           /* headings */
  --body: #44566b;          /* body text */
  --muted: #707683;
  --line: #e6e8ec;

  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-navy-tint: #f3f6fb;

  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,23,38,.06), 0 1px 3px rgba(15,23,38,.05);
  --shadow: 0 8px 24px rgba(15,23,38,.08);
  --shadow-lg: 0 18px 50px rgba(15,23,38,.16);
  --shadow-action: 0 10px 24px -4px rgba(34,68,255,.40);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --maxw-narrow: 680px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  font-family: var(--ff);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3.6vw, 1.6rem); }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
strong { color: var(--ink); font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--maxw-narrow); margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  padding: 18px 30px; border: none; border-radius: var(--radius-pill);
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  text-align: center; line-height: 1.1; width: auto;
}
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: var(--shadow-action); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 14px 30px -4px rgba(34,68,255,.50); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--white); color: var(--navy-800); box-shadow: var(--shadow-sm); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-pulse { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: var(--shadow-action), 0 0 0 0 rgba(0,170,255,.45); }
  70% { box-shadow: var(--shadow-action), 0 0 0 16px rgba(0,170,255,0); }
  100% { box-shadow: var(--shadow-action), 0 0 0 0 rgba(0,170,255,0); }
}

/* ---------- Pills / badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(34,68,255,.08);
  border: 1px solid rgba(34,68,255,.18);
  padding: 7px 15px; border-radius: var(--radius-pill);
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: #b9770b; }
/* breathing room between a sticker/eyebrow and the headline beneath it */
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3 { margin-top: 16px; }

/* ---------- Trust row ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--body); }
.trust-item svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-900); color: #cdd9e7; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-tight { padding: 36px 0; }
.section-head { max-width: 640px; margin: 0 auto 38px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Animations on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Footer legal links ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 10px 0 2px; }
.foot-links a { font-size: .85rem; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Brand logo (angular T5 mark + wordmark) ---------- */
.logo-lockup { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark { width: 22px; height: 27px; color: var(--accent); flex: none; display: block; }
.logo-lockup.on-dark .logo-mark { color: var(--accent); }
.q-logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.18rem; letter-spacing: .04em; color: #fff;
  display: inline-flex; align-items: center;
}
.q-logo span { font-weight: 500; font-size: .8em; letter-spacing: .14em; margin-left: 5px; opacity: .85; }
.q-logo.small { color: var(--ink); }

/* responsive helpers */
.hide-mobile { display: none; }
@media (min-width: 760px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }
