/* WardWalk. Aubergine from the logo is the only accent; neutrals carry the rest. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-rupee.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+20B9;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fbfafc;
  --surface: #ffffff;
  --ink: #1c1424;
  --muted: #675f71;
  --line: #e6e1ec;
  --accent: #57288a;
  --accent-strong: #3f1c66;
  --accent-soft: #f3eef9;
  --danger: #a3202f;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 144px);
  --header-h: 72px;

  --r-control: 10px;
  --r-panel: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-control);
}
.skip:focus { top: 12px; }

.icon { width: 1.125em; height: 1.125em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Type ---------- */

.display {
  font: 400 clamp(3.5rem, 9.2vw, 8.25rem)/0.95 var(--serif);
  letter-spacing: -0.02em;
}
.page-title {
  font: 400 clamp(2.75rem, 6vw, 5rem)/1 var(--serif);
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.h2 {
  font: 400 clamp(2rem, 3.6vw, 3rem)/1.05 var(--serif);
  letter-spacing: -0.01em;
}
.h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 38em; }
.kicker { font-size: 0.875rem; font-weight: 500; color: var(--accent); margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
em { font-style: italic; }
.serif-em { font-family: var(--serif); font-style: italic; }
.prose p { max-width: 62ch; color: var(--muted); }
.prose p + p { margin-top: 1em; }

.link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklch, var(--accent) 35%, transparent);
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 500; font-size: 0.9375rem; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon-right { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:disabled { background: color-mix(in oklch, var(--accent) 55%, var(--bg)); cursor: progress; transform: none; }
.btn-quiet { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 -1px 0 color-mix(in oklch, var(--ink) 8%, transparent);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); backdrop-filter: none; } }

.nav { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; border-radius: 8px; }
.brand img { width: 42px; height: 32px; }
.wordmark { font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.035em; color: #3a1b5c; }
.wordmark span + span { color: #8a5cc0; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 0.9375rem; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in oklch, var(--ink) 5%, transparent); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; margin-right: -10px; }
.menu-btn:hover { background: color-mix(in oklch, var(--ink) 6%, transparent); }
.menu-btn .icon { width: 22px; height: 22px; }

.mobile-nav { border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
.mobile-nav a:not(.btn) {
  display: block; padding: 14px 0; font: 400 1.75rem/1.2 var(--serif);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { margin-top: 24px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 901px) { .mobile-nav { display: none !important; } }

/* ---------- Page views ---------- */

main { flex: 1; }
.page-view { display: none; }
.page-view.active { display: block; animation: page-in 0.35s var(--ease); }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

.page-head { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.page-head .lead { margin-top: 28px; }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }
.rule { border-top: 1px solid var(--line); }
.container.rule { border-top: 0; position: relative; }
.container.rule::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }

/* ---------- Home: hero ---------- */

.hero { padding-block: clamp(56px, 10vw, 136px) clamp(48px, 7vw, 88px); }
.hero .display span { display: block; }
.hero-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.hero-mark { width: clamp(280px, 30vw, 420px); height: auto; animation: rise 1.1s var(--ease) 0.2s both; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; } .hero-mark { display: none; } }
.hero-foot {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px 48px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .hero-foot { grid-template-columns: 1fr; } }

.hero .display span, .hero-foot { animation: rise 0.9s var(--ease) both; }
.hero .display span:nth-child(2) { animation-delay: 0.08s; }
.hero .display span:nth-child(3) { animation-delay: 0.16s; }
.hero-foot { animation-delay: 0.28s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.facts-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.facts-strip div { padding: 24px 24px 24px 0; }
.facts-strip div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts-strip dt { font-size: 0.8125rem; color: var(--muted); margin-bottom: 6px; }
.facts-strip dd { font: 400 1.75rem/1.1 var(--serif); font-variant-numeric: lining-nums; }
@media (max-width: 760px) {
  .facts-strip { grid-template-columns: 1fr 1fr; }
  .facts-strip div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts-strip dd { font-size: 1.375rem; }
}

/* ---------- Home: the ward board ---------- */

.board-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.board-head p { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 32px; }
.segmented {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px;
  background: color-mix(in oklch, var(--ink) 5%, transparent);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: 0.875rem; color: var(--muted); white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgb(28 20 36 / 0.08), 0 0 0 1px rgb(28 20 36 / 0.04); }

/* Dropdown: the native select stays as the value; this draws it as a rounded popover */
.dd { position: relative; display: inline-flex; }
.dd-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dd-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.dd-button .icon { width: 16px; height: 16px; color: var(--muted); }
.dd-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-pill { height: 44px; min-width: 168px; padding: 0 14px 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.875rem; }
.dd-pill:hover { border-color: color-mix(in oklch, var(--ink) 30%, transparent); }
.dd-field { min-height: 48px; padding: 12px 14px; border-radius: var(--r-control); background: var(--bg); border: 1px solid var(--line); font-size: 1rem; }
.dd-field:hover { border-color: color-mix(in oklch, var(--ink) 25%, transparent); }
.dd-button[aria-expanded="true"], .dd-button:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 14%, transparent); }
.field .dd { display: flex; }

.dd-list {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-height: 300px; overflow: auto;
  padding: 6px; border-radius: 16px;
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 1px rgb(28 20 36 / 0.08), 0 18px 40px -12px rgb(28 20 36 / 0.25), 0 4px 10px -4px rgb(28 20 36 / 0.1);
  transform-origin: top center;
  animation: dd-in 0.16s var(--ease);
}
.dd-list.up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
@supports not (backdrop-filter: blur(1px)) { .dd-list { background: var(--surface); } }
@keyframes dd-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-option {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 9px 10px 9px 12px; border-radius: 10px; font-size: 0.9375rem; cursor: pointer; white-space: nowrap; user-select: none;
}
.dd-option .icon { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.25; visibility: hidden; }
.dd-option[aria-selected="true"] { font-weight: 500; }
.dd-option[aria-selected="true"] .icon { visibility: visible; }
.dd-option.is-active { background: var(--accent-soft); color: var(--accent-strong); }

/* bots fill every field; people never see this one */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.board-cols, .row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px 150px 24px; align-items: center; gap: 24px;
}
.board-cols { padding: 0 16px 12px; font-size: 0.8125rem; color: var(--muted); border-bottom: 1px solid var(--ink); }
.board-cols span:nth-child(4) { text-align: right; }
.board li { border-bottom: 1px solid var(--line); }
.row { padding: 28px 16px; margin-inline: -0px; border-radius: 0; transition: background-color 0.25s; }
.row:hover { background: var(--accent-soft); }
.row-type { font-size: 0.875rem; color: var(--accent); font-weight: 500; }
.row-title { display: block; font: 400 clamp(1.625rem, 2.6vw, 2.125rem)/1.1 var(--serif); letter-spacing: -0.01em; }
.row-inst { display: block; margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.row-meta { font-size: 0.9375rem; color: var(--muted); }
.row-fee { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.0625rem; }
.row-fee small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.row .icon { width: 22px; height: 22px; color: var(--accent); transition: transform 0.3s var(--ease); }
.row:hover .icon { transform: translateX(4px); }

@media (max-width: 900px) {
  .board-cols { display: none; }
  .board { border-top: 1px solid var(--ink); }
  .row { grid-template-columns: 1fr auto; grid-template-areas: "type fee" "main main" "meta arrow"; gap: 10px 16px; padding: 24px 4px; }
  .row-type { grid-area: type; }
  .row-fee { grid-area: fee; }
  .row-main { grid-area: main; }
  .row-meta { grid-area: meta; }
  .row .icon { grid-area: arrow; }
  .row-fee small { display: inline; margin-left: 4px; }
}

.empty { padding: 72px 0 24px; text-align: center; }
.empty .h2 { margin-bottom: 12px; }
.empty p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 600px) {
  .filters .segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .filters .dd { flex: 1; }
  .filters .dd-pill { min-width: 0; }
}

/* ---------- Dark band ---------- */

.band { background: var(--ink); color: #f4f0f8; }
.band-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px 64px; padding-block: clamp(64px, 9vw, 120px); }
.band p { color: #bdb3c8; margin-top: 16px; max-width: 44ch; }
@media (max-width: 760px) { .band-inner { grid-template-columns: 1fr; } }

/* ---------- Program detail ---------- */

.back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--muted); margin-top: 32px; padding: 6px 0; transition: color 0.2s; }
.back:hover { color: var(--ink); }
.back .icon { transition: transform 0.25s var(--ease); }
.back:hover .icon { transform: translateX(-3px); }

.detail-head { padding-block: clamp(32px, 5vw, 64px) clamp(32px, 5vw, 56px); }
.detail-head .lead { margin-top: 20px; color: var(--ink); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: var(--section); }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.facts div { padding: 20px 16px 20px 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: 0.8125rem; color: var(--muted); margin-bottom: 4px; }
.facts dd { font-weight: 500; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.detail-block { margin-top: clamp(48px, 6vw, 72px); }
.detail-block > h2 { margin-bottom: 20px; }
.lines li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 20px 1fr; gap: 14px; }
.lines li:first-child { border-top: 1px solid var(--line); }
.lines li::before { content: ""; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 50%; background: var(--accent); justify-self: center; }
.included { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 24px; color: var(--muted); }
.included li { padding: 12px 0; border-top: 1px solid var(--line); }

.apply-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--surface); border-radius: var(--r-panel); padding: 32px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -32px rgb(28 20 36 / 0.25);
}
.price { font: 400 3rem/1 var(--serif); font-variant-numeric: lining-nums; }
.price-unit { color: var(--muted); margin-top: 6px; }
.apply-card .note { margin-block: 24px; padding-block: 20px; border-block: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.apply-card .note strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.apply-card .ask { margin-top: 20px; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* ---------- Forms ---------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.form-layout .lead { margin-top: 24px; }
.form-aside-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-panel { background: var(--surface); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 40px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -36px rgb(28 20 36 / 0.25); }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-control);
  background: var(--bg); border: 1px solid var(--line); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: color-mix(in oklch, var(--ink) 25%, transparent); }
.field input:focus, .field textarea:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 14%, transparent); }
.field input:user-invalid { border-color: var(--danger); }
.form-error { font-size: 0.9375rem; color: var(--danger); padding: 12px 14px; border-radius: var(--r-control); background: color-mix(in oklch, var(--danger) 7%, var(--surface)); }
.form-fine { font-size: 0.8125rem; color: var(--muted); text-align: center; }

.success { padding: 24px 0; }
.success-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 24px; }
.success-mark .icon { width: 24px; height: 24px; stroke-width: 2; }
.success .h2 { margin-bottom: 12px; }
.success p { color: var(--muted); margin-bottom: 28px; max-width: 40ch; }

/* ---------- Columns (benefits, routes) ---------- */

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.col { padding-top: 24px; border-top: 1px solid var(--ink); }
.col .h3 { margin-bottom: 10px; }
.col p { color: var(--muted); }
.col .link { display: inline-block; margin-top: 16px; }
@media (max-width: 860px) { .cols, .cols-2 { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Steps (real sequences only) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 400 3.5rem/1 var(--serif); color: var(--accent); margin-bottom: 20px; }
.steps .h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.section-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title p { color: var(--muted); max-width: 44ch; }

/* ---------- Providers ---------- */

.track-switch { margin-top: 40px; }
.track-panel { animation: page-in 0.3s var(--ease); }

/* ---------- Partners ---------- */

.partner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 56px); padding-block: 40px; border-top: 1px solid var(--line); }
.partner:last-child { border-bottom: 1px solid var(--line); }
.partner .kicker { margin-bottom: 10px; }
.partner .h2 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); }
.partner .rating { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.partner dt { font-size: 0.8125rem; color: var(--muted); margin-bottom: 4px; }
.partner dd + dt { margin-top: 16px; }
.partner-programs a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.partner-programs a:first-child { padding-top: 0; }
.partner-programs a:hover { color: var(--accent); }
.partner-programs span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 960px) { .partner { grid-template-columns: 1fr 1fr; } .partner > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .partner { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.mail-big {
  display: inline-block; font: 400 clamp(2rem, 6vw, 4.5rem)/1.05 var(--serif); letter-spacing: -0.015em;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; transition: border-color 0.25s, color 0.25s;
  overflow-wrap: anywhere;
}
.mail-big:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid p { color: var(--muted); font-size: 0.9375rem; max-width: 34ch; margin-top: 16px; }
.footer-grid h2 { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a:not(.brand) { font-size: 0.9375rem; transition: color 0.2s; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--muted); }
.footer-base a:hover { color: var(--ink); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Not found ---------- */

.notfound { padding-block: clamp(80px, 14vw, 180px); }
.notfound .lead { margin-block: 24px 40px; }

/* ---------- Motion off ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.steps-label { margin-bottom: 32px; }
.prose-actions { margin-top: 32px; }
.band-gap { margin-top: var(--section); }
