/* TransGood site — tokens, type, buttons, layout, the phone frame and the UI kit.
   Light by default, dark with the system. Sections pick a surface with
   .surface-white / .surface-panel / .surface-dark; text and lines follow the surface. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --panel: #F5F5F7;
  --panel-2: #EBEBEF;
  --ink: #171717;
  --ink-2: #3A3A3C;
  --muted: #6E6E73;
  --faint: #A1A1A6;
  --line: #E5E5EA;

  --dark: #0E0E0F;
  --dark-panel: #1C1C1E;
  --dark-panel-2: #262628;
  --dark-line: #2C2C2E;
  --on-dark: #F5F5F7;
  --on-dark-muted: #A1A1A6;

  --tg-red: #E30A16;
  --tg-teal: #00A19A;
  --oyen: #E30A16;
  --oyen-deep: #B91C1C;
  --oyen-soft: #F2FAF9;
  --lavender: #6C63F0;
  --lavender-soft: #EEEDFE;
  --money-in: #1E9E4A;
  --money-up: #E5484D;

  --font: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --header-h: 64px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --r-xl: 36px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -8px rgba(0, 0, 0, .14);
  --shadow-phone: 0 2px 4px rgba(0, 0, 0, .06), 0 40px 80px -24px rgba(0, 0, 0, .28);

  --s-bg: var(--bg);
  --s-ink: var(--ink);
  --s-muted: var(--muted);
  --s-line: var(--line);
  --s-card: var(--panel);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111112;
    --bg-soft: #141415;
    --panel: #1C1C1E;
    --panel-2: #262628;
    --ink: #F5F5F7;
    --ink-2: #D1D1D6;
    --muted: #A1A1A6;
    --faint: #6E6E73;
    --line: #2C2C2E;
    --dark: #000000;
    --dark-panel: #161618;
    --dark-panel-2: #202022;
    --dark-line: #262628;
    --oyen-soft: #122424;
    --lavender-soft: #24223F;
    --shadow-float: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .6);
    --shadow-phone: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--tg-teal); color: #fff; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- surfaces ---------- */
.surface-white { --s-bg: var(--bg); --s-ink: var(--ink); --s-muted: var(--muted); --s-line: var(--line); --s-card: var(--panel); }
.surface-panel { --s-bg: var(--panel); --s-ink: var(--ink); --s-muted: var(--muted); --s-line: var(--line); --s-card: var(--bg); }
.surface-dark {
  --s-bg: var(--dark); --s-ink: var(--on-dark); --s-muted: var(--on-dark-muted); --s-line: var(--dark-line);
  --s-card: var(--dark-panel);
  color-scheme: dark;
}
.surface-white, .surface-panel, .surface-dark { background: var(--s-bg); color: var(--s-ink); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.section__head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section__head .lead { margin: 18px auto 0; max-width: 640px; }

/* ---------- type ---------- */
.display {
  font-size: clamp(44px, 7.2vw, 100px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.044em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.022em;
}
.h4 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.012em; }
.lead {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.45;
  color: var(--s-muted);
  letter-spacing: -.008em;
  text-wrap: pretty;
}
.body { font-size: 17px; line-height: 1.5; color: var(--s-muted); text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.45; color: var(--s-muted); }
.label { font-size: 14px; line-height: 1.2; font-weight: 600; color: var(--s-muted); letter-spacing: -.005em; }
.stat {
  font-size: clamp(96px, 14vw, 200px);
  line-height: .86;
  font-weight: 600;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}
.num { font-variant-numeric: tabular-nums; }
.ink { color: var(--s-ink); }
.muted { color: var(--s-muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--s-card); color: var(--s-ink); font-size: 13px; font-weight: 600; letter-spacing: -.005em;
}
.surface-dark .badge { background: var(--dark-panel-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s var(--ease);
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); }
.btn--secondary { background: var(--s-card); color: var(--s-ink); }
.surface-panel .btn--secondary { background: var(--panel-2); }
.btn--secondary:hover { background: var(--panel-2); }
.surface-dark .btn--primary { background: var(--on-dark); color: #111; }
.surface-dark .btn--secondary { background: var(--dark-panel-2); color: var(--on-dark); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link-arrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--s-ink); font-size: 16px;
}
.link-arrow::before {
  content: ""; position: absolute; left: 0; right: 0; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px));
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- motion helpers ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js [data-reveal="fade"] { translate: 0 0; }
.js [data-reveal="scale"] { translate: 0 0; scale: .96; transition-property: opacity, scale; }
.js [data-reveal="scale"].is-in { scale: 1; }
[data-parallax] { will-change: translate; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; scale: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

.pin { position: relative; height: calc(var(--len, 3) * 100vh); height: calc(var(--len, 3) * 100svh); }
.pin__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- the phone ---------- */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 402 / 874;
  flex: none;
  padding: calc(var(--w) * .028);
  border-radius: calc(var(--w) * .158);
  background: #0B0B0C;
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px #2A2A2C;
}
.phone__screen {
  --top: 3.3em;
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * .132);
  background: #FFFFFF;
  color: #171717;
  font-size: calc(var(--w) * .944 / 402 * 16);
  line-height: 1.3;
  letter-spacing: -.01em;
  isolation: isolate;
  color-scheme: light;
}
.phone__screen::before { /* status bar */
  content: "";
  position: absolute; z-index: 5; inset: 0 0 auto;
  height: 2.8em;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 12'%3E%3Cg fill='%23171717'%3E%3Crect x='0' y='7.5' width='3' height='4.5' rx='.8'/%3E%3Crect x='4.5' y='5.5' width='3' height='6.5' rx='.8'/%3E%3Crect x='9' y='3' width='3' height='9' rx='.8'/%3E%3Crect x='13.5' y='.5' width='3' height='11.5' rx='.8'/%3E%3Cpath d='M28 3.2a9.6 9.6 0 0 1 12.6 0l-1.3 1.4a7.6 7.6 0 0 0-10 0zM30.3 5.7a6.3 6.3 0 0 1 8 0l-1.4 1.4a4.3 4.3 0 0 0-5.2 0zM34.3 11.6l-2.2-2.3a3.2 3.2 0 0 1 4.4 0z'/%3E%3Crect x='45' y='1' width='19' height='10' rx='3' fill='none' stroke='%23171717' stroke-opacity='.4'/%3E%3Crect x='46.6' y='2.6' width='15.8' height='6.8' rx='1.8'/%3E%3Crect x='64.6' y='4' width='1.4' height='4' rx='.7' fill-opacity='.4'/%3E%3C/g%3E%3C/svg%3E")
      right 1.45em top 1.05em / 4.15em auto no-repeat,
    linear-gradient(#F8FAFC, #F8FAFC) 0 0 / 100% 100% no-repeat;
}
.phone__screen::after { /* dynamic island */
  content: "";
  position: absolute; z-index: 6; left: 50%; top: .55em;
  width: 7.4em; height: 2.05em; translate: -50% 0;
  border-radius: 99em; background: #000;
}
.phone__time {
  position: absolute; z-index: 5; left: 2.0em; top: .92em;
  font-size: 1.02em; font-weight: 600; letter-spacing: -.01em; color: #171717;
}
.phone__body { position: absolute; inset: var(--top) 0 0; overflow: hidden; }
.phone--dark .phone__screen { background: #0B1120; color: #F5F5F5; color-scheme: dark; }
.phone--dark .phone__screen::before {
  filter: invert(1);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 12'%3E%3Cg fill='%23171717'%3E%3Crect x='0' y='7.5' width='3' height='4.5' rx='.8'/%3E%3Crect x='4.5' y='5.5' width='3' height='6.5' rx='.8'/%3E%3Crect x='9' y='3' width='3' height='9' rx='.8'/%3E%3Crect x='13.5' y='.5' width='3' height='11.5' rx='.8'/%3E%3Cpath d='M28 3.2a9.6 9.6 0 0 1 12.6 0l-1.3 1.4a7.6 7.6 0 0 0-10 0zM30.3 5.7a6.3 6.3 0 0 1 8 0l-1.4 1.4a4.3 4.3 0 0 0-5.2 0zM34.3 11.6l-2.2-2.3a3.2 3.2 0 0 1 4.4 0z'/%3E%3Crect x='45' y='1' width='19' height='10' rx='3' fill='none' stroke='%23171717' stroke-opacity='.4'/%3E%3Crect x='46.6' y='2.6' width='15.8' height='6.8' rx='1.8'/%3E%3Crect x='64.6' y='4' width='1.4' height='4' rx='.7' fill-opacity='.4'/%3E%3C/g%3E%3C/svg%3E")
      right 1.45em top 1.05em / 4.15em auto no-repeat,
    linear-gradient(#F4EEE0, #F4EEE0) 0 0 / 100% 100% no-repeat;
}
.phone--dark .phone__time { color: #F5F5F5; }

/* Authentic TransGood mobile screenshot layer inside .phone__screen */
.tg-shot {
  position: relative; width: 100%; height: 100%; background: #F8FAFC;
}
.phone--dark .tg-shot { background: #0B1120; }
.tg-shot picture { display: block; width: 100%; height: 100%; }
.tg-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- app-mock kit ---------- */
.m-pad { padding: 0 1.25em; }
.m-title { font-size: 2.1em; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.m-sub { color: #6E6E73; font-size: .875em; }
.m-hero { text-align: center; }
.m-hero__label { color: #6E6E73; font-size: 1em; }
.m-hero__num {
  display: flex; align-items: flex-start; justify-content: center; gap: .18em;
  font-size: 3.3em; font-weight: 700; letter-spacing: -.045em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.m-hero__num small { font-size: .42em; font-weight: 600; color: #6E6E73; margin-top: .22em; letter-spacing: -.02em; }
.m-pill {
  display: inline-flex; align-items: center; gap: .4em; padding: .55em 1em; border-radius: 99em;
  background: #F5F5F7; font-size: .95em; font-weight: 500;
}
.m-pill .up { color: #E5484D; }
.m-pill .down { color: #1E9E4A; }
.m-chip {
  display: inline-flex; align-items: center; gap: .35em; height: 2.1em; padding: 0 .85em; border-radius: 99em;
  background: #F5F5F7; font-size: .875em; font-weight: 500;
}
.m-chip.is-on { background: #171717; color: #fff; }
.m-btn {
  display: flex; align-items: center; justify-content: center; gap: .45em; height: 3em; border-radius: 99em;
  font-weight: 600; background: #F5F5F7;
}
.m-btn--dark { background: #171717; color: #fff; }
.m-group { background: #F5F5F7; border-radius: 1.15em; overflow: hidden; }
.m-dayhead { display: flex; justify-content: space-between; color: #6E6E73; font-size: .9em; padding: 1em .15em .45em; }
.m-tx { display: flex; align-items: center; gap: .75em; padding: .7em .9em; position: relative; }
.m-tx + .m-tx::before { content: ""; position: absolute; top: 0; right: 0; left: 3.9em; border-top: 1px solid #E5E5EA; }
.m-tile {
  width: 2.35em; height: 2.35em; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 1.05em; line-height: 1;
  background: color-mix(in srgb, var(--c, #0EA5E9) 16%, white);
}
.m-tile img { width: 76%; height: 76%; object-fit: contain; }
.m-logo {
  width: 2.35em; height: 2.35em; border-radius: 28%; flex: none;
  display: grid; place-items: center; background: var(--c); color: var(--ink, #fff);
}
.m-logo svg { width: 56%; height: 56%; fill: currentColor; }
.m-tx__main { flex: 1; min-width: 0; display: grid; gap: .1em; }
.m-tx__title { font-weight: 600; font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tx__meta { color: #6E6E73; font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tx__amt { font-weight: 600; font-size: .98em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-tx__amt.in { color: #1E9E4A; }
.m-tag { display: inline-flex; align-items: center; gap: .3em; color: #1E9E4A; font-weight: 600; font-size: .78em; }
.m-tag::before {
  content: ""; width: .95em; height: .95em; border-radius: 50%;
  background: #1E9E4A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8.2 9 4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.m-card {
  display: flex; align-items: center; gap: .75em; padding: .75em .95em; border-radius: 1.2em;
  background: #fff; color: #171717; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 28px -10px rgba(0,0,0,.22);
}
.m-notif {
  display: flex; gap: .7em; align-items: flex-start; padding: .8em .9em; border-radius: 1.35em;
  background: rgba(245, 245, 247, .9); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.3); color: #171717;
}
.m-notif__icon { width: 2.4em; height: 2.4em; border-radius: .6em; flex: none; background: #fff center / 82% no-repeat; }
.m-notif__top { display: flex; justify-content: space-between; font-size: .78em; color: #6E6E73; }
.m-notif__title { font-weight: 600; font-size: .92em; }
.m-notif__text { font-size: .88em; }

/* ---------- shell: header, nav, float-cta, footer ---------- */
.skip {
  position: fixed; z-index: 100; left: 12px; top: 12px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; translate: 0 -200%; transition: translate .2s;
}
.skip:focus { translate: 0 0; }

.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow .3s, background-color .3s;
}
.is-scrolled .site-header { box-shadow: 0 1px 0 var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 16px; }
@media (min-width: 961px) {
  .site-header__in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header__in > .brand { grid-column: 1; justify-self: start; }
  .site-header__in > .site-nav { grid-column: 2; }
  .site-header__in > .site-header__end { grid-column: 3; justify-self: end; }
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.brand svg.lockup { width: auto; height: 32px; }
.brand--fold > svg:not(.lockup) { display: none; }
@media (max-width: 389px) {
  .brand--fold > .lockup { display: none; }
  .brand--fold > svg:not(.lockup) { display: block; }
}
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--panel); color: var(--ink); }
.site-header__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__end > *, .lang svg { flex: none; }
.lang {
  height: 40px; min-width: 44px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.lang:hover { background: var(--panel); color: var(--ink); }
.lang svg { width: 17px; height: 17px; }
.signin { padding: 8px 12px; font-size: 15px; font-weight: 600; color: var(--ink); border-radius: 999px; white-space: nowrap; }
.signin:hover { background: var(--panel); }
.menu-btn { display: none; flex: none; width: 44px; height: 44px; border-radius: 999px; place-items: center; }
.menu-btn:hover { background: var(--panel); }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .x { display: none; }
.menu-open .menu-btn .x { display: block; }
.menu-open .menu-btn .bars { display: none; }
.site-menu {
  position: fixed; z-index: 49; inset: var(--header-h) 0 auto; padding: 8px var(--gutter) 24px;
  background: var(--bg); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25);
  display: none;
}
.menu-open .site-menu { display: block; }
.site-menu > a { display: block; padding: 14px 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.site-menu .cta-row { justify-content: stretch; margin-top: 20px; }
.site-menu .cta-row .btn { flex: 1; }
.menu-open .site-header { background: var(--bg); box-shadow: 0 1px 0 var(--line); }

.header-dark .site-header { background: color-mix(in srgb, var(--dark) 74%, transparent); box-shadow: 0 1px 0 var(--dark-line); }
.header-dark .site-header .brand, .header-dark .site-header .signin, .header-dark .site-header .menu-btn { color: var(--on-dark); }
.header-dark .site-nav a, .header-dark .site-header .lang { color: var(--on-dark-muted); }
.header-dark .site-nav a:hover, .header-dark .site-header .lang:hover, .header-dark .site-header .signin:hover,
.header-dark .site-header .menu-btn:hover { background: var(--dark-panel-2); color: var(--on-dark); }
.header-dark .site-header .btn--primary { background: var(--on-dark); color: #111; }
.site-header .brand, .site-nav a, .site-header .lang, .site-header .signin, .site-header .btn--primary { transition: color .3s, background-color .3s; }

@media (max-width: 960px) {
  .site-nav, .signin { display: none; }
  .menu-btn { display: grid; }
  .site-header .lang, .site-header .btn--sm { height: 44px; }
  .site-header .btn--sm {
    max-width: 200px; overflow: hidden;
    transition: max-width .45s var(--ease), padding .45s var(--ease), margin .45s var(--ease), opacity .25s,
      visibility 0s, color .3s, background-color .3s;
  }
  .cta-on .site-header .btn--sm, .menu-open .site-header .btn--sm {
    max-width: 0; padding-inline: 0; margin-left: -8px; opacity: 0; visibility: hidden;
    transition-delay: 0s, 0s, 0s, 0s, .45s, 0s, 0s;
  }
}
@media (max-width: 420px) {
  .site-header__end { gap: 4px; }
  .site-header .lang { padding: 0 10px; }
  .site-header .btn--sm { padding: 0 14px; }
  .cta-on .site-header .btn--sm, .menu-open .site-header .btn--sm { margin-left: -4px; }
}

/* ---------- floating CTA ---------- */
.float-cta {
  position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px -16px rgba(0, 0, 0, .35);
  translate: -50% calc(100% + 32px);
  opacity: 0;
  visibility: hidden;
  transition: translate .5s var(--ease), opacity .3s, visibility 0s .5s, background-color .3s, box-shadow .3s;
}
.cta-on .float-cta { translate: -50% 0; opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open .float-cta { translate: -50% calc(100% + 32px); opacity: 0; visibility: hidden; }
.float-cta .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.float-cta .btn--ghost { background: transparent; color: var(--ink); }
.float-cta .btn--ghost:hover { background: var(--panel); }
.cta-dark .float-cta {
  background: color-mix(in srgb, var(--dark-panel) 78%, transparent);
  box-shadow: 0 0 0 1px var(--dark-line), 0 16px 40px -16px rgba(0, 0, 0, .6);
}
.cta-dark .float-cta .btn--ghost { color: var(--on-dark); }
.cta-dark .float-cta .btn--ghost:hover { background: var(--dark-panel-2); }
.cta-dark .float-cta .btn--primary { background: var(--on-dark); color: #111; }
@media (max-width: 420px) { .float-cta .btn { padding: 0 16px; } }

/* ---------- footer ---------- */
.site-footer { padding: clamp(64px, 9vw, 112px) 0 40px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer__links {
  grid-column: 2 / -1; display: grid; row-gap: 40px;
  grid-template-columns: repeat(3, 1fr); grid-template-columns: subgrid;
}
.site-footer .brand { color: var(--on-dark); }
.site-footer__tag { margin-top: 14px; max-width: 300px; color: var(--on-dark-muted); font-size: 15px; }
.site-footer h2 { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 14px; }
.site-footer li + li { margin-top: 10px; }
.site-footer li a { color: var(--on-dark); font-size: 15px; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__notes {
  margin-top: clamp(48px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--dark-line);
  display: grid; gap: 10px; color: var(--on-dark-muted); font-size: 13px; line-height: 1.5;
}
.site-footer__notes > * { max-width: 860px; }
.site-footer__bottom {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  color: var(--on-dark-muted); font-size: 13px;
}
.site-footer__picks { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-footer .lang { color: var(--on-dark); background: var(--dark-panel); }
.site-footer .lang:hover { background: var(--dark-panel-2); color: var(--on-dark); }
@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__about, .site-footer__links { grid-column: 1 / -1; }
  .site-footer li + li { margin-top: 0; }
  .site-footer li a { display: inline-block; padding: 11px 0; }
  .site-footer h2 { margin-bottom: 2px; }
  .site-footer .lang { height: 44px; }
}

.i18n-wait body { opacity: 0; }
body { transition: opacity .2s; }
