:root {
  color-scheme: light;
  --page: #f3f1eb;
  --surface: #fffef9;
  --ink: #171a18;
  --muted: #626862;
  --line: #c9cdc4;
  --accent: #076b52;
  --accent-soft: #d7efe4;
  --signal: #f0bd32;
  --shadow: 0 18px 45px rgba(26, 31, 28, .1);
}

[data-theme="1"] { --page:#f6f0eb; --surface:#fffdf9; --ink:#201b18; --muted:#6d625c; --line:#d7c8bd; --accent:#b83a28; --accent-soft:#f7ddd5; --signal:#176d61; }
[data-theme="2"] { --page:#eef3f5; --surface:#fbfdfd; --ink:#172126; --muted:#5d6970; --line:#c6d2d7; --accent:#006d87; --accent-soft:#d4edf3; --signal:#dc8e20; }
[data-theme="3"] { --page:#f4f0f2; --surface:#fffdfd; --ink:#21191e; --muted:#6d6067; --line:#d8cbd1; --accent:#8a2f58; --accent-soft:#f2dce6; --signal:#26806f; }
[data-theme="4"] { --page:#f0f3ec; --surface:#fcfef9; --ink:#182019; --muted:#616a61; --line:#cbd3c7; --accent:#4f6d16; --accent-soft:#e3edca; --signal:#bd5c2c; }
[data-theme="5"] { --page:#f5f1e7; --surface:#fffef9; --ink:#221f19; --muted:#6c665b; --line:#d8d0be; --accent:#73530a; --accent-soft:#f2e4b9; --signal:#246b75; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font-family: "Trebuchet MS", "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(14px); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 19px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 2px solid var(--ink); background: var(--accent); color: white; font-size: 14px; box-shadow: 4px 4px 0 var(--signal); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 9px 12px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 800; }
.site-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 22px; }

.hero { padding: 74px 0 52px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 64px; align-items: end; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 13px; font-weight: 900; text-transform: uppercase; }
h1 { max-width: 880px; margin: 0; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: 0; overflow-wrap: anywhere; }
.lead { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border: 2px solid var(--ink); background: var(--accent); color: white; text-decoration: none; font-weight: 900; cursor: pointer; box-shadow: 5px 5px 0 var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.button--quiet { background: var(--surface); color: var(--ink); }
.route-card { border: 1px solid var(--line); background: var(--surface); padding: 24px; box-shadow: var(--shadow); }
.route-card__label { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.route-card strong { display: block; margin-top: 8px; font-size: 24px; line-height: 1.2; }
.route-card p { margin: 12px 0 0; color: var(--muted); }

.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; }
.section-head p { max-width: 650px; margin: 6px 0 0; color: var(--muted); font-size: 18px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: steps; }
.step { min-height: 210px; position: relative; border: 1px solid var(--line); background: var(--surface); padding: 74px 22px 22px; counter-increment: steps; }
.step::before { content: "0" counter(steps); position: absolute; top: 20px; left: 22px; color: var(--accent); font-size: 14px; font-weight: 900; }
.step::after { content: ""; position: absolute; top: 26px; right: 22px; width: 38px; border-top: 3px solid var(--signal); }
.step h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.step p { margin: 12px 0 0; color: var(--muted); }

.note-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr); gap: 18px; }
.note-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.note-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 18px 4px; border-bottom: 1px solid var(--line); font-weight: 800; }
.note-list li::before { content: "✓"; color: var(--accent); font-weight: 900; }
.next-card { display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: white; padding: 28px; }
.next-card p { margin: 12px 0 26px; color: color-mix(in srgb, white 72%, transparent); }
.next-card .button { width: 100%; background: var(--signal); color: var(--ink); box-shadow: 5px 5px 0 var(--accent); }

.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--line); background: var(--surface); padding: 0 20px; }
summary { cursor: pointer; padding: 20px 34px 20px 0; font-weight: 900; }
details p { margin: 0; padding: 0 0 20px; color: var(--muted); }
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.link-tile { min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--surface); padding: 17px; text-decoration: none; font-weight: 900; }
.link-tile span { color: var(--accent); font-size: 22px; }
.link-tile:hover { border-color: var(--accent); }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--page); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 12px; }
  .hero { padding-top: 48px; }
  .hero-grid, .section-head, .note-layout { grid-template-columns: 1fr; gap: 28px; }
  .step-grid { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-row { min-height: 68px; }
  .site-nav { top: 68px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 38px; }
  h1 { font-size: 38px; }
  .hero { padding: 40px 0; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 46px 0; }
  .link-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
