/* FanalyticsIQ (mail.fanalyticsiqmail.com) - static HTML5 build */
:root {
  --navy-900: #06070d;
  --navy-850: #0c0f17;
  --navy-800: #0a1f3d;
  --navy-700: #0f2547;
  --navy-600: #1e3458;
  --slate-500: #5a7095;
  --slate-400: #8fa3bd;
  --slate-200: #c9d4e3;
  --green-500: #5dac55;
  --green-400: #6dbe65;
  --green-300: #4ade80;
  --white: #ffffff;
  --line: rgba(143, 163, 189, 0.22);
  --line-strong: rgba(143, 163, 189, 0.47);
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.accent { color: var(--green-500); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green-500); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--green-300); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 31, 61, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { width: 125px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; }
.nav ul a { font-size: 14px; color: var(--slate-200); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--white); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px/1 var(--font-sans);
  padding: 15px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-primary { background: var(--green-500); color: var(--white); }
.btn-primary:hover { background: var(--green-400); transform: translateY(-1px); }
.btn-ghost { background: rgba(15, 37, 71, 0.5); border-color: var(--line-strong); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

/* ---------- Eyebrow / section labels ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 500 11px/1.6 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-400); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--slate-500); }
.eyebrow .num { color: var(--green-500); }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(15, 37, 71, 0.5); font: 500 11px/1.5 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-400); }
.pill-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.05); } }

.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); }
.h2 { font-size: clamp(40px, 6.2vw, 68px); }
.lede { font-size: clamp(16px, 1.4vw, 18px); color: var(--slate-200); max-width: 60ch; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 110px) clamp(48px, 7vw, 90px); background:
  radial-gradient(900px 500px at 85% 10%, rgba(93, 172, 85, 0.12), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(30, 52, 88, 0.8), transparent 70%),
  var(--navy-800); }
.hero h1 { font-size: clamp(52px, 10vw, 110px); margin-block: 32px 30px; max-width: 13ch; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.badges { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.badges .label { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-400); }
.badges ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.badges li { font: 600 12px/1 var(--font-mono); letter-spacing: 0.08em; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--white); }

/* ---------- Stats ---------- */
.stats { background: var(--navy-700); padding-block: clamp(56px, 7vw, 96px); border-block: 1px solid var(--line); }
.stats .eyebrow { margin-bottom: 36px; }
.stats dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 10px; }
.stat dd { margin: 0; font-size: clamp(48px, 7vw, 92px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.stat dd span { color: var(--green-500); }
.stat dt { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-400); }

/* ---------- Why ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split .h2 { margin-block: 22px 26px; }
.numbered { list-style: none; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; line-height: 1.45; }
.numbered li:first-child { border-top: 1px solid var(--line); }
.numbered li::before { content: counter(n, decimal-leading-zero); font: 500 12px/2 var(--font-mono); color: var(--green-500); }

/* ---------- Signals ---------- */
.signals { background: var(--navy-700); }
.signals .split { align-items: center; }
.signals .h2 { font-size: clamp(34px, 4.6vw, 52px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(10, 31, 61, 0.6); transition: border-color .2s, background-color .2s; }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.chips li:hover { border-color: var(--green-500); background: rgba(93, 172, 85, 0.08); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; }
.card { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px 24px 32px; background: linear-gradient(180deg, rgba(30, 52, 88, 0.55), rgba(15, 37, 71, 0.2)); transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--green-500); }
.card .num { font: 500 12px/1 var(--font-mono); color: var(--green-500); }
.card h3 { font-size: 24px; letter-spacing: -0.02em; margin-block: 22px 14px; line-height: 1.1; }
.card p { font-size: 14px; color: var(--slate-200); line-height: 1.6; }

/* ---------- Industries ---------- */
.industries { background: var(--navy-900); }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.industry-grid li { padding: 32px 26px 40px; border-right: 1px solid var(--line); background: var(--navy-850); }
.industry-grid li:last-child { border-right: 0; }
.industry-grid .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(93, 172, 85, 0.12); color: var(--green-500); margin-bottom: 26px; }
.industry-grid .icon svg { width: 20px; height: 20px; }
.industry-grid h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.industry-grid p { font: 400 13px/1.6 var(--font-mono); color: var(--slate-400); }

/* ---------- Statement ---------- */
.statement { text-align: center; background: var(--navy-700); }
.statement p.big { font-size: clamp(32px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; max-width: 18ch; margin: 22px auto 0; }

/* ---------- Security ---------- */
.security .cards { grid-template-columns: repeat(2, 1fr); }
.security .card h3 { font-size: 26px; }
.security .card p { font-size: 15px; }

/* ---------- CTA ---------- */
.cta { text-align: center; background:
  radial-gradient(700px 360px at 50% 0%, rgba(93, 172, 85, 0.14), transparent 70%), var(--navy-800); }
.cta .eyebrow { justify-content: center; }
.cta h2 { margin-block: 22px 22px; }
.cta .lede { margin-inline: auto; text-align: center; }
.cta-form { margin: 36px auto 18px; max-width: 520px; display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: var(--navy-850); border: 1px solid var(--line-strong); }
.cta-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--white); font: 400 15px var(--font-sans); padding: 0 18px; }
.cta-form input::placeholder { color: var(--slate-500); }
.cta-form input:focus { outline: none; }
.cta-form:focus-within { border-color: var(--green-300); }
.cta-form button { background: var(--green-300); color: var(--navy-900); border: 0; border-radius: 999px; padding: 14px 24px; font: 600 14px/1 var(--font-sans); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: filter .2s; }
.cta-form button:hover { filter: brightness(1.08); }
.cta-form button svg { width: 14px; height: 14px; }
.cta .fine { font-size: 13px; color: var(--slate-400); }
.form-status { min-height: 1.6em; margin-top: 8px; font-size: 14px; color: var(--green-300); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(15, 37, 71, 0.4); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 56px 22px 24px; font-size: 18px; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 400 22px var(--font-mono); color: var(--green-500); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 24px 24px; color: var(--slate-200); }

/* ---------- About ---------- */
.about .split { grid-template-columns: 220px 1fr; }
.about p.big { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line); padding-block: 64px 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid .brand img { width: 120px; margin-bottom: 18px; }
.footer-grid p { color: var(--slate-200); max-width: 34ch; }
.footer-grid h2 { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--slate-200); text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--slate-400); }

/* ---------- Legal / inner pages ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); margin-top: 20px; }
.page-hero .meta { margin-top: 18px; font: 400 13px/1.5 var(--font-mono); color: var(--slate-400); }
.prose { max-width: 820px; padding-block: 48px 96px; color: var(--slate-200); font-size: 16px; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--white); font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; margin-top: 2.2em; }
.prose h3 { color: var(--white); font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; margin-top: 1.8em; }
.prose h4 { color: var(--white); font-size: 17px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--green-300); word-break: break-word; }
.prose strong { color: var(--white); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--white); background: var(--navy-700); }
.prose tr:last-child td { border-bottom: 0; }
.embed-form { width: 100%; max-width: 680px; min-height: 1400px; border: 0; border-radius: 12px; background: var(--white); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid li:nth-child(2) { border-right: 0; }
  .industry-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats dl { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px; padding: 24px var(--gutter) 32px; background: var(--navy-800); border-bottom: 1px solid var(--line); transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .btn { justify-content: center; }
  .split, .about .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cards, .industry-grid, .security .cards { grid-template-columns: 1fr; }
  .industry-grid li { border-right: 0; border-bottom: 1px solid var(--line); }
  .industry-grid li:last-child { border-bottom: 0; }
  .stats dl { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .cta-form { flex-direction: column; border-radius: 18px; }
  .cta-form input { padding: 14px; }
  .cta-form button { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Email hub (/email/) ---------- */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cta-form-left { margin: 0 0 8px; max-width: none; }
.numbered a.link, .checks a { color: var(--green-300); }
.checks strong { color: var(--green-300); font-weight: 600; }
#unsubscribe .numbered { margin-top: 24px; }
#unsubscribe .numbered li { font-size: 15px; }
@media (max-width: 1024px) { .cards-3 { grid-template-columns: 1fr; } }
