/* ════════════════════════════════════════════════════════════════
   KOYRA — Public site design system
   SwiftUI-inspired: layered depth, frosted glass, spring motion,
   generous radii. Amber star throughline from the child app.
   Never red. Never alarming.
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@500;600;700;800;900&family=Schibsted+Grotesk:wght@500;600;700;800;900&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Lexend:wght@400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Amber — Zirka's color, the throughline */
  --amber:        #F59E0B;
  --amber-light:  #FBBF24;
  --amber-deep:   #D97706;
  --amber-ink:    #B45309;
  --amber-tint:   rgba(245,158,11,.10);
  --amber-tint-2: rgba(245,158,11,.18);

  /* Language blue (from the app's bilingual track) + steel for NGO sections */
  --lang-blue:       #2BA0D8;
  --lang-blue-soft:  rgba(43,160,216,.12);
  --steel:           oklch(0.52 0.07 235);
  --steel-soft:      oklch(0.52 0.07 235 / .10);
  --sage:            #3F9D72;
  --sage-soft:       rgba(63,157,114,.12);

  /* Night sky — hero + dark accents (from the child app's sky) */
  --night-0: #0A0E22;
  --night-1: #101538;
  --night-2: #1A2148;
  --night-ink: #F4F0E4;
  --night-ink-2: #B9B4C9;

  /* ── Canonical warm-neutral base — ONE family ──
     Base hue 92, low chroma. Every beige below is a mathematical
     tint/shade of this single value; never eyeballed per section. */
  --bg:          oklch(0.964 0.021 92);
  --bg-2:        oklch(0.942 0.027 92);
  --surface:     oklch(0.988 0.010 92);
  --surface-2:   oklch(0.977 0.015 92);
  --glass:       oklch(0.977 0.015 92 / .58);
  --glass-strong:oklch(0.981 0.013 92 / .82);
  --glass-edge:  oklch(1 0 0 / .6);
  --shade:       oklch(0.55 0.06 92 / .05);
  --ink:         oklch(0.246 0.012 55);
  --ink-2:       oklch(0.45 0.016 70);
  --ink-3:       oklch(0.60 0.020 82);
  --line:        oklch(0.30 0.03 80 / .10);
  --line-2:      oklch(0.30 0.03 80 / .17);
  --on-accent:   #FFFFFF;

  /* Dawn sky */
  --dawn-0: oklch(0.165 0.050 282);
  --dawn-1: oklch(0.225 0.068 281);
  --dawn-2: oklch(0.340 0.072 302);
  --dawn-3: oklch(0.630 0.095 55);
  --dawn-4: oklch(0.850 0.068 85);
  --dawn-glow: oklch(0.78 0.12 70 / .4);
  --lx: 32%;

  /* Ridge silhouettes — the scene system (masks + colors) */
  --ridge1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 240' preserveAspectRatio='none'%3E%3Cpath d='M0 150C140 78 300 128 460 100 620 72 780 138 960 104 1120 74 1300 128 1440 90L1440 240 0 240Z'/%3E%3C/svg%3E");
  --ridge2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 240' preserveAspectRatio='none'%3E%3Cpath d='M0 190C120 150 220 96 360 118 520 144 600 88 760 122 920 156 1040 96 1200 128 1310 150 1380 132 1440 142L1440 240 0 240Z'/%3E%3C/svg%3E");
  --ridge3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 240' preserveAspectRatio='none'%3E%3Cpath d='M0 205C180 172 330 200 520 184 700 168 860 204 1060 188 1230 174 1340 196 1440 180L1440 240 0 240Z'/%3E%3C/svg%3E");
  --ridge4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 240' preserveAspectRatio='none'%3E%3Cpath d='M0 216C240 190 480 218 720 202 960 186 1200 214 1440 198L1440 240 0 240Z'/%3E%3C/svg%3E");
  --ridgec-1: oklch(0.47 0.078 315);
  --ridgec-2: oklch(0.335 0.066 296);
  --ridgec-3: oklch(0.235 0.052 288);

  /* Shadows — soft, warm, generous */
  --sh-rest:  0 1px 2px rgba(28,25,23,.04), 0 4px 14px rgba(28,25,23,.05);
  --sh-lift:  0 6px 16px rgba(28,25,23,.07), 0 20px 44px rgba(28,25,23,.10);
  --sh-float: 0 12px 28px rgba(28,25,23,.10), 0 36px 80px rgba(28,25,23,.16);
  --sh-glow:  0 6px 24px rgba(245,158,11,.35);

  /* Radii — rounded everything */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Type */
  --font-display: 'Schibsted Grotesk', 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Motion — spring physics, not linear easing */
  --spring:        linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.077 22.4%, 1.121 25.3%, 1.149 28.3%, 1.159 31%, 1.163 33.4%, 1.154 36.4%, 1.129 40.8%, 1.051 47.6%, 1.017 51.1%, 0.991 55.4%, 0.977 59%, 0.974 62.8%, 0.975 67.1%, 0.997 79.8%, 1.003 86.9%, 1);
  --spring-soft:   linear(0, 0.06, 0.22 4.9%, 0.53 9.4%, 0.751 12%, 0.917 15.4%, 1.018 18.9%, 1.062 22.4%, 1.073 25.3%, 1.061 29.5%, 1.032 34%, 1.006 40.7%, 0.995 47%, 0.996 55%, 1 68%, 1);
  --settle:        cubic-bezier(.22, 1, .36, 1);
  --t-fast: 260ms;
  --t-med:  560ms;
  --t-slow: 850ms;

  --text-scale: 1;
  --pad-mult: 1;
  --sec-pad: calc(clamp(76px, 9vw, 132px) * var(--pad-mult));
  --nav-h: 72px;
  --wrap: 1160px;
}

html[data-density="airy"] { --pad-mult: 1.3; }

/* ── Night theme (site-wide) ────────────────────────────────── */
html[data-theme="night"] {
  --bg:          #0D1129;
  --bg-2:        #12173414;
  --bg-2:        #131840;
  --surface:     #171D42;
  --surface-2:   #1B2148;
  --glass:       rgba(19, 24, 58, .60);
  --glass-strong:rgba(17, 22, 54, .85);
  --ink:         #F4F0E4;
  --ink-2:       #C6C1D4;
  --ink-3:       #8E89A3;
  --line:        rgba(244,240,228,.10);
  --line-2:      rgba(244,240,228,.18);
  --amber-tint:  rgba(245,158,11,.14);
  --amber-tint-2:rgba(245,158,11,.24);
  --lang-blue-soft: rgba(43,160,216,.18);
  --steel-soft:  oklch(0.52 0.07 235 / .25);
  --sage-soft:   rgba(63,157,114,.2);
  --sh-rest:  0 1px 2px rgba(0,0,0,.25), 0 4px 14px rgba(0,0,0,.25);
  --sh-lift:  0 6px 16px rgba(0,0,0,.3), 0 20px 44px rgba(0,0,0,.35);
  --sh-float: 0 12px 28px rgba(0,0,0,.35), 0 36px 80px rgba(0,0,0,.5);
  --glass-edge: oklch(1 0 0 / .13);
  --shade: oklch(1 0 0 / .028);
  --dawn-2: oklch(0.270 0.060 295);
  --dawn-3: oklch(0.380 0.060 50);
  --dawn-4: oklch(0.300 0.045 60);
  --dawn-glow: oklch(0.50 0.09 60 / .25);
  --ridgec-1: oklch(0.29 0.06 300);
  --ridgec-2: oklch(0.215 0.05 292);
  --ridgec-3: oklch(0.165 0.042 286);
}

/* ── Base ───────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { background: var(--bg); font-size: calc(16px * var(--text-scale)); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html[data-motion="calm"] { scroll-behavior: auto; }
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[data-dyslexic="true"] body,
html[data-dyslexic="true"] .display,
html[data-dyslexic="true"] h1, html[data-dyslexic="true"] h2,
html[data-dyslexic="true"] h3, html[data-dyslexic="true"] h4,
html[data-dyslexic="true"] button, html[data-dyslexic="true"] input,
html[data-dyslexic="true"] textarea, html[data-dyslexic="true"] select {
  font-family: 'Lexend', var(--font-body) !important;
  letter-spacing: .01em;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
::selection { background: var(--amber-tint-2); }

:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px rgba(245,158,11,.55); border-radius: var(--r-sm); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
section { padding: var(--sec-pad) 0; position: relative; }

/* ── Type scale ─────────────────────────────────────────────── */
.display, h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.1vw, 4.1rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.008em; }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; max-width: 42em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
html[data-theme="night"] .eyebrow { color: var(--night-ink-2); }
.eyebrow .spark { width: 11px; height: 11px; flex: none; color: var(--amber); }
p.body { color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.sec-head { max-width: 720px; display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ── Buttons — compress on press, spring back ───────────────── */
.zbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 16px 28px; border-radius: var(--r-pill);
  transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--spring),
              background-color var(--t-fast) ease, border-color var(--t-fast) ease;
  will-change: transform;
  white-space: nowrap;
}
.zbtn:active { transform: scale(.92); transition-duration: 90ms; }
.zbtn .arr { transition: transform var(--t-med) var(--spring); }
.zbtn:hover .arr { transform: translateX(5px); }

.zbtn-primary {
  background: var(--ink); color: var(--surface);
  box-shadow: 0 1px 2px rgba(28,25,23,.25), 0 10px 26px -10px rgba(28,25,23,.45);
}
.zbtn-primary:hover { transform: translateY(-3px) scale(1.045); box-shadow: 0 3px 6px rgba(28,25,23,.25), 0 22px 44px -12px rgba(28,25,23,.55); }
.zbtn-primary:active { transform: scale(.92); }
.page-hero-night .zbtn-primary, .hero .zbtn-primary, .zfoot .zbtn-primary {
  background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -10px rgba(0,0,0,.5);
}
html[data-theme="night"] .zbtn-primary { background: var(--night-ink); color: var(--night-0); }

.zbtn-ghost {
  position: relative;
  background: color-mix(in srgb, var(--surface) 46%, transparent); border: 1px solid var(--glass-edge, var(--line-2)); color: var(--ink);
  -webkit-backdrop-filter: blur(20px) saturate(1.9); backdrop-filter: blur(20px) saturate(1.9);
  box-shadow: 0 1px 2px rgba(28,25,23,.05), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -8px 18px rgba(255,255,255,.12);
}
.zbtn-ghost:hover { transform: translateY(-3px) scale(1.045); box-shadow: var(--sh-lift), inset 0 1px 0 rgba(255,255,255,.6); border-color: var(--amber); }
/* Glass sheen: a light streak sweeps across the frosted buttons on hover */
.zbtn-ghost::before, .zbtn-onnight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.5) 48%, transparent 62%);
  background-size: 260% 100%; background-position: 180% 0; opacity: .0;
  transition: background-position .7s var(--settle), opacity .3s ease;
}
html[data-theme="night"] .zbtn-onnight::before, .zbtn-onnight::before { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.34) 48%, transparent 62%); background-size: 260% 100%; background-position: 180% 0; }
.zbtn-ghost:hover::before, .zbtn-onnight:hover::before { background-position: -60% 0; opacity: 1; }
/* Glass press feedback: momentary brighten + inner gloss on the frosted buttons */
.zbtn-ghost, .zbtn-onnight { overflow: hidden; }
.zbtn-ghost::after, .zbtn-onnight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 140% at 50% 120%, rgba(255,255,255,.5), transparent 60%);
  opacity: 0; transition: opacity var(--t-fast) ease;
}
html[data-theme="night"] .zbtn-onnight::after, .zbtn-onnight::after { background: radial-gradient(120% 140% at 50% 120%, rgba(255,255,255,.32), transparent 60%); }
.zbtn-ghost:active::after, .zbtn-onnight:active::after { opacity: 1; transition-duration: 0ms; }
.zbtn-ghost:active, .zbtn-onnight:active { -webkit-backdrop-filter: blur(26px) saturate(2.1); backdrop-filter: blur(26px) saturate(2.1); }

.zbtn-quiet { color: var(--ink-2); padding: 16px 18px; font-weight: 700; }
.zbtn-quiet:hover { color: var(--ink); }

.zbtn-onnight { position: relative; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.28); color: var(--night-ink); backdrop-filter: blur(24px) saturate(2); -webkit-backdrop-filter: blur(24px) saturate(2); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -10px 22px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.22); }
.zbtn-onnight:hover { background: rgba(255,255,255,.17); transform: translateY(-3px) scale(1.045); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 34px rgba(0,0,0,.3); }
.zbtn-onnight:hover { background: rgba(255,255,255,.16); transform: translateY(-3px) scale(1.045); }

/* ── Nav — frosted, floating ────────────────────────────────── */
.znav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px clamp(12px, 3vw, 22px) 0;
  transition: transform var(--t-med) var(--settle);
}
.znav-inner {
  position: relative; max-width: 1120px; margin: 0 auto;
  padding: 10px 12px 10px 20px;
  display: flex; align-items: center; gap: 22px;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9);
  box-shadow: 0 16px 40px -20px rgba(28,25,23,.34), inset 0 1px 0 rgba(255,255,255,.6);
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.znav-inner > * { max-width: none; }
.znav.scrolled .znav-inner {
  border-color: var(--line-2);
  box-shadow: 0 20px 50px -20px rgba(28,25,23,.42), inset 0 1px 0 rgba(255,255,255,.66);
}

/* Nav material shifts with the scenery: translucent night glass over the dawn
   hero (still clearly visible from the top), light glass once you scroll into morning. */
.znav.over-night .znav-inner {
  background: oklch(0.17 0.045 284 / .52);
  -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
  border-color: oklch(0.96 0.02 92 / .14);
  box-shadow: 0 18px 46px -22px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1);
}
.znav.scrolled.over-night .znav-inner {
  background: oklch(0.16 0.04 284 / .62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: oklch(1 0 0 / .08);
  box-shadow: 0 12px 40px -22px rgba(0,0,0,.5);
}
.znav.over-night .brand-name { color: var(--night-ink); }
.znav.over-night .znav-links a { color: var(--night-ink-2); }
.znav.over-night .znav-links a:hover { color: var(--night-ink); background: oklch(1 0 0 / .09); }
.znav.over-night .znav-links a.active { color: var(--amber-light); background: oklch(0.8 0.14 80 / .16); }
.znav.over-night .lang-btn { color: var(--night-ink-2); border-color: oklch(0.96 0.02 92 / .22); }
.znav.over-night .zbtn-ghost { background: oklch(1 0 0 / .12); border-color: oklch(0.96 0.02 92 / .28); color: var(--night-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.znav.over-night .lang-menu { background: oklch(0.20 0.04 285 / .92); border-color: oklch(0.96 0.02 92 / .15); }
.znav.over-night .lang-menu button { color: var(--night-ink); }
.znav.over-night .lang-menu button:hover { background: oklch(1 0 0 / .08); }
.znav.over-night .lang-menu button .soon { color: var(--night-ink-2); }
.znav.over-night .lang-menu button.on .check { color: var(--amber-light); }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(150deg, var(--amber-light), var(--amber-deep));
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(245,158,11,.4), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform var(--t-med) var(--spring);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; transition: color .35s ease; }
.brand-tag { font-size: .72rem; font-weight: 600; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 1px; }

.znav-links { display: flex; align-items: center; gap: 4px; }
.znav-links a {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink-2);
  padding: 9px 15px; border-radius: var(--r-pill);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-med) var(--spring);
}
.znav-links a:hover { color: var(--ink); background: var(--amber-tint); transform: translateY(-1px); }
.znav-links a.active { color: var(--amber-ink); background: var(--amber-tint); }
html[data-theme="night"] .znav-links a.active { color: var(--amber-light); }
.znav-cta { display: flex; align-items: center; gap: 8px; }
.znav-cta .zbtn { padding: 11px 20px; font-size: .93rem; }

/* Language pill */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--ink-2);
  padding: 10px 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
  transition: border-color var(--t-fast) ease, color .35s ease, transform var(--t-med) var(--spring);
}
.lang-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 205px;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--r-md);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: var(--sh-float); padding: 6px;
  opacity: 0; transform: translateY(-6px) scale(.96); transform-origin: top right;
  pointer-events: none;
  transition: opacity var(--t-fast) ease, transform var(--t-med) var(--spring);
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border-radius: 10px; font-size: .93rem; font-weight: 600; color: var(--ink);
  text-align: left;
}
.lang-menu button:hover { background: var(--amber-tint); }
.lang-menu button .soon { font-size: .72rem; font-weight: 700; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }
.lang-menu button.on .check { color: var(--amber-deep); font-weight: 900; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(28,25,23,.03), 0 16px 36px -20px rgba(28,25,23,.12);
  padding: 30px;
  transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--settle), border-color var(--t-fast) ease;
}
a.card:hover, .card.hoverable:hover { transform: translateY(-6px) scale(1.013); box-shadow: var(--sh-lift); border-color: var(--line-2); }

/* ── Spotlight glow (amber, cursor-tracked) on cards ── */
.card, .aud-card, .pilot-card { --mx: 50%; --my: 50%; }
.card::after, .aud-card::after, .pilot-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(245,158,11,.16), transparent 68%);
}
html[data-theme="night"] .card::after, html[data-theme="night"] .aud-card::after, html[data-theme="night"] .pilot-card::after {
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(251,191,36,.20), transparent 66%);
}
.card:hover::after, .card:focus-within::after,
.aud-card:hover::after, .pilot-card:hover::after { opacity: 1; }
.card > *, .aud-card > *, .pilot-card > * { position: relative; z-index: 1; }

/* ── Gradual blur seam (ported GradualBlur, pure CSS layers via JS) ── */
.gblur { position: absolute; left: 0; right: 0; height: 112px; z-index: 6; pointer-events: none; }
.gblur.gblur-bottom { bottom: 0; }
.gblur.gblur-top { top: 0; }
.gblur > div { position: absolute; inset: 0; }
html[data-motion="calm"] .gblur { display: none; }

/* ── Glassier header: stronger frost + a hairline top gloss ── */
.znav-inner { -webkit-backdrop-filter: blur(30px) saturate(2.1); backdrop-filter: blur(30px) saturate(2.1); box-shadow: var(--sh-rest), inset 0 1px 0 rgba(255,255,255,.75), inset 0 -14px 26px rgba(255,255,255,.06); }
html[data-theme="night"] .znav-inner { box-shadow: var(--sh-rest), inset 0 1px 0 rgba(255,255,255,.14); }
a.card:active { transform: translateY(-2px) scale(.985); transition-duration: 90ms; }

/* Kill the old liquid-glass specular/refraction layers — flat, official surfaces */
.card::before, .prob-card::before, .clf-step::before, .bridge::before,
.znav-inner::before, .lang-menu::before, .gate-card::before, .mock-float::before,
.pk-stage::before, .znav-inner::after, .gate-card::after, .form-card::after,
.report-card::after { content: none; }

/* ── Liquid-glass material ──────────────────────────────── */
.prob-card, .clf-step, .bridge, .znav-inner, .gate-card { position: relative; }

/* Specular highlight — a soft light-catch along the top edge that
   follows the pointer (global light source via --lx). Sits above the
   panel's background, below its content. */
.card::before, .prob-card::before, .clf-step::before, .bridge::before,
.znav-inner::before, .lang-menu::before, .gate-card::before, .mock-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(190px 46px at var(--lx, 32%) -8px, oklch(1 0 0 / .55), transparent 72%),
    linear-gradient(180deg, oklch(1 0 0 / .34), oklch(1 0 0 / 0) 16%);
}
html[data-theme="night"] .card::before,
html[data-theme="night"] .prob-card::before,
html[data-theme="night"] .clf-step::before,
html[data-theme="night"] .bridge::before,
html[data-theme="night"] .znav-inner::before,
html[data-theme="night"] .lang-menu::before,
html[data-theme="night"] .mock-float::before,
.znav.over-night .znav-inner::before,
.gate-card::before {
  background:
    radial-gradient(190px 46px at var(--lx, 32%) -8px, oklch(1 0 0 / .15), transparent 72%),
    linear-gradient(180deg, oklch(1 0 0 / .09), oklch(1 0 0 / 0) 16%);
}

/* Edge refraction — a masked ring that re-blurs and brightens the
   backdrop only at the panel border, so content behind seems to bend. */
.znav-inner::after, .gate-card::after, .form-card::after, .report-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; padding: 7px;
  -webkit-backdrop-filter: blur(8px) saturate(1.5) brightness(1.045);
  backdrop-filter: blur(8px) saturate(1.5) brightness(1.045);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--amber-tint); color: var(--amber-ink); border: 1px solid rgba(245,158,11,.25);
}
html[data-theme="night"] .chip { color: var(--amber-light); }
.chip.blue { background: var(--lang-blue-soft); color: #14719f; border-color: rgba(43,160,216,.3); }
html[data-theme="night"] .chip.blue { color: #7CC9EC; }
.chip.sage { background: var(--sage-soft); color: #23744f; border-color: rgba(63,157,114,.3); }
html[data-theme="night"] .chip.sage { color: #7ED0AB; }
.chip.steel { background: var(--steel-soft); color: var(--steel); border-color: oklch(0.52 0.07 235 / .3); }
html[data-theme="night"] .chip.steel { color: oklch(0.78 0.06 235); }

/* Placeholder flag — honest, visible, tasteful */
.ph-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  border: 1.4px dashed var(--line-2); border-radius: 8px; padding: 4px 9px;
  vertical-align: middle;
}

/* ── Screenshots / product shots ────────────────────────────── */
.shot {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-lift);
  background: var(--surface);
  transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--settle);
}
.shot img { width: 100%; }
.shot.hoverable:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--sh-float); }
.shot-caption { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--ink-3); font-weight: 600; }
.shot-caption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }

/* Bare (transparent-bezel) shots — no frame needed */
.shot-bare { filter: drop-shadow(0 24px 48px rgba(28,25,23,.22)); }
html[data-theme="night"] .shot-bare { filter: drop-shadow(0 24px 48px rgba(0,0,0,.5)); }

/* ── Night panels (hero, stats, closing CTA) ────────────────── */
.night-panel {
  position: relative; overflow: hidden;
  background: radial-gradient(130% 90% at 50% -20%, var(--night-2), var(--night-1) 55%, var(--night-0));
  color: var(--night-ink);
}
.night-panel h1, .night-panel h2, .night-panel h3 { color: var(--night-ink); }
.night-panel .lede, .night-panel p.body { color: var(--night-ink-2); }
.night-panel .eyebrow { color: var(--amber-light); }
.night-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.night-content { position: relative; z-index: 2; }

/* ── Reveal on scroll — staggered spring entrances ──────────── */
.reveal {
  opacity: 0; transform: translateY(30px) scale(.98); filter: blur(6px);
  will-change: transform, opacity, filter;
  transition: opacity .9s cubic-bezier(.22,.6,.24,1), transform 1.25s cubic-bezier(.16,1,.3,1), filter .75s cubic-bezier(.22,.6,.24,1);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-rise="lg"] { transform: translateY(56px) scale(.965); }
.reveal[data-rise="lg"].in { transform: none; }
.reveal[data-anim="zoom"] { transform: scale(.88) translateY(26px); }
.reveal[data-anim="zoomout"] { transform: scale(1.12); }
.reveal[data-anim="left"] { transform: translateX(-72px); }
.reveal[data-anim="right"] { transform: translateX(72px); }
.reveal.in[data-anim] { transform: none; }

html[data-motion="calm"] .reveal { transform: none; filter: none; transition: opacity .5s ease; }
html[data-motion="calm"] .zbtn, html[data-motion="calm"] .card, html[data-motion="calm"] .shot { transition-timing-function: ease; transition-duration: .25s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ── Grids ──────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Icon tiles ─────────────────────────────────────────────── */
.tile {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--amber-tint); color: var(--amber-deep);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,.22);
  transition: transform var(--t-med) var(--spring);
}
html[data-theme="night"] .tile { color: var(--amber-light); }
.tile svg { width: 22px; height: 22px; }
.card:hover .tile, a.card:hover .tile { transform: scale(1.12) rotate(-4deg); }
.tile.blue { background: var(--lang-blue-soft); color: #14719f; box-shadow: inset 0 0 0 1px rgba(43,160,216,.25); }
html[data-theme="night"] .tile.blue { color: #7CC9EC; }
.tile.sage { background: var(--sage-soft); color: #23744f; box-shadow: inset 0 0 0 1px rgba(63,157,114,.25); }
html[data-theme="night"] .tile.sage { color: #7ED0AB; }
.tile.steel { background: var(--steel-soft); color: var(--steel); box-shadow: inset 0 0 0 1px oklch(0.52 0.07 235 / .25); }
html[data-theme="night"] .tile.steel { color: oklch(0.78 0.06 235); }

/* ── Stats counters ─────────────────────────────────────────── */
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 4.6vw, 3.9rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--amber-deep);
  letter-spacing: -.01em;
}
html[data-theme="night"] .stat-num, .night-panel .stat-num { color: var(--amber-light); }
.stat-label { font-size: 1rem; line-height: 1.45; color: var(--ink-2); margin-top: 10px; text-wrap: pretty; }
.night-panel .stat-label { color: var(--night-ink-2); }
.stat-src { font-size: .78rem; color: var(--ink-3); margin-top: 8px; font-weight: 600; letter-spacing: .03em; }
.night-panel .stat-src { color: var(--night-ink-2); opacity: .65; }

/* ── Footer ─────────────────────────────────────────────────── */
.zfoot { position: relative; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, var(--night-1), var(--night-0)); color: var(--night-ink-2); margin-top: 0; }

/* Footer horizon — dusk ridges rise out of the light page into night */
.foot-scene { position: relative; height: clamp(84px, 11vw, 140px); background: var(--bg); z-index: 2; }
.foot-scene i {
  position: absolute; left: 0; right: 0; bottom: -1px; display: block;
  -webkit-mask: var(--m) center bottom / 100% 100% no-repeat;
  mask: var(--m) center bottom / 100% 100% no-repeat;
}
.foot-scene .fr1 { height: 96%; background: var(--ridgec-2); --m: var(--ridge2); }
.foot-scene .fr2 { height: 58%; background: var(--night-1); --m: var(--ridge3); }
.zfoot .night-canvas { top: clamp(84px, 11vw, 140px); height: calc(100% - clamp(84px, 11vw, 140px)); }
.zfoot .inner { position: relative; z-index: 2; padding: 40px 0 44px; }
.zfoot h4 { font-family: var(--font-display); font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--night-ink); margin-bottom: 16px; }
.zfoot a { transition: color var(--t-fast) ease; }
.zfoot a:hover { color: var(--amber-light); }
.zfoot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(244,240,228,.12); }
@media (max-width: 900px) { .zfoot .cols { grid-template-columns: 1fr 1fr; } }
.zfoot .col ul { display: grid; gap: 10px; font-size: .96rem; }
.zfoot .fine { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding-top: 26px; font-size: .84rem; opacity: .75; }
.zfoot .motto { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--amber-light); letter-spacing: .01em; }

/* ── Page navigation: no custom transition. Body must never be transformed
   or filtered, or the fixed nav loses its viewport pinning. Kept plain. ── */

/* ── Misc ───────────────────────────────────────────────────── */
.spacer-nav { height: calc(var(--nav-h) + 26px); }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.kbd-note { font-size: .84rem; color: var(--ink-3); }
.tick { color: var(--sage); font-weight: 900; }

.band { background: none; }

/* Toast */
.ztoast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 90px) scale(.9);
  z-index: 300; pointer-events: none;
  background: var(--glass-strong); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 14px 22px; border-radius: var(--r-pill);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--sh-float);
  opacity: 0; transition: opacity var(--t-fast) ease, transform var(--t-med) var(--spring);
}
.ztoast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Shared additions: bullets, frames, footer CTA, crops ───── */
.lang-btn .car { width: 10px; height: 6px; opacity: .65; }

/* Star-spark list bullet (replaces generic ticks) */
.sb { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--amber); }

/* Mono example chips (a real example says more than a generic icon) */
.ex-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-2); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
html[data-theme="night"] .ex-chip { background: rgba(255,255,255,.05); }

/* Browser window frame for desktop product shots */
.browser-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-lift); background: var(--surface); transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--settle); }
.browser-frame:hover { transform: translateY(-5px) scale(1.012); box-shadow: var(--sh-float); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
html[data-theme="night"] .browser-bar { background: rgba(255,255,255,.04); }
.browser-bar .dots { display: flex; gap: 5px; }
.browser-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser-bar .url {
  flex: 1; max-width: 320px; margin: 0 auto; text-align: center;
  font-size: .72rem; font-weight: 600; color: var(--ink-3);
  background: var(--bg-2); border-radius: 8px; padding: 4px 12px;
}
html[data-theme="night"] .browser-bar .url { background: rgba(255,255,255,.06); }

/* Uniform-crop product shots (avoids the stretched-wide look) */
.cover-1610 { aspect-ratio: 16 / 10; }
.cover-1610 img { width: 100%; height: 100%; object-fit: cover; }

/* Footer dusk — replaced by the .foot-scene ridge horizon above. */

/* Dawn-sky hero — deep indigo through an amber-rose horizon into the
   cream base. The last stop IS var(--bg), so the seam into the next
   section is invisible by construction. */
.page-hero-night, .hero {
  position: relative; overflow: hidden;
  color: var(--night-ink);
  background:
    radial-gradient(52% 30% at 50% 100%, oklch(0.78 0.13 70 / .5), transparent 72%),
    radial-gradient(70% 46% at 82% -10%, oklch(0.28 0.08 292 / .6), transparent 62%),
    linear-gradient(180deg,
      oklch(0.155 0.042 282) 0%,
      oklch(0.195 0.058 283) 30%,
      oklch(0.255 0.070 289) 50%,
      oklch(0.36 0.082 305) 66%,
      oklch(0.52 0.088 342) 77%,
      oklch(0.70 0.105 55) 87%,
      oklch(0.84 0.105 75) 100%);
}
html[data-theme="night"] .page-hero-night, html[data-theme="night"] .hero {
  background:
    radial-gradient(52% 26% at 50% 100%, oklch(0.45 0.09 60 / .4), transparent 72%),
    radial-gradient(70% 46% at 82% -10%, oklch(0.26 0.07 292 / .6), transparent 62%),
    linear-gradient(180deg, oklch(0.14 0.04 282) 0%, oklch(0.18 0.055 283) 40%, oklch(0.24 0.06 292) 65%, oklch(0.33 0.06 330) 82%, oklch(0.42 0.07 45) 100%);
}

/* Layered mountain ridges at the foot of every scene. The front "fog"
   layer is filled with the page background color, so the hero always
   ends in a drawn horizon — never a gradient seam. */
.scene-ridge {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; pointer-events: none;
  -webkit-mask: var(--m) center bottom / 100% 100% no-repeat;
  mask: var(--m) center bottom / 100% 100% no-repeat;
}
.scene-ridge.r1 { height: clamp(120px, 17vw, 235px); background: var(--ridgec-1); --m: var(--ridge1); }
.scene-ridge.r2 { height: clamp(88px, 12.5vw, 175px); background: var(--ridgec-2); --m: var(--ridge2); }
.scene-ridge.r3 { height: clamp(62px, 9vw, 128px); background: var(--ridgec-3); --m: var(--ridge3); }
.scene-ridge.fog { height: clamp(38px, 5.5vw, 80px); background: var(--bg); --m: var(--ridge4); }
.page-hero-night h1, .page-hero-night h2 { color: var(--night-ink); }
.page-hero-night .lede, .page-hero-night p.body { color: var(--night-ink-2); }
.page-hero-night .eyebrow { color: var(--amber-light); }
.page-hero-night .kbd-note { color: var(--night-ink-2); }
.page-hero-night .ph-flag { border-color: oklch(0.98 0.01 92 / .4); color: oklch(0.98 0.01 92 / .85); }
.page-hero-night .wrap { position: relative; z-index: 2; }

/* Footer with integrated closing CTA (night bookend, one continuous block) */
.zfoot .foot-cta {
  display: grid; gap: 22px; justify-items: center; text-align: center;
  padding: 16px 0 68px; margin-bottom: 56px;
  border-bottom: 1px solid rgba(244,240,228,.12);
}
.zfoot .foot-cta h2 { color: var(--night-ink); }
.zfoot .foot-cta .lede { color: var(--night-ink-2); }
.zfoot .foot-cta .ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.zfoot .foot-cta .fine-line { font-size: .92rem; color: var(--night-ink-2); }

/* ── Ambient wash — one restrained dawn field that drifts with scroll.
   Amber-led (the brand throughline) with a single cool indigo counterweight.
   Deliberately two hues, low chroma — no rainbow of orbs. ── */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.ambient .a1 {
  width: 66vw; height: 66vw; left: -18vw; top: 0vh;
  background: radial-gradient(circle, oklch(0.86 0.055 80 / .14), transparent 64%);
  transform: translate3d(calc(var(--sp, 0) * 12vw), calc(var(--sp, 0) * -54vh), 0);
}
.ambient .a2 {
  width: 72vw; height: 72vw; right: -24vw; top: 40vh;
  background: radial-gradient(circle, oklch(0.60 0.05 278 / .11), transparent 64%);
  transform: translate3d(calc(var(--sp, 0) * -13vw), calc(var(--sp, 0) * -74vh), 0);
}
.ambient .a3 {
  width: 52vw; height: 52vw; left: 20vw; top: 96vh;
  background: radial-gradient(circle, oklch(0.74 0.05 72 / .11), transparent 64%);
  transform: translate3d(calc(var(--sp, 0) * 8vw), calc(var(--sp, 0) * -40vh), 0);
}
.ambient .rb2 {
  width: 150vw; height: 32vh; left: -25vw; top: 56vh;
  background: radial-gradient(48% 50% at 50% 50%, oklch(0.84 0.05 82 / .07), transparent 74%);
  transform: rotate(calc(6deg - var(--sp, 0) * 12deg)) translate3d(0, calc(var(--sp, 0) * -34vh), 0);
}
.ambient::after { content: ""; position: absolute; inset: 0; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
html[data-theme="night"] .ambient .a1 { background: radial-gradient(circle, oklch(0.56 0.075 68 / .22), transparent 64%); }
html[data-theme="night"] .ambient .a2 { background: radial-gradient(circle, oklch(0.44 0.085 278 / .30), transparent 64%); }
html[data-theme="night"] .ambient .a3 { background: radial-gradient(circle, oklch(0.52 0.07 70 / .18), transparent 64%); }
html[data-theme="night"] .ambient .rb2 { background: radial-gradient(48% 50% at 50% 50%, oklch(0.50 0.07 76 / .11), transparent 74%); }
html[data-theme="night"] .ambient::after { opacity: .06; }
html[data-motion="calm"] .ambient i { transform: none; }

/* build_website: the note about the old name, beside the logo */
.brand-wrap { display: flex; align-items: center; gap: 5px; margin-right: auto; position: relative; }
.brand-wrap .brand { margin-right: 0; }
.brand-info { display: flex; }
.brand-info-btn {
  position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: transparent; color: var(--ink-3); cursor: pointer;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
/* a finger-sized target without taking room in the header */
.brand-info-btn::after { content: ""; position: absolute; inset: -9px; }
.brand-info-btn svg { width: 16px; height: 16px; }
.brand-info-btn:hover, .brand-info.open .brand-info-btn { color: var(--amber-ink); background: var(--amber-tint); }
.brand-info-btn:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 2px; }
.brand-info-pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: max-content; max-width: min(320px, calc(100vw - 32px));
  padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--sh-float);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  font-size: .92rem; line-height: 1.45; font-weight: 500;
  visibility: hidden; opacity: 0; transform: translateY(-6px); transform-origin: top left;
  transition: opacity var(--t-fast) ease, transform var(--t-med) var(--spring), visibility 0s linear .2s;
}
.brand-info-pop p { margin: 0; }
.brand-info.open .brand-info-pop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.znav.over-night .brand-info-btn { color: var(--night-ink-2); }
.znav.over-night .brand-info-btn:hover, .znav.over-night .brand-info.open .brand-info-btn { color: var(--amber-light); background: oklch(1 0 0 / .1); }
.znav.over-night .brand-info-pop { background: oklch(0.20 0.04 285); color: var(--night-ink); border-color: oklch(0.96 0.02 92 / .15); }
/* On a phone the note's button would push "Log in" off the edge in the longer
   languages (Spanish "Iniciar sesión"); the header's own gaps give the room. */
@media (max-width: 430px) {
  .znav-inner { gap: 12px; padding-left: 16px; }
  .znav-cta { gap: 6px; }
  .znav-cta .zbtn { padding: 11px 14px; }
  .lang-btn { padding: 10px 10px; gap: 5px; }
}
@media (max-width: 370px) {
  .brand { gap: 8px; }
  .znav-cta .zbtn { padding: 10px 11px; font-size: .86rem; }
}

/* localize_website: switcher links + Cyrillic display face */
.lang-menu a {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border-radius: 10px; font-size: .93rem; font-weight: 600; color: var(--ink);
  text-align: left; text-decoration: none;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--amber-tint); }
.lang-menu a.on .check { color: var(--amber-deep); font-weight: 900; }
.znav.over-night .lang-menu a { color: var(--night-ink); }
.znav.over-night .lang-menu a:hover { background: oklch(1 0 0 / .08); }
.znav.over-night .lang-menu a.on .check { color: var(--amber-light); }
.tr-note { margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--amber-tint); font-size: .95rem; }
.tr-note a { color: var(--ink); text-decoration: underline; }
/* Estonian and Polish compounds can be longer than a phone is wide at heading
   size; let such a word wrap instead of pushing the page sideways. English
   headings are left exactly as designed. */
html:not([lang="en"]) h1, html:not([lang="en"]) h2, html:not([lang="en"]) h3 { overflow-wrap: break-word; }
