:root {
  color-scheme: light;
  --ink: #08275d;
  --text: #0a234e;
  --green: #318c32;
  --green-dark: #236b28;
  --green-bright: #4ba743;
  --green-soft: #eaf5e8;
  --gold: #ffb20a;
  --paper: #f8fafa;
  --white: #ffffff;
  --line: #d9e4df;
  --muted: #526278;
  --focus: #005fcc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgb(8 39 93 / 12%);
  background: rgb(248 250 250 / 96%);
  backdrop-filter: blur(12px);
}

/* Square Kinetic Link mark plus a text wordmark, matching the live nua-cares.com
   header. The mark carries alt="" because the adjacent span is the accessible
   name; the anchor's aria-label covers the link itself. */
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-size: 1.18rem; font-weight: 760; letter-spacing: 0; color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover { color: var(--green); }

.nav .nav-cta {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green-dark);
}

.nav .nav-cta:hover {
  background: var(--green);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(780px, calc(88svh - 72px));
  padding: 76px max(24px, calc((100vw - 1200px) / 2)) 88px;
  isolation: isolate;
  background-image: url("./hero-desktop.webp");
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgb(248 250 250 / 68%);
}

.hero-content { max-width: 650px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  font: 700 104px/.94 Georgia, "Times New Roman", serif;
  color: var(--green-dark);
}

h2 { font: 700 62px/1.02 Georgia, "Times New Roman", serif; }
h3 { font-size: 20px; line-height: 1.25; }

.hero-copy {
  max-width: 630px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.4;
}

.hero-boundary {
  max-width: 620px;
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--green-dark);
  border-radius: 6px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.button:hover { background: var(--ink); border-color: var(--ink); }

.text-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover { color: var(--green-dark); }

.section { padding: 104px max(24px, calc((100vw - 1200px) / 2)); }
.section-heading { max-width: 780px; }
.section-heading.compact { max-width: 720px; }

.section-heading > p:last-child,
.evidence-copy > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.principles { background: var(--white); }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-width: 0;
  padding: 30px 30px 36px;
}

.principle + .principle { border-left: 1px solid var(--line); }

.principle-number,
.path-label span {
  display: block;
  margin-bottom: 28px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.principle p,
.path p,
.flow-step p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.paths { background: var(--green-soft); }

.path-list {
  margin-top: 58px;
  border-top: 1px solid rgb(49 140 50 / 30%);
}

.path {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid rgb(49 140 50 / 30%);
}

.path-label {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.path-label span { display: inline; margin: 0 14px 0 0; }
.path h3 { font: 700 29px/1.1 Georgia, "Times New Roman", serif; }
.path .path-boundary { margin-top: 0; color: var(--ink); font-size: 14px; }

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 70px;
  align-items: center;
  background: var(--white);
}

.evidence-image {
  min-height: 570px;
  border-radius: 6px;
  background-image: url("./section-detail.webp");
  background-position: center;
  background-size: cover;
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0 0 16px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  line-height: 1.5;
}

.check-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--green);
  border-radius: 50%;
  content: "";
}

.check-list li::after {
  position: absolute;
  top: 8px;
  left: 5px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid var(--green-dark);
  border-left: 2px solid var(--green-dark);
  content: "";
  transform: rotate(-45deg);
}

.boundaries { background: var(--paper); }

.boundary-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-step { padding: 28px 24px 34px; }
.flow-step + .flow-step { border-left: 1px solid var(--line); }

.flow-step > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.policy-link { display: inline-block; margin-top: 30px; }

.beta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  padding: 76px max(24px, calc((100vw - 1200px) / 2));
  background: var(--ink);
  color: var(--white);
}

.beta-band .eyebrow { color: #8ed486; }
.beta-band h2 { max-width: 800px; color: var(--white); }
.beta-band p:last-child { max-width: 760px; margin: 20px 0 0; color: #dce7f4; line-height: 1.65; }
.button-light { border-color: var(--white); background: var(--white); color: var(--ink); }
.button-light:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 34px 60px;
  align-items: start;
  padding: 48px max(24px, calc((100vw - 1200px) / 2));
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}

.footer-brand { max-width: 320px; text-decoration: none; }
.footer-brand img { width: 38px; height: 38px; }
.footer-lockup { display: inline-flex; align-items: center; gap: 11px; }
.footer-tagline { display: block; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--ink); font-size: 14px; font-weight: 750; }
.site-footer > p { grid-column: 1 / -1; margin: 0; font-size: 12px; }

.page-hero {
  padding: 86px max(24px, calc((100vw - 960px) / 2)) 64px;
  border-bottom: 1px solid var(--line);
  background: var(--green-soft);
}

.page-hero h1 { max-width: 850px; font-size: 76px; color: var(--ink); }
.page-hero > p:last-child { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.65; }

.page {
  width: min(100% - 48px, 960px);
  margin: 0 auto;
  padding: 74px 0 96px;
}

.page-section { padding: 0 0 42px; border-bottom: 1px solid var(--line); }
.page-section + .page-section { padding-top: 42px; }
.page-section h2 { font-size: 38px; }
.page-section h3 { margin-top: 28px; }
.page-section p,
.page-section li { color: var(--muted); line-height: 1.75; }
.page-section ul { padding-left: 22px; }
.page-section li + li { margin-top: 8px; }

.notice {
  margin: 0 0 42px;
  padding: 22px 24px;
  border-left: 5px solid var(--gold);
  background: #fff8e5;
  color: var(--ink);
  line-height: 1.6;
}

.beta-panel {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.beta-panel p { margin-bottom: 0; }
.meta { color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  h1 { font-size: 82px; }
  h2 { font-size: 50px; }
  .page-hero h1 { font-size: 62px; }
  .page-section h2 { font-size: 34px; }
  .nav { gap: 16px; }
  .nav a:nth-child(2) { display: none; }
  .path { grid-template-columns: 160px minmax(0, 1fr); gap: 24px 30px; }
  .path-boundary { grid-column: 2; }
  .evidence { grid-template-columns: 1fr; gap: 44px; }
  .evidence-image { min-height: 460px; }
  .boundary-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .flow-step:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 680px) {
  html { scroll-behavior: auto; }
  .site-header { min-height: 64px; padding: 8px 18px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1.05rem; }
  .nav { gap: 8px; }
  .nav a { display: none; }
  .nav .nav-cta { display: inline-flex; min-height: 40px; padding: 10px 12px; }
  .hero {
    min-height: min(730px, calc(88svh - 64px));
    padding: 68px 20px 64px;
    background-image: url("./hero-mobile.webp");
    background-position: center;
  }
  .hero::before { background: rgb(248 250 250 / 76%); }
  h1 { font-size: 64px; }
  h2 { font-size: 42px; }
  .page-hero h1 { font-size: 48px; }
  .page-section h2 { font-size: 30px; }
  .hero-copy { font-size: 20px; }
  .actions { align-items: flex-start; flex-direction: column; }
  .section { padding: 70px 20px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle { padding: 28px 0 30px; }
  .principle + .principle { border-top: 1px solid var(--line); border-left: 0; }
  .principle-number { margin-bottom: 18px; }
  .path { grid-template-columns: 1fr; gap: 18px; padding: 30px 0; }
  .path-boundary { grid-column: auto; }
  .evidence { gap: 36px; }
  .evidence-image { min-height: 400px; background-position: 58% center; }
  .boundary-flow { grid-template-columns: 1fr; }
  .flow-step { padding: 26px 0; }
  .flow-step + .flow-step { border-top: 1px solid var(--line); border-left: 0; }
  .beta-band { grid-template-columns: 1fr; padding: 62px 20px; }
  .beta-band .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; padding: 42px 20px; }
  .site-footer > p { grid-column: auto; }
  .site-footer nav { flex-direction: column; }
  .page-hero { padding: 64px 20px 48px; }
  .page { width: min(100% - 40px, 960px); padding: 56px 0 74px; }
  .beta-panel { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (prefers-contrast: more) {
  :root { --muted: #30445f; --line: #74869d; }
  .hero::before { background: rgb(255 255 255 / 88%); }
}
