/* Denzia. "The folded route": the logo's Z is a ribbon folded twice; the page is that ribbon,
   folding into each cobalt band and out again. Flat two-tone shapes only, never a gradient. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-800.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/fonts/figtree-600.woff2") format("woff2"); }

:root {
  --cobalt: #1e3fc1;
  --cobalt-deep: #1833a0;
  --peri: #819afd;
  --mist: #eef2fe;
  --ink: #111216;
  --text: #2f333d;
  --muted: #555b68;
  --line: #dde2ee;
  --surface: #f3f4f6;
  --caution: #fde7e4;
  --on-cobalt: #dbe2fb;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 74rem;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(17 18 22 / 0.06), 0 16px 32px -20px rgb(17 18 22 / 0.4);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); max-width: 13ch; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 4vw, 2.875rem); line-height: 1.08; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 3px; }
abbr { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 0.75rem; z-index: 20; }

/* Header: logo, section links, one action. Phones get the links as a second row; from 900px it is one sticky bar. */
.top { position: relative; z-index: 10; padding: 0.75rem 0; background: #fff; border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.js .home .top:not(.is-stuck) { border-bottom-color: transparent; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; }
.top__logo { display: flex; align-items: center; min-height: 2.75rem; }
.top img { display: block; width: 112px; height: auto; }
.top__nav { order: 3; display: flex; justify-content: space-between; width: calc(100% + 2.5rem); margin: 0.75rem -1.25rem -0.75rem; padding: 0 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.top__nav a { display: flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; color: var(--text); text-decoration: none; transition: color 0.15s; }
.top__nav a:hover { color: var(--cobalt); }
/* The section on screen, marked the way the route card marks its tab. */
.top__nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--cobalt); }
.top__cta { display: flex; align-items: center; min-height: 2.75rem; padding: 0 1.125rem; border-radius: 10px; background: var(--cobalt); color: #fff; font-weight: 600; font-size: 0.9375rem; text-decoration: none; transition: background-color 0.15s; }
.top__cta:hover { background: var(--cobalt-deep); }

/* Hero */
.hero { padding: 2rem 0 3rem; overflow: hidden; }
.hero__grid { display: grid; gap: 3rem; }
.eyebrow { margin-bottom: 0.875rem; font-weight: 600; font-size: 0.875rem; color: var(--cobalt); }
.lede { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 36rem; color: var(--text); }
.purposes { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.purposes li { padding: 0.3rem 0.625rem; border-radius: 8px; background: var(--mist); }
.purposes b { margin-left: 0.2em; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.proof { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; margin: 1.5rem 0 0; padding: 0; font-size: 0.9375rem; color: var(--muted); }
.proof b { color: var(--ink); font-variant-numeric: tabular-nums; }

.signup { margin-top: 1.75rem; max-width: 31rem; }
.signup label { display: block; color: var(--ink); font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.5rem; }
.field { display: flex; flex-direction: column; gap: 0.625rem; }
.field input { font: inherit; color: var(--ink); min-height: 3.25rem; padding: 0 1rem; border: 1.5px solid #b9c0d0; border-radius: 10px; background: #fff; width: 100%; }
.field input:focus-visible { outline-offset: 1px; border-color: var(--cobalt); }
.field button { font: inherit; font-weight: 600; min-height: 3.25rem; padding: 0 1.5rem; color: #fff; background: var(--cobalt); border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background-color 0.15s; }
.field button:hover { background: var(--cobalt-deep); }
.field button[disabled] { opacity: 0.7; cursor: progress; }
.note { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.note a { white-space: nowrap; display: inline-block; padding: 0.8125rem 0; margin: -0.8125rem 0; }
.status { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink); font-weight: 600; }
.status:empty { display: none; }
.status.error { color: #b42318; }
.status.joined { display: flex; align-items: center; gap: 0.75rem; }
.status.joined::before { content: ""; flex: none; width: 4rem; height: 4rem; background: url(/img/mascot/celebrate.webp) center / contain no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero: one card holding five real routes. Radios switch the panel with :has(); without it the routes are listed. */
.hero__stack { position: relative; min-width: 0; margin-top: 1rem; --over: 1.25rem; --right: 1.25rem; }
/* The ribbon: the mark's Z, folded round the card. Its lower bar carries the caption. */
.ribbon { position: absolute; top: -1rem; left: calc(-1 * var(--over)); width: calc(100% + var(--over) + var(--right)); height: calc(100% + 1.5rem); }
.ribbon__top, .ribbon__bottom { fill: var(--cobalt); }
.ribbon__crease { fill: var(--peri); }
.deck__more { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; margin-top: 0.25rem; padding: 0 1rem; font-size: 0.875rem; font-weight: 600; color: var(--on-cobalt); }
.deck__more a { display: inline-flex; align-items: center; gap: 0.35em; min-height: 2.75rem; color: #fff; }
.deck__more a:focus-visible { outline-color: #fff; }
.deck__more svg { width: 0.75em; height: 0.75em; flex: none; }
.deck { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.deck__tabs { display: none; }
.deck__panels { position: relative; display: grid; }
.route { min-width: 0; display: flex; flex-direction: column; }
.route + .route { border-top: 1px solid var(--line); }
/* The photo takes up the slack, so a route with a shorter name gets a taller photo instead of a gap. */
.route__photo { flex: 1; display: block; padding: 0.75rem 0.75rem 0; }
.route__photo img { display: block; width: 100%; height: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; }
.route__body { padding: 1rem 1.25rem 0.875rem; }
.route__country { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.flag { display: block; width: 1.5rem; height: auto; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgb(17 18 22 / 0.12); }
.route__name { margin-top: 0.375rem; font-size: 1.5rem; line-height: 1.15; }
.route__facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0.875rem 0; }
.route__facts div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.route__facts dt { font-size: 0.8125rem; color: var(--muted); }
.route__facts dd { margin: 0; color: var(--ink); font: 700 1.125rem/1.3 var(--display); font-variant-numeric: tabular-nums; }
.route__match { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0 0 0.875rem; padding: 0.5rem 0.625rem; border-radius: 10px; background: var(--mist); font-size: 0.8125rem; line-height: 1.4; color: var(--text); }
.route__match--no { background: var(--caution); }
.route__match svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--cobalt); }
.route__match b { color: var(--ink); }
.route__meta { padding-top: 0.25rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1rem; }
/* The link is a full-height touch target, not just its text. */
.route__meta span:first-child { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.4em; }
.route__meta a { display: inline-flex; align-items: center; gap: 0.3em; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
.route__meta a:hover { text-decoration: underline; }
.route__meta svg { width: 0.75em; height: 0.75em; flex: none; }
/* The photo's corner, folded like the mark: flat, two tones. */
.deck__fold { position: absolute; top: 0.75rem; right: 0.75rem; width: 3.25rem; height: 3.25rem; pointer-events: none; }
.deck__cut { fill: #fff; }
.deck__flap { fill: var(--cobalt); }
.deck__tip { fill: var(--peri); }
@supports selector(:has(*)) {
  /* Phones: five equal segments with country codes, nothing scrolls out of sight. From 640px: the names. */
  .deck__tabs { display: flex; min-width: 0; margin: 0; padding: 0 0.75rem; border: 0; border-bottom: 1px solid var(--line); }
  .tab { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 3rem; font-weight: 600; font-size: 0.9375rem; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color 0.15s; }
  .tab__code { display: flex; align-items: center; gap: 0.375rem; }
  .tab__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tab input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .tab:hover { color: var(--ink); }
  .tab:has(input:checked) { color: var(--ink); box-shadow: inset 0 -3px 0 var(--cobalt); }
  .tab:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: -3px; border-radius: 6px; }
  /* All panels share one grid cell, so the card keeps the tallest panel's height and switching never shifts the page. */
  .route { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
  .route + .route { border-top: 0; }
  .deck:has(.tab:nth-of-type(1) input:checked) .route:nth-of-type(1),
  .deck:has(.tab:nth-of-type(2) input:checked) .route:nth-of-type(2),
  .deck:has(.tab:nth-of-type(3) input:checked) .route:nth-of-type(3),
  .deck:has(.tab:nth-of-type(4) input:checked) .route:nth-of-type(4),
  .deck:has(.tab:nth-of-type(5) input:checked) .route:nth-of-type(5) { opacity: 1; visibility: visible; transition-delay: 0s; }
}

/* The folds between sections */
.fold { height: clamp(44px, 9vw, 132px); line-height: 0; }
.fold svg { width: 100%; height: 100%; display: block; }
.fold--in { margin-bottom: -1px; position: relative; }
.fold--out { margin-top: -1px; position: relative; }
.fold--out svg { transform: scaleX(-1); }
.fold--on-white { background: #fff; }
.fold--on-mist { background: var(--mist); }
.fold__top, .fold__bottom { fill: var(--cobalt); }
.fold__crease { fill: var(--peri); }

/* Cobalt bands */
.band { background: var(--cobalt); color: var(--on-cobalt); padding: 3rem 0 3.5rem; }
.band h2 { color: #fff; }
.band a { color: #fff; }
.band :focus-visible, .ui--fee :focus-visible { outline-color: #fff; }
.band .answer { color: var(--on-cobalt); }
.band__grid { display: grid; gap: 2.5rem; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; margin: 0; }
.numbers div { display: flex; flex-direction: column-reverse; border-top: 2px solid var(--peri); padding-top: 0.75rem; }
.numbers dd { margin: 0; font: 800 clamp(2.75rem, 8vw, 4.75rem)/1 var(--display); color: #fff; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.numbers dt { margin-top: 0.375rem; font-weight: 600; color: var(--on-cobalt); }
.breakdown { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--on-cobalt); max-width: 52rem; }

/* Sections */
.section { padding: 4rem 0; }
.section--mist { background: var(--mist); }
.intro { max-width: 42rem; display: grid; gap: 1rem; }
.answer { font-size: 1.125rem; }
.split { display: grid; gap: 2.5rem; }
/* The mascot: a folded-paper swallow that shows the way. On white and mist only; on cobalt it disappears. */
.mascot { display: block; height: auto; }
.lead { display: grid; gap: 1.25rem; }
.mascot--guide { order: -1; width: 7.5rem; }
.mascot--list { width: min(100%, 17rem); margin-top: 1rem; }
.mascot--lost { width: 9rem; margin-bottom: 1.5rem; }
.mascot--front { width: 6.5rem; }
.caution { font-size: 0.9375rem; color: var(--ink); background: #fff; border-left: 4px solid var(--peri); padding: 0.625rem 0.875rem; border-radius: 0 8px 8px 0; }

/* How it works: four steps, each with a piece of the app */
.how { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: how; }
.how li { counter-increment: how; display: grid; gap: 0.5rem; align-content: start; grid-template-rows: auto auto auto 1fr; }
.how li::before { content: counter(how); font: 800 2.25rem/1 var(--display); color: var(--cobalt); }
.how p { color: var(--muted); }
.ui { margin-top: 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 0.75rem 0.875rem 1rem; display: grid; gap: 0.5rem; align-content: start; font-size: 0.9375rem; box-shadow: var(--shadow); }
.ui__bar { display: flex; align-items: center; justify-content: center; position: relative; font-weight: 600; font-size: 0.8125rem; color: var(--ink); padding: 0.125rem 0 0.5rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); }
.ui__bar::before { content: ""; position: absolute; left: 0.25rem; top: 0.45rem; width: 0.5rem; height: 0.5rem; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(45deg); }
.ui__row { display: flex; justify-content: space-between; gap: 0.75rem; background: #fff; border-radius: 9px; padding: 0.5rem 0.75rem; color: var(--muted); }
.ui__row b { color: var(--ink); font-weight: 600; text-align: right; }
.ui--list .ui__row span { color: var(--ink); font-weight: 600; }
.ui--list .ui__row b { color: var(--cobalt); }
.ui__tag { justify-self: start; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.ui--fee { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); }
.ui--fee .ui__bar { color: #fff; border-color: rgb(255 255 255 / 0.25); }
.ui--fee .ui__bar::before { border-color: #fff; }
.ui__label { margin-top: 0.5rem; }
.ui__big { font: 800 3rem/1 var(--display); color: #fff; letter-spacing: -0.03em; }
.ui__src { font-size: 0.75rem; }
.ui--note { background: var(--ink); border-color: var(--ink); }
.ui--note .ui__bar { color: #fff; border-color: rgb(255 255 255 / 0.15); }
.ui--note .ui__bar::before { display: none; }
.ui__push, .change__note { background: rgb(255 255 255 / 0.94); border-radius: 14px; padding: 0.75rem 0.875rem; display: grid; gap: 0.25rem; color: var(--ink); font-size: 0.9375rem; }
.change__note { border: 1px solid var(--line); box-shadow: var(--shadow); }
.ui__app { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.ui__app::before { content: ""; display: inline-block; width: 0.875rem; height: 0.875rem; margin-right: 0.375rem; vertical-align: -0.15em; border-radius: 4px; background: var(--cobalt); }

/* Country index: radios switch the panel with :has(); without it every country is listed */
.index { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.picker { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.375rem; align-content: start; }
.pick { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; padding: 0.5rem 0.625rem; border-radius: 9px; background: #fff; cursor: pointer; font-size: 0.9375rem; color: var(--ink); transition: background-color 0.15s, color 0.15s; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick__name { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.pick__n { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.pick:hover { box-shadow: inset 0 0 0 2px var(--peri); color: var(--cobalt); }
.pick:has(input:checked) { background: var(--cobalt); color: #fff; box-shadow: none; }
.pick:has(input:checked) .pick__n { color: var(--on-cobalt); }
.pick:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.countries { display: grid; gap: 1.5rem; }
.country { background: #fff; border-radius: var(--radius); overflow: hidden; display: grid; box-shadow: var(--shadow); }
.country__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.country__body { padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: 0.75rem; align-content: start; }
.country h3 { font-size: 1.75rem; }
.country__counts { font-weight: 600; color: var(--cobalt); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.facts li { padding-left: 0.875rem; border-left: 3px solid var(--peri); font-size: 0.9375rem; color: var(--ink); }
.facts__route { display: block; font-weight: 600; }
.facts__meta { display: block; font-size: 0.8125rem; color: var(--muted); }
.country__routes { font-size: 0.875rem; color: var(--muted); }
@supports selector(:has(*)) {
  /* All panels share one grid cell, so the box keeps the tallest panel's height and switching never shifts the page. */
  .countries { display: grid; }
  .country { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
  .index:has(input[value="united-arab-emirates"]:checked) #united-arab-emirates,
  .index:has(input[value="canada"]:checked) #canada,
  .index:has(input[value="germany"]:checked) #germany,
  .index:has(input[value="estonia"]:checked) #estonia,
  .index:has(input[value="spain"]:checked) #spain,
  .index:has(input[value="united-kingdom"]:checked) #united-kingdom,
  .index:has(input[value="montenegro"]:checked) #montenegro,
  .index:has(input[value="netherlands"]:checked) #netherlands,
  .index:has(input[value="portugal"]:checked) #portugal,
  .index:has(input[value="serbia"]:checked) #serbia,
  .index:has(input[value="turkiye"]:checked) #turkiye,
  .index:has(input[value="united-states"]:checked) #united-states { opacity: 1; visibility: visible; transition: opacity 0.3s; }
}

/* One record, taken apart */
.record { display: grid; gap: 2rem; margin-top: 2.5rem; }
.pin { display: inline-grid; place-items: center; width: 1.375rem; height: 1.375rem; margin-left: 0.5rem; vertical-align: 0.2em; border-radius: 50%; background: var(--cobalt); color: #fff; font: 700 0.75rem/1 var(--display); letter-spacing: 0; }
.record__card { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.5rem; box-shadow: 10px 10px 0 var(--peri); }
.record__route { font-weight: 600; color: var(--muted); font-size: 0.875rem; }
.record__label { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }
.record__value { font: 800 clamp(2.5rem, 6vw, 3.5rem)/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.record__value span { display: block; margin-top: 0.375rem; font: 600 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.record__text { color: var(--text); font-size: 0.9375rem; }
.record__law, .record__source, .record__date { font-size: 0.9375rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.record__law { color: var(--ink); font-weight: 600; }
.record__date { color: var(--cobalt); font-weight: 600; }
.record__notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; counter-reset: note; }
.record__notes li { counter-increment: note; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; }
.record__notes li::before { content: counter(note); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cobalt); color: #fff; font: 700 0.9375rem/1 var(--display); }
.record__notes b { color: var(--ink); }

/* Pipeline on cobalt: the steps sit on a folded route */
.flow { margin-top: 2.5rem; position: relative; display: grid; gap: 1.5rem; }
.flow__route { display: none; }
.pipeline { list-style: none; margin: 0; padding: 0 0 0 0.25rem; display: grid; gap: 1rem; counter-reset: pipe; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 1.25rem; top: 1rem; bottom: 1rem; width: 6px; margin-left: -3px; background: var(--peri); }
.pipeline li { counter-increment: pipe; display: flex; align-items: center; gap: 0.875rem; color: #fff; font-weight: 600; position: relative; }
.pipeline li::before { content: counter(pipe); flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #fff; color: var(--cobalt); font: 700 1rem/1 var(--display); }
.change { margin: 0; display: grid; gap: 0.75rem; }
.change__diff { background: #fff; border-radius: var(--radius); padding: 1.25rem; color: var(--ink); box-shadow: var(--shadow); }
.change__field { font-weight: 600; color: var(--muted); font-size: 0.875rem; }
.change__diff dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.75rem 0 0; }
.change__diff dt { font-size: 0.8125rem; color: var(--muted); }
.change__diff dd { margin: 0; font: 800 2rem/1.1 var(--display); color: var(--ink); }
.change__diff div + div dd { color: var(--cobalt); }
.change figcaption { font-size: 0.875rem; color: var(--on-cobalt); }

/* Plan */
.timeline { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; top: 0.5rem; height: 4px; background: var(--peri); }
.timeline li { position: relative; padding-top: 1.75rem; font-size: 0.875rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--cobalt); border: 3px solid var(--mist); }
.timeline b { display: block; color: var(--ink); font: 700 1.0625rem/1.2 var(--display); }
.timeline__note { min-height: 0; margin-top: 0.5rem; }
.plan__title { font: 700 1.125rem var(--display); color: var(--ink); margin-bottom: 1rem; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.plan__step { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.375rem; display: grid; gap: 0.5rem; border-left: 6px solid var(--cobalt); box-shadow: var(--shadow); }
.plan__step + .plan__step { border-left-color: var(--peri); }
.plan__phase { font-size: 0.8125rem; font-weight: 600; color: var(--cobalt); }
.plan__step p { font-size: 0.9375rem; }
.plan__docs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.plan__docs li { font-size: 0.8125rem; background: var(--mist); color: var(--ink); border-radius: 6px; padding: 0.2rem 0.5rem; }
.plan__src { font-size: 0.8125rem; color: var(--muted); }

/* Compare */
.table-wrap { margin-top: 2rem; overflow-x: auto; }
.compare { width: 100%; min-width: 30rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td { text-align: left; padding: 0.875rem 0.75rem; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 0.875rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-family: var(--display); color: var(--ink); font-size: 1.0625rem; }
.compare td { vertical-align: bottom; min-width: 11rem; }
.compare__fig { display: block; font: 800 clamp(1.5rem, 3vw, 2.125rem)/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.bar { display: block; height: 10px; margin-top: 0.625rem; width: var(--w); background: var(--cobalt); border-radius: 2px 5px 5px 2px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.compare tbody tr:nth-child(even) .bar { background: var(--peri); }
.compare__year { font: 600 0.75rem var(--body); color: var(--muted); margin-left: 0.25rem; }
.compare__note { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted); max-width: 60rem; }

/* Pro */
.tiers { display: grid; gap: 1.25rem; margin-top: 2rem; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; display: grid; gap: 0.75rem; align-content: start; }
.tier--pro { border: 2px solid var(--cobalt); box-shadow: var(--shadow); }
.tier__name { font: 700 1.125rem/1.2 var(--display); color: var(--cobalt); }
.tier__price { font: 800 clamp(2.25rem, 5vw, 3rem)/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.tier__price span { font: 600 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.tier__detail { color: var(--cobalt); font-weight: 600; font-size: 0.9375rem; }
.tier__trial { font-size: 0.9375rem; color: var(--ink); }
.tier__lead { margin-top: 0.5rem; font-weight: 600; color: var(--ink); }
.tier__list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.tier__list li { padding: 0.75rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.tools li { display: grid; gap: 0.25rem; align-content: start; padding: 1rem; border-radius: 12px; background: var(--mist); font-size: 0.9375rem; }
.tools b { font: 700 1.0625rem/1.3 var(--display); color: var(--ink); }
.tools__tag { justify-self: start; padding: 0.125rem 0.5rem; border-radius: 6px; background: var(--cobalt); color: #fff; font-size: 0.75rem; font-weight: 600; }
.tier__anchor { padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
#pro .note { margin-top: 1.25rem; max-width: 46rem; }

/* /compare tables */
.cmp th a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; }
.cmp th a:hover { color: var(--cobalt); text-decoration: underline; }
.cmp td { vertical-align: top; min-width: 0; }
.cmp td b { color: var(--ink); }
.cmp tbody th { position: sticky; left: 0; background: inherit; white-space: nowrap; vertical-align: top; padding-top: 0.25rem; padding-bottom: 0.25rem; }
.cmp--demo tbody th { padding: 0.875rem 0.75rem; }
.cmp tbody tr { background: #fff; }
.section--mist .cmp tbody tr { background: var(--mist); }
.cmp--wide { min-width: 46rem; }
.cpick { border: 0; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cpick legend { padding: 0; margin-bottom: 0.75rem; font-weight: 600; color: var(--ink); }
.cpick label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.875rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.cpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cpick label:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.cpick label:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.cpick label:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.cpick__hint { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.versus { min-width: 34rem; table-layout: fixed; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.versus thead td { width: 9.5rem; border-bottom: 2px solid var(--ink); }
.versus thead th { vertical-align: bottom; }
.versus thead th a { font: 700 1.0625rem var(--display); }
.section--mist .versus tbody tr { background: #fff; }
.versus tbody th { font: 600 0.9375rem var(--body); color: var(--muted); white-space: normal; padding: 0.875rem 0.75rem; }
.versus [data-c] { display: none; }
body:has(#cp-ae:checked) .versus [data-c="ae"],
body:has(#cp-ca:checked) .versus [data-c="ca"],
body:has(#cp-de:checked) .versus [data-c="de"],
body:has(#cp-ee:checked) .versus [data-c="ee"],
body:has(#cp-es:checked) .versus [data-c="es"],
body:has(#cp-gb:checked) .versus [data-c="gb"],
body:has(#cp-me:checked) .versus [data-c="me"],
body:has(#cp-nl:checked) .versus [data-c="nl"],
body:has(#cp-pt:checked) .versus [data-c="pt"],
body:has(#cp-rs:checked) .versus [data-c="rs"],
body:has(#cp-tr:checked) .versus [data-c="tr"],
body:has(#cp-us:checked) .versus [data-c="us"] { display: table-cell; }
.cmp__sub { display: block; margin-top: 0.125rem; font-size: 0.8125rem; color: var(--muted); }
.cmp__none { color: var(--muted); font-size: 0.9375rem; }
.cmp__met { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--cobalt); font-weight: 600; }
.cmp__met svg { width: 1rem; height: 1rem; flex: none; }
.cmp--demo { min-width: 44rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cmp--demo thead th { vertical-align: bottom; color: var(--ink); }
.cmp--demo thead th .flag { display: inline-block; margin-right: 0.5rem; vertical-align: -0.15em; }
.cmp--demo thead th:first-child { color: var(--cobalt); max-width: 11rem; }
.section--mist .cmp--demo tbody tr { background: #fff; }
.cmp--demo tbody th { font: 600 0.9375rem var(--body); color: var(--muted); white-space: normal; }
#yours .note { margin-top: 1.5rem; max-width: 46rem; }

/* FAQ */
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.125rem 2rem 1.125rem 0; position: relative; font: 700 1.125rem/1.35 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.25rem; top: 1.45rem; width: 0.625rem; height: 0.625rem; border-right: 2.5px solid var(--cobalt); border-bottom: 2.5px solid var(--cobalt); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq summary:hover { color: var(--cobalt); }
.faq details p { padding: 0 0 1.25rem; max-width: 42rem; }
.faq__deciding { margin-top: 1rem; padding: 1.25rem; background: var(--mist); border-radius: var(--radius); display: grid; gap: 0.5rem; }
.faq__countries { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; font-size: 0.9375rem; }
.faq__countries li { display: flex; justify-content: space-between; gap: 0.5rem; }
.faq__countries span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Atlas: country guides generated from the knowledge base. */
.crumbs { padding-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
.crumbs a { display: inline-block; padding: 0.75rem 0; color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.atlas-head { display: grid; gap: 2rem; padding-top: 0.75rem; padding-bottom: 3.5rem; }
.atlas-head h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); max-width: 16ch; }
.atlas-head .eyebrow { display: flex; align-items: center; gap: 0.5rem; }
.atlas-photo img, .acard__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.atlas-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.mascot--atlas { width: 9rem; }
.atlas .purposes a { color: inherit; text-decoration: none; display: inline-block; padding: 0.7rem 0.25rem; margin: -0.3rem -0.25rem; }
.atlas .purposes a:hover { color: var(--cobalt); }
.atlas .section > .wrap > .answer { margin-top: 1rem; max-width: 42rem; }
.agroup { margin: 3rem 0 1rem; font-size: 1.5rem; scroll-margin-top: 1rem; }
.aroutes { display: grid; gap: 1rem; }
.aroute { display: grid; gap: 0.875rem; padding: 1.25rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 1rem; }
.aroute:target { outline: 3px solid var(--peri); }
.aroute h4 { margin: 0; font: 700 1.25rem/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.aroute > p { max-width: 62rem; }
.aroute__more summary { cursor: pointer; display: inline-block; padding: 0.625rem 0; margin: -0.625rem 0; font-weight: 600; font-size: 0.9375rem; color: var(--cobalt); }
.aroute__more p { margin-top: 0.5rem; max-width: 62rem; }
.proof b { white-space: nowrap; }
.aroute__facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.aroute__facts div { padding: 0.5rem 0.75rem; border-radius: 10px; background: var(--mist); }
.aroute__facts dt { font-size: 0.8125rem; color: var(--muted); }
.aroute__facts dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.aroute__next { font-size: 0.9375rem; font-weight: 600; }
.aroute__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-top: 0.875rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.figures { display: grid; gap: 1rem; margin: 2rem 0 0; }
.figures div { padding: 1.25rem; border-radius: var(--radius); background: var(--mist); display: grid; gap: 0.25rem; align-content: start; }
.figures dt { font-size: 0.9375rem; color: var(--text); }
.figures dd { margin: 0; font: 700 2rem/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.figures .figures__src { font: 400 0.8125rem/1.5 var(--body); color: var(--muted); }
.alist { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.5rem 1.5rem; }
.alist li { padding-left: 0.875rem; border-left: 3px solid var(--peri); color: var(--ink); font-weight: 600; }
.alinks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.alinks a { display: flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0.375rem 0.75rem; line-height: 1.25; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.alinks a:hover { border-color: var(--cobalt); color: var(--cobalt); }
.alinks span { flex: 1; }
.alinks b { color: var(--cobalt); font-variant-numeric: tabular-nums; }
.acards { display: grid; gap: 1.25rem; margin-top: 2rem; }
.acard { display: grid; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform 0.2s; }
.acard:hover { transform: translateY(-3px); }
.acard__body { display: grid; gap: 0.375rem; padding: 1rem 1.25rem 1.25rem; }
.acard__name { display: flex; align-items: center; gap: 0.5rem; font: 700 1.5rem/1.2 var(--display); color: var(--ink); }
.acard__counts { font-weight: 600; color: var(--cobalt); font-size: 0.9375rem; }
.acard__routes { font-size: 0.875rem; color: var(--muted); }
.country__more { font-weight: 600; font-size: 0.9375rem; }
.country__more a { display: inline-block; padding: 0.625rem 0; }

/* Closing band */
.band--end { padding-bottom: 4.5rem; }
.signup--dark label { color: #fff; }
.signup--dark .field input { border-color: #fff; }
.signup--dark .field button { background: #fff; color: var(--cobalt); }
.signup--dark .field button:hover { background: var(--mist); }
.signup--dark .note, .signup--dark .status { color: var(--on-cobalt); }
.signup--dark .note a { color: #fff; }
/* The bird is cobalt too, so on the band it sits on a white disc. */
.signup--dark .status.joined::before { background-color: #fff; background-size: 78%; border-radius: 50%; }
.signup--dark .status.error { color: #fff; background: #b42318; padding: 0.25rem 0.5rem; border-radius: 6px; }
.signup--dark :focus-visible { outline-color: #fff; }

/* Footer */
.foot { background: var(--surface); padding: 3rem 0 2rem; font-size: 0.9375rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 2.5rem; }
.foot__brand { display: grid; gap: 1rem; justify-items: start; max-width: 22rem; position: relative; }
.foot__logo { display: flex; align-items: center; min-height: 2.75rem; }
.foot__logo img { display: block; width: 112px; height: auto; }
.foot__cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.125rem; border-radius: 10px; background: var(--cobalt); color: #fff; font-weight: 600; text-decoration: none; transition: background-color 0.15s; }
.foot__cta:hover { background: var(--cobalt-deep); }
.foot__bird { width: 6.5rem; position: absolute; right: -0.5rem; top: -0.25rem; }
.foot__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.foot__guides { grid-column: 1 / -1; order: 3; }
.foot__title { margin-bottom: 0.5rem; font: 700 1rem/1.3 var(--display); color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot__guides ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.foot li a { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: var(--text); text-decoration: none; }
.foot li a:hover { color: var(--cobalt); text-decoration: underline; }
.foot .flag { width: 1.25rem; }
.legal .foot .wrap { max-width: var(--wrap); }
.foot__base { display: grid; gap: 0.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; }

/* Legal pages */
.doc { padding: 2.5rem 0 4.5rem; }
.legal .wrap { max-width: 44rem; }
.doc h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); }
.doc .updated { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.doc h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.doc p, .doc ul { margin: 0 0 1rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.375rem; }
.doc address { font-style: normal; }

@media (min-width: 640px) {
  .acards { grid-template-columns: 1fr 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .alist { grid-template-columns: 1fr 1fr; }
  .alinks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof { display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
  .proof li + li::before { content: "\00b7"; margin: 0 0.5em; }
  .deck__tabs { gap: 1.5rem; padding: 0 1.25rem; }
  .tab { flex: none; }
  .tab__name { position: static; width: auto; height: auto; clip-path: none; }
  .tab__code { display: none; }
  .field { flex-direction: row; }
  .numbers { grid-template-columns: repeat(4, 1fr); }
  .how { grid-template-columns: 1fr 1fr; }
  .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .tiers { grid-template-columns: 1fr 1.7fr; align-items: start; }
  .tier { padding: 2rem; }
  .atlas-head { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; padding-bottom: 4.5rem; }
  .atlas-head--index { grid-template-columns: 1fr auto; }
  .mascot--atlas { width: 15rem; margin-right: 3rem; }
  .acards, .figures, .alist { grid-template-columns: repeat(3, 1fr); }
  .alinks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aroute { padding: 1.5rem; }
  html { scroll-padding-top: 4.3125rem; }
  .top { position: sticky; top: 0; padding: 0; }
  .top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 4.25rem; }
  .top__logo { justify-self: start; }
  .top__nav { order: 0; align-self: stretch; width: auto; margin: 0; padding: 0; border: 0; gap: 2.25rem; }
  .top__nav a { min-width: 0; min-height: 0; }
  .top__cta { grid-column: 3; justify-self: end; }
  .hero { padding: 1.25rem 0 4.5rem; }
  .lede { font-size: 1.125rem; }
  .tab { min-height: 2.75rem; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 3rem; }
  .hero h1 { font-size: clamp(2.75rem, 4.4vw, 3.5rem); max-width: 19ch; }
  .hero__stack { --over: 1.5rem; --right: 4rem; }
  .route__photo img { aspect-ratio: 8 / 3; }
  .band { padding: 4rem 0 5rem; }
  .band__grid { grid-template-columns: 1fr 1.3fr; align-items: end; gap: 4rem; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .section { padding: 5.5rem 0; }
  .tools { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
  .lead { grid-template-columns: minmax(0, 42rem) auto; justify-content: space-between; align-items: end; }
  /* Turned round, so it points at the answer beside it. */
  .mascot--guide { order: 0; width: 13rem; transform: scaleX(-1); }
  .mascot--list { width: 19rem; }
  .how { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto 1fr; gap: 0.5rem 1.75rem; }
  .how li { grid-row: span 4; grid-template-rows: subgrid; gap: 0; }
  .how .ui { min-height: 15rem; }
  .how li > p { margin-top: 0.5rem; }
  .flow { grid-template-columns: repeat(5, 1fr); column-gap: 1rem; row-gap: 1.5rem; }
  .flow__route { display: block; grid-column: 1 / -1; grid-row: 1; width: 100%; height: 6.25rem; }
  .flow__bar { stroke: #fff; stroke-width: 10; fill: none; vector-effect: non-scaling-stroke; }
  .flow__crease { stroke: var(--peri); stroke-width: 10; fill: none; vector-effect: non-scaling-stroke; }
  .pipeline { grid-column: 1 / -1; grid-row: 1; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding: 0; }
  .pipeline::before { display: none; }
  .pipeline li { flex-direction: column; align-items: center; text-align: center; gap: 0.625rem; }
  .pipeline li:nth-child(even) { padding-top: 4rem; }
  .change { grid-column: 2 / 5; grid-template-columns: 1.1fr 1fr; align-items: start; position: relative; }
  .change::before { content: ""; position: absolute; left: 50%; top: -1.5rem; width: 6px; height: 1.5rem; margin-left: -3px; background: #fff; }
  .change figcaption { grid-column: 1 / -1; }
  .index { grid-template-columns: 17rem 1fr; gap: 2rem; align-items: start; }
  .picker { grid-template-columns: 1fr; position: sticky; top: 1.5rem; }
  .country { grid-template-columns: 1.1fr 1fr; min-height: 26rem; }
  .country__photo, .country__photo img { height: 100%; aspect-ratio: auto; }
  .country__body { padding: 1.75rem; }
  .record { grid-template-columns: minmax(0, 30rem) minmax(0, 24rem); align-items: center; gap: 4rem; }
  .split > .intro { position: sticky; top: 2rem; }
  .foot { padding: 4rem 0 2rem; }
  .foot .wrap { grid-template-columns: 22rem 1fr; gap: 3rem 5rem; align-items: start; }
  .foot__nav { grid-template-columns: auto 1.6fr auto; gap: 3rem; }
  .foot__guides { grid-column: auto; order: 0; }
  .foot li a { min-height: 2.125rem; }
  .foot__nav > div:not(.foot__guides) a, .foot__title { white-space: nowrap; }
  .foot__bird { position: static; width: 9rem; margin-top: 1rem; }
  .foot__base { grid-column: 1 / -1; grid-template-columns: 1fr auto; gap: 2rem; }
}

@media (min-width: 1400px) {
  .numbers { grid-template-columns: repeat(4, 1fr); }
  .band__grid { grid-template-columns: 1fr 1.6fr; }
}

/* Motion: one entrance for the hero, folds that draw themselves as they enter. Off when reduced. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__text > *, .js .deck { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js .hero__text > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero__text > :nth-child(3) { animation-delay: 0.16s; }
  .js .hero__text > :nth-child(4) { animation-delay: 0.24s; }
  .js .deck { animation-delay: 0.3s; }
  .js .ribbon path { transform-box: fill-box; animation: grow 0.6s cubic-bezier(0.3, 0.7, 0.2, 1) 0.5s both; }
  .js .ribbon__top { transform-origin: right center; }
  .js .ribbon__crease { transform-origin: right top; animation-delay: 0.7s; }
  .js .ribbon__bottom { transform-origin: left center; animation-delay: 0.9s; }
  .js .deck__more { animation: rise 0.5s 1.1s both; }

  .folding .fold path { transform-box: fill-box; transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.4s; }
  .folding .fold__top { transform-origin: left center; }
  .folding .fold__crease { transform-origin: right top; transition-delay: 0.2s; }
  .folding .fold__bottom { transform-origin: left center; transition-delay: 0.4s; }
  .folding .fold:not(.in) path { transform: scaleX(0); }
  .folding .fold:not(.in) .fold__crease { transform: scale(0.2); opacity: 0; }

}
@keyframes grow { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Tall desktop crop: keep the Süleymaniye skyline in frame. */
#turkiye .country__photo img { object-position: 85% center; }
