/* Conclave Agentic — site styles. Tokens from 01-brand/tokens.css */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600&family=Inter:wght@400;500&family=JetBrains+Mono:wght@500&display=swap");

:root {
  --ca-black: #0a0909;
  --ca-white: #ffffff;
  --ca-red: #b3261e;
  --ca-red-bright: #e5483f;
  --ca-gold: #d9a441;
  --ca-ink-900: #131111;
  --ca-ink-800: #1c1a19;
  --ca-line: #2a2524;
  --ca-stone-400: #8d8580;
  --ca-stone-600: #5c5552;
  --ca-paper: #f4f2f0;

  --live: var(--ca-gold);
  --glow: rgba(217, 164, 65, 0.16);

  --f-display: "Inter Tight", Inter, system-ui, sans-serif;
  --f-body: Inter, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --s-hero: 72px;
  --s-h1: 48px;
  --s-h2: 32px;
  --s-h3: 24px;
  --s-body: 18px;
  --s-small: 15px;
  --s-label: 13px;

  --section-y: 160px;
  --content: 1120px;
  --text: 680px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 800ms;
}
html.no-gold {
  --live: var(--ca-red-bright);
  --glow: rgba(179, 38, 30, 0.12);
}
@media (max-width: 720px) {
  :root {
    --s-hero: 44px;
    --s-h1: 34px;
    --s-h2: 26px;
    --section-y: 96px;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ca-black);
  color: var(--ca-white);
  font: 400 var(--s-body) / 1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ca-red); color: #fff; }

/* ---------- type ---------- */
.h-hero, .h1, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h-hero { font-size: var(--s-hero); line-height: 1.04; letter-spacing: -0.02em; }
.h1 { font-size: var(--s-h1); line-height: 1.1; letter-spacing: -0.015em; }
.h2 { font-size: var(--s-h2); line-height: 1.2; letter-spacing: -0.01em; }
.h3 { font-size: var(--s-h3); line-height: 1.3; letter-spacing: -0.005em; }
.lead { font-size: 20px; line-height: 1.55; color: #d8d3cf; text-wrap: pretty; margin: 0; }
.body { color: #cfc9c5; text-wrap: pretty; }
.body p { margin: 0 0 1em; }
.body p:last-child { margin-bottom: 0; }
.muted { color: var(--ca-stone-400); }
.label {
  font: 500 var(--s-label) / 1.4 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ca-stone-400);
}
.label.red { color: var(--ca-red-bright); }
.label.live { color: var(--live); }
.label.white { color: #fff; }
.small { font-size: var(--s-small); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--content) + 64px); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--text); }
.section { padding: var(--section-y) 0; position: relative; }
.section.tight { padding: calc(var(--section-y) * 0.6) 0; }
.rule { border: 0; border-top: 1px solid var(--ca-line); margin: 0; }
.stack > * + * { margin-top: 24px; }
.stack-s > * + * { margin-top: 12px; }
.stack-l > * + * { margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  font: 500 15px/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
  white-space: nowrap;
}
.btn-red { background: var(--ca-red); color: #fff; }
.btn-red:hover { background: #c92c22; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: #fff; }
.btn-quiet { background: var(--ca-ink-800); color: #fff; border-color: var(--ca-line); }
.btn-quiet:hover { border-color: var(--ca-stone-600); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.link { color: var(--ca-red-bright); text-decoration: none; border-bottom: 1px solid rgba(229,72,63,0.35); transition: border-color 300ms var(--ease); }
.link:hover { border-color: var(--ca-red-bright); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 500ms var(--ease), border-color 500ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid { background: rgba(10, 9, 9, 0.94); border-color: var(--ca-line); backdrop-filter: blur(8px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header .brand { display: flex; align-items: center; }
.site-header .brand img { height: var(--logo-h, 46px); width: auto; transition: height 400ms var(--ease); }
html.logo-l { --logo-h: 56px; }
html.logo-s { --logo-h: 36px; }
@media (max-width: 720px) { .site-header .brand img { height: min(var(--logo-h, 46px), 40px); } }
.site-header nav { display: flex; align-items: center; gap: 32px; }
.site-header nav a.nav { font-size: 15px; color: #d8d3cf; text-decoration: none; transition: color 300ms var(--ease); }
.site-header nav a.nav:hover, .site-header nav a.nav[aria-current="page"] { color: #fff; }
.site-header nav a.nav[aria-current="page"] { box-shadow: 0 1px 0 var(--ca-red); }
.menu-btn { display: none; background: none; border: 1px solid var(--ca-line); color: #fff; height: 40px; padding: 0 14px; border-radius: var(--radius); font: 500 12px var(--f-mono); letter-spacing: .08em; }
@media (max-width: 880px) {
  .site-header nav a.nav { display: none; }
  .menu-btn { display: inline-block; }
  .site-header nav.open { position: fixed; inset: 76px 0 auto 0; background: var(--ca-black); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 32px; border-bottom: 1px solid var(--ca-line); }
  .site-header nav.open a.nav { display: block; padding: 16px 0; border-bottom: 1px solid var(--ca-line); font-size: 18px; }
  .site-header nav.open .btn { margin-top: 24px; justify-content: center; }
  .site-header nav.open .menu-btn { display: none; }
}

/* ---------- logo lockups (assets/logos.js) ---------- */
.ca-lockup { display: inline-flex; align-items: center; gap: 0.42em; line-height: 1; color: #fff; font-size: var(--lk, 22px); }
.ca-lockup .ca-mark { width: 1.9em; height: 1.9em; flex: none; display: block; }
.ca-lockup .w { display: inline-flex; font-family: var(--f-display); }
.ca-lockup .w b { font-weight: 700; letter-spacing: 0.06em; }
.ca-lockup .w i { font-style: normal; font-weight: 500; letter-spacing: 0.32em; color: var(--ca-stone-400); }
.ca-lockup .w-stacked { flex-direction: column; gap: 0.28em; }
.ca-lockup .w-stacked b { font-size: 1em; }
.ca-lockup .w-stacked i { font-size: 0.44em; padding-left: 0.12em; }
.ca-lockup .w-line { align-items: baseline; gap: 0.5em; }
.ca-lockup .w-line b { font-size: 0.82em; }
.ca-lockup .w-line i { font-size: 0.82em; letter-spacing: 0.14em; font-weight: 400; }
.ca-lockup .w-word b { font-size: 1.12em; font-weight: 600; letter-spacing: -0.02em; }
.ca-lockup.pal-light, .ca-lockup.pal-black { color: #0a0909; }
.ca-lockup.pal-light .w i, .ca-lockup.pal-black .w i { color: var(--ca-stone-600); }
.site-header .brand .ca-lockup { --lk: var(--lk-h, 21px); text-decoration: none; }
html.logo-s { --lk-h: 17px; } html.logo-l { --lk-h: 25px; }
@media (max-width: 720px) { .site-header .brand .ca-lockup { --lk: 18px; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 200px 0 96px; position: relative; overflow: hidden; }
.page-head .h-hero { max-width: 900px; }
.page-head .lead { max-width: var(--text); margin-top: 28px; }

/* ---------- reveal ---------- */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.rv-on .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 120ms; } .rv.d2 { transition-delay: 240ms; } .rv.d3 { transition-delay: 360ms; } .rv.d4 { transition-delay: 480ms; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- media frames ---------- */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ca-ink-900); border: 1px solid var(--ca-line); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame .cap { position: absolute; left: 16px; bottom: 14px; }
.frame.shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,9,.75), rgba(10,9,9,0) 50%); pointer-events: none; }
.frame .cap { z-index: 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-wide { aspect-ratio: 1600 / 725; }
.ratio-4x3 { aspect-ratio: 4 / 3; }

/* live dot */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; box-shadow: 0 0 0 0 var(--live); animation: pulse 2.4s var(--ease) infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,164,65,.55); } 70% { box-shadow: 0 0 0 8px rgba(217,164,65,0); } 100% { box-shadow: 0 0 0 0 rgba(217,164,65,0); } }
html.no-gold .dot { animation-name: pulse-red; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(229,72,63,.55); } 70% { box-shadow: 0 0 0 8px rgba(229,72,63,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,63,0); } }

/* ---------- cards ---------- */
.card { background: var(--ca-ink-900); border: 1px solid var(--ca-line); border-radius: var(--radius); padding: 32px; }
.card.red { border-color: var(--ca-red); box-shadow: 0 0 80px -30px rgba(179,38,30,.5); }
.kv { display: grid; gap: 4px; }
.kv + .kv { margin-top: 24px; }
.kv .label { font-size: 12px; }
.kv p { margin: 0; color: #d8d3cf; font-size: 16px; line-height: 1.55; }
.pill { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 999px; background: var(--ca-ink-800); border: 1px solid var(--ca-line); font: 500 15px var(--f-display); }
.pill.red { background: var(--ca-red); border-color: var(--ca-red); }
.pill .seal { width: 14px; height: 14px; border-radius: 50%; background: #6e1712; box-shadow: inset 0 0 0 2px #8e1d17; }

/* ---------- table ---------- */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 22px 24px; border-bottom: 1px solid var(--ca-line); vertical-align: top; }
.compare th { font: 500 var(--s-label) var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ca-stone-400); padding-top: 0; }
.compare th:last-child { color: #fff; }
.compare td:first-child { color: var(--ca-stone-400); width: 44%; }
.compare td:last-child { color: #fff; }
.compare td:last-child, .compare th:last-child { border-left: 1px solid var(--ca-line); }
@media (max-width: 720px) { .compare th, .compare td { padding: 16px 12px; font-size: 15px; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,5,.94); display: none; align-items: center; justify-content: center; padding: 48px; }
.lightbox.open { display: flex; animation: fade 500ms var(--ease); }
.lightbox .inner { width: min(1280px, 100%); aspect-ratio: 16/9; position: relative; background: #000; }
.lightbox iframe, .lightbox video { width: 100%; height: 100%; border: 0; display: block; }
.lightbox .close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox .tabs { position: absolute; top: -44px; left: 0; display: flex; gap: 8px; }
.lightbox .tabs button { background: none; border: 1px solid var(--ca-line); color: var(--ca-stone-400); height: 30px; padding: 0 12px; border-radius: 4px; cursor: pointer; }
.lightbox .tabs button[aria-pressed="true"] { color: #fff; border-color: var(--ca-stone-600); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- final CTA ---------- */
.endcard { min-height: 100vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.endcard::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -58%); background: radial-gradient(circle, var(--glow), transparent 60%); pointer-events: none; }
.endcard .mark { width: 120px; height: 120px; margin: 0 auto 48px; }
.endcard .mark .flame { transform-origin: 100px 120px; animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: scale(1,1); opacity: 1; } 30% { transform: scale(.96,1.04); } 55% { transform: scale(1.03,.97); opacity: .92; } 80% { transform: scale(.98,1.02); } }
@media (prefers-reduced-motion: reduce) { .endcard .mark .flame { animation: none; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--ca-line); padding: 72px 0 48px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h4 { margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #cfc9c5; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer .base { margin-top: 72px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--ca-stone-600); font-size: 13px; }
@media (max-width: 880px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--ca-line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font: 600 22px/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 14px; height: 14px; position: relative; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ca-stone-400); transition: transform 400ms var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 0 32px; max-width: var(--text); color: #cfc9c5; }
.faq .ans p { margin: 0 0 12px; }

/* ---------- tweaks panel ---------- */
#ca-tweaks { position: fixed; right: 20px; bottom: 20px; z-index: 200; width: 300px; background: #141212; border: 1px solid var(--ca-line); border-radius: 10px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); display: none; font-size: 14px; }
#ca-tweaks.open { display: block; }
#ca-tweaks .t-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
#ca-tweaks .t-head b { font: 600 15px var(--f-display); }
#ca-tweaks .t-head button { background: none; border: 0; color: var(--ca-stone-400); cursor: pointer; font-size: 18px; }
#ca-tweaks .t-row { margin-top: 14px; }
#ca-tweaks .t-row .label { font-size: 11px; display: block; margin-bottom: 8px; }
#ca-tweaks .seg { display: flex; background: var(--ca-ink-800); border: 1px solid var(--ca-line); border-radius: 6px; padding: 3px; gap: 3px; }
#ca-tweaks .seg button { flex: 1; background: none; border: 0; color: var(--ca-stone-400); padding: 7px 6px; border-radius: 4px; cursor: pointer; font: 500 12px var(--f-body); }
#ca-tweaks .seg button[aria-pressed="true"] { background: #2a2524; color: #fff; }
#ca-tweaks { max-height: calc(100vh - 40px); overflow-y: auto; width: 320px; }
#ca-tweaks .vlist { display: grid; gap: 4px; }
#ca-tweaks .vlist button { display: grid; grid-template-columns: 18px 1fr; gap: 6px; text-align: left; background: var(--ca-ink-800); border: 1px solid var(--ca-line); color: #cfc9c5; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: 500 12.5px/1.35 var(--f-body); }
#ca-tweaks .vlist button span { font: 500 11px var(--f-mono); color: var(--ca-stone-600); }
#ca-tweaks .vlist button[aria-pressed="true"] { border-color: #fff; color: #fff; }
#ca-tweaks .vlist button[aria-pressed="true"] span { color: var(--ca-red-bright); }

/* logo: no focus box (Safari blue ring) */
.site-header .brand, .site-header .brand:focus, .site-header .brand:focus-visible, .site-header .brand:active, .site-header .brand img { outline: none !important; box-shadow: none !important; border: 0 !important; -webkit-tap-highlight-color: transparent; }
/* back to home */
.site-header nav a.ca-back { font-size: 14px; color: #d8d3cf; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--ca-line); border-radius: 999px; transition: color 300ms var(--ease), border-color 300ms var(--ease); }
.site-header nav a.ca-back:hover { color: #fff; border-color: #5a4f4c; }
@media (max-width: 720px) { .site-header nav a.ca-back { padding: 6px 11px; font-size: 13px; } }

.site-header .brand svg { height: var(--logo-h, 46px) !important; width: auto; display: block; }
@media (max-width: 720px) { .site-header .brand svg { height: min(var(--logo-h, 46px), 40px) !important; } }
