/* Colours, type and shapes follow the app (lib/theme/app_tokens.dart). */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f3f4ef;
  --muted: #8b8f88;
  --subtle: #6d716b;
  --background: #0a0b0d;
  --surface: #15171a;
  --surface-2: #1f2125;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #c0f447;
  --accent-ink: #0a0b0d;
  --accent-text: #c0f447;
  --accent-wash: rgba(192, 244, 71, 0.07);
  --accent-line: rgba(192, 244, 71, 0.28);
  --header: rgba(10, 11, 13, 0.7);
  --orb-1: rgba(192, 244, 71, 0.14);
  --orb-2: rgba(0, 180, 188, 0.14);
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink: #0f110d;
    --muted: #666b63;
    --subtle: #858a82;
    --background: #f3f4ef;
    --surface: #ffffff;
    --surface-2: #ebede6;
    --line: rgba(10, 12, 8, 0.08);
    --line-strong: rgba(10, 12, 8, 0.16);
    --accent-ink: #0f110d;
    --accent-text: #457200;
    --accent-wash: rgba(192, 244, 71, 0.2);
    --accent-line: rgba(69, 114, 0, 0.28);
    --header: rgba(243, 244, 239, 0.7);
    --orb-1: rgba(192, 244, 71, 0.32);
    --orb-2: rgba(0, 180, 188, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 4%, var(--orb-1), transparent 26rem),
    radial-gradient(circle at 0% 60rem, var(--orb-2), transparent 24rem),
    var(--background);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-link,
.print-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.contact-link:hover,
.print-action:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
}

.print-action {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

.print-action:hover {
  border-color: transparent;
  background: var(--accent);
  filter: brightness(1.06);
}

.print-action:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: clamp(68px, 10vw, 132px) 0 76px;
  border-bottom: 1px solid var(--line);
}

.kicker,
.section-number,
.summary-eyebrow,
.contents > p {
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: clamp(48px, 8.5vw, 102px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.updated {
  margin: 22px 0 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 68px;
}

.summary-card {
  min-height: 212px;
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.summary-card strong {
  display: block;
  margin: 28px 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.content-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(54px, 9vw, 118px);
  justify-content: start;
  padding: 84px 0 120px;
}

.contents {
  position: sticky;
  top: 108px;
  align-self: start;
}

.contents > p {
  margin: 0 0 20px;
  color: var(--subtle);
}

.contents nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contents nav a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.contents nav a:hover {
  color: var(--accent-text);
}

.contents nav span {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 10px;
}

.policy section {
  padding: 0 0 72px;
  scroll-margin-top: 96px;
}

.policy section + section {
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.section-number {
  margin: 0 0 8px;
}

.policy h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.policy h3 {
  margin: 32px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy p {
  margin: 0 0 18px;
}

.policy strong {
  color: var(--ink);
}

.policy ul {
  margin: 8px 0 24px;
  padding-left: 24px;
}

.policy li {
  padding: 4px 0 4px 8px;
}

.policy li::marker {
  color: var(--accent-text);
}

.callout {
  margin: 34px 0;
  padding: 24px 26px 23px;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  background: var(--accent-wash);
}

.callout > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-text);
  font-size: 13px;
}

.callout p {
  margin: 0;
  font-size: 14px;
}

.provider-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.provider-list > div {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.provider-list h3 {
  margin: 0 0 8px;
}

.provider-list p {
  flex: 1;
  margin: 0 0 18px;
  font-size: 14px;
}

.provider-list a {
  font-size: 13px;
  font-weight: 600;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--subtle);
  font-size: 12px;
}

footer a {
  text-decoration: none;
}

@media (max-width: 1080px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 0;
  }

  .summary-card strong {
    margin-top: 18px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .contents {
    position: static;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
  }

  .contents nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .contact-link,
  .print-action {
    padding-inline: 11px;
    font-size: 12px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .page-shell {
    width: min(100% - 36px, 1180px);
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .summary-grid {
    margin-top: 48px;
  }

  .content-layout {
    padding-top: 58px;
  }

  .contents nav {
    grid-template-columns: 1fr;
  }

  .policy section {
    padding-bottom: 56px;
  }

  .policy section + section {
    padding-top: 56px;
  }

  footer {
    min-height: 84px;
    padding: 0 18px;
  }
}

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

@media print {
  .site-header,
  .contents,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a,
  .kicker,
  .section-number,
  .summary-eyebrow,
  .callout > strong {
    color: black;
  }

  .summary-card,
  .callout,
  .provider-list > div {
    border-color: #bbb;
  }

  .page-shell {
    width: 100%;
  }

  .hero {
    padding: 0 0 32px;
  }

  .hero h1,
  .policy h2,
  .policy strong {
    color: black;
  }

  .hero-copy,
  .policy p,
  .policy li {
    color: #333;
  }

  .summary-card,
  .callout,
  .provider-list > div {
    background: white;
  }

  .content-layout {
    display: block;
    padding: 42px 0;
  }
}
