:root {
  color-scheme: light;
  --bg: #efe7da;
  --bg-deep: #e3d6c3;
  --surface: rgba(255, 251, 243, 0.88);
  --surface-strong: #fffaf2;
  --surface-tint: rgba(223, 244, 241, 0.72);
  --text: #1e2220;
  --muted: #5d605b;
  --accent: #0f766e;
  --accent-deep: #115e59;
  --accent-soft: #d9f0ec;
  --warm: #cb7c2d;
  --line: rgba(30, 34, 32, 0.12);
  --line-strong: rgba(30, 34, 32, 0.22);
  --shadow: 0 22px 54px rgba(31, 30, 24, 0.1);
  --shadow-soft: 0 14px 30px rgba(31, 30, 24, 0.06);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --heading-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(203, 124, 45, 0.16), transparent 22%),
    linear-gradient(180deg, #f7f1e7 0%, var(--bg) 54%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 74%);
  opacity: 0.28;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 3px;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  padding: 22px 0 10px;
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #39b0a8);
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.12);
}

.brand {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.95rem;
  line-height: 1;
}

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 22px 0 26px;
}

.hero-grid,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: 24px;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card,
.hero-aside,
.panel,
.fact-card,
.strip {
  position: relative;
  overflow: hidden;
}

.hero-card {
  padding: 34px;
}

.hero-card::after,
.hero-aside::after,
.panel::after {
  content: "";
  position: absolute;
  inset: auto auto -60px -60px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-aside {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(233, 248, 245, 0.92));
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 6.1vw, 5.2rem);
  margin-top: 18px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.15rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.68;
}

.lead {
  font-size: 1.2rem;
  max-width: 60ch;
}

.intro {
  max-width: 62ch;
}

.pill-row,
.tag-row,
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-row {
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(30, 34, 32, 0.1);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--warm);
}

.cta-row {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0a8f86);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-strong);
}

.aside-title {
  margin-bottom: 16px;
}

.flow-list,
.compact-list,
.bullet-list,
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-list {
  display: grid;
  gap: 14px;
}

.flow-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(30, 34, 32, 0.08);
}

.flow-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.flow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 900;
}

.flow-item strong,
.bullet-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.tag-row {
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(30, 34, 32, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: 8px 0 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-note {
  max-width: 44ch;
  margin: 0;
}

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

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

.panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-list li {
  position: relative;
  padding-left: 16px;
}

.compact-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.bullet-list {
  display: grid;
  gap: 14px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
}

.strip {
  margin: 18px 0 34px;
  padding: 22px 24px;
  background: linear-gradient(140deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

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

.fact-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(30, 34, 32, 0.08);
}

.fact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.page-main {
  padding: 20px 0 40px;
}

.page-card {
  padding: 30px;
}

.summary-box {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 232, 0.96));
  border: 1px solid rgba(30, 34, 32, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.summary-box h2 {
  font-size: 1.22rem;
  margin-bottom: 14px;
}

.summary-box .compact-list li {
  padding-left: 15px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.step-list .flow-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.inline-code {
  font-family: Consolas, "Courier New", monospace;
  color: var(--text);
  font-size: 0.94em;
}

.footer {
  padding: 6px 0 36px;
}

.footer .shell {
  padding-top: 20px;
  border-top: 1px solid rgba(30, 34, 32, 0.1);
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero-grid,
  .page-hero,
  .card-grid.three-up,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .page-card,
  .hero-aside,
  .summary-box {
    padding: 24px;
  }

  h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

@media (max-width: 720px) {
  .topbar .shell,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .card-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(1120px, calc(100% - 20px));
  }

  .brand {
    font-size: 1.55rem;
  }
}
