/* Brandy - dark briefing world (composio-pinned reference, Brandy voice).
   All-sharp world (radius 0). Accent never used as a background fill. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0c09;
  --bg-raise: #12140e;
  --bg-raise-2: #171a11;
  --ink: #f2f4e8;
  --ink-soft: #a2ab97;
  --accent: #2fbd6f;
  --watch: #e08a4f;
  --invert-bg: #f2f4e8;
  --invert-ink: #101208;
  --hairline: rgba(242, 244, 232, 0.14);
  --hairline-strong: rgba(242, 244, 232, 0.34);
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --radius: 0;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--invert-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--accent); color: var(--invert-ink);
  font-family: var(--font-mono); font-size: 13px; padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 9, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav-row { display: flex; align-items: center; gap: 32px; height: 64px; }

.wordmark {
  font-family: var(--font-sans); font-weight: 600; font-size: 20px;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.wordmark::before {
  content: ""; width: 9px; height: 9px; background: var(--accent);
  flex: none;
}

.site-nav { display: flex; gap: 28px; margin-left: auto; }

.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px;
  transition: color 160ms;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.nav-cta { flex: none; }

/* ---------- buttons (mono uppercase, composio pattern) ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 14px 22px; text-decoration: none; border: 1px solid transparent;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}

.btn-primary { background: var(--invert-bg); color: var(--invert-ink); }
.btn-primary:hover { background: #d6dacc; }

.btn-secondary { border-color: var(--hairline-strong); color: var(--ink); }
.btn-secondary:hover { background: rgba(242, 244, 232, 0.07); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ---------- hero ---------- */

.hero { padding: 128px 0 96px; text-align: center; }

.hero h1 {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.04; letter-spacing: -0.025em;
  max-width: 19ch; margin: 0 auto 24px;
}

.hero-sub {
  color: var(--ink-soft); font-size: 19px; max-width: 54ch; margin: 0 auto 36px;
}

.hero .cta-row { justify-content: center; }

.micro-line {
  font-size: 13px; color: var(--ink-soft); margin-top: 20px;
}

/* ---------- proof row ---------- */

.proof {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 64px; text-align: center;
}

.micro-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
}

.proof-row {
  display: flex; justify-content: center; align-items: center;
  gap: 64px; margin-top: 28px; flex-wrap: wrap;
}

.proof-item { display: inline-flex; align-items: center; gap: 14px; opacity: 0.88; }
.proof-item svg { display: block; }
.proof-item span { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: var(--ink); }

/* ---------- section headers ---------- */

h2 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1; letter-spacing: -0.02em;
}

.section-intro { color: var(--ink-soft); font-size: 18px; max-width: 60ch; }

/* ---------- demo: the briefing plate ---------- */

.demo { padding: 96px 0 112px; }
.demo-head { text-align: center; max-width: 60ch; margin: 0 auto 56px; }
.demo-head h2 { margin-bottom: 14px; }
.demo-head .section-intro { margin: 0 auto; }

.plate {
  background: var(--bg-raise);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  max-width: 640px; margin: 0 auto; padding: 26px 28px;
}

.plate-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
}
.plate-title { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 3px 8px;
}

.plate-athlete {
  font-family: var(--font-serif); font-style: italic; font-weight: 450;
  font-size: 17px; color: var(--ink); margin: 16px 0 18px;
}

.plate-switch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.switch-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }

.plate-tabs { display: inline-flex; }
.plate-tab {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 9px 16px; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--hairline-strong); border-left-width: 0;
  transition: background-color 160ms, color 160ms;
}
.plate-tab:first-child { border-left-width: 1px; }
.plate-tab:hover { background: rgba(242, 244, 232, 0.05); }
.plate-tab[aria-selected="true"] { background: var(--invert-bg); color: var(--invert-ink); }

.plate-panel { display: flex; flex-direction: column; gap: 16px; }

.score-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
}
.score-value { font-family: var(--font-serif); font-weight: 500; font-size: 44px; line-height: 1.1; }
.score-value .numeral { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.delta { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.trend { flex: none; width: 120px; height: 36px; }

.plate-field .field-label { display: block; margin-bottom: 4px; }
.field-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
.plate-field p { font-size: 16px; }
.plate-field p + p { margin-top: 4px; }
.plate-field.action { border-left: 2px solid var(--accent); padding-left: 14px; }
.plate-field.action p { color: var(--ink); }

.plate-footnote { font-size: 12.5px; color: var(--ink-soft); margin-top: 18px; }

/* ---------- problem strip ---------- */

.problem { padding: 128px 0 112px; text-align: center; }

.problem-statement {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.08; letter-spacing: -0.015em;
  max-width: 20ch; margin: 0 auto 24px;
}
.problem-body { color: var(--ink-soft); font-size: 18px; max-width: 65ch; margin: 0 auto; }
.problem-close {
  font-family: var(--font-serif); font-weight: 500; font-size: 24px;
  margin-top: 28px;
}

/* ---------- decisions: numbered tabs (composio device) ---------- */

.decisions { padding: 96px 0 112px; }
.decisions-head { max-width: 60ch; margin-bottom: 56px; }
.decisions-head h2 { margin-bottom: 14px; }

.decisions-grid { display: grid; grid-template-columns: 400px 1fr; gap: 48px; align-items: start; }

.ledger-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }

.ledger-tab {
  display: flex; align-items: baseline; gap: 16px; text-align: left;
  background: transparent; cursor: pointer;
  border: none; border-bottom: 1px solid var(--hairline);
  padding: 22px 16px 22px 8px;
  transition: background-color 160ms;
}
.ledger-tab:hover { background: rgba(242, 244, 232, 0.04); }
.ledger-num {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--ink-soft); flex: none;
}
.ledger-tab h3 {
  font-family: var(--font-sans); font-weight: 500; font-size: 18px;
  color: var(--ink-soft); line-height: 1.3;
}
.ledger-tab[aria-selected="true"] { background: var(--bg-raise); }
.ledger-tab[aria-selected="true"] .ledger-num { color: var(--accent); }
.ledger-tab[aria-selected="true"] h3 { color: var(--ink); }

.ledger-panel {
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  padding: 32px;
}

.ledger-terms { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ledger-terms li {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); border: 1px solid var(--hairline-strong);
  padding: 6px 12px;
}
.ledger-reading { font-size: 18px; line-height: 1.65; max-width: 52ch; }

/* ---------- wire: from signals to briefing ---------- */

.wire { padding: 96px 0 112px; }
.wire-head { max-width: 60ch; margin-bottom: 56px; }
.wire-head h2 { margin-bottom: 14px; }

.wire-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.wire-node { position: relative; padding-top: 24px; }
.wire-node::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 1px; background: var(--hairline-strong);
}
.wire-node::after {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 8px; height: 8px; background: var(--accent);
}
.wire-num {
  display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--accent); margin-bottom: 10px;
}
.wire-node h3 { font-family: var(--font-sans); font-weight: 600; font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.wire-node p { font-size: 15px; color: var(--ink-soft); }

.wire-fuse {
  display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 32px;
  align-items: baseline;
  background: var(--bg-raise-2);
  border: 1px solid var(--hairline);
  padding: 28px 32px; margin-top: 48px;
}
.wire-fuse h3 { font-family: var(--font-sans); font-weight: 600; font-size: 20px; }
.wire-fuse p { font-size: 16px; color: var(--ink-soft); }

/* ---------- statement band (the single inverted strip) ---------- */

.statement-band { background: var(--invert-bg); color: var(--invert-ink); padding: 88px 0; }
.statement {
  font-family: var(--font-serif); font-style: italic; font-weight: 480;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.35; max-width: 30ch; margin: 0 auto; text-align: center;
}

/* ---------- in practice ---------- */

.practice { padding: 96px 0 112px; }
.practice-head { max-width: 60ch; margin-bottom: 56px; }
.practice-head h2 { margin-bottom: 14px; }

.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.practice-grid > * { min-width: 0; }

.uc-kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 10px;
}
.uc h3 { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.uc-body { font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }

.uc-excerpt { list-style: none; }
.uc-excerpt li {
  font-family: var(--font-serif); font-size: 16.5px; line-height: 1.55;
  border-left: 2px solid var(--hairline-strong);
  padding: 12px 0 12px 18px;
}
.uc-excerpt li + li { border-top: 1px solid var(--hairline); }
.uc-excerpt li { border-left: 2px solid var(--hairline-strong); }

.uc-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
  margin-top: 14px;
}

.table-scroll { overflow-x: auto; }
.uc-table table { width: 100%; border-collapse: collapse; min-width: 480px; }
.uc-table thead th {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; text-align: left;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline-strong);
  padding: 10px 14px;
}
.uc-table tbody td {
  font-size: 14.5px; padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.traj {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.traj.rising { color: var(--accent); }
.traj.watch { color: var(--watch); }

/* ---------- pricing close ---------- */

.pricing { padding: 112px 0 128px; text-align: center; }
.pricing h2 { margin-bottom: 18px; }
.pricing-body { color: var(--ink-soft); font-size: 18px; max-width: 62ch; margin: 0 auto 36px; }
.pricing .cta-row { justify-content: center; }
.pricing .micro-line { margin-top: 18px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0 56px; }
.footer-row { display: flex; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer-brand p { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; max-width: 34ch; }
.footer-nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.footer-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px;
  transition: color 160ms;
}
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft);
  flex-basis: 100%;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .decisions-grid { grid-template-columns: 1fr; gap: 24px; }
  .wire-flow { grid-template-columns: repeat(2, 1fr); }
  .practice-grid { grid-template-columns: 1fr; gap: 56px; }
  .wire-fuse { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .site-nav { display: none; }
  .hero { padding: 88px 0 72px; }
  .wire-flow { grid-template-columns: 1fr; }
  .plate { padding: 20px 18px; }
  .ledger-panel { padding: 24px 20px; }
  .footer-row { flex-direction: column; gap: 20px; }
  .footer-nav { margin-left: 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
