/* =========================================================
   THE RATIONAL BULL — styles.css
   Palette, type and layout faithful to the brand book.
   Brass is an accent only (rules, labels, hairlines) — never a fill.
   ========================================================= */

:root {
  --ink: #0B0B0C;
  --white: #FFFFFF;
  --brass: #B08D57;
  --paper: #F4F2ED;
  --graphite: #2B2F36;
  --hairline: #DCD8CF;

  --ink-text: rgba(244, 242, 237, 0.80); /* body copy on ink */
  --ink-hairline: rgba(255, 255, 255, 0.14);
  --amber: #F7F1E4; /* warm callout panel */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }
strong { font-weight: 600; color: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 760px; }
.center { text-align: center; }
.center h2, .center .lead { margin-left: auto; margin-right: auto; }
.center .lead { max-width: 620px; }
.center-text { text-align: center; }

.section {
  padding: clamp(64px, 10vw, 124px) 0;
}
section[id] { scroll-margin-top: 96px; }

.section-paper { background: var(--paper); color: var(--graphite); }
.section-ink { background: var(--ink); color: var(--ink-text); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--white); }

/* ---------- Shared type elements ---------- */
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4rem;
  padding-bottom: 0.7rem;
  position: relative;
}
.label::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 2px;
  background: var(--brass);
}
.center .label { display: inline-block; }
.center .label::after { left: 50%; transform: translateX(-50%); }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
  line-height: 1.5;
  font-weight: 400;
  max-width: 60ch;
  margin-bottom: 1.4rem;
}
.lead-ink { color: rgba(244, 242, 237, 0.90); }

h2 + .lead, h2 + p { margin-top: 1.6rem; }

.meta-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--brass);
  letter-spacing: 0.02em;
  margin: 0 0 1.6rem;
}

.microcopy {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--brass);
  margin-top: 1.4rem;
}
.section-paper .microcopy { color: #8a7448; }

.inline-link {
  color: inherit;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  transition: color 0.18s var(--ease);
}
.inline-link:hover { color: var(--brass); }

.sub-link { margin-top: 1.1rem; }
.sub-link a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--graphite);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  transition: color 0.18s var(--ease);
}
.sub-link a:hover { color: var(--brass); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary on light backgrounds: solid ink, white label */
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: #1c1c1f; }

/* On ink backgrounds: paper/white fill, ink label */
.btn-on-ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-on-ink:hover { background: var(--white); }

/* Ghost on ink */
.btn-ghost-ink { background: transparent; color: var(--white); border-color: var(--ink-hairline); }
.btn-ghost-ink:hover { border-color: var(--brass); color: var(--white); }

.btn-block { display: block; width: 100%; text-align: center; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand-mark { width: 34px; height: auto; color: var(--white); flex: none; }
.brand-rule { width: 1px; height: 30px; background: var(--brass); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  color: var(--white);
}
.brand-tagline {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--brass);
  margin-top: 2px;
}

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(244, 242, 237, 0.78);
  padding: 6px 0;
  position: relative;
  transition: color 0.18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--brass);
  transition: width 0.2s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.header-cta { padding: 11px 20px; font-size: 0.76rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--ink-hairline);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 18px;
  margin: 0 auto; background: var(--white);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--ink-text);
  padding: clamp(90px, 16vw, 168px) 0 clamp(72px, 12vw, 128px);
}
.hero h1 { color: var(--white); margin-bottom: 1.8rem; }
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(244, 242, 237, 0.82);
  max-width: 58ch;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 2.6rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 48px; }

.card {
  padding: 32px 28px;
  border: 1px solid var(--ink-hairline);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--brass); }
.card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 1.4rem;
}
.card h3 { color: var(--white); margin-bottom: 0.7rem; }
.card p { color: var(--ink-text); margin: 0; font-size: 0.96rem; }

/* ---------- Split (Guide) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 0.5rem;
}
.split-aside {
  border: 1px solid var(--hairline);
  border-top: 2.5px solid var(--brass);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  background: var(--white);
}
.aside-mark { width: 64px; height: auto; margin: 0 auto 20px; color: var(--ink); }
.aside-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.aside-price { font-family: var(--serif); font-size: 2.6rem; color: var(--ink); margin: 0 0 0.8rem; }
.aside-note { font-family: var(--mono); font-size: 0.72rem; line-height: 1.7; color: var(--graphite); margin: 0; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 2rem; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 12px; height: 1px;
  background: var(--brass);
}
.ticks-ink li { color: var(--ink-text); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  margin-bottom: 0.9rem;
  color: var(--ink-text);
  line-height: 1.5;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass);
}
.script-info { margin-top: 2.6rem; margin-bottom: 0.5rem; }
.script-info h3 { color: var(--white); margin-bottom: 1.2rem; }

/* ---------- Complete System panel ---------- */
.system-panel {
  margin-top: 2.4rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
}
.system-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: baseline;
  padding-bottom: 1.6rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--hairline);
}
.system-name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 0; }
.system-tag { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: #8a7448; margin: 4px 0 0; }
.system-price { font-family: var(--serif); font-size: 2.8rem; color: var(--ink); margin: 0; line-height: 1; }
.system-list { margin-bottom: 2rem; }
.system-panel .microcopy { color: #8a7448; text-align: center; }

/* ---------- Pricing ---------- */
.pricing { margin-top: 2.6rem; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink-hairline);
  border-radius: var(--radius);
  padding: 34px 28px;
  background: rgba(255,255,255,0.02);
}
.price-card-featured {
  border-color: var(--brass);
  background: rgba(176, 141, 87, 0.07);
}
.price-flag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}
.price-kicker {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 0 0.4rem;
}
.price-amt { font-family: var(--serif); font-size: 2.4rem; color: var(--white); margin: 0 0 0.9rem; }
.price-best { color: var(--ink-text); font-size: 0.92rem; margin-bottom: 1.8rem; flex: 1; }
.pricing .btn { margin-top: auto; }
.pricing + .microcopy { margin-top: 2.4rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.4rem; border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--brass);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.faq-icon::before { top: 6.5px; left: 0; width: 14px; height: 1.5px; }
.faq-icon::after { left: 6.5px; top: 0; width: 1.5px; height: 14px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s var(--ease);
}
.faq-a p { padding: 0 0 22px; color: var(--graphite); max-width: 64ch; }

/* ---------- Callout / disclaimer ---------- */
.callout {
  background: var(--amber);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 30px 34px;
}
.callout-title {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.callout p:last-child { font-size: 0.95rem; color: var(--graphite); margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta h2 { margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-text); padding: 72px 0 40px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-hairline);
}
.footer-brand .brand-mark { width: 40px; color: var(--white); margin-bottom: 16px; }
.footer-name { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.18em; color: var(--white); margin: 0; }
.footer-tagline { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--brass); margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: flex-start; max-width: 460px; }
.footer-nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(244, 242, 237, 0.72);
  transition: color 0.18s var(--ease);
}
.footer-nav a:hover { color: var(--brass); }
.footer-disclaimer {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(244, 242, 237, 0.55);
  margin: 28px 0 0;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(244, 242, 237, 0.45);
  margin: 8px 0 0;
}

/* ---------- Skip link + focus ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; font-family: var(--mono); font-size: 0.8rem;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-aside { order: -1; }
}

@media (max-width: 760px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-hairline);
    margin-left: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .nav.open { max-height: 360px; }
  .nav a { padding: 15px 24px; border-top: 1px solid var(--ink-hairline); }
  .nav a::after { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .system-head { flex-direction: column; }
  .system-price { font-size: 2.4rem; }
  .cta-row .btn { width: 100%; text-align: center; }
}

@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
