:root {
  --ink: #142033;
  --ink-soft: #3a4658;
  --muted: #6a7585;
  --line: #e2e6ec;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --accent: #0b6e68;
  --accent-dark: #08524e;
  --accent-soft: #e7f4f3;
  --max: 680px;
  --wide: 1000px;
  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

main {
  flex: 1;
  width: 100%;
  padding: 2rem 0 3rem;
}

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

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

a:hover {
  color: var(--accent-dark);
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.narrow,
.wrap.narrow {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20, 32, 51, 0.03);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 64px;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--ink);
}

.logo .brand {
  color: var(--accent);
}

.logo .tag {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.4rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  vertical-align: middle;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.15rem;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Hero */
.hero {
  padding: 3rem 0 2.25rem;
  background:
    linear-gradient(180deg, #eef5f4 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: var(--ink);
  max-width: 16ch;
}

.hero .lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.disclosure {
  margin-top: 1.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.45;
}

/* Content typography */
main h1 {
  font-family: var(--font);
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

main h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.65rem;
  color: var(--ink);
}

main > .wrap:first-child > h1:first-child,
main > .wrap:first-child > h2:first-child,
main > .narrow:first-child > h1:first-child,
main > .narrow:first-child > h2:first-child {
  margin-top: 0;
}

main h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.35rem 0 0.45rem;
  color: var(--ink);
}

main p,
main li {
  color: var(--ink-soft);
}

main p {
  margin: 0 0 1rem;
}

main ul,
main ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

main li {
  margin-bottom: 0.4rem;
}

main li strong {
  color: var(--ink);
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 1.35rem;
}

/* Home sections */
.section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-top: 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  counter-reset: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.steps li {
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 3.4rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
  color: var(--ink-soft);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1.15rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

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

.topic-links {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.topic-links a {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topic-links a:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(11, 110, 104, 0.08);
  color: var(--ink);
}

.topic-links strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
  color: var(--ink);
}

.topic-links span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

th {
  font-weight: 700;
  color: var(--ink);
  background: #f0f3f6;
}

td {
  color: var(--ink-soft);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  margin-bottom: 0.55rem;
  background: var(--surface);
}

.faq details:last-child {
  margin-bottom: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  padding: 0.85rem 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq details p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.75rem 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer p {
  margin: 0;
  max-width: 42ch;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .hero {
    padding: 2.25rem 0 1.75rem;
  }

  .site-header .inner {
    min-height: auto;
  }

  .site-header nav {
    width: 100%;
  }

  .site-header nav a {
    font-size: 0.84rem;
    padding: 0.35rem 0.45rem;
  }

  main {
    padding: 1.5rem 0 2.25rem;
  }
}
