/* DevCrew Labs - site styles */
:root {
  --ink: #0A0E17;
  --ink-2: #0F1522;
  --ink-3: #172033;
  --ink-line: rgba(255, 255, 255, 0.09);
  --ink-text: #E8ECF3;
  --ink-muted: #9AA4B6;

  --paper: #FFFFFF;
  --paper-2: #F5F6F8;
  --paper-3: #ECEEF2;
  --text: #0A0E17;
  --muted: #566074;
  --line: #E3E6EC;

  --red: #E0182D;
  --red-dark: #B80F21;
  --red-soft: #FDECEE;
  --ray: #22E07A;
  --ray-dim: rgba(34, 224, 122, 0.14);
  --blue: #4C7DFF;
  --amber: #F5A524;

  --spectrum: linear-gradient(90deg, #4C7DFF 0%, #22D3EE 26%, #22E07A 50%, #F5A524 74%, #E0182D 100%);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(10, 14, 23, 0.05), 0 8px 24px rgba(10, 14, 23, 0.06);
  --shadow-lg: 0 24px 64px rgba(10, 14, 23, 0.18);

  --wrap: 1200px;
  --gutter: 24px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
  color: var(--ink-text);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 60px; height: 60px; }
.brand-text { display: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav a[aria-current="page"] { color: #fff; }
.nav .btn { margin-left: 12px; }
.nav a.btn, .nav a.btn:hover { color: #fff; }
.nav a.btn:hover { background: var(--red-dark); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--ink-line);
  color: #fff; border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(224, 24, 45, 0.28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; border-color: rgba(127,127,127,0.35); }
.btn-ghost:hover { border-color: currentColor; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-3); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--red); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.dark .link-arrow { color: #FF5A6B; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tight { padding: 80px 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--ink-text); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .muted, .dark .lede { color: var(--ink-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.dark .eyebrow { color: #FF5A6B; }
.eyebrow.ray { color: var(--ray); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.spectrum-rule { height: 3px; border-radius: 3px; background: var(--spectrum); width: 72px; margin-bottom: 24px; }
.center .spectrum-rule { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-text); padding: 96px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 420px at 85% -10%, rgba(76, 125, 255, 0.22), transparent 60%),
    radial-gradient(640px 380px at 10% 0%, rgba(224, 24, 45, 0.16), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 960px; }
.hero h1 em { font-style: normal; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 0; }
.hero-actions .btn-ghost { color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: var(--ink-muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ray); }
.hero-visual { margin-top: 72px; }
.page-hero { padding: 96px 0 88px; }
.page-hero .lede { max-width: 760px; }

/* ---------- Product console illustration ---------- */
.console {
  position: relative; border-radius: 18px 18px 0 0; overflow: hidden;
  background: #0D1320; border: 1px solid rgba(255,255,255,0.1); border-bottom: 0;
  box-shadow: 0 -10px 80px rgba(76, 125, 255, 0.18);
  font-size: 13px; color: var(--ink-text);
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--ink-line); background: #0B101B; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3347; }
.console-bar .title { margin-left: 12px; color: var(--ink-muted); font-size: 12px; }
.console-bar .title b { color: #fff; font-weight: 600; }
.console-body { display: grid; grid-template-columns: 200px 1fr 320px; min-height: 420px; }
.console-nav { border-right: 1px solid var(--ink-line); padding: 18px 12px; }
.console-nav div { padding: 8px 10px; border-radius: 8px; color: var(--ink-muted); display: flex; gap: 10px; align-items: center; }
.console-nav div::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: #2A3347; }
.console-nav .on { background: rgba(255,255,255,0.06); color: #fff; }
.console-nav .on::before { background: var(--red); }
.console-main { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px; }
.kpi small { display: block; color: var(--ink-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { display: block; font: 700 24px/1.2 var(--font-display); color: #fff; margin-top: 6px; }
.kpi .bar { height: 4px; border-radius: 4px; background: #222B3D; margin-top: 10px; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; border-radius: 4px; }
.panel { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px 16px; }
.panel h5 { margin: 0 0 10px; font: 600 12px/1 var(--font); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.rows div { display: grid; grid-template-columns: 1.6fr 1fr 90px; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ink-line); align-items: center; }
.rows div:first-child { border-top: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; width: max-content; }
.pill.g { background: rgba(34,224,122,.12); color: #4BEA97; }
.pill.a { background: rgba(245,165,36,.14); color: #FFC062; }
.pill.r { background: rgba(224,24,45,.16); color: #FF6B7B; }
.pill.b { background: rgba(76,125,255,.16); color: #8CAEFF; }
.console-ray { border-left: 1px solid var(--ink-line); padding: 22px 18px; background: linear-gradient(180deg, rgba(34,224,122,0.05), transparent 40%); }
.ray-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; color: #fff; }
.ray-card { background: var(--ink-2); border: 1px solid rgba(34,224,122,0.25); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.ray-card p { margin: 0 0 10px; color: var(--ink-text); font-size: 13px; line-height: 1.5; }
.ray-card ol { margin: 0 0 12px; padding-left: 18px; color: var(--ink-muted); font-size: 12px; line-height: 1.7; }
.ray-actions { display: flex; gap: 8px; }
.ray-actions span { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; }
.ray-actions .ok { background: var(--ray); color: #062012; }
.ray-actions .no { border: 1px solid var(--ink-line); color: var(--ink-muted); }
.ray-note { font-size: 12px; color: var(--ink-muted); display: flex; gap: 8px; align-items: flex-start; }

/* RAY four-dot mark */
.ray-mark { display: inline-grid; grid-template-columns: repeat(2, 1fr); gap: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.ray-mark i { border-radius: 50%; background: var(--ray); animation: raypulse 1.6s ease-in-out infinite; }
.ray-mark i:nth-child(2) { animation-delay: .2s; }
.ray-mark i:nth-child(4) { animation-delay: .4s; }
.ray-mark i:nth-child(3) { animation-delay: .6s; }
.ray-mark.lg { width: 44px; height: 44px; gap: 7px; }
@keyframes raypulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.78); } }
@media (prefers-reduced-motion: reduce) { .ray-mark i { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: #CDD2DB; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.card .link-arrow { margin-top: 18px; }
.alt .card { background: #fff; }
.dark .card { background: var(--ink-2); border-color: var(--ink-line); }
.dark .card:hover { border-color: rgba(255,255,255,0.18); box-shadow: none; }
.dark .card p { color: var(--ink-muted); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 20px;
}
.icon svg { width: 22px; height: 22px; }
.dark .icon { background: rgba(255,255,255,0.06); color: #fff; }
.icon.ray-i { background: var(--ray-dim); color: var(--ray); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.wide-left { grid-template-columns: 1.1fr 0.9fr; }

.checks li { list-style: none; position: relative; padding-left: 32px; margin: 0 0 14px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23E0182D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/16px no-repeat;
}
.dark .checks li::before { background-color: rgba(34,224,122,0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2322E07A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }
.checks strong { display: block; }
.checks span { color: var(--muted); }
.dark .checks span { color: var(--ink-muted); }

/* Sprawl illustration */
.sprawl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sprawl span {
  font-size: 13px; font-weight: 600; color: var(--muted); background: #fff; border: 1px dashed #C9CED8;
  border-radius: 10px; padding: 14px 10px; text-align: center;
}
.sprawl-arrow { text-align: center; margin: 18px 0; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.spectrum-box {
  border-radius: 14px; padding: 22px; background: var(--ink); color: #fff; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.spectrum-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectrum); }
.spectrum-box b { font: 800 22px/1 var(--font-display); letter-spacing: -.02em; }
.spectrum-box small { color: var(--ink-muted); font-size: 13px; }

/* Module tiles */
.module { position: relative; padding-top: 34px; }
.module::before { content: ""; position: absolute; left: 30px; top: 0; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c, var(--red)); }
.module h3 { font-size: 1.15rem; }
.module ul { margin-top: 16px; }
.module li { list-style: none; font-size: 14px; color: var(--muted); padding: 6px 0; border-top: 1px solid var(--line); }
.module li:first-child { border-top: 0; }

/* RAY loop */
.loop { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); overflow: hidden; }
.loop div { padding: 26px 20px; border-right: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); counter-increment: step; position: relative; }
.loop div:nth-child(6n) { border-right: 0; }
.loop div:nth-last-child(-n+6) { border-bottom: 0; }
.loop div::before { content: counter(step, decimal-leading-zero); display: block; font: 600 12px/1 var(--font-mono); color: var(--ray); margin-bottom: 14px; }
.loop b { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }
.loop span { color: var(--ink-muted); font-size: 13.5px; line-height: 1.5; display: block; }
.loop .human { background: rgba(224, 24, 45, 0.07); }
.loop .human::before { color: #FF6B7B; }

/* Autonomy ladder */
.ladder { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; }
.rung { border-radius: 12px; padding: 16px 14px; background: var(--ink-2); border: 1px solid var(--ink-line); position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.rung::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 12px 12px 0 0; background: var(--ray); opacity: var(--o, .3); }
.rung small { font: 600 11px/1 var(--font-mono); color: var(--ray); display: block; margin-bottom: 8px; }
.rung b { color: #fff; font-size: 14px; line-height: 1.3; display: block; margin-bottom: 6px; }
.rung span { color: var(--ink-muted); font-size: 12.5px; line-height: 1.45; }
.ladder .rung:nth-child(1) { min-height: 150px; --o: .15; }
.ladder .rung:nth-child(2) { min-height: 175px; --o: .28; }
.ladder .rung:nth-child(3) { min-height: 200px; --o: .41; }
.ladder .rung:nth-child(4) { min-height: 225px; --o: .55; }
.ladder .rung:nth-child(5) { min-height: 250px; --o: .7; }
.ladder .rung:nth-child(6) { min-height: 275px; --o: .85; }
.ladder .rung:nth-child(7) { min-height: 300px; --o: 1; border-color: rgba(34,224,122,0.35); }
.ladder-note { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; color: var(--ink-muted); font-size: 14px; }
.ladder-note b { color: #fff; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.modes div { padding: 28px 24px; border-right: 1px solid var(--line); }
.modes div:last-child { border-right: 0; }
.modes small { font: 600 12px/1 var(--font-mono); color: var(--red); }
.modes h4 { margin: 12px 0 8px; font-size: 1.1rem; }
.modes p { color: var(--muted); font-size: 15px; margin: 0; }
.meter { display: flex; gap: 4px; margin-top: 18px; }
.meter i { flex: 1; height: 5px; border-radius: 3px; background: var(--paper-3); }
.meter i.on { background: var(--red); }

/* Principles */
.principle { border-top: 1px solid var(--line); padding-top: 26px; }
.principle .num { font: 600 13px/1 var(--font-mono); color: var(--red); display: block; margin-bottom: 16px; }
.principle h3 { margin-bottom: 10px; }
.principle p { color: var(--muted); margin: 0; }
.dark .principle { border-color: var(--ink-line); }
.dark .principle p { color: var(--ink-muted); }

/* Logos / integrations */
.integrations { display: flex; flex-wrap: wrap; gap: 10px; }
.integrations span { font-size: 14px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.dark .integrations span { background: var(--ink-2); border-color: var(--ink-line); color: var(--ink-text); }

/* Audience strip */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience div { padding: 28px 24px; border-right: 1px solid var(--line); }
.audience div:last-child { border-right: 0; }
.audience b { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.audience span { color: var(--muted); font-size: 15px; }

/* Statement */
.statement { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1.25 var(--font-display); letter-spacing: -0.025em; max-width: 980px; }
.statement span { color: var(--muted); }
.dark .statement span { color: var(--ink-muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: 72px 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--spectrum); }
.cta-band::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(224,24,45,0.25), transparent 65%); }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: var(--ink-muted); margin: 0; font-size: 18px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.cta-band .btn-ghost { color: #fff; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper-2); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; width: 24%; }
.compare td.us { color: var(--text); }
.compare td.them { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font: 600 18px/1.4 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 14px 0 0; max-width: 820px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: 400 16px/1.4 var(--font); color: var(--text); background: #fff;
  border: 1px solid #CFD4DD; border-radius: 10px; padding: 13px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,24,45,0.12); }
.form textarea { min-height: 140px; resize: vertical; }
.form .fine { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { font-size: 15px; font-weight: 600; margin: 0; }
.contact-aside { display: grid; gap: 18px; }
.contact-aside .card { padding: 26px; }
.contact-aside a { color: var(--red); font-weight: 600; text-decoration: none; }

/* Legal / prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; letter-spacing: -0.02em; }
.prose p, .prose li { color: #2A3242; }
.prose ul { padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red); }

/* Brand page */
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.swatch div { height: 110px; }
.swatch p { margin: 0; padding: 14px 16px; font-size: 14px; }
.swatch code { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
.logo-tile { border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-items: center; min-height: 260px; padding: 32px; }
.logo-tile.on-dark { background: var(--ink); border-color: var(--ink); }
.logo-tile.on-grey { background: var(--paper-2); }
.logo-tile.on-red { background: var(--red); border-color: var(--red); }
.logo-caption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.logo-caption b { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-muted); padding: 80px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-grid h4 { color: #fff; font: 600 13px/1 var(--font); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-grid ul li { list-style: none; margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-muted); }
.footer-grid a:hover { color: #fff; }
.footer-brand p { max-width: 320px; margin-top: 20px; }
.footer-brand svg { width: 72px; height: 72px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--ink-line); margin-top: 64px; padding-top: 28px; font-size: 14px; }
.footer-base a { color: var(--ink-muted); text-decoration: none; margin-left: 20px; }
.footer-base a:hover { color: #fff; }
.footer-base a:first-child { margin-left: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .console-body { grid-template-columns: 1fr 300px; }
  .console-nav { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .loop { grid-template-columns: repeat(3, 1fr); }
  .loop div:nth-child(6n) { border-right: 1px solid var(--ink-line); }
  .loop div:nth-child(3n) { border-right: 0; }
  .loop div:nth-last-child(-n+6) { border-bottom: 1px solid var(--ink-line); }
  .loop div:nth-last-child(-n+3) { border-bottom: 0; }
  .ladder { grid-template-columns: repeat(4, 1fr); }
  .ladder .rung { min-height: 0 !important; }
  .modes { grid-template-columns: 1fr 1fr; }
  .modes div:nth-child(2) { border-right: 0; }
  .modes div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .audience { grid-template-columns: 1fr 1fr; }
  .audience div:nth-child(2) { border-right: 0; }
  .audience div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 80px; left: 0; right: 0; padding: 12px var(--gutter) 24px;
    background: var(--ink); border-bottom: 1px solid var(--ink-line);
  }
  .site-header.open .nav a { padding: 14px 12px; font-size: 17px; }
  .site-header.open .nav .btn { margin: 12px 0 0; }
  .split, .split.wide-left { grid-template-columns: 1fr; gap: 48px; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 56px 40px; }
  .cta-band .actions { justify-content: flex-start; }
  .section { padding: 88px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .hero { padding-top: 64px; }
  .page-hero { padding: 64px 0 56px; }
  .section-head { margin-bottom: 40px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .console-body { grid-template-columns: 1fr; min-height: 0; }
  .console-ray { border-left: 0; border-top: 1px solid var(--ink-line); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .rows div { grid-template-columns: 1.4fr 1fr; }
  .rows div > :nth-child(2) { display: none; }
  .hero-visual { margin-top: 48px; }
  .loop { grid-template-columns: 1fr 1fr; }
  .loop div { border-right: 1px solid var(--ink-line) !important; border-bottom: 1px solid var(--ink-line) !important; }
  .loop div:nth-child(2n) { border-right: 0 !important; }
  .loop div:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .modes { grid-template-columns: 1fr; }
  .modes div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .modes div:last-child { border-bottom: 0; }
  .audience { grid-template-columns: 1fr; }
  .audience div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .audience div:last-child { border-bottom: 0; }
  .sprawl { grid-template-columns: 1fr 1fr 1fr; }
  .cta-band { padding: 44px 24px; border-radius: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-base a { margin-left: 0; margin-right: 20px; }
  .spectrum-box { flex-direction: column; align-items: flex-start; }
}
