/* ============================================================
   AI-Sentinel - brand.css
   LIGHT design system. US English. No em dashes.
   White base, near-black headings, royal-blue primary, green for
   outcomes. Signature: marker-highlight swatches behind key phrases
   (.highlight = blue, .highlight-pos = green). Swap hex in :root.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- design tokens (light palette) ---------- */
:root {
  /* colours */
  --primary: #2F5BFF;        /* royal blue, CTA + headline highlight */
  --primary-dark: #2147E0;
  --accent: #15A865;         /* green, for outcome / number highlights */
  --accent-dark: #0F8B52;
  --secondary: #0B1020;      /* near-black headings */
  --bg: #FAF9F4;             /* warm ivory page background (Anthropic-style) */
  --bg-light: #F1EEE5;       /* "alt" sections, slightly deeper warm */
  --surface: #FFFFFF;        /* cards / panels: white, pops on the ivory */
  --text: #434B5C;           /* body text */
  --text-muted: #6B7382;
  --border: #E7E2D6;         /* warm hairline */
  --success: #15A865;
  --danger: #E5484D;
  --on-primary: #FFFFFF;     /* text on blue buttons */
  --white: #FFFFFF;
  /* marker-highlight swatch tints (soft, like a pale highlighter) */
  --hl-blue: rgba(47,91,255,0.14);
  --hl-green: rgba(21,168,101,0.17);

  /* type families */
  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* modular type scale (1.25) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.15rem;
  --text-4xl: 2.7rem;
  --text-5xl: 3.4rem;
  --text-6xl: 4.4rem;

  /* spacing (4px scale) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  /* radii */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px; --radius-full: 999px;

  /* shadows (soft, light theme) */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 28px rgba(15,23,42,0.09);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.14);

  /* transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;

  /* layout */
  --container-max: 1200px;
  --container-narrow: 820px;
}

/* ---------- base ---------- */
body { font-family: var(--font-body); color: var(--text); background-color: var(--bg); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--secondary); line-height: 1.1; text-wrap: balance; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.3rem, 2vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
p { line-height: 1.65; max-width: 70ch; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-24) 0; }
.section-alt { background: var(--bg-light); }
@media (max-width: 768px) { .section { padding: var(--space-16) 0; } }

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-base);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-md);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 14px rgba(47,91,255,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(47,91,255,0.35); }
.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-large { padding: var(--space-4) var(--space-10); font-size: var(--text-lg); }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-8); box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-6); color: var(--text-muted); font-size: var(--text-sm); }
.trust-strip .stars { color: var(--accent); letter-spacing: 2px; }
.trust-strip .trust-item { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---------- section headings ---------- */
.section-eyebrow { display: block; text-transform: uppercase; color: var(--primary); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.14em; margin-bottom: var(--space-3); }

/* hero eyebrow: clean editorial kicker, no pill, no dot */
.hero-kicker {
  display: inline-block; text-transform: uppercase; font-family: var(--font-head);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.13em; line-height: 1.4;
  color: var(--primary); margin-bottom: var(--space-8);
  border: 1px solid rgba(47,91,255,0.28); background: rgba(47,91,255,0.05);
  border-radius: var(--radius-full); padding: 0.6em 1.4em; max-width: 100%;
}
.hero-kicker strong { color: var(--primary); font-weight: 700; }
@media (max-width: 600px) { .hero-kicker { font-size: 0.72rem; letter-spacing: 0.07em; padding: 0.6em 1.1em; } }
.section-title { margin-bottom: var(--space-4); }
.section-subtitle { color: var(--text-muted); max-width: 640px; font-size: var(--text-lg); }
.section-head { margin-bottom: var(--space-12); }
.section-head.center { text-align: center; }
.section-head.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero-headline {
  max-width: 1320px; margin-left: auto; margin-right: auto;
  font-size: clamp(2.2rem, 3.9vw, 3.45rem);   /* trimmed so the 3 hard rows fit on desktop */
  text-wrap: normal;                          /* hard <br class="hb"> rows do the work, not the browser */
}
/* Locked 3-row hero headline. Safari ignores text-wrap: balance, so the rows are
   explicit. Below 1180px the breaks are dropped and the text flows naturally. */
.hero-headline .hb { display: inline; }
@media (max-width: 1180px) {
  .hero-headline .hb { display: none; }
  .hero-headline { text-wrap: balance; }
}

/* Site-wide: stop 1-2 words being stranded alone on the last line.
   pretty = avoids orphan/widow last lines (body); balance = even multi-line headings. */
h1, h2, h3, h4, h5, h6,
.section-title, .hero-kicker { text-wrap: balance; }
p, li, .section-subtitle, .hero-sub, .nudge, .risk-reducer { text-wrap: pretty; }
.hero-sub {
  max-width: 1080px; margin: var(--space-6) auto 0;
  font-size: clamp(1.0625rem, 1.35vw, 1.2rem);  /* slightly trimmed so it fits two rows */
  color: #3A4253;                               /* darker, more confident than muted */
  line-height: 1.55;
  text-wrap: balance;                           /* even out the two rows */
}

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,16,32,0.45); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center; padding: var(--space-8) var(--space-4);
  z-index: 1000; opacity: 0; transition: opacity var(--t-base); overflow-y: auto;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 800px; width: 90%; max-height: 90vh; overflow-y: auto; padding: var(--space-10); position: relative; box-shadow: var(--shadow-lg); margin: auto; }
.modal-close { position: absolute; top: var(--space-4); right: var(--space-4); width: 36px; height: 36px; border-radius: var(--radius-full); display: grid; place-items: center; color: var(--text-muted); }
.modal-close:hover { background: var(--bg-light); color: var(--secondary); }
body.modal-open { overflow: hidden; }

/* ---------- form fields ---------- */
input, select, textarea {
  background: var(--white); color: var(--secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-3); width: 100%; font-family: var(--font-body);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,91,255,0.15); }
label { color: var(--secondary); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: var(--space-6) 0; font-family: var(--font-head); font-weight: 600; font-size: var(--text-lg); color: var(--secondary); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: var(--text-2xl); color: var(--primary); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .faq-body { padding: 0 0 var(--space-6); color: var(--text-muted); max-width: 70ch; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,249,244,0.82); backdrop-filter: blur(10px); transition: box-shadow var(--t-base); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) 0; }
.nav-scrolled { box-shadow: 0 1px 0 var(--border), var(--shadow-sm); background: rgba(250,249,244,0.92); }
.nav .logo { height: 30px; }

/* brand lockup: shield mark + wordmark */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; width: auto; }
.brand-mark { width: 26px; height: auto; display: block; flex: 0 0 auto; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--secondary); line-height: 1; white-space: nowrap; }
.brand-hyphen { color: var(--primary); }

/* ---------- placeholders ---------- */
.video-placeholder, .image-placeholder {
  border: 1.5px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg-light);
  display: grid; place-items: center; color: var(--text-muted); font-size: var(--text-sm); text-align: center; padding: var(--space-8);
}
.video-wrapper { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.video-wrapper iframe, .video-wrapper video, .video-wrapper .video-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* vTurb self-sizes its own 16:9; this frame only adds the shared visual identity */
.video-frame { position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); background: #000; }
.image-placeholder { min-height: 200px; }

/* ---------- utilities ---------- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); } .mb-12 { margin-bottom: var(--space-12); }
.mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- marker highlights (the signature look) ---------- */
/* low "highlighter" band: a short stripe sitting near the baseline,
   so the tops of the letters rise above the colour (like a real marker) */
.highlight, .highlight-pos, .highlight-neg {
  background-repeat: no-repeat;
  background-size: 100% 40%;       /* band height ~40% of the line */
  background-position: 0 96%;      /* sits very low, around the baseline */
  padding: 0 0.05em;
  border-radius: 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.highlight { color: var(--primary); background-image: linear-gradient(var(--hl-blue), var(--hl-blue)); }
.highlight-pos { color: var(--accent); background-image: linear-gradient(var(--hl-green), var(--hl-green)); }
.highlight-neg { color: var(--danger); background-image: linear-gradient(rgba(229,72,77,0.14), rgba(229,72,77,0.14)); }

/* coloured text with a solid marker underline (second emphasis style) */
.hl-underline {
  color: var(--primary);
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-size: 100% 0.08em;
  background-position: 0 100%;
  padding-bottom: 0.04em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
/* big stat figures: solid colour, no swatch */
.stat { color: var(--primary); }
.stat-pos { color: var(--accent-dark); }

.cta-block { text-align: center; margin: var(--space-12) 0; }
.risk-reducer { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-3); text-align: center; max-width: 100%; }
.nudge { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-4); text-align: center; max-width: 100%; }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-4); }
.check-list li svg { flex-shrink: 0; margin-top: 2px; }
.check { color: var(--success); }
.cross { color: var(--text-muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 375px) { .container, .container-narrow { padding: 0 var(--space-4); } }
