:root {
  --bg: #faf8f4;
  --section-bg: #eaf1f7;
  --card-bg: #ffffff;
  --fg: #17212b;
  --muted: #526170;
  --border: #d8e1e8;
  --accent: #003871;
  --accent-hover: #002b57;
  --accent-bg: rgba(0, 56, 113, 0.07);
  --warm: #8a6a2e;
  --shadow: rgba(23, 33, 43, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15161a;
    --section-bg: #191d22;
    --card-bg: #1c1d22;
    --fg: #eeece6;
    --muted: #9aa7b2;
    --border: #2c2d31;
    --accent: #99afc6;
    --accent-hover: #b3c4d6;
    --accent-bg: rgba(153, 175, 198, 0.12);
    --warm: #cba76b;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #15161a;
  --section-bg: #191d22;
  --card-bg: #1c1d22;
  --fg: #eeece6;
  --muted: #9aa7b2;
  --border: #2c2d31;
  --accent: #99afc6;
  --accent-hover: #b3c4d6;
  --accent-bg: rgba(153, 175, 198, 0.12);
  --warm: #cba76b;
  --shadow: rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background-color 0.15s ease, color 0.15s ease;
}
h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 5rem; }
@media (min-width: 768px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
}

/* ---- Accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Alternating section background ---- */
.section-alt { background: var(--section-bg); }
.section-alt .content + .content { border-top-color: transparent; }

.text-warm { color: var(--warm); }

/* ---- Nav ---- */
nav.site {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 20px 0;
}
@media (min-width: 768px) {
  nav.site { padding-left: 32px; padding-right: 32px; }
}
nav.site a.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Georgia, "Iowan Old Style", serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
}
nav.site a.brand .mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: url("/images/logo-mark.png") center / cover;
  flex-shrink: 0;
}

/* Mobile nav toggle: hidden on desktop */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (min-width: 700px) {
  .nav-toggle { display: none; }
}

nav.site .nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
nav.site .nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
@media (max-width: 699px) {
  nav.site .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 24px var(--shadow);
    z-index: 20;
  }
  nav.site .nav-links.open { display: flex; }
  nav.site .nav-links a { padding: 0.75rem 0.5rem; }
  nav.site .nav-links .button { justify-content: flex-start; }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--muted); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}
nav.site .nav-links a:hover { color: var(--fg); }
nav.site .nav-links a.button.primary,
nav.site .nav-links a.button.primary:hover { color: var(--bg); }
nav.site .nav-links a.button.secondary,
nav.site .nav-links a.button.secondary:hover { color: var(--fg); }

/* ---- Hero ---- */
.hero-section {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 50% 0%, var(--accent-bg) 0%, transparent 60%);
}
.hero {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 3rem;
  text-align: center;
}
.hero h1 { font-size: clamp(2.25rem, 3vw + 1.5rem, 3.25rem); line-height: 1.2; margin: 0 0 1.1rem; }
.hero h1 .accent { color: var(--accent); }
.hero p.sub { color: var(--muted); font-size: 1.1rem; margin: 0 auto 2.25rem; max-width: 32em; }

.cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button.primary { background: var(--accent); color: var(--bg); border: 1px solid transparent; }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.button.secondary:hover { border-color: var(--muted); }

/* ---- Content ---- */
.content { padding-top: 4rem; }
.content + .content { border-top: 1px solid var(--border); }
.content h2 { font-size: clamp(1.4rem, 1.2vw + 1.1rem, 1.85rem); margin-bottom: 0.85rem; max-width: 34em; }
.content p { margin: 0 0 1rem; font-size: 1.02rem; max-width: 42em; }
.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ---- Diagram ---- */
.diagram { margin: 1.5rem 0 0; max-width: 420px; }
.diagram svg { width: 100%; height: auto; }
.diagram text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.diagram .axis-label { font-size: 11px; letter-spacing: 0.03em; fill: var(--muted); }
.diagram .quad-label { font-size: 13px; font-weight: 500; fill: var(--fg); }

/* ---- Cards (products, pillars) ---- */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  background: var(--card-bg);
  box-shadow: 0 1px 2px var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card { display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px var(--shadow); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
blockquote.card { margin: 0; font-style: normal; }
blockquote.card p { color: var(--fg); }
.status {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---- Writing list ---- */
.writing-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.writing-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.writing-list a { color: var(--fg); text-decoration: none; font-weight: 500; }
.writing-list a:hover { text-decoration: underline; }
.writing-list .meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.empty-state { color: var(--muted); font-size: 0.95rem; margin-top: 1.5rem; }

/* ---- Legal ---- */
.legal { max-width: 640px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.legal h1 { margin-bottom: 0.25rem; }
.about-photo { width: 88px; height: 88px; border-radius: 999px; object-fit: cover; margin: 1rem 0; }
.legal .tagline { color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 2rem; }

footer.site-footer {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site-footer a { color: var(--muted); }
footer.site-footer p { margin: 0.35rem 0; }

.newsletter-form { margin-bottom: 1.5rem; }
.newsletter-form label { display: block; margin-bottom: 0.5rem; color: var(--fg); font-size: 0.9rem; }
.newsletter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-row input {
  flex: 1 1 200px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.9rem;
}
.newsletter-row button {
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.newsletter-status { margin-top: 0.5rem; font-size: 0.85rem; }

/* ---- Card badges ---- */
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ---- Hero: two-column desktop layout ---- */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 20px 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; padding-top: 4.5rem; padding-bottom: 4.5rem; text-align: left; }
}
.hero-copy { text-align: center; }
@media (min-width: 900px) {
  .hero-copy { text-align: left; }
  .hero-copy .cta-row { justify-content: flex-start; }
  .hero-copy p.sub { margin-left: 0; margin-right: 0; }
}
.hero-copy h1 { font-size: clamp(2.5rem, 2.4vw + 1.8rem, 4rem); line-height: 1.08; margin: 0 0 1.1rem; }
.hero-copy .quiz-note { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

/* ---- Hero matrix illustration ---- */
.hero-visual { max-width: 420px; margin: 0 auto; }
@media (min-width: 900px) { .hero-visual { margin: 0; } }
.example-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}
.hero-visual .example-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-visual .example-note strong { color: var(--fg); font-weight: 500; }
.matrix-axis-explainer {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.matrix-dot { fill: var(--warm); }
.matrix-dot-ring { fill: none; stroke: var(--warm); stroke-width: 1.5; }
.matrix-dot-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  fill: var(--warm);
}

/* ---- Recognition list ---- */
.recognition-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.recognition-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 1.05rem;
}
.recognition-list .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 0.55em;
}

/* ---- Process steps ---- */
.process-steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.process-steps li { display: flex; flex-direction: column; gap: 0.5rem; }
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--warm);
  margin-bottom: 0.25rem;
}
.step-icon svg { width: 20px; height: 20px; }
.process-steps .step-number {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.1rem;
  color: var(--warm);
}
.process-steps h3 { margin: 0; font-size: 1.05rem; }
.process-steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Founder section ---- */
.founder-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 860px;
}
@media (min-width: 700px) {
  .founder-card { flex-direction: row; align-items: center; gap: 2rem; }
}
.founder-card .founder-name { font-size: 1.05rem; font-weight: 500; }
.founder-photo {
  width: 100%;
  height: auto;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}
@media (min-width: 700px) {
  .founder-photo { width: 38%; max-width: 260px; }
}
.founder-card__copy { flex: 1; }

/* ---- Illustrative worked example ---- */
/* ---- Decision path (connected sequence) ---- */
.decision-path {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
@media (min-width: 780px) {
  .decision-path { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.decision-path li {
  position: relative;
  padding: 1.25rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.decision-path li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -1.75rem;
  transform: translateX(-50%);
  color: var(--warm);
  font-size: 1.1rem;
  line-height: 1;
}
@media (min-width: 780px) {
  .decision-path li:not(:last-child)::after {
    content: "→";
    left: auto;
    right: -1.05rem;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}
.decision-path__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--warm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.decision-path h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.decision-path p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Offer card ---- */
.offer-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 640px;
  box-shadow: 0 1px 2px var(--shadow);
}
.offer-card h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.offer-list { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: 0.6rem; }
.offer-list li { font-size: 0.95rem; color: var(--muted); padding-left: 1.3rem; position: relative; }
.offer-list li::before { content: "—"; position: absolute; left: 0; color: var(--warm); }

/* ---- Decision sheet (Direction Call outcome preview) ---- */
.decision-sheet {
  max-width: 480px;
  margin-top: 1.75rem;
  padding: 1.75rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px var(--shadow);
}
.decision-sheet__title {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}
.decision-sheet__rows { margin: 0; display: grid; gap: 1.1rem; }
.decision-sheet__row {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.decision-sheet__row:last-child { padding-bottom: 0; border-bottom: none; }
.decision-sheet__row dt {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.decision-sheet__row dd { margin: 0; font-size: 0.98rem; color: var(--fg); }
.decision-sheet__caption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.2rem 1.2rem;
  background: var(--card-bg);
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 500;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--muted); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 1rem; color: var(--muted); }

/* ---- Closing CTA band ---- */
/* Fixed navy regardless of theme — the accent token flips to a pale
   blue in dark mode, which would put white text on a low-contrast
   background here. */
.cta-band {
  background: #003871;
  color: #fff;
  text-align: center;
  padding: 4rem 20px;
}
@media (min-width: 768px) { .cta-band { padding: 5rem 32px; } }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 2vw + 1.2rem, 2.5rem); margin: 0 0 1.5rem; }
.cta-band .button.primary { background: #fff; color: #003871; }
.cta-band .button.primary:hover { background: #eef2f6; }

/* ---- Screen-reader only ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Quiz result preview ---- */
.quiz-result-preview {
  max-width: 1040px;
  margin-top: 1.75rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 1px 2px var(--shadow);
}
@media (min-width: 640px) {
  .quiz-result-preview { padding: 2.5rem 3rem; }
}
.quiz-result-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.quiz-result-preview__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 780px) {
  .quiz-result-preview__body { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.result-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.quiz-result-preview__copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}
.result-position {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 1rem;
}
.result-description {
  color: var(--fg);
  margin: 0 0 1.5rem;
}
.next-step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.next-step__label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.next-step p:last-child { margin: 0; color: var(--fg); }
.quiz-result-preview__visual { display: flex; flex-direction: column; align-items: center; }
.quiz-result-preview__visual .diagram { width: 100%; max-width: 340px; }
.example-position-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 600;
}
