/* ==========================================================================
   Preflow — landing site
   Plain, framework-free CSS. Semantic classes so the markup maps cleanly onto
   Webflow sections/divs/collections when this is rebuilt visually later.
   ========================================================================== */

:root {
  /* Palette = the Preflow app design tokens (funnelflow-tracker/src/index.css).
     Hex values are the exact HSL tokens converted, so the site reads as the app. */
  --brand:        #0c64f4; /* --primary        hsl(217 91% 50%) */
  --brand-600:    #0b57d0;
  --brand-700:    #0842a0;
  --brand-300:    #6ea8ff; /* --primary (dark) hsl(217 91% 60%) family */
  --accent:       #22d3ee; /* cyan for gradient accents */

  --navy:         #080c17; /* --background (dark) hsl(222 47% 6%) */
  --ink:          #0f172a; /* --foreground       hsl(222 47% 11%) */
  --ink-2:        #334155;
  --muted:        #64748b; /* --muted-foreground hsl(215 16% 47%) */
  --line:         #e1e7ef; /* --border           hsl(214 32% 91%) */
  --bg:           #ffffff;
  --bg-soft:      #f2f4f8; /* --muted (light)    hsl(214 32% 96%) */
  --bg-softer:    #e7f0fe; /* --sidebar-accent   hsl(217 91% 95%) */
  --white:        #ffffff;

  --radius:       18px;
  --radius-sm:    12px;
  --shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md:    0 8px 30px rgba(15,23,42,.08);
  --shadow-lg:    0 24px 60px rgba(11,87,208,.16);

  --container:    1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-2); }

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

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--bg-softer);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(12,100,244,.32);
}
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(12,100,244,.40); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.30);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); color:#fff; }
.btn-outline {
  background: #fff;
  color: var(--brand-700);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--brand-300); color: var(--brand-700); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--brand-700); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(12,100,244,.35);
}
.logo-mark svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #eaf1ff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(110,168,255,.20), transparent 55%),
    linear-gradient(160deg, #080c17 0%, #0b2a6b 55%, #0c64f4 130%);
  padding: 88px 0 96px;
}
.hero h1 { color: #fff; }
.hero .lead { color: #c7d6f5; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: #bfe0ff; background: rgba(255,255,255,.10); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: #9fb6e0; }
.hero-note strong { color: #eaf1ff; }

/* Product mock card */
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.mock-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.06); margin-bottom: 10px; }
.mock-row:last-child { margin-bottom: 0; }
.mock-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; font-size: 18px; }
.mock-ico.wa { background: rgba(37,211,102,.18); }
.mock-ico.em { background: rgba(110,168,255,.20); }
.mock-ico.li { background: rgba(10,102,194,.28); }
.mock-ico.ca { background: rgba(34,211,238,.20); }
.mock-txt { flex: 1 1 auto; min-width: 0; }
.mock-txt b { display: block; color: #fff; font-size: .95rem; }
.mock-txt span { color: #9fb6e0; font-size: .82rem; }
.mock-badge { font-size: .72rem; font-weight: 700; color: #0a1730; background: #6ee7b7; padding: 4px 9px; border-radius: 999px; }
.mock-badge.blue { background: #bfe0ff; }

/* ---------- Trust / stats band ---------- */
.band { background: var(--navy); color: #cfe0ff; padding: 34px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat span { font-size: .92rem; color: #9fb6e0; }

/* ---------- Clients / results ---------- */
.client-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 920px;
  margin: 0 auto;
}
.client-head { margin-bottom: 28px; }
.client-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.client-name { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.client-link { font-size: .95rem; font-weight: 600; }
.client-desc { margin: 0; color: var(--ink-2); max-width: 640px; }
.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; border-top: 1px solid var(--line); padding-top: 28px; }
.cstat b { display: block; font-size: 2.2rem; font-weight: 800; color: var(--brand-600); letter-spacing: -.02em; line-height: 1.1; }
.cstat span { font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) { .client-stats { grid-template-columns: 1fr; gap: 20px; } .client-card { padding: 26px; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { font-size: 1.1rem; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-softer); color: var(--brand-600);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .num {
  width: 40px; height: 40px; border-radius: 11px; display:grid; place-items:center;
  font-weight: 800; color:#fff; background: linear-gradient(135deg,var(--brand),var(--brand-700));
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: .96rem; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  color: #eaf1ff;
  border-radius: 28px;
  padding: 64px 32px;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(34,211,238,.22), transparent 60%),
    linear-gradient(160deg, #0b2a6b, #0c64f4);
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: #cfe0ff; max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }
.cta .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb6e0; padding: 56px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .logo { color: #fff; }
.site-footer p { color: #9fb6e0; }
.footer-col h4 { color:#fff; font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; margin:0 0 14px; }
.footer-col a { display: block; color: #9fb6e0; margin-bottom: 10px; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding-top: 24px; display:flex; justify-content: space-between; gap:16px; flex-wrap: wrap; font-size: .88rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal .updated { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; padding-top: 8px; }
.legal h3 { font-size: 1.08rem; margin-top: 26px; }
.legal p, .legal li { color: var(--ink-2); font-size: 1.02rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .toc { background: var(--bg-soft); border:1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin: 28px 0 8px; }
.legal .toc h4 { margin: 0 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing:.06em; color: var(--muted); }
.legal .toc a { font-size: .96rem; }
.legal .note {
  background: var(--bg-softer);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .95rem;
  color: var(--ink-2);
}
.back-link { display:inline-flex; align-items:center; gap:6px; font-weight:600; margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 72px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .steps, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
