
:root {
  --ink: #132f3a;
  --ink-2: #244853;
  --teal: #0f6b78;
  --teal-dark: #0a515b;
  --green: #76a548;
  --lime: #b8cf66;
  --cream: #f5f2e9;
  --paper: #fffdf8;
  --mist: #eaf1ef;
  --line: #d6e0dd;
  --orange: #d9853b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(19,47,58,.12);
  --shadow-soft: 0 8px 25px rgba(19,47,58,.09);
  --radius: 18px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--teal); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 999;
  background: var(--ink); color: white; padding: .7rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin-inline: auto; }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--teal-dark);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
}
.section { padding: 5.5rem 0; }
.section--mist { background: var(--mist); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: white; }
.section--dark a { color: #dcefae; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.2rem;
}
.section-heading h2, .narrow h1, .narrow h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.section-heading p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.section--dark .section-heading p { color: #d7e4e6; }
.lead { font-size: 1.18rem; color: var(--ink-2); }
.small { font-size: .9rem; }
.muted { color: #5e737a; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(214,224,221,.85);
  background: rgba(255,253,248,.94);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center;
  color: var(--ink); text-decoration: none;
}
.brand-logo {
  display: block; height: 58px; width: auto; max-width: min(230px, 55vw);
  object-fit: contain;
}
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .94rem; }
.site-nav a:hover { color: var(--teal); }
.nav-button {
  border: 0; display: none; background: transparent; color: var(--ink);
  width: 44px; height: 44px; border-radius: 10px;
}

/* Buttons */
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.button {
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px;
  padding: .8rem 1.25rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--teal); color: white; box-shadow: var(--shadow-soft); }
.button--primary:hover { background: var(--teal-dark); color: white; }
.button--secondary { background: white; border-color: var(--line); color: var(--ink); }
.button--secondary:hover { border-color: var(--teal); color: var(--teal-dark); }
.button--light { background: white; color: var(--ink); }
.button--outline-light { border-color: rgba(255,255,255,.5); color: white; }
.button--outline-light:hover { border-color: white; color: white; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(184,207,102,.28), transparent 32%),
    radial-gradient(circle at 0% 85%, rgba(15,107,120,.12), transparent 38%),
    var(--cream);
}
.hero:after {
  content: ""; position: absolute; inset: auto -12% -150px auto;
  width: 520px; height: 520px; border: 1px solid rgba(15,107,120,.15); border-radius: 50%;
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .72fr; gap: 4.5rem; align-items: center;
  position: relative; z-index: 1;
}
.hero h1 {
  margin: 0 0 1.3rem;
  max-width: 780px;
  font-size: clamp(2.7rem, 6vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero .lead { max-width: 710px; margin-bottom: 1.7rem; }
.hero-note { margin: 1rem 0 0; font-size: .88rem; color: #60747b; }
.cover-wrap { position: relative; }
.cover-wrap:before {
  content: ""; position: absolute; inset: 8% -8% -6% 8%;
  border-radius: 22px; background: var(--teal); opacity: .13; transform: rotate(3deg);
}
.report-cover {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(19,47,58,.15); box-shadow: 0 28px 60px rgba(19,47,58,.22);
  transform: rotate(-1.5deg);
}
.report-badge {
  position: absolute; right: -10px; bottom: 24px;
  background: var(--ink); color: white; border-radius: 999px;
  padding: .72rem 1rem; font-weight: 800; font-size: .85rem; box-shadow: var(--shadow);
}

/* Stats */
.stat-band {
  position: relative; z-index: 2; margin-top: -1px;
  background: var(--ink); color: white;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 1.65rem 1.35rem;
  border-right: 1px solid rgba(255,255,255,.14);
}
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1; color: #dcefae; }
.stat span { display: block; margin-top: .55rem; font-size: .88rem; color: #d9e5e7; }

/* Cards and charts */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-soft);
}
.card h3 { margin: .2rem 0 .55rem; font-size: 1.28rem; line-height: 1.25; }
.card p { margin: 0; color: var(--ink-2); }
.number-tag {
  display: inline-grid; place-items: center; min-width: 42px; height: 30px;
  border-radius: 999px; padding: 0 .65rem;
  background: #dcefae; color: var(--ink); font-weight: 900; font-size: .82rem;
}
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.chart-card {
  margin: 0; background: white; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
}
.chart-card img { width: 100%; background: white; }
.chart-card figcaption { padding: 1rem 1.2rem 1.2rem; color: #526b72; font-size: .9rem; }
.chart-card--wide { grid-column: 1 / -1; }
.chart-link { display: block; text-decoration: none; }
.insight {
  border-left: 5px solid var(--green);
  background: rgba(184,207,102,.16);
  padding: 1.35rem 1.5rem; border-radius: 0 14px 14px 0;
  font-size: 1.05rem;
}
.insight strong { color: var(--teal-dark); }

/* Migration and anomalies */
.split-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin: .75rem 0; }
.check-list li:before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 900;
}
.anomaly-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.anomaly {
  border-top: 5px solid var(--orange);
  background: white; padding: 1.45rem; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-soft);
}
.anomaly h3 { margin: 0 0 .45rem; font-size: 1.2rem; }
.anomaly p { margin: 0; color: var(--ink-2); }

/* Download form */
.download-panel {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem;
  background: white; color: var(--ink);
  border-radius: 26px; padding: clamp(1.5rem, 4vw, 3.2rem);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.download-panel h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.04em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 750; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  border: 1px solid #bfcfcb; border-radius: 10px;
  background: #fff; color: var(--ink); padding: .7rem .78rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(15,107,120,.17); border-color: var(--teal);
}
.consent {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .95rem; background: var(--cream); border-radius: 10px;
  font-size: .9rem;
}
.consent input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: .15rem; accent-color: var(--teal); }
.form-note { margin: .7rem 0 0; color: #60747b; font-size: .84rem; }
.direct-download {
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .91rem;
}

/* Author and footer */
.author-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 1.7rem; align-items: center;
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-soft);
}
.author-card img { border-radius: 16px; }
.author-card h2 { margin: 0 0 .45rem; font-size: 1.75rem; }
.author-card p { margin: .35rem 0; }
.site-footer { padding: 2.5rem 0; background: #0d242c; color: #d4e0e2; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.site-footer a { color: white; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.legal-page { padding: 4.5rem 0 6rem; }
.legal-page h1 { margin-bottom: 1.5rem; }
.legal-page h2 { margin-top: 2.25rem; font-size: 1.45rem; }
.legal-page ul { padding-left: 1.2rem; }

/* Thank you */
.thank-you {
  min-height: calc(100vh - 76px);
  display: grid; place-items: center;
  padding: 4rem 0;
  background: radial-gradient(circle at 85% 10%, rgba(184,207,102,.35), transparent 30%), var(--cream);
}
.thank-card {
  width: min(calc(100% - 2rem), 760px);
  background: white; border-radius: 24px; padding: clamp(1.6rem, 5vw, 3.5rem);
  text-align: center; box-shadow: var(--shadow);
}
.thank-icon {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  border-radius: 50%; display: grid; place-items: center;
  background: #dcefae; font-size: 2rem; font-weight: 900;
}
.thank-card h1 { margin: 0 0 .7rem; font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1.03; }
.thank-card .button-row { justify-content: center; margin-top: 1.5rem; }

/* Mobile sticky */
.mobile-cta { display: none; }

@media (max-width: 960px) {
  .hero-grid, .download-panel, .split-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 3rem; }
  .cover-wrap { max-width: 460px; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .card-grid, .anomaly-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .65rem .4rem; }
  .nav-button { display: grid; place-items: center; }
  .hero { padding-top: 4rem; }
  .chart-grid, .card-grid, .anomaly-grid { grid-template-columns: 1fr; }
  .chart-card--wide { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .author-card { grid-template-columns: 95px 1fr; }
  .footer-grid { flex-direction: column; }
  .mobile-cta {
    display: block; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  }
  .mobile-cta .button { width: 100%; box-shadow: 0 15px 35px rgba(19,47,58,.28); }
  body { padding-bottom: 74px; }
}
@media (max-width: 520px) {
  .container, .narrow { width: min(calc(100% - 1.2rem), var(--max)); }
  .header-inner { min-height: 68px; }
  .site-nav { top: 68px; }
  .brand-logo { height: 49px; max-width: min(185px, 56vw); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stat:last-child { border-bottom: 0; }
  .section { padding: 4.2rem 0; }
  .hero h1 { font-size: clamp(2.55rem, 15vw, 4rem); }
  .author-card { grid-template-columns: 1fr; text-align: center; }
  .author-card img { max-width: 135px; margin-inline: auto; }
}
@media print {
  .site-header, .mobile-cta, .button-row, form { display: none !important; }
  body { background: white; }
  .section { padding: 2rem 0; }
  .card, .chart-card, .author-card { box-shadow: none; break-inside: avoid; }
}
