:root {
  --ink: #17211c;
  --muted: #5b665f;
  --paper: #f7f6f1;
  --surface: #ffffff;
  --line: #d9ddd5;
  --green: #1f6f57;
  --green-dark: #174f40;
  --gold: #b7892f;
  --blue: #315f8f;
  --shadow: 0 18px 50px rgba(23, 33, 28, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* Skip to main content — visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  color: #fff;
  background: var(--green);
  border-radius: 0 0 8px 8px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.1s;
}

.skip-link:focus {
  top: 0;
}

/* Keyboard focus indicators — WCAG 2.1 AA */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(247, 246, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.92rem;
}

.nav a:hover {
  color: var(--ink);
  background: #e9ece5;
}

.hero {
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  padding: 96px clamp(20px, 6vw, 72px) 56px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 34, 31, 0.92), rgba(12, 34, 31, 0.68), rgba(12, 34, 31, 0.36)),
    url("assets/hero-pattern.svg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: var(--ink);
  background: #fff;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.notice {
  width: min(1120px, calc(100% - 40px));
  margin: -28px auto 0;
  position: relative;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: 78px clamp(20px, 6vw, 72px);
}

.band {
  background: #eef1eb;
  border-block: 1px solid var(--line);
}

.section-heading {
  width: min(860px, 100%);
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.split p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.metric-grid,
.cards,
.resource-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric,
.card,
.timeline-item {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 33, 28, 0.06);
}

.metric {
  padding: 20px;
}

.metric span {
  display: block;
  color: var(--green);
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 1;
}

.metric p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
}

.why-now-section {
  padding-top: 64px;
}

.accent-card {
  border-top: 5px solid var(--gold);
}

.section-link {
  margin: 28px 0 0;
}

.section-link a {
  color: var(--green);
  font-weight: 800;
}

.card h3,
.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline-item {
  padding: 24px;
  border-top: 5px solid var(--blue);
}

.timeline-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--green);
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-grid a {
  min-width: 0;
  min-height: 96px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.resource-grid a:hover {
  border-color: var(--green);
  box-shadow: 0 12px 24px rgba(31, 111, 87, 0.13);
}

.resource-grid a small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.catalog-callout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  background: #eef1eb;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
}

.catalog-callout-title {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 850;
}

.catalog-callout:hover {
  border-color: var(--green);
  box-shadow: 0 12px 24px rgba(31, 111, 87, 0.13);
}

.catalog-callout p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 28px clamp(20px, 6vw, 72px);
  color: #dce5df;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.doc-hero {
  padding: 92px clamp(20px, 6vw, 72px) 48px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 34, 31, 0.92), rgba(12, 34, 31, 0.68)),
    url("../assets/hero-pattern.svg");
  background-size: cover;
  background-position: center;
}

.doc-hero-inner {
  width: min(920px, 100%);
}

.doc-hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.doc-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.doc-shell {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 850px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: 58px clamp(20px, 6vw, 72px) 82px;
}

.doc-sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc-sidebar a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  text-decoration: none;
}

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

.doc-content {
  max-width: 100%;
  min-width: 0;
  padding: clamp(24px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.doc-content h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.12;
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content h3 {
  margin: 28px 0 8px;
  font-size: 1.18rem;
}

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

.doc-content p {
  margin: 0 0 16px;
}

.doc-content ul,
.doc-content ol {
  padding-left: 22px;
}

.doc-content li + li {
  margin-top: 6px;
}

.doc-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 18px 0 28px;
  border-collapse: collapse;
  font-size: 0.95rem;
  -webkit-overflow-scrolling: touch;
}

.doc-content th,
.doc-content td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

.doc-content th {
  color: var(--ink);
  background: #eef1eb;
}

.doc-content code {
  padding: 2px 5px;
  color: var(--green-dark);
  background: #eef1eb;
  border-radius: 5px;
  font-size: 0.92em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-content ul {
  display: grid;
  gap: 6px;
}

.catalog-content li {
  min-width: 0;
}

.doc-footer-link {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.doc-footer-link a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header,
  .split,
  .doc-shell,
  .catalog-callout {
    display: block;
  }

  .catalog-callout p {
    margin-top: 8px;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .cards.four,
  .cards.three,
  .timeline,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-sidebar {
    position: static;
    margin-bottom: 20px;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .brand {
    gap: 9px;
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .nav a {
    min-height: 40px;
    padding: 8px 0;
    font-size: 0.98rem;
  }

  .hero {
    min-height: 62vh;
    padding: 64px 16px 42px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 52px 16px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .doc-hero {
    padding: 64px 16px 34px;
  }

  .doc-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.6rem);
  }

  .doc-hero p {
    font-size: 1rem;
  }

  .doc-shell {
    padding: 28px 16px 56px;
  }

  .doc-sidebar {
    padding: 14px 16px;
  }

  .doc-content {
    padding: 22px 18px;
    box-shadow: 0 10px 24px rgba(23, 33, 28, 0.08);
  }

  .doc-content h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .doc-content ul,
  .doc-content ol {
    padding-left: 18px;
  }

  .doc-content table {
    margin-right: -2px;
    font-size: 0.86rem;
  }

  .doc-content th,
  .doc-content td {
    min-width: 150px;
    padding: 10px;
  }

  .doc-content code {
    display: inline;
    max-width: 100%;
    font-size: 0.82em;
    line-height: 1.45;
  }

  .catalog-content li {
    line-height: 1.55;
  }

  .catalog-callout {
    padding: 18px;
  }

  .catalog-callout-title {
    display: block;
    font-size: 1.08rem;
  }

  .metric-grid,
  .cards.four,
  .cards.three,
  .timeline,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .site-header,
  .hero,
  .section,
  .doc-hero,
  .doc-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    font-size: 0.98rem;
  }

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

  .nav a {
    min-height: 34px;
  }

  .doc-content {
    padding: 20px 14px;
  }
}

@media print {
  .site-header,
  .skip-link,
  .hero-actions,
  .doc-sidebar,
  .doc-footer-link,
  .site-footer {
    display: none !important;
  }

  .hero,
  .doc-hero {
    min-height: auto;
    padding: 24px 0;
    color: #000;
    background: none;
    print-color-adjust: exact;
  }

  .doc-shell {
    display: block;
    padding: 0;
  }

  .doc-content {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: none;
    color: #000;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }
}
