:root {
  --bg: #ffffff;
  --ink: #070707;
  --muted: #5b616e;
  --line: #e6e8ec;
  --soft: #f6f7f9;
  --accent: #0f766e;
  --accent-soft: #e8f3f1;
  --max: 1180px;
  --radius: 8px;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0e;
    --ink: #f2f2f0;
    --muted: #9aa0ab;
    --line: #2a2c31;
    --soft: #17181b;
    --accent: #2dd4bf;
    --accent-soft: #143532;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
.cta:focus-visible,
.header-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.todo {
  background: #fff3cd;
  color: #7a4f01;
  padding: 0 .25em;
  font-family: var(--mono);
  font-size: .85em;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .todo {
    background: #5c4a14;
    color: #ffe8a3;
  }
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
}

.header-cta {
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.header-cta:hover {
  border-bottom-color: var(--ink);
}

/* ——— Shared ——— */

.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  max-width: 18ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem 1.15rem;
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.cta:hover {
  background: var(--soft);
}

/* Accent uses 1–2: hero CTAs only */
.cta-accent {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-accent:hover {
  background: var(--accent-soft);
}

/* ——— 4.1 Hero ——— */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 0 5.5rem;
  text-align: left;
}

.hero-sub {
  margin: 1.5rem 0 0;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  max-width: 46ch;
  color: var(--muted);
}

/* ——— 4.2 The gap ——— */

.gap {
  padding: 3.25rem 0 3.75rem;
  text-align: left;
}

.gap-intro {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  max-width: 42ch;
  color: var(--muted);
  font-style: italic;
}

.chart {
  max-width: 42rem;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(6rem, 9rem) 1fr;
  gap: .75rem 1rem;
  align-items: center;
  margin-bottom: .85rem;
}

.chart-label {
  font-size: .875rem;
  color: var(--ink);
}

.chart-num {
  font-family: var(--mono);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.chart-track {
  height: .65rem;
  background: var(--line);
  overflow: hidden;
}

.chart-bar {
  height: 100%;
}

.chart-bar-platform {
  width: 100%;
  background: var(--ink);
}

/* Accent use 3: truth bar */
.chart-bar-truth {
  width: 13%;
  background: var(--accent);
}

.gap-caption {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  max-width: 42ch;
  font-style: italic;
  color: var(--muted);
}

.gap-disclaimer {
  margin: .5rem 0 0;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .01em;
}

/* ——— 4.3 Thesis ——— */

.thesis {
  padding: 5.5rem 0 6.5rem;
  text-align: left;
}

.thesis-inner {
  padding-left: clamp(0px, 6vw, 4.5rem);
}

.thesis-body {
  margin-top: 2rem;
  font-size: 1.25rem;
  line-height: 1.65;
  max-width: 60ch;
}

.thesis-body p {
  margin: 0 0 1.35em;
}

.thesis-body p:last-child {
  margin-bottom: 0;
}

/* ——— 4.4 Questions ——— */

.questions {
  padding: 2.75rem 0 3.25rem;
  text-align: left;
}

.question-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  max-width: 52ch;
}

.question-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.45;
  max-width: 65ch;
}

.question-list li:last-child {
  border-bottom: 1px solid var(--line);
}

/* ——— 4.5 Capabilities ——— */

.about {
  padding: 3.5rem 0 4.25rem;
  text-align: left;
}

.about > .wrap > p {
  margin: 1.25rem 0 0;
  max-width: 65ch;
}

.about-line {
  color: var(--ink);
}

.capability-list {
  margin: 1.75rem 0 2.25rem;
  max-width: 56ch;
}

.capability-list > div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.capability-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-list dt {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}

.capability-list dd {
  margin: .3rem 0 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.writing-heading {
  margin-top: 2.75rem;
  font-size: 1.125rem;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0;
}

.writing-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  max-width: 52ch;
}

.writing-list li {
  padding: .9rem 0;
  border-top: 1px solid var(--line);
}

.writing-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.writing-list a {
  display: block;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.writing-list a:hover {
  border-bottom-color: var(--ink);
}


/* ——— 4.6 Closing ——— */

.closing {
  padding: 4.5rem 0 5rem;
  text-align: left;
}

.closing h2 {
  max-width: 12ch;
}

.closing .cta-row {
  margin-top: 1.75rem;
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.footer-year {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ——— Responsive ——— */

@media (max-width: 768px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .hero {
    min-height: auto;
    padding: 3rem 0 3.75rem;
    align-items: flex-start;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta {
    width: 100%;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: .35rem;
    margin-bottom: 1.35rem;
  }

  .chart-track {
    order: 3;
  }

  .thesis {
    padding: 3.75rem 0 4.5rem;
  }

  .thesis-inner {
    padding-left: 0;
  }

  .questions {
    padding: 2.25rem 0 2.75rem;
  }

  .closing {
    padding: 3.25rem 0 3.75rem;
  }
}

@media (max-width: 375px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .header-cta {
    font-size: .8125rem;
  }
}

@media (min-width: 1440px) {
  .hero {
    padding-bottom: 6.5rem;
  }

  .thesis {
    padding: 6.5rem 0 7.5rem;
  }
}

/* ===================================================================
   v1.1 visual layer — 2026-11-21
   Reference: ruli.ai (dark hero band, light-weight display type,
   alternating tinted bands, 6px buttons, mono uppercase eyebrows).
   Not taken: background video, logo wall, centered headings,
   screenshots, testimonials (BUILD_BRIEF §6).
   =================================================================== */

:root {
  --band-dark: #0d0d12;
  --band-dark-ink: #ffffff;
  --band-dark-muted: #b8bcc6;
  --band-soft: #f9f9f9;
  --band-warm: #edeae5;
  --btn-radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --band-dark: #000000;
    --band-soft: #141417;
    --band-warm: #1c1a17;
  }
}

/* Bands replace the hairline section rules */
.section-rule { display: none; }

.gap,
.about { background: var(--band-soft); }

.thesis { background: var(--band-warm); }

/* Lighter display weight, larger section heads */
h1, h2 { font-weight: 400; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.02em; }

.eyebrow { font-size: .8125rem; }

/* Buttons: solid, 6px */
.cta {
  border-radius: var(--btn-radius);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  padding: .75rem 1.35rem;
}
.cta:hover { background: var(--ink); opacity: .88; }

/* Dark bands: hero + closing bookend the page */
.hero,
.closing {
  background: var(--band-dark);
  color: var(--band-dark-ink);
}
.hero h1,
.closing h2 { color: var(--band-dark-ink); }
.hero .eyebrow { color: var(--band-dark-muted); }
.hero-sub { color: var(--band-dark-muted); }

.hero .cta,
.closing .cta {
  background: #ffffff;
  border-color: #ffffff;
  color: #0d0d12;
}
.hero .cta:hover,
.closing .cta:hover { background: #ffffff; opacity: .9; }
.hero .cta:focus-visible,
.closing .cta:focus-visible { outline-color: #ffffff; }

/* Hero CTA no longer uses the accent; accent now = truth bar only */
.cta-accent { border-color: #ffffff; color: #0d0d12; }

.closing { padding: 5.5rem 0 6.5rem; }
.site-footer { border-top: 0; }

/* UAT fixes: no orphan word in gap intro; eyebrow fits one line on phones */
.gap-intro { max-width: 52ch; }

@media (max-width: 768px) {
  .closing { padding: 3.75rem 0 4.25rem; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: .75rem; letter-spacing: .08em; text-wrap: balance; }
}
