/* Shared layout + components. Each theme file sets the tokens and adds its signature pieces. */
:root {
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --r: 18px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: var(--head-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; padding-top: env(safe-area-inset-top); }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; font-weight: 700; letter-spacing: -.02em; font-size: 16px; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover, .nav a.is-active { color: var(--ink); background: var(--tint); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-shrink: 0; background: var(--surface); }
.lang button { border: 0; background: none; cursor: pointer; font: 600 12px var(--mono); letter-spacing: .08em; padding: 7px 12px; border-radius: 999px; color: var(--ink-3); min-width: 44px; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); }
@media (max-width: 900px) {
  .top__in { flex-wrap: wrap; row-gap: 10px; padding: 12px 16px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 13px; padding: 7px 11px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--btn-bg); padding: 13px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; min-height: 48px; text-decoration: none; transition: transform .2s var(--ease), filter .2s; touch-action: manipulation; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); filter: none; }
.btn--sm { padding: 9px 14px; font-size: 14px; min-height: 40px; }
.link { background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 14px; color: var(--accent-t); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.link[hidden] { display: none; }

/* hero common */
.hero { position: relative; overflow: hidden; }
.eyebrow { margin: 0; font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.count__n { display: block; font-variant-numeric: tabular-nums; line-height: 1; }
.count__l { display: block; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.count__cap { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.pill.is-live .dot { background: var(--accent); animation: pulse 1.6s infinite; }
.pill.is-done .dot { background: var(--ok); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.offline { font-size: 13px; color: var(--ok); display: inline-flex; align-items: center; gap: 8px; }
.offline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.offline[hidden], .btn[hidden] { display: none; }

/* sections */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--tint { background: var(--tint); }
.sec__head { display: grid; grid-template-columns: 76px 1fr; column-gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 900px; }
.sec__num { font: 600 12px var(--mono); color: var(--accent-t); letter-spacing: .1em; padding-top: 1em; }
.sec__title { margin: 0; font-weight: var(--display-w, 700); letter-spacing: -.045em; line-height: .95; font-size: clamp(40px, 6.2vw, 80px); text-wrap: balance; }
.sec__lede { grid-column: 2; margin: 18px 0 0; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 640px) { .sec__head { grid-template-columns: 1fr; } .sec__num { padding: 0 0 10px; } .sec__lede { grid-column: 1; } }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* boarding pass */
.flights { display: grid; gap: 20px; }
.pass { position: relative; display: grid; grid-template-columns: 1fr 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.pass__main { padding: 30px 32px; position: relative; }
.pass__stub { padding: 28px; border-left: 2px dashed var(--line); position: relative; display: flex; flex-direction: column; gap: 14px; }
.pass__stub::before, .pass__stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.pass__stub::before { top: -13px; } .pass__stub::after { bottom: -13px; }
.sec--tint .pass__stub::before, .sec--tint .pass__stub::after { background: var(--tint); }
.pass__avion, .pass__pm, .pass__bar { display: none; }
.pass__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pass__airline { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.stamp { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-t); border: 1.5px solid currentColor; padding: 5px 10px; border-radius: 6px; }
.pass__route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin: 26px 0 22px; }
.pass__code { font-size: clamp(44px, 7vw, 80px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.pass__city { display: block; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.pass__time { display: block; font: 500 22px var(--mono); margin-top: 12px; font-variant-numeric: tabular-nums; }
.pass__tday { display: block; font-size: 13px; color: var(--ink-2); }
.pass__arr { text-align: right; }
.pass__path { position: relative; height: 40px; }
.pass__path::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--line-2, var(--line)); }
.pass__plane { position: absolute; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); color: var(--accent); transition: left 1s var(--ease); background: var(--surface); padding: 2px; box-sizing: content-box; }
.pass__dur { position: absolute; left: 50%; top: calc(50% + 14px); transform: translateX(-50%); font: 500 12px var(--mono); color: var(--ink-2); white-space: nowrap; }
.pass__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px 20px; border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }
.kv dt { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { margin: 4px 0 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.kv dd.is-tbc { color: var(--ink-3); font-weight: 400; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--tint); align-self: flex-start; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status--live { background: var(--accent-soft); color: var(--accent-t); }
.status--live .dot { background: var(--accent); animation: pulse 1.6s infinite; }
.status--done { background: var(--ok-soft); color: var(--ok); }
.status--done .dot { background: var(--ok); }
.status--soon { background: var(--warn-bg); color: var(--warn); }
.status--soon .dot { background: var(--warn); }
.pass__prog { height: 4px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.pass__prog span { display: block; height: 100%; background: var(--accent); width: 0; transition: width 1s var(--ease); }
.pass__note { font-size: 13px; color: var(--ink-2); margin: 0; }
.pass__btns { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.pass__btns .btn { justify-content: center; }
@media (max-width: 860px) {
  .pass { grid-template-columns: 1fr; }
  .pass__stub { border-left: 0; border-top: 2px dashed var(--line); }
  .pass__stub::before, .pass__stub::after { top: -13px; bottom: auto; }
  .pass__stub::before { left: -13px; } .pass__stub::after { left: auto; right: -13px; }
  .pass__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) { .pass__main, .pass__stub { padding: 22px 20px; } .pass__route { gap: 12px; } .pass__time { font-size: 18px; } .pass__apt { display: none; } }

/* layover */
.layover { margin-top: 20px; border-radius: 20px; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; }
.layover__ico { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; grid-row: span 2; }
.layover__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.layover__t { margin: 0; font-weight: 500; }
.layover__d { margin: 0; font-size: 14px; color: var(--ink-2); }
.layover ul { grid-column: 1 / -1; margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.layover--warn { border-color: var(--warn); }

/* map */
.map { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.map__canvas { aspect-ratio: 16 / 10; width: 100%; position: relative; background: var(--sea); }
.map__canvas svg { width: 100%; height: 100%; }
.map__canvas .land { fill: var(--land); stroke: var(--sea); stroke-width: .6; }
.map__canvas .grat { fill: none; stroke: var(--grat); stroke-width: .5; }
.map__canvas .route { fill: none; stroke: var(--route); stroke-width: 1.4; stroke-dasharray: 3 5; stroke-linecap: round; }
.map__canvas .route-done { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.map__canvas .apt circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.map__canvas .apt text { font: 600 12px var(--mono); letter-spacing: .12em; fill: var(--ink); }
.map__canvas .apt .sub { font: 400 11px var(--sans); letter-spacing: 0; fill: var(--ink-2); }
.map__canvas .plane path { fill: var(--accent); }
.map__msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 14px; padding: 24px; text-align: center; }
.map__bar { padding: 20px 26px 22px; border-top: 1px solid var(--line); }
.map__stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-bottom: 14px; }
.map__stats div { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.map__stats strong { display: block; color: var(--ink); font: 600 20px var(--sans); letter-spacing: -.02em; text-transform: none; font-variant-numeric: tabular-nums; margin-top: 2px; }
.map__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 12.5px var(--mono); color: var(--ink-2); flex-wrap: wrap; }
.scrub { display: block; padding: 6px 0; }
.scrub input { width: 100%; appearance: none; -webkit-appearance: none; height: 28px; background: transparent; cursor: pointer; touch-action: pan-y; }
.scrub input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--line) var(--p, 0%)); }
.scrub input::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.scrub input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.scrub input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
@media (max-width: 640px) { .map__canvas { aspect-ratio: 4 / 5; } .map__bar { padding: 18px; } }

/* clocks */
.cities { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.city { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 30px; box-shadow: var(--shadow); position: relative; }
.city__name { margin: 0; font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.city__time { margin: 14px 0 0; font: 300 clamp(56px, 8vw, 100px)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.city__time small { font-size: .3em; letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.city__date { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.wx { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.wx__ico { width: 34px; height: 34px; flex-shrink: 0; }
.wx__ico svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wx__t { font-size: 28px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wx__d { font-size: 14px; color: var(--ink-2); }
.cities__diff { align-self: center; text-align: center; font: 500 12px var(--mono); color: var(--ink-2); letter-spacing: .04em; }
.cities__diff strong { display: block; font: 700 36px var(--sans); letter-spacing: -.04em; color: var(--accent-t); }
.tip { margin: 24px 0 0; font-size: 16px; display: flex; gap: 12px; align-items: flex-start; max-width: 70ch; }
.tip:empty { display: none; }
.tip::before { content: ""; width: 20px; height: 2px; background: var(--accent); margin-top: .75em; flex-shrink: 0; }
.forecast { margin-top: 20px; }
.forecast:empty { display: none; }
.fc { display: inline-flex; align-items: center; gap: 14px; background: var(--tint); border-radius: 16px; padding: 14px 18px; font-size: 15px; }
.fc svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
@media (max-width: 760px) { .cities { grid-template-columns: 1fr; } .cities__diff strong { display: inline; font-size: 26px; margin-right: 8px; } }

/* arrival steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 24px; counter-increment: s; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 12px var(--mono); color: var(--accent-t); letter-spacing: .1em; }
.steps h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.steps p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.steps li.is-final { background: var(--final-bg); color: var(--final-ink); border-color: var(--final-bg); }
.steps li.is-final p { color: var(--final-sub); }
.steps li.is-final::before { color: var(--final-sub); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } .steps li.is-final { grid-column: 1 / -1; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* itinerary */
.days { display: grid; border-top: 1px solid var(--line); }
.day { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.day__date { display: flex; flex-direction: column; align-self: start; }
.day__dow { font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.day__num { font: 700 56px/1 var(--sans); letter-spacing: -.05em; margin-top: 6px; }
.day__mon { font-size: 18px; color: var(--accent-t); }
.day__title { margin: 0 0 14px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.day.is-hl .day__title::after { content: "★"; color: var(--accent); font-size: 16px; }
.tag { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--tint); color: var(--ink-2); }
.tag--today { background: var(--accent); color: var(--btn-ink); }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.item__time { font: 500 14px var(--mono); }
.item__time.is-empty { color: var(--ink-3); }
.item__t { font-size: 16px; }
.item__p { display: block; font-size: 13px; color: var(--ink-2); }
.item__p a { color: var(--ink-2); }
.item.is-tbc { background: transparent; border-style: dashed; }
.item.is-tbc .item__t { color: var(--ink-2); }
.item__cal { border: 0; background: none; cursor: pointer; padding: 8px; margin: -8px; border-radius: 10px; color: var(--ink-2); min-width: 40px; min-height: 40px; display: grid; place-items: center; }
.item__cal:hover { background: var(--tint); color: var(--ink); }
.item__cal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (max-width: 640px) {
  .day { grid-template-columns: 1fr; gap: 14px; }
  .item { grid-template-columns: 52px 1fr auto; padding: 12px 14px; gap: 10px; }
}

/* packing */
.pack__bar { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; max-width: 900px; }
.pack__fill { height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); border-radius: 6px; }
.pack__count { margin: 10px 0 28px; font: 500 13px var(--mono); color: var(--ink-2); }
.pack { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.pack__grp { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 14px; }
.pack__grp h3 { margin: 0 0 8px; font: 600 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.chk { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.chk:first-of-type { border-top: 0; }
.chk input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 1.5px solid var(--chk); border-radius: 7px; flex-shrink: 0; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.chk input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--btn-ink); border-bottom: 2px solid var(--btn-ink); transform: rotate(-45deg) translate(1px,-1px) scale(0); transition: transform .2s var(--ease); }
.chk input:checked { background: var(--accent); border-color: var(--accent); }
.chk input:checked::after { transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.chk__t { font-size: 15px; line-height: 1.45; }
.chk__t small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.chk__t a { color: var(--accent-t); }
.chk input:checked + .chk__t { color: var(--ink-3); text-decoration: line-through; }
#packReset { margin-top: 18px; }
@media (max-width: 760px) { .pack { grid-template-columns: 1fr; } }

/* currency */
.fx { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; max-width: 900px; }
.fx__field label, .fx__lab { display: block; font: 600 12px var(--mono); letter-spacing: .16em; color: var(--ink-2); margin-bottom: 8px; }
.fx__input { display: flex; align-items: baseline; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); transition: border-color .2s; }
.fx__input:focus-within { border-color: var(--ink); }
.fx__input--out { background: var(--tint); box-shadow: none; }
.fx__sym { font-size: 22px; color: var(--ink-2); }
.fx__input input, .fx__input output { border: 0; background: none; outline: none; font: 300 clamp(36px, 5vw, 54px)/1.1 var(--sans); letter-spacing: -.04em; width: 100%; min-width: 0; color: var(--ink); font-variant-numeric: tabular-nums; padding: 0; }
.fx__swap { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; margin-bottom: 18px; transition: transform .35s var(--ease); }
.fx__swap:hover { transform: rotate(180deg); }
.fx__swap svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fx__quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; cursor: pointer; font-size: 14px; min-height: 40px; font-variant-numeric: tabular-nums; }
.fx__quick button:hover { border-color: var(--ink); }
.fx__quick button span { color: var(--ink-2); }
.fx__rate { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 640px) { .fx { grid-template-columns: 1fr; } .fx__swap { margin: -4px auto; } }

/* footer */
.foot { padding: 80px 0 calc(56px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; }
.foot__sig { margin: 0; font-size: clamp(30px, 4.4vw, 52px); color: var(--accent-t); letter-spacing: -.02em; }
.foot__small { margin: 14px 0 0; font: 500 12px var(--mono); color: var(--ink-3); }

/* iOS sheet */
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.4); display: grid; place-items: end center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet__box { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 26px 26px calc(22px + env(safe-area-inset-bottom)); max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: up .35s var(--ease); }
.sheet__box h3 { margin: 0 0 12px; font-weight: 600; font-size: 20px; }
.sheet__box ol { margin: 0 0 20px; padding-left: 20px; color: var(--ink-2); }
.sheet__box li { margin: 6px 0; }
.sheet__box .btn { width: 100%; justify-content: center; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
