/* Kaniq website: trail-map world. Brand palette and faces from the Kaniq Brand Kit. */

@font-face { font-family: "Poppins"; src: url("../fonts/Poppins_500Medium.woff2") format("woff2"), url("../fonts/Poppins_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins_600SemiBold.woff2") format("woff2"), url("../fonts/Poppins_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/PublicSans_400Regular.woff2") format("woff2"), url("../fonts/PublicSans_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/PublicSans_600SemiBold.woff2") format("woff2"), url("../fonts/PublicSans_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/PublicSans_700Bold.woff2") format("woff2"), url("../fonts/PublicSans_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #00183B;
  --navy-2: #0B2754;
  --snow: #E9EEF7;
  --snow-2: #DCE4F2;
  --cream: #F6F3EE;
  --white: #FFFFFF;
  --amber: #E8B37F;
  --amber-ink: #8A5527;
  --peri: #8AA2D0;
  --plum: #614573;
  --ink: #00183B;
  --ink-body: #3B4256;
  --ink-soft: #56607A;
  --on-navy: #F6F3EE;
  --on-navy-2: #B8C6E3;
  --line: rgba(138, 162, 208, 0.45);
  --line-strong: #C5D1E8;
  --ink-placeholder: #6A7389;
  --plum-mist: #E3D4EC;
  --goal-ink: #5A3412;
  --bezel: #0B0F18;

  --f-display: "Poppins", "Segoe UI", sans-serif;
  --f-text: "Public Sans", "Segoe UI", sans-serif;

  --r-plate: 8px;
  --r-control: 14px;
  --r-frame: 28px;
  --r-notch: 2px;
  --r-focus: 6px;
  --r-note: 10px;
  --r-icon: 12px;
  --r-device: 34px;
  --r-device-screen: 26px;
  --r-device-sm: 24px;
  --r-device-screen-sm: 19px;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section-pad: clamp(56px, 8vh, 112px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  overflow-x: clip;
  margin: 0; background: var(--snow); color: var(--ink-body);
  font: 400 17px/1.6 var(--f-text); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--navy); }
:focus-visible { outline: 2.5px solid var(--plum); outline-offset: 3px; border-radius: var(--r-focus); }
.on-navy :focus-visible { outline-color: var(--amber); }
html { scrollbar-color: var(--peri) var(--snow); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 4.3vw, 4rem); line-height: 1.04; letter-spacing: -0.025em; }
.nw { white-space: nowrap; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.005em; }
.lede { font-size: clamp(1.06rem, 1.3vw, 1.22rem); line-height: 1.55; color: var(--ink-body); max-width: 34em; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: var(--on-navy); padding: 12px 18px; border-radius: var(--r-control); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Links */
.link { color: var(--plum); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--plum) 35%, transparent); transition: text-decoration-color 180ms ease; }
.link:hover { text-decoration-color: var(--plum); }
/* A standalone link gets a 44px tap area without moving the text around it. */
.data-foot .link { display: inline-block; padding: 12px 0; margin: -12px 0; }
.on-navy .link { color: var(--amber); text-decoration-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.on-navy .link:hover { text-decoration-color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: var(--r-control); border: 0;
  font: 600 1rem/1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--navy); color: var(--on-navy); box-shadow: 0 1px 0 rgba(0,24,59,.12), 0 6px 16px -8px rgba(0,24,59,.45); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.on-navy .btn-ghost { color: var(--on-navy); box-shadow: inset 0 0 0 1.5px var(--on-navy-2); }
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 2px 0 rgba(0,24,59,.1), 0 12px 24px -12px rgba(0,24,59,.55); }
  .btn-ghost:hover { background: rgba(0,24,59,.05); transform: translateY(-1px); }
  .on-navy .btn-ghost:hover { background: rgba(246,243,238,.08); }
  .btn:hover svg { transform: translateX(3px); }
  .btn:active { transform: scale(0.97); }
}
.btn[aria-busy="true"] { opacity: .72; cursor: progress; }

/* Header */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
/* The frosted bar lives on a pseudo-element: a backdrop-filter on .site-head itself would
   become the containing block of the fixed mobile menu and collapse it to the bar's height. */
.site-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(233, 238, 247, 0.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.site-head.is-stuck::before, .site-head.menu-open::before { opacity: 1; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--navy); text-decoration: none; padding: 6px 0; }
.brand svg { width: 92px; height: auto; }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 12px 0; transition: color 160ms ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out); }
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }
.head-right { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.lang button { min-width: 44px; min-height: 38px; border: 0; background: none; border-radius: 999px; font: 700 0.8rem/1 var(--f-text); letter-spacing: .06em; color: var(--ink-soft); cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
.site-head .btn { min-height: 46px; padding: 0 20px; font-size: 0.94rem; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: var(--r-icon); background: none; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }
.mobile-menu { display: none; }

@media (max-width: 980px) {
  .nav, .site-head .head-right .btn { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .mobile-menu { position: fixed; inset: 76px 0 0 0; z-index: 49; background: var(--snow); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  .mobile-menu.open { opacity: 1; transform: none; visibility: visible; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
  .mobile-menu a:not(.btn) { font: 600 1.5rem/1.2 var(--f-display); color: var(--navy); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 24px; }
}

/* Sections */
main > section { position: relative; padding: var(--section-pad) 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
main > section > .wrap { width: 100%; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }

/* Hero */
.hero { padding: 76px 0 0 !important; min-height: 100svh; display: flex; align-items: stretch; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); gap: clamp(24px, 3vw, 48px); align-items: center; padding-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(32px, 5vh, 56px); }
.hero-copy { display: grid; gap: 22px; position: relative; z-index: 2; }
.hero-copy h1 { max-width: 11.5em; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; max-width: 540px; }
.signup .form-status { flex-basis: 100%; }
.signup .form-status:empty { display: none; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; flex: 1; min-width: 0; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: 54px; border-radius: var(--r-control); border: 1.5px solid var(--line-strong); background: var(--white);
  padding: 14px 16px; font-size: 1rem; color: var(--ink); caret-color: var(--plum); transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-placeholder); }
.field input:hover, .field textarea:hover { border-color: var(--peri); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(138,162,208,.35); }
.field[data-invalid] input { border-color: #9F3A2E; }
.field-error { font-size: 0.86rem; color: #9F3A2E; font-weight: 600; min-height: 0; }
.signup .field { flex: 1 1 260px; }
.signup .btn { align-self: end; }
.facts-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: var(--ink-soft); }
.facts-line li { display: inline-flex; align-items: center; gap: 8px; }
.facts-line li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px var(--navy) inset; }
.form-status { font-size: 0.95rem; font-weight: 600; color: #2F6B4F; min-height: 1.5em; }
.form-status[data-state="error"] { color: #9F3A2E; }

/* People hero: two real app screens on the topo ground */
.hero-phones { position: relative; align-self: stretch; min-height: 600px; display: flex; align-items: center; justify-content: center; }
.hero-ground { position: absolute; inset: -40px -20px -40px -120px; background: url("../brand/topo-hero.svg") center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--navy) 22%); mask-image: linear-gradient(90deg, transparent 0, var(--navy) 22%); pointer-events: none; }
.hero-phones .phone { flex: none; width: clamp(210px, 18vw, 270px); }
.hp-back { transform: translate(14%, -5%) rotate(-4deg); z-index: 1; }
.hp-front { transform: translate(-14%, 6%) rotate(3deg); z-index: 2; }

/* Plan demo (section two): the copy on the left, the trail map on the right */
.plan-demo .wrap { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.plan-copy { display: grid; gap: 18px; position: relative; z-index: 2; }
/* The section sits under the fixed 76px header, so it fills the rest of the screen. */
.plan-demo { min-height: calc(100svh - 76px); scroll-margin-top: 76px; overflow: hidden; }
@media (min-width: 901px) {
  /* Like the old hero: the map stretches to the screen so its plan panel stays in view. */
  .plan-demo { padding: 0; }
  .plan-demo .wrap { flex: 1; align-items: stretch; padding-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(32px, 5vh, 56px); }
  .plan-copy { align-self: center; }
}

/* Map */
.map { position: relative; align-self: stretch; min-height: 660px; margin-right: calc(-1 * var(--gutter)); }
.map-ground { position: absolute; inset: -40px -20px -40px -120px; background: url("../brand/topo-hero.svg") center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--navy) 22%); mask-image: linear-gradient(90deg, transparent 0, var(--navy) 22%); }
.map-canvas { position: absolute; inset: 0; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-ahead { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-dasharray: 1.5 9; stroke-linecap: round; }
.route-walked { fill: none; stroke: var(--amber); stroke-width: 6; stroke-linecap: round; }
.route-base { fill: none; stroke: var(--white); stroke-width: 12; stroke-linecap: round; opacity: .7; }
.here-dot { fill: var(--amber); stroke: var(--navy); stroke-width: 3; }
.here-ring { fill: none; stroke: var(--amber); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.8s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(2.2); opacity: 0; } }
.here-label { position: absolute; font: 700 0.74rem/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); white-space: nowrap; transform: translate(-50%, 18px); }

.stops { position: absolute; inset: 0; }
.stop { position: absolute; display: flex; align-items: center; gap: 10px; transform: translate(-11px, -50%); transition: left 640ms var(--ease-in-out), top 640ms var(--ease-in-out), opacity 300ms ease; }
.stop-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--snow); border: 3px solid var(--navy); }
.stop[data-done] .stop-dot { background: var(--amber); }
.stop[data-new] .stop-dot { border-color: var(--plum); background: var(--white); }
.plate { position: relative; background: var(--navy); color: var(--on-navy); border-radius: var(--r-plate); padding: 8px 13px 9px; box-shadow: 0 1px 0 rgba(0,24,59,.25), 0 10px 22px -14px rgba(0,24,59,.7); min-width: 168px; }
.plate-what, .plate-how { white-space: nowrap; }
.plate::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: var(--r-notch); }
.plate-when { display: block; font: 700 0.7rem/1.2 var(--f-text); letter-spacing: .09em; text-transform: uppercase; color: var(--on-navy-2); }
.plate-what { display: block; font: 600 0.98rem/1.25 var(--f-display); margin-top: 3px; }
.plate-how { display: block; font-size: 0.84rem; line-height: 1.35; color: #E2E7F2; margin-top: 2px; }
.stop[data-new] .plate { background: var(--plum); }
.stop[data-new] .plate-when { color: var(--plum-mist); }
.stop.goal .plate { background: var(--amber); color: var(--navy); }
.stop.goal .plate-when { color: var(--goal-ink); }
.stop.goal .plate-how { color: var(--navy); }
.stop.goal .stop-dot { background: var(--amber); }

.map-panel { position: absolute; left: 0; top: calc(72% + 36px); width: min(440px, 64%); background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 18px; padding: 16px 18px 18px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(0,24,59,.5); display: grid; gap: 12px; }
.map-panel-title { font: 600 0.98rem/1.3 var(--f-display); color: var(--navy); }
.map-panel-note { display: block; margin-top: 2px; font: 400 0.8rem/1.4 var(--f-text); color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--white); font: 600 0.88rem/1 var(--f-text); color: var(--navy); cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--navy); } }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.update { font-size: 0.88rem; line-height: 1.45; color: var(--ink-body); border-radius: var(--r-note); padding: 9px 12px; min-height: calc(2 * 1.45em + 18px); background: var(--snow); transition: background-color 220ms ease; }
.update[data-state="changed"] { background: #EFE8F3; color: var(--navy); }
.update b { color: var(--plum); }
.update[hidden] { display: none; }
.total { display: flex; align-items: baseline; gap: 10px; color: var(--navy); }
.total strong { font: 600 1.7rem/1 var(--f-display); letter-spacing: -0.01em; }
.total span { font-size: 0.88rem; color: var(--ink-soft); }

/* Hero entrance (once) */
.js [data-enter] { opacity: 0; transform: translateY(10px); }
.js .entered [data-enter] { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }

/* Section: the questions */
.questions .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.questions p + p { margin-top: 16px; }
.post { position: relative; aspect-ratio: 5 / 4.4; }
.post svg { width: 100%; height: 100%; }
.post-plate { font: 600 20px var(--f-display); fill: var(--on-navy); }
.post-lead { font: 600 20px var(--f-display); fill: var(--navy); }
.post-num { font: 600 15px var(--f-display); fill: var(--navy); }
.stat { margin-top: 28px; display: flex; gap: 18px; align-items: baseline; padding-top: 22px; border-top: 1px solid var(--line); }
.stat strong { font: 600 clamp(2.4rem, 4vw, 3.4rem)/1 var(--f-display); color: var(--navy); letter-spacing: -0.02em; white-space: nowrap; }
.stat { align-items: center; }
.stat-label { font-size: 0.98rem; line-height: 1.45; color: var(--ink-body); max-width: 17em; text-wrap: balance; }
sup a { display: inline-block; color: var(--plum); text-decoration: none; font-weight: 700; padding: 0 3px; line-height: 1.2; }

/* Section: how it works */
.how { background: var(--cream); }
.trail { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); }
.trail-step .phone { width: min(100%, 200px); }
.trail::before { content: ""; position: absolute; left: 8%; right: 8%; top: 31%; border-top: 2.5px dashed var(--peri); }
.trail-step { position: relative; display: grid; gap: 14px; align-content: start; }
.trail-step .phone { justify-self: start; }
.trail-step h3 { display: flex; gap: 12px; align-items: baseline; }
.trail-step h3 .n { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font: 600 0.92rem/1 var(--f-display); transform: translateY(-2px); }
.trail-step p { font-size: 0.98rem; color: var(--ink-body); max-width: 26em; }
.phone { position: relative; width: min(100%, 250px); aspect-ratio: 540 / 1110; border-radius: var(--r-device); background: var(--bezel); padding: 9px; box-shadow: 0 2px 0 rgba(0,24,59,.08), 0 30px 50px -30px rgba(0,24,59,.55); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: var(--r-device-screen); background: var(--cream); }
.how-foot { margin-top: clamp(36px, 5vh, 56px); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Section: film */
.film { background: var(--navy); color: var(--on-navy); }
.film h2 { color: var(--on-navy); }
.film .lede { color: var(--on-navy-2); }
.film-frame { position: relative; border-radius: var(--r-frame); overflow: hidden; background: var(--bezel); aspect-ratio: 16 / 9; width: min(100%, calc((100svh - 360px) * 16 / 9)); min-width: min(100%, 560px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
/* The native controls live in the video's shadow tree; ring the frame while a keyboard user is inside. */
.film-frame { outline: 0 solid transparent; outline-offset: 4px; }
.kbd .film-frame:focus-within { outline: 2.5px solid var(--amber); }
video::cue { background: rgba(0, 24, 59, 0.86); color: var(--cream); font-family: var(--f-text); line-height: 1.35; }
.film-ground { position: absolute; inset: 0; background: url("../brand/topo-band.svg") center / cover no-repeat; opacity: .22; pointer-events: none; }
.film .wrap { position: relative; }

/* Section: independent */
.indep .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.indep-phones { display: flex; gap: clamp(16px, 2.4vw, 32px); align-items: flex-start; }

.indep-list { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.indep-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink-body); }
.indep-list li b { color: var(--ink); font-weight: 600; }
.indep-list svg { width: 22px; height: 22px; color: var(--plum); margin-top: 2px; }
.fineprint { margin-top: 18px; font-size: 0.88rem; color: var(--ink-soft); }

/* Section: data (navy band of facts) */
.data { background: var(--navy); color: var(--on-navy); overflow: hidden; }
.data h2 { color: var(--on-navy); }
.data .lede { color: var(--on-navy-2); }
.data-ground { position: absolute; inset: 0; background: url("../brand/topo-band.svg") center / cover no-repeat; opacity: .18; pointer-events: none; }
.data .wrap { position: relative; }
.band { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid rgba(184,198,227,.3); }
.band li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(184,198,227,.3); }
.band b { display: flex; align-items: center; gap: 14px; font: 600 1.15rem/1.3 var(--f-display); color: var(--on-navy); }
.band b::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); box-shadow: inset 0 0 0 4px var(--navy), 0 0 0 1.5px var(--amber); }
.band span { font-size: 1rem; color: var(--on-navy-2); line-height: 1.5; }
.data-foot { margin-top: 32px; }

/* Section: institutions teaser */
.inst .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.inst-points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.inst-points li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.inst-points b { font: 600 1.08rem/1.3 var(--f-display); color: var(--ink); }
.inst-points span { font-size: 0.96rem; color: var(--ink-body); }
.inst .btn { margin-top: 28px; }

/* Close */
.close { background: var(--cream); overflow: hidden; }
.close-ground { position: absolute; inset: 0; background: url("../brand/topo-hero.svg") right center / cover no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 30%, var(--navy) 75%); mask-image: linear-gradient(90deg, transparent 30%, var(--navy) 75%); pointer-events: none; }
.close .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.close-form { background: var(--white); border-radius: 22px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(0,24,59,.5); display: grid; gap: 18px; }
.close-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.close-form .btn { justify-self: start; }
.opt { font-weight: 400; color: var(--ink-soft); }

/* Footer */
.site-foot { background: var(--navy); color: var(--on-navy-2); padding: 64px 0 36px; font-size: 0.94rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(184,198,227,.25); }
.foot-top .brand { color: var(--on-navy); }
.foot-top p { margin-top: 14px; max-width: 26em; }
.foot-col h3 { font: 700 0.78rem/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-2); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--on-navy); text-decoration: none; padding: 10px 0; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { padding-top: 24px; display: grid; gap: 10px; font-size: 0.84rem; }
.foot-bottom p { max-width: 70em; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-enter] { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .questions .wrap, .indep .wrap, .inst .wrap, .close .wrap { grid-template-columns: minmax(0, 1fr); }
  .post { max-width: 520px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .plan-demo .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-phones { min-height: 520px; }
  .hero-ground { inset: 0 calc(-1 * var(--gutter)); -webkit-mask-image: none; mask-image: none; }
  .map { margin: 0 calc(-1 * var(--gutter)); min-height: 620px; }
  .map-ground { inset: 0; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 820px) {
  .trail { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .trail::before { display: none; }
  .trail-step { grid-template-columns: minmax(0, 30%) minmax(0, 1fr); column-gap: 20px; row-gap: 8px; align-items: start; }
  .trail-step .phone { grid-row: 1 / span 2; width: 100%; }
  .trail-step h3 { align-self: end; margin-top: 12px; }
  .band li { grid-template-columns: minmax(0, 1fr); }
  .band span { padding-left: 30px; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Large text settings: let button labels wrap instead of pushing the page sideways. */
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; max-width: 100%; }
  .signup { flex-direction: column; }
  .signup .field { flex: none; }
  .signup .btn, .close-form .btn { width: 100%; justify-self: stretch; }
  .map { min-height: 0; display: grid; gap: 0; }
  .map-canvas { position: relative; height: 210px; margin: 0 var(--gutter); }
  .map-ground { inset: 0 0 auto 0; height: 250px; }
  .hero .wrap { padding-top: 16px; gap: 14px; }
  .hero-copy { gap: 14px; }
  .hero h1 { font-size: 2.15rem; }
  .hero .lede { font-size: 1rem; }
  .facts-line { gap: 4px 14px; font-size: 0.84rem; }
  .stops .plate { display: none; }
  .here-label { transform: translate(-12px, 16px); }
  .map-panel { position: relative; left: auto; top: auto; bottom: auto; width: auto; margin: 8px var(--gutter) 0; }
  .route-list { display: grid !important; }
  .close-form .row { grid-template-columns: minmax(0, 1fr); }
  .indep-phones .phone { width: 46%; }
  .trail { gap: 32px; }
}
.route-list { display: none; margin: 18px var(--gutter) 0; gap: 0; counter-reset: s; }
.route-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.route-list li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font: 600 0.85rem/1 var(--f-display); }
.route-list li[data-new]::before { background: var(--plum); }
.route-list li.goal::before { content: ""; background: var(--amber); box-shadow: inset 0 0 0 3px var(--navy); }
.route-list b { display: block; font: 600 1rem/1.3 var(--f-display); color: var(--navy); }
.route-list span { font-size: 0.88rem; color: var(--ink-body); }

/* Institutions page */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.map-static .stops { pointer-events: none; }
.ways-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.way { display: grid; gap: 12px; align-content: start; padding: 28px 0 8px; border-top: 2.5px solid var(--navy); }
.way h3::before { content: ""; display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--snow); border: 3px solid var(--navy); margin-bottom: 16px; }
.way:first-child h3::before { background: var(--amber); }
.way h3 { font-size: 1.5rem; }
.way p { color: var(--ink-body); max-width: 30em; }
.ways-note { margin-top: 32px; max-width: 46em; color: var(--ink-soft); font-size: 0.98rem; }
.inst-close { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; }
@media (max-width: 820px) { .ways-grid { grid-template-columns: minmax(0, 1fr); } .inst-close { grid-template-columns: minmax(0, 1fr) !important; } }

.inst-map { position: relative; min-height: 420px; margin-right: 0; }
.inst-map .map-ground { inset: 0; -webkit-mask-image: radial-gradient(closest-side, var(--navy) 60%, transparent); mask-image: radial-gradient(closest-side, var(--navy) 60%, transparent); }

@media (max-width: 640px) {
  .stat strong { font-size: 1.9rem; }
  .inst-map { margin: 0 calc(-1 * var(--gutter)); }
}
@media (max-width: 380px) {
  .brand svg { width: 76px; }
  .lang button { min-width: 40px; }
  .head-right { gap: 6px; }
}

/* Phone hero: headline, then the route, then the offer */
@media (max-width: 640px) {
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy, .hero .map { display: contents; }
  .hero h1 { order: 1; }
  .hero .map-canvas { order: 2; margin: 0 calc(-1 * var(--gutter)); height: 220px; background: url("../brand/topo-hero.svg") 70% 30% / 900px auto no-repeat; }
  .hero .map-ground { display: none; }
  .hero .lede { order: 3; }
  .hero .signup { order: 4; }
  .hero .hero-actions { order: 4; }
  .hero .facts-line { order: 5; }
  .hero .map-panel { order: 6; margin: 8px 0 0; }
  .hero .route-list { order: 7; margin: 4px 0 0; }
  .hero-inst .route-list { order: 6; }
}

/* Phone: people hero reads headline, sentence, the two screens, then the form */
@media (max-width: 640px) {
  .hero-people .lede { order: 2; }
  .hero-phones { order: 3; min-height: 0; height: 280px; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; align-items: flex-start; padding-top: 18px; }
  .hero-ground { inset: 0; }
  .hero-phones .phone { width: 150px; padding: 6px; border-radius: var(--r-device-sm); }
  .hero-phones .phone img { border-radius: var(--r-device-screen-sm); }
  .plan-demo .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .plan-demo .map { display: contents; }
  .plan-demo .map-canvas { margin: 0 calc(-1 * var(--gutter)); height: 220px; background: url("../brand/topo-hero.svg") 70% 30% / 900px auto no-repeat; }
  .plan-demo .map-ground { display: none; }
  .plan-demo .map-panel { margin: 8px 0 0; }
  .plan-demo .route-list { margin: 4px 0 0; }
}

@media (max-height: 959px) and (min-width: 901px) {
  .map { min-height: 600px; }
  .map-panel { top: calc(62% + 30px); }
}
