/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --paper: #f4f0e8;
  --paper2: #ece7da;
  --white: #fdfbf7;
  --ink: #18140f;
  --ink2: #38322a;
  --muted: #7a7265;
  --border: #ccc5b5;
  --border2: #c0b8a8;
  --navy: #1a2f4a;
  --navy-dark: #0f1e30;
  --navy-light: #e6edf5;
  --gold: #b07a14;
  --gold-light: #f5ecd6;
  --red: #9c2e1a;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

nav {
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--navy) !important;
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--navy-dark) !important; color: white !important; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--paper);
  padding: 1.75rem 2.5rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-ri {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-ri:hover { color: var(--ink); }
.footer-ri .accent { color: var(--gold); }

/* ── SHARED UTILITIES ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.inline-link {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.inline-link:hover { opacity: 0.7; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Overpass Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 0.1rem;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.7; }

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 0.85rem 2.25rem;
  font-family: 'Overpass Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 1rem 2.5rem;
  font-family: 'Overpass Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-gold:hover { background: #8a5e0a; color: white; }

/* btn-ghost: transparent, for dark backgrounds (CTA band) */
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.55);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: white; color: white; }

/* ── INDEX: HERO ── */
.hero-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 7rem 2.5rem 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-kicker {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2.25rem;
  max-width: 38ch;
}

.hero-right {
  border-left: 1px solid var(--border);
  padding-left: 3.5rem;
}

.hero-statement {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.hero-statement strong {
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
}

.signal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.signal-list li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.signal-list li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}

/* ── INDEX: SECTION WRAPPER ── */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem;
}

.section-label {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── INDEX: SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem 1.75rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.service-type {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.service-name {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.service-desc {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  flex: 1;
}

.service-price {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.service-duration {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.service-phases {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── INDEX: WHO ── */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.who-h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.who-h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
}

.who-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
}

.who-body p + p { margin-top: 1.1rem; }

.symptom {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
  color: var(--ink2);
  line-height: 1.7;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}
.symptom:first-child { border-top: 1px solid var(--border); }

.symptom-num {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.58rem;
  color: var(--gold);
  padding-top: 0.2rem;
}

/* ── INDEX: FOUNDATION ── */
.foundation-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 5.5rem;
  align-items: start;
}

.foundation-h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.foundation-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.credentials-card {
  background: var(--navy);
  border-radius: 3px;
  padding: 2.25rem 2rem;
  color: white;
  margin-top: 2.5rem;
}

.cred-label {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.cred-prose {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #8ba8c0;
  margin-bottom: 1.25rem;
}

.cred-edu {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: white;
  line-height: 1.65;
  margin-top: 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  display: inline-block;
}

/* ── INDEX: TOOL CALLOUT ── */
.tool-callout {
  background: var(--navy);
  border-radius: 3px;
  border-top: 3px solid var(--gold);
  padding: 2.25rem 2.5rem;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}

.tool-callout-h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  flex-basis: 100%;
}

.tool-callout-body {
  font-size: 0.9rem;
  color: #8ba8c0;
  line-height: 1.75;
  margin-bottom: 0.5rem;
  flex-basis: 100%;
}


/* ── INDEX: CTA BAND ── */
.cta-band {
  background: var(--navy);
}

.cta-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.cta-h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.cta-h2 em {
  font-style: italic;
  font-weight: 300;
  color: #6888a8;
}

.cta-sub {
  color: #6888a8;
  font-size: 1rem;
  line-height: 1.75;
}

.cta-contact-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.cta-contact-text a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}
.cta-contact-text a:hover { color: white; }

/* ── TERMS & PRIVACY PAGES ── */
.terms-h1 {
  font-family: 'Fraunces', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3rem;
  line-height: 1.2;
}

.policy-list {
  max-width: 720px;
}

.policy-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.policy-item:first-child { border-top: 1px solid var(--border); }

.policy-num {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 0.2rem;
}

.policy-scope {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 0.65rem;
}

.policy-body {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.8;
}
.policy-body + .policy-body { margin-top: 0.85rem; }

.terms-effective {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
  margin-top: -2rem;
}

.terms-intro-body {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 3rem;
}

.privacy-h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.privacy-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.privacy-ul li {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.75;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.privacy-ul li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.privacy-ul li strong { color: var(--ink2); font-weight: 400; }

/* ── FOOTER LEGAL ROW ── */
.footer-legal {
  max-width: 960px;
  margin: 0.6rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0;
}

.footer-legal-link {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-link:hover { color: var(--ink); }

.footer-legal-sep {
  font-size: 0.7rem;
  color: var(--border);
  line-height: 1;
}

/* ── TOOL PAGE (Stress Tester) ── */
.tool-page {
  padding: 3rem 1.5rem 5rem;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tool-h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.tool-h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
}

.sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.tool-divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

label {
  display: block;
  font-family: 'Overpass Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: white;
  border: 1px solid var(--border2);
  border-radius: 4px;
  resize: vertical;
  line-height: 1.7;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}
textarea:focus { outline: none; border-color: var(--navy); }
textarea::placeholder { color: var(--border2); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: white;
  background: var(--navy);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* btn-outline: muted border, for light backgrounds (tool page) */
.btn-outline {
  background: none;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: 9px 18px;
}
.btn-outline:hover { color: var(--ink); border-color: var(--ink2); opacity: 1; }

#status {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 12px;
  font-style: italic;
}

#error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.75rem;
  display: none;
  padding: 10px 14px;
  background: #fdf0ec;
  border-radius: 4px;
  border-left: 3px solid var(--red);
}

#results { display: none; }

.codename-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.codename-card::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.codename-eyebrow {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.codename-name {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: white;
}

.codename-reason {
  font-size: 0.82rem;
  color: #a8a098;
  line-height: 1.65;
  font-style: italic;
}

.codename-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Overpass Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.decision-echo {
  padding: 12px 16px;
  background: var(--navy-light);
  border-left: 3px solid var(--navy);
  border-radius: 0 4px 4px 0;
  margin-bottom: 2rem;
}

.decision-echo .echo-label {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
  opacity: 0.7;
}

.decision-echo .echo-text {
  font-size: 0.88rem;
  color: var(--navy);
  line-height: 1.6;
  font-style: italic;
}

.result-section { margin-bottom: 1.75rem; }

.result-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.result-section-num {
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Overpass Mono', monospace;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.result-section-label {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 4px;
}

.result-items {
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
}

.result-item-q {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.5;
}

.result-item-why {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

.result-section-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.verdict {
  background: var(--gold-light);
  border: 1px solid #e8d5a0;
  border-radius: 4px;
  padding: 16px 18px;
  margin-top: 1.75rem;
}

.verdict-label {
  font-family: 'Overpass Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.verdict-text {
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.7;
}

.reset-row {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ── ANIMATIONS ── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.pulse { animation: pulse 1.4s ease-in-out infinite; }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  nav { padding: 0.85rem 1.25rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-wrap { padding: 4rem 1.25rem 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 2.5rem; }
  .section { padding: 3.5rem 1.25rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .who-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .foundation-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 1.25rem; }
  footer { padding: 1.5rem 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .footer-legal-sep { display: none; }
  .tool-page { padding: 2rem 1.25rem 4rem; }
}
