/* Sentinel AI Partners — Site v2 design system (authoritative tokens from SPEC §7). */
/* No external CSS, no frameworks, no icon fonts. Target <= 28 KB uncompressed. */

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* --- Authoritative tokens (SPEC §7) -------------------------------------- */
:root {
  --bg: #0B0E12;        /* near-black, not pure black */
  --bg-2: #12161C;      /* raised surface */
  --bg-3: #1A2028;      /* card surface */
  --line: rgba(255,255,255,.09);
  --text: #E8ECF2;      /* body */
  --text-dim: #9AA8B8;  /* support copy */
  --accent: #00B0C4;    /* brand cyan (kept from v1) */
  --accent-2: #E8823A;  /* amber, money moments only */
  --good: #46C08A;      /* positive / recovered revenue */
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --maxw: 1180px;
  --space: clamp(16px, 2.2vw, 28px);
}

/* --- Typography scale ---------------------------------------------------- */
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; line-height: 1.25; }
p { color: var(--text-dim); }
p.lead { color: var(--text); font-size: 1.12rem; }
eyebrow, .eyebrow { display: inline-block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); font-weight: 600; }
small, .note { color: var(--text-dim); font-size: 0.92rem; }
/* Numbers in mono + tabular-nums (money / stats). */
.tabular { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --- Layout helpers ------------------------------------------------------ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space); }
section { padding-block: clamp(56px, 8vw, 96px); }
.grid-7-5 { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: clamp(24px,4vw,48px); align-items: start; }
.grid-5-7 { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(24px,4vw,48px); align-items: start; }
@media (max-width: 860px) { .grid-7-5, .grid-5-7 { grid-template-columns: 1fr; } }

/* --- Cards --------------------------------------------------------------- */
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px,3vw,32px); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* --- Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; border: 1px solid transparent; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #04121a; }
.btn-primary:hover { background: #0fd3ec; box-shadow: 0 0 24px rgba(0,176,196,.55); transform: translateY(-1px); }
/* Amber reserved for money moments only. */
.btn-money { background: var(--accent-2); color: #1a0f03; }
.btn-money:hover { background: #f49448; box-shadow: 0 0 24px rgba(232,130,58,.5); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* --- Stack list (component lines) ---------------------------------------- */
.stack-list { display: grid; gap: 10px; margin: 0 0 14px; }
.stack-list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.stack-list .label { color: var(--text); }
.stack-list .price { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text-dim); white-space: nowrap; }
.price-line { display: flex; align-items: baseline; gap: 10px; }
.strike { text-decoration: line-through; color: var(--text-dim); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.savings { color: var(--good); font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --- FAQ (details/summary, no JS) ---------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.faq summary { font-weight: 500; cursor: pointer; list-style: none; position: relative; padding-right: 26px; }
.faq summary::after { content: "+"; position: absolute; right: 16px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 10px; }

/* --- Comparison table ---------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table thead th { color: var(--text-dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.table td, .table th:first-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .table th, .table td { padding: 10px 8px; font-size: .85rem; } }

/* --- Stat / note / disclosure -------------------------------------------- */
.stat { display: grid; gap: 6px; }
.stat .num { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 300; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat .lbl { color: var(--text-dim); font-size: .9rem; }
.note { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--text-dim); }
.disclosure { color: var(--text-dim); font-size: .9rem; }

/* --- Sticky header ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.site-logo img { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px,2vw,26px); }
.site-nav a { color: var(--text-dim); font-size: .95rem; font-weight: 500; transition: color .15s ease; }
.site-nav a:hover { color: var(--accent); }
.nav-cta { border: 1px solid var(--accent-2); color: var(--accent-2) !important; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.nav-cta:hover { background: var(--accent-2); color: #1a0f03 !important; }

/* Mobile menu panel — transform-only animation. */
.menuToggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); }
@media (max-width: 900px) { .site-nav { display: none; } .menuToggle { display: inline-flex; } }
@media (min-width: 901px) { .menuToggle { display: none; } }
.menuToggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mobile-panel { position: fixed; inset: 72px 0 auto 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: var(--space); transform: translateY(-110%); transition: transform .25s ease; z-index: 45; }
.mobile-panel.open { transform: translateY(0); }
.mobile-panel a { display: block; padding: 14px 0; color: var(--text); font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-panel a:last-child { border-bottom: 0; }
.mobile-panel .nav-cta { display: block; background: var(--accent-2); color: #1a0f03 !important; border: 0; text-align: center; border-radius: var(--radius-sm); font-weight: 600; padding: 14px; }

/* --- Sticky bottom CTA bar (mobile only) --------------------------------- */
.cta-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg-2); border-top: 1px solid var(--line); padding: 10px var(--space); }
.cta-bar .btn { width: 100%; }
@media (max-width: 700px) { .cta-bar { display: block; } }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(48px,6vw,72px); }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(24px,4vw,48px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 12px; }
.site-footer a { color: var(--text); display: block; padding: 4px 0; font-size: .95rem; }
.site-footer a:hover { color: var(--accent); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .88rem; }

/* --- Scroll reveals ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }
@media (supports animation-timeline: view()) and (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal linear view(); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal.in { opacity: 1 !important; transform: none !important; }

/* --- Hero waveform (Rook-authored SVG) animates amplitude only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .waveform path { animation: wave-amplitude 6s ease-in-out infinite alternate; }
}
@keyframes wave-amplitude { from { transform: scaleY(1); } to { transform: scaleY(1.35); } }

/* --- Focus / accessibility ---------------------------------------------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: fixed; left: 8px; top: -48px; z-index: 100; background: var(--accent); color: #04121a; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; transition: top .15s ease; }
.skip-link:focus { top: 8px; }

/* --- Visually hidden (screen-reader only) -------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Hero rhythm (first section on every page) --------------------------- */
main > section:first-of-type { min-height: min(620px, calc(76svh - 72px)); display: grid; align-content: center; padding-block: clamp(36px, 5vw, 72px); }
.hero-art { align-self: center; background: var(--bg-2); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: clamp(16px,2vw,26px); }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .cap { color: #C2CEDB; font-size: .88rem; margin-top: 12px; letter-spacing: .02em; }
.hero-art .card { fill: #222A34; stroke: rgba(255,255,255,.16); }
@media (max-width: 860px) { main > section:first-of-type { min-height: 0; } .hero-art { margin-top: 32px; } }

/* --- Form controls (funnel + booking) ------------------------------------ */
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 16px 20px 20px; margin: 0 0 18px; }
legend { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text); font-weight: 600; padding: 0 10px; }
fieldset label, .choice { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; color: var(--text); padding: 4px 0; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
input[type="text"], input[type="email"], input[type="tel"], input[type="name"], select {
  background: var(--bg-3); color: var(--text); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; width: 100%; max-width: 460px;
}
input::placeholder { color: var(--text-dim); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.form-note { color: var(--text-dim); font-size: .9rem; margin-top: 10px; }

/* --- Contrast polish ----------------------------------------------------- */
.btn-ghost { border-color: rgba(255,255,255,.5); }
.eyebrow { color: #3CCFE3; }
.disclosure, .note { color: #BCC8D6; }

