:root {
  --ink: #17211e;
  --muted: #52625d;
  --paper: #fffdf8;
  --paper-soft: #f3f6f1;
  --line: #d7e0da;
  --green-950: #0d332c;
  --green-900: #123f36;
  --green-800: #174f45;
  --green-700: #22685b;
  --green-100: #dcece5;
  --gold: #f2b84b;
  --gold-soft: #fff1c8;
  --red: #c42f3b;
  --red-soft: #fbe4e5;
  --blue-soft: #e4eefb;
  --shadow: 0 18px 48px rgb(23 79 69 / 12%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1180px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--green-950);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.content-wrap {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: white;
  background: rgb(13 51 44 / 96%);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content));
  min-height: 76px;
  margin-inline: auto;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 0.22rem;
  color: #c4d9d1;
  font-size: 0.76rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.primary-nav a {
  padding: 0.65rem 0.8rem;
  color: #e8f1ed;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: white;
  background: rgb(255 255 255 / 12%);
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 88% 10%, rgb(242 184 75 / 30%), transparent 28rem),
    linear-gradient(135deg, var(--green-950), var(--green-800));
}

.hero::after {
  position: absolute;
  right: -7rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  content: "";
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgb(255 255 255 / 3%),
    0 0 0 8rem rgb(255 255 255 / 2%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  align-items: center;
  min-height: 660px;
  padding-block: 5rem;
  gap: 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9d7cb;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero__lede {
  max-width: 640px;
  margin: 1.5rem 0 0;
  color: #e4efea;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero__licence {
  max-width: 640px;
  margin: 1rem 0 0;
  color: #c9ddd5;
  font-size: 0.94rem;
}

.hero__licence a {
  color: white;
  font-weight: 750;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.button--gold {
  color: #2b2415;
  background: var(--gold);
}

.button--gold:hover {
  color: #17130b;
  background: #ffc862;
}

.button--ghost {
  color: white;
  border-color: rgb(255 255 255 / 40%);
}

.button--ghost:hover {
  color: white;
  background: rgb(255 255 255 / 10%);
}

.hero-shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #eff4f0;
  border: 10px solid #f6f8f6;
  border-radius: 25px;
  box-shadow: 0 35px 90px rgb(0 0 0 / 35%);
  transform: rotate(1.5deg);
}

.hero-shot img {
  width: 100%;
  height: auto;
}

.trust-strip {
  background: var(--gold-soft);
  border-bottom: 1px solid #ead79e;
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 1.15rem;
  gap: 1rem;
}

.trust-point {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #3e3828;
  font-size: 0.9rem;
  font-weight: 750;
}

.trust-point span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: white;
  background: var(--green-800);
  border-radius: 50%;
}

.section {
  padding-block: 5.5rem;
}

.section--soft {
  background: var(--paper-soft);
}

.section-heading {
  display: grid;
  max-width: 780px;
  margin-bottom: 2.5rem;
  gap: 0.7rem;
}

.section-heading h2,
.audience-copy h2,
.callout-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading p,
.audience-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid,
.journey-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.feature-card,
.journey-card,
.audience-card {
  min-width: 0;
  padding: 1.65rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgb(23 79 69 / 5%);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  color: var(--green-950);
  background: var(--green-100);
  border-radius: 13px;
  font-size: 1.25rem;
  font-weight: 900;
}

.feature-card h3,
.journey-card h3,
.audience-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.feature-card p,
.journey-card p,
.audience-card p {
  margin: 0;
  color: var(--muted);
}

.journey-card {
  position: relative;
  padding-top: 4.5rem;
}

.journey-card__number {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 800;
}

.audience-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 4rem;
}

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

.audience-card:nth-child(1) {
  background: var(--gold-soft);
  border-color: #e6d18d;
}

.audience-card:nth-child(2) {
  background: var(--green-100);
  border-color: #bfd8ce;
}

.audience-card:nth-child(3) {
  background: var(--blue-soft);
  border-color: #c8d8ed;
}

.audience-card:nth-child(4) {
  background: var(--red-soft);
  border-color: #efc8cb;
}

.source-note {
  max-width: 900px;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.screenshot-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.screenshot-frame {
  overflow: hidden;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
}

.screenshot-frame figcaption {
  padding: 0.85rem 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.callout-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem;
  color: white;
  background: var(--green-900);
  border-radius: var(--radius-lg);
  gap: 2rem;
}

.callout-panel p {
  max-width: 690px;
  margin: 0.7rem 0 0;
  color: #d3e4dd;
}

.callout-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 0.7rem;
}

.page-hero {
  color: white;
  background:
    radial-gradient(circle at 82% 20%, rgb(242 184 75 / 22%), transparent 24rem),
    var(--green-900);
}

.page-hero__inner {
  padding-block: 4.4rem;
}

.page-hero .eyebrow {
  color: #b9d7cb;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.page-hero__lede {
  max-width: 760px;
  margin: 1rem 0 0;
  color: #dce9e4;
  font-size: 1.15rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 780px);
  justify-content: center;
  align-items: start;
  padding-block: 4rem 6rem;
  gap: 4.5rem;
}

.docs-nav {
  position: sticky;
  top: 100px;
  min-width: 0;
  padding: 1.1rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.docs-nav__title {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-nav nav {
  display: grid;
  gap: 0.15rem;
}

.docs-nav a {
  padding: 0.5rem 0.65rem;
  color: var(--ink);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.docs-nav a:hover,
.docs-nav a[aria-current="page"] {
  color: var(--green-950);
  background: var(--green-100);
}

.docs-nav a[aria-current="page"] {
  font-weight: 850;
}

.prose {
  min-width: 0;
  font-size: 1.04rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 3.3rem 0 1rem;
  padding-top: 0.25rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 2.2rem 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.prose p,
.prose ul,
.prose ol {
  margin-block: 0.85rem;
}

.prose li + li {
  margin-top: 0.55rem;
}

.prose strong {
  font-weight: 800;
}

.prose code {
  padding: 0.12em 0.35em;
  background: #eef2ef;
  border: 1px solid #dfe6e1;
  border-radius: 5px;
  font-size: 0.9em;
}

.prose blockquote,
.note,
.warning,
.tip {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--green-100);
  border: 0;
  border-left: 5px solid var(--green-700);
  border-radius: 0 12px 12px 0;
}

.warning {
  background: var(--gold-soft);
  border-left-color: #c7860a;
}

.danger-note {
  background: var(--red-soft);
  border-left-color: var(--red);
}

.note > :first-child,
.warning > :first-child,
.tip > :first-child {
  margin-top: 0;
}

.note > :last-child,
.warning > :last-child,
.tip > :last-child {
  margin-bottom: 0;
}

.wide-shot {
  overflow: hidden;
  margin: 2rem 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.wide-shot img {
  width: 100%;
  height: auto;
}

.wide-shot figcaption {
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.step-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.step-list > li {
  position: relative;
  min-height: 48px;
  padding: 0.1rem 0 1.4rem 4rem;
  counter-increment: docs-step;
}

.step-list > li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  content: counter(docs-step);
  color: white;
  background: var(--green-800);
  border-radius: 50%;
  font-weight: 900;
}

.key-grid,
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0;
  gap: 0.8rem;
}

.key-card,
.option-card {
  padding: 1rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.key-card strong,
.option-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.key-card p,
.option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.licence-table {
  width: 100%;
  margin: 1.4rem 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.licence-table th,
.licence-table td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.licence-table th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  color: #d8e7e1;
  background: #092a24;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
  padding-block: 3.2rem;
  gap: 1.5rem 3rem;
}

.footer-brand {
  color: white;
  font-size: 1.3rem;
  font-weight: 850;
  text-decoration: none;
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: white;
  font-weight: 700;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.2rem;
  color: #a9c2b8;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.82rem;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 65vh;
  padding: 4rem 1rem;
  text-align: center;
}

.error-page h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 1;
}

.error-page p {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.8rem;
    gap: 0.55rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .hero__inner,
  .audience-layout,
  .screenshot-band {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
    padding-block: 4rem;
  }

  .hero-shot {
    transform: none;
  }

  .trust-strip__inner,
  .feature-grid,
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .docs-nav {
    position: static;
  }

  .docs-nav nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .content-wrap,
  .site-header__inner,
  .site-footer__inner {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand small {
    display: none;
  }

  .primary-nav a {
    padding-inline: 0.6rem;
    font-size: 0.84rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .hero__inner,
  .section {
    padding-block: 3.5rem;
  }

  .trust-strip__inner,
  .feature-grid,
  .journey-grid,
  .audience-grid,
  .key-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .callout-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .callout-actions {
    width: 100%;
  }

  .page-hero__inner {
    padding-block: 3rem;
  }

  .doc-layout {
    padding-block: 2rem 4rem;
  }

  .docs-nav nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    gap: 0.25rem;
  }

  .docs-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .licence-table {
    display: block;
    overflow-x: auto;
  }
}

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