/* Landing-page layout; the shared design tokens own all theme colors. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-6); }
body { margin: 0; background: var(--surface-100); color: var(--ink-700); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
a { color: inherit; }
button { font: inherit; }
button[hidden] { display: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
::selection { background: var(--brand-100); color: var(--ink-900); }
.wrap { width: min(calc(100% - 80px), var(--container-max)); margin-inline: auto; }
.skip-link { position: fixed; top: var(--space-3); left: var(--space-3); z-index: 5; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; gap: var(--space-6); min-height: 106px; border-bottom: 1px solid var(--line-200); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.2; letter-spacing: -1.2px; color: var(--ink-900); text-decoration: none; }
.site-header nav { margin-left: auto; display: flex; gap: var(--space-6); }
.site-header nav a { font-family: var(--font-sans); font-size: 14px; text-decoration: none; }
.site-header nav a:hover, .back-top:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 5px; }
.theme-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-300); border-radius: var(--radius-pill); background: transparent; color: var(--ink-700); cursor: pointer; }
.theme-button:hover { background: var(--brand-100); }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 76px; padding-block: 78px 80px; }
.eyebrow { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: 10px; line-height: 1.5; letter-spacing: .1em; font-weight: 500; text-transform: uppercase; color: var(--ink-500); margin: 0 0 var(--space-5); }
.small-rule { width: 25px; height: 1px; background: var(--brand-700); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink-900); }
h1 { font-family: var(--font-display); font-size: clamp(48px, 5.5vw, 68px); font-weight: 600; line-height: 1.075; letter-spacing: -.04em; margin-bottom: var(--space-5); }
h1 span { color: var(--brand-700); }
.hero-description { max-width: 420px; font-size: 18px; line-height: 1.7; margin-bottom: var(--space-6); }
.hero .cp-btn { font-size: 15px; gap: var(--space-5); border-radius: var(--radius-sm); }
.hero .cp-btn span { font-size: 21px; line-height: 1; }
.hero-note { margin: var(--space-4) 0 0; color: var(--ink-500); font-size: 12px; }
.evidence-preview { background: var(--surface-000); border: 1px solid var(--line-300); border-radius: var(--radius-sm); padding: var(--space-6); box-shadow: 8px 8px 0 var(--surface-200); transform: rotate(1deg); }
.preview-header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); border-bottom: 1px solid var(--line-200); padding-bottom: var(--space-4); margin-bottom: var(--space-5); }
.preview-header .eyebrow { margin: 0; color: var(--brand-700); }
.preview-index { color: var(--ink-500); font-size: 10px; white-space: nowrap; }
.evidence-preview h2 { font-family: var(--font-display); font-size: 35px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; margin-bottom: var(--space-3); }
.evidence-preview > p { font-size: 15px; line-height: 1.7; color: var(--ink-500); }
.confidence-plot { position: relative; display: flex; align-items: flex-end; justify-content: space-around; height: 146px; margin-top: var(--space-5); border-bottom: 1px solid var(--line-300); }
.plot-grid { position: absolute; inset: 0; background: repeating-linear-gradient(to top, transparent 0, transparent 35px, var(--line-200) 35px, var(--line-200) 36px); opacity: .65; }
.plot-column { --plot-color: var(--ev-preliminary); --plot-height: 27%; height: var(--plot-height); width: 18%; position: relative; border: 1px solid var(--plot-color); border-bottom: 0; background: color-mix(in srgb, var(--plot-color) 8%, var(--surface-000)); }
.plot-column span { position: absolute; width: 10px; height: 10px; background: var(--plot-color); border-radius: var(--radius-pill); top: -6px; left: calc(50% - 5px); }
.plot-column i { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0, transparent 5px, var(--plot-color) 5px, var(--plot-color) 6px); opacity: .13; }
.plot-column--preliminary { border-style: dashed; }
.plot-column--limited { --plot-color: var(--ev-limited); --plot-height: 46%; }
.plot-column--moderate { --plot-color: var(--ev-moderate); --plot-height: 68%; }
.plot-column--strong { --plot-color: var(--ev-strong); --plot-height: 91%; background: var(--brand-100); }
.plot-labels { display: flex; justify-content: space-between; color: var(--ink-500); font-size: 9px; letter-spacing: 0; padding-top: var(--space-3); font-weight: 400; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line-200); }
.preview-footer .cp-ev { font-size: 9px; letter-spacing: .035em; }
.preview-footer a { display: grid; place-items: center; width: 32px; height: 32px; font-size: 23px; color: var(--brand-700); text-decoration: none; }
.principle-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line-300); padding-block: var(--space-5); }
.principle-strip p { display: flex; align-items: center; justify-content: center; gap: var(--space-3); font-family: var(--font-sans); font-size: 13px; margin: 0; }
.principle-strip p + p { border-left: 1px solid var(--line-200); }
.principle-strip .label { color: var(--brand-700); font-size: 10px; }
.topics-section { padding-block: var(--space-8) 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-6); }
.section-heading .eyebrow { margin-bottom: var(--space-3); }
.section-heading h2, .approach-copy h2 { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.section-heading > p { font-size: 14px; color: var(--ink-500); margin: 0 0 3px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); align-items: start; }
.topic-card { border: 1px solid var(--line-300); border-radius: var(--radius-sm); background: var(--surface-000); transition: border-color 150ms ease, background-color 150ms ease; }
.topic-card:hover, .topic-card[open] { border-color: var(--brand-700); background: color-mix(in srgb, var(--brand-100) 20%, var(--surface-000)); }
.topic-card summary { cursor: pointer; padding: var(--space-5); list-style: none; }
.topic-card summary::-webkit-details-marker { display: none; }
.topic-number { color: var(--ink-500); text-transform: uppercase; font-size: 9px; }
.topic-glyph { display: block; width: 70px; height: 60px; margin-block: var(--space-5); color: var(--brand-700); }
.topic-glyph svg { width: 100%; height: 100%; }
.topic-card h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: var(--space-3); }
.topic-description { display: block; font-size: 14px; line-height: 1.7; }
.topic-link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); border-top: 1px solid var(--line-200); margin-top: var(--space-5); padding-top: var(--space-4); font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--brand-700); }
.expand-mark { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.expand-mark::before, .expand-mark::after { content: ""; position: absolute; background: currentColor; }
.expand-mark::before { top: 5px; left: 0; width: 12px; height: 1px; }
.expand-mark::after { left: 5px; top: 0; width: 1px; height: 12px; }
[open] .expand-mark::after { display: none; }
.topic-content { padding: 0 var(--space-5) var(--space-5); font-size: 14px; }
.topic-content p { margin-bottom: var(--space-3); }
.topic-content .topic-question { font-weight: 600; color: var(--ink-900); margin-bottom: 0; }
.approach-section { border-block: 1px solid var(--line-200); background: var(--brand-100); padding-block: var(--space-8); }
.approach-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); }
.approach-copy h2 { font-size: 42px; margin-bottom: var(--space-5); }
.approach-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; max-width: 390px; margin-bottom: var(--space-4); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-5); font-family: var(--font-sans); font-size: 13px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; color: var(--brand-700); margin-top: var(--space-3); }
.evidence-scale { align-self: center; }
.evidence-scale h3 { margin-bottom: var(--space-3); }
.evidence-scale dl { margin: 0; }
.evidence-scale dl > div { display: grid; grid-template-columns: 145px 1fr; gap: var(--space-3); border-top: 1px solid var(--line-300); padding-block: var(--space-4); }
.evidence-scale dt { display: flex; align-items: baseline; gap: var(--space-3); font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink-900); }
.evidence-scale dd { margin: 0; font-size: 14px; line-height: 1.65; }
.evidence-dot { position: relative; top: 1px; flex: 0 0 10px; height: 10px; border-radius: var(--radius-pill); }
.evidence-dot--strong { background: var(--ev-strong); }
.evidence-dot--moderate { background: var(--ev-moderate); }
.evidence-dot--limited { border: 2px solid var(--ev-limited); }
.evidence-dot--preliminary { border: 1px dashed var(--ev-preliminary); }
.scale-note { border-top: 1px solid var(--line-300); padding-top: var(--space-4); font-size: 11px; color: var(--ink-500); line-height: 1.8; margin-bottom: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-7); }
.site-footer .wordmark { font-size: 27px; }
.site-footer p { font-size: 12px; color: var(--ink-500); margin: var(--space-2) 0 0; }
.site-footer .footer-note { margin: 0; }
.back-top { font-family: var(--font-sans); font-size: 12px; text-decoration: none; white-space: nowrap; }
.back-top span { margin-left: var(--space-3); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .evidence-preview { animation: arrive 650ms ease both; }
  .evidence-preview { animation-delay: 100ms; }
  @keyframes arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 1000px) {
  .hero { gap: var(--space-7); }
  .evidence-preview { padding: var(--space-5); }
  .evidence-preview h2 { font-size: 30px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-glyph { margin-block: var(--space-4); }
  .approach-layout { gap: var(--space-7); }
  .evidence-scale dl > div { grid-template-columns: 120px 1fr; }
  .principle-strip p { font-size: 11px; gap: var(--space-2); }
  .section-heading > p { max-width: 230px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 82px; gap: var(--space-4); }
  .site-header .wordmark { font-size: 26px; }
  .site-header nav { gap: var(--space-4); }
  .site-header nav a { font-size: 12px; }
  .theme-button { width: 30px; height: 30px; flex-shrink: 0; }
  .hero { grid-template-columns: 1fr; padding-block: var(--space-7) var(--space-8); gap: var(--space-7); }
  h1 { font-size: clamp(48px, 10vw, 66px); }
  .hero-description { max-width: 500px; }
  .evidence-preview { width: calc(100% - 8px); max-width: 470px; justify-self: center; padding: var(--space-6); }
  .principle-strip { grid-template-columns: 1fr 1fr; gap: var(--space-4) 0; }
  .principle-strip p { font-size: 12px; justify-content: flex-start; }
  .principle-strip p + p { border: 0; }
  .principle-strip p:nth-child(even) { padding-left: var(--space-3); }
  .topics-section { padding-block: var(--space-7); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p { max-width: none; }
  .approach-layout { grid-template-columns: 1fr; }
  .approach-copy h2 { font-size: 38px; }
  .approach-copy > p:not(.eyebrow) { max-width: none; }
  .evidence-scale dl > div { grid-template-columns: 135px 1fr; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; }
  .footer-note { order: 3; flex-basis: 100%; }
}
@media (max-width: 540px) {
  .topic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .site-header { flex-wrap: wrap; padding-block: var(--space-4); gap: var(--space-3); }
  .site-header nav { order: 3; width: 100%; }
  .theme-button { margin-left: auto; }
  .evidence-preview { padding: var(--space-5); }
  .eyebrow { font-size: 9px; }
  .evidence-scale dl > div { grid-template-columns: 1fr; gap: var(--space-1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Keep both languages readable when navigation wraps. */
.site-header nav { flex-wrap: wrap; }
.theme-button { flex-shrink: 0; }
.topic-grid > *, .hero-copy, .evidence-preview { min-width: 0; }
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; padding-block: var(--space-4); gap: var(--space-3); }
  .site-header nav { order: 3; width: 100%; margin-left: 0; gap: var(--space-4); }
  .theme-button { margin-left: auto; }
}
