/* Aetheria landing page. Dark only, as the app: the weather scene is the brand. No external
   resources: the font, map, data and images all come from this server. */
@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050a18;
  --bg2: #0b1630;
  --navy: #2b3f73;
  --fg: #f2f5fa;
  --muted: #a9b6cc;
  --dim: #6f7d96;
  --accent: #8cc4ff;
  --accent2: #4d8dff;
  --glass: rgba(140, 196, 255, 0.06);
  --line: rgba(140, 196, 255, 0.16);
  --radius: clamp(16px, 2.4vw, 28px);
  --wrap: min(1180px, 100% - 2 * clamp(16px, 4vw, 48px));
  --gap: clamp(16px, 3vw, 36px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, #142451 0%, var(--bg2) 38%, var(--bg) 100%) fixed, var(--bg);
  color: var(--fg);
  font: 400 clamp(15px, 0.35vw + 14px, 18px) / 1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  overflow-wrap: break-word;
  hyphens: manual;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
/* No box from a click or a tap: the browsers' blue tap highlight is off, and the focus ring shows
   only while the keyboard is in use (app.js sets .kbd on Tab or an arrow key, a pointer clears it). */
html { -webkit-tap-highlight-color: transparent; }
a, button, input, [tabindex] { outline: none; }
.btn, button, .nav a, .get-badge { -webkit-user-select: none; user-select: none; }
.kbd a:focus-visible, .kbd button:focus-visible, .kbd input:focus-visible, .kbd [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
h2 { font-size: clamp(30px, 3.4vw + 12px, 60px); line-height: 1.06; letter-spacing: -0.025em; margin: 0.25em 0 0.35em; font-weight: 750; text-wrap: balance; }
h3 { font-size: clamp(21px, 1.2vw + 14px, 30px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.76em; margin: 0; display: flex; align-items: center; gap: 0.6em; }
.eyebrow.center { justify-content: center; }
.lead { color: var(--muted); font-size: clamp(16px, 0.5vw + 14px, 21px); max-width: 60ch; margin: 0; }
.fine { color: var(--dim); font-size: 0.8em; line-height: 1.5; }
.section-head { margin-bottom: clamp(24px, 4vw, 48px); }
.wordmark {
  font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(100deg, #ffffff 0%, #cfe5ff 40%, var(--accent) 70%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- header: a floating glass pill that hides on the way down and returns on the way up --- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: max(10px, env(safe-area-inset-top)) clamp(10px, 3vw, 28px) 0;
  transition: transform 0.45s var(--ease);
  pointer-events: none;
}
.top.hide { transform: translateY(calc(-100% - 12px)); }
.bar {
  pointer-events: auto;
  position: relative; max-width: 1180px; margin-inline: auto;
  /* three columns, the outer two equal: the links sit exactly in the middle */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(8px, 2vw, 20px);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(8, 15, 34, 0.42);
  border: 1px solid rgba(140, 196, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.top.solid .bar { background: rgba(8, 15, 34, 0.78); border-color: var(--line); box-shadow: 0 16px 50px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(77, 141, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.15em; justify-self: start; }
.brand img { border-radius: 10px; box-shadow: 0 4px 16px -4px rgba(77, 141, 255, 0.6); transition: transform 0.5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { position: relative; display: flex; gap: 2px; min-width: 0; grid-column: 2; }
.nav a { position: relative; z-index: 1; color: var(--muted); text-decoration: none; font-weight: 550; padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-size: 0.92em; transition: color 0.25s; }
.nav a:hover { color: var(--fg); }
.nav a.active { color: var(--fg); }
.nav-ind {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; opacity: 0;
  background: linear-gradient(180deg, rgba(140, 196, 255, 0.18), rgba(77, 141, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.22);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s;
}
.actions { display: flex; align-items: center; gap: 10px; justify-self: end; grid-column: 3; grid-row: 1; }
.lang { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; transition: border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.2s; }
.lang .flag { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.lang:hover { border-color: var(--accent); transform: scale(1.06); box-shadow: 0 0 14px -2px rgba(140, 196, 255, 0.6); }
.lang:hover { color: var(--fg); border-color: var(--accent); }
.menu { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.menu i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu i:first-child { top: 15px; } .menu i:last-child { top: 23px; }
.top.open .menu i:first-child { top: 19px; transform: rotate(45deg); }
.top.open .menu i:last-child { top: 19px; transform: rotate(-45deg); }
/* reading progress: along the bar's top edge (the light beam owns the lower one), a fine line
   that brightens towards a glowing head */
.progress { position: absolute; left: 26px; width: calc((100% - 52px) * var(--p, 0)); top: -1px; height: 1.5px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(140, 196, 255, 0) 0%, rgba(140, 196, 255, 0.55) 60%, #e6f2ff 100%);
}
.progress::after { opacity: min(1, calc(var(--p, 0) * 40)); content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 1px #fff, 0 0 14px 3px rgba(140, 196, 255, 0.8); }
@media (max-width: 1000px) {
  .menu { display: block; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: -1px; right: -1px; margin: 0; grid-column: auto; grid-row: auto;
    flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 24px; background: rgba(8, 15, 34, 0.94); border: 1px solid var(--line);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top center; visibility: hidden;
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .top.open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity 0.3s, transform 0.35s var(--ease); }
  .nav {
    padding: 8px; gap: 2px; border-radius: 28px;
    background: linear-gradient(180deg, rgb(16, 28, 60), rgb(7, 13, 30));
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(140, 196, 255, 0.05);
  }
  .nav::before { /* a soft light along the top edge */
    content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(140, 196, 255, 0.7), transparent);
  }
  .nav a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 20px; color: var(--fg); font-size: 1em; transition: background 0.25s; }
  .nav a::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-top: 2px solid var(--dim); border-right: 2px solid var(--dim); transform: rotate(45deg); flex-shrink: 0; margin-right: 6px; transition: border-color 0.25s, transform 0.3s var(--ease); }
  .nav a:hover::after, .nav a.active::after { border-color: var(--accent); transform: translateX(3px) rotate(45deg); }
  .nav a:hover, .nav a.active { background: rgba(140, 196, 255, 0.08); }
  .ni {
    width: 42px; height: 42px; padding: 10px; flex-shrink: 0; border-radius: 14px;
    fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
    background: linear-gradient(145deg, rgba(140, 196, 255, 0.2), rgba(77, 141, 255, 0.06));
    box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .nav a.active .ni { background: linear-gradient(145deg, rgba(140, 196, 255, 0.4), rgba(77, 141, 255, 0.2)); stroke: #fff; }
  .nt { display: grid; line-height: 1.25; font-weight: 650; }
  .nt small { color: var(--dim); font-size: 0.8em; font-weight: 500; }
  .menu-cta {
    justify-content: center; margin-top: 6px; min-height: 52px; font-weight: 650; color: var(--fg) !important;
    background: rgba(140, 196, 255, 0.07) !important; border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .menu-cta::after { display: none; }
  .menu-cta img { width: 20px; height: auto; }
  .top.open .nav a { animation: nav-in 0.5s var(--ease) both; }
  .top.open .nav a:nth-of-type(2) { animation-delay: 0.04s; } .top.open .nav a:nth-of-type(3) { animation-delay: 0.08s; }
  .top.open .nav a:nth-of-type(4) { animation-delay: 0.12s; } .top.open .nav a:nth-of-type(5) { animation-delay: 0.16s; }
  .top.open .nav a:nth-of-type(6) { animation-delay: 0.22s; }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
  .nav-ind { display: none; }
  .bar { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 10px 8px 16px; }
  .actions { grid-column: 2; }
}
@media (max-width: 560px) { .get { padding: 0 12px; } }
/* narrow phones: the language moves into the menu, so logo, Live-Radar and menu fit in one row */
.menu-lang { display: none; }
@media (max-width: 480px) {
  .actions .lang { display: none; }
  .nav .menu-lang { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 20px; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
  .nav .menu-lang:hover { background: rgba(140, 196, 255, 0.08); }
  .brand { font-size: 1.05em; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
}
@media (max-width: 370px) { .get { display: none; } }

@media (min-width: 1001px) {
  /* the links stand free in the bar; under the section on screen a beam of light lies on the bar's
     lower edge (white core, blue flanks) and throws a cone of light up through its link, which
     glows; the beam glides over with a little spring, a soft light follows the pointer */
  .nav { align-self: stretch; align-items: stretch; gap: 2px; padding: 0 4px; isolation: isolate; }
  .nav::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0; transition: opacity 0.3s;
    background: radial-gradient(80px 50px at var(--mx, 50%) 50%, rgba(140, 196, 255, 0.12), transparent 70%); }
  .nav:hover::before { opacity: 1; }
  .nav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 0; font-weight: 560; transition: color 0.35s var(--ease), text-shadow 0.35s; }
  .nav a:not(.active):hover { color: #fff; }
  .nav .ni { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.65; transition: opacity 0.3s, stroke 0.3s, filter 0.3s, transform 0.4s var(--ease); }
  .nav a:hover .ni { opacity: 1; transform: translateY(-1px); }
  .nav a.active { color: #fff; text-shadow: 0 0 12px rgba(140, 196, 255, 0.45); }
  .nav a.active .ni { stroke: #cfe5ff; opacity: 1; filter: drop-shadow(0 0 5px rgba(140, 196, 255, 0.95)); }
  .nav small, .nav a.menu-cta, .nav .menu-lang { display: none; }
  .nav-ind { top: auto; bottom: -11px; height: 2px; z-index: -1; border-radius: 2px; overflow: visible;
    background: linear-gradient(90deg, transparent, rgba(140, 196, 255, 0.9) 22%, #fff 50%, rgba(140, 196, 255, 0.9) 78%, transparent);
    box-shadow: 0 0 8px rgba(140, 196, 255, 0.8);
    transition: transform 0.6s cubic-bezier(.34, 1.35, .5, 1), width 0.6s cubic-bezier(.34, 1.35, .5, 1), opacity 0.3s; }
  .nav-ind::before { /* the cone of light rising from the beam */
    content: ""; position: absolute; left: -25%; right: -25%; bottom: 0; height: 38px; pointer-events: none;
    background: radial-gradient(50% 100% at 50% 100%, rgba(160, 208, 255, 0.32), rgba(120, 175, 255, 0.12) 55%, transparent 100%); }
  .nav-ind::after { /* a brighter flare at the centre */
    content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 4px; margin: -2px 0 0 -9px; border-radius: 50%;
    background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)); }
}

/* --- buttons --- */
/* the shine that sweeps across the plan tag every few seconds (transform only: no layout per frame) */
@keyframes shine { 0%, 62% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(480%) skewX(-20deg); } }
.btn-ico { width: 18px; height: 18px; margin-right: 9px; fill: rgba(6, 17, 42, 0.18); stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex-shrink: 0; }
/* glass: a gradient edge around frosted glass, for the quieter of two buttons */
.glass-btn { border: 1px solid transparent !important; color: var(--fg);
  background: linear-gradient(rgba(14, 26, 56, 0.9), rgba(14, 26, 56, 0.9)) padding-box,
    linear-gradient(120deg, rgba(166, 210, 255, 0.7), rgba(140, 196, 255, 0.1) 50%, rgba(77, 141, 255, 0.6)) border-box !important; }
.glass-btn:hover { box-shadow: 0 10px 26px -12px rgba(140, 196, 255, 0.7); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 650; text-decoration: none; transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 0.86em; }
/* the header's own button: the bar's glass and line, the links' font, no bright fill */
.get { gap: 8px; padding: 0 16px 0 14px; color: var(--fg); font-weight: 560; font-size: 0.92em;
  background: rgba(140, 196, 255, 0.07); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.get:hover { background: rgba(140, 196, 255, 0.13); border-color: rgba(140, 196, 255, 0.45); }
/* the hero's way to the app: QR code, two lines and the official badge in one glass card */
.get-card {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); margin-top: 6px;
  padding: 12px 14px; border-radius: 22px; text-align: left;
  background: rgba(8, 15, 34, 0.62); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.get-card .qr { width: 84px; height: 84px; padding: 6px; border-radius: 14px; background: #fff; image-rendering: pixelated; flex-shrink: 0; }
.get-text { display: grid; gap: 2px; color: var(--muted); font-size: 0.9em; line-height: 1.45; }
.get-text strong { color: var(--fg); font-size: 1.1em; font-weight: 700; margin-bottom: 2px; }
.get-badge { flex-shrink: 0; border-radius: 10px; transition: transform 0.25s var(--ease); margin-left: clamp(0px, 1vw, 10px); }
.get-badge:hover { transform: translateY(-2px); }
.get-badge img { height: 58px; width: auto; }
@media (max-width: 640px) {
  .get-card { flex-direction: column; text-align: center; padding: 16px; }
  .get-card .qr, .get-text strong { display: none; } /* on the phone itself the badge is the way */
  .get-text { justify-items: center; }
}
.btn .play-logo { width: 19px; height: auto; margin-right: 10px; flex-shrink: 0; }
.btn.primary { background: linear-gradient(180deg, #a6d2ff, var(--accent)); color: #07122b; box-shadow: 0 8px 24px -10px rgba(140, 196, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn.primary:hover { box-shadow: 0 12px 30px -10px rgba(140, 196, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn.ghost { color: var(--fg); border: 1px solid var(--line); background: var(--glass); }
.btn.ghost:hover { border-color: var(--accent); }

/* --- hero with the particle name --- */
.hero { position: relative; min-height: max(620px, 100svh); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; padding: 84px 0 clamp(56px, 8vh, 96px); }
.hero-word { flex: 0 1 auto; width: 100%; margin-bottom: clamp(12px, 2.4vh, 28px); height: clamp(150px, min(34vh, 30vw + 60px), 400px); position: relative; pointer-events: none; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; cursor: crosshair; }
.hero::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  width: min(1100px, 120vw); aspect-ratio: 2 / 1; left: 50%; top: 30%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(77, 141, 255, 0.22), rgba(77, 141, 255, 0) 70%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 24%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg2));
}
.hero-copy { text-align: center; width: var(--wrap); display: grid; justify-items: center; gap: clamp(12px, 1.8vh, 20px); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-title { font-size: clamp(28px, 3.2vw + 12px, 58px); font-weight: 750; letter-spacing: -0.03em; margin: 0; line-height: 1.06; max-width: 18ch; text-wrap: balance; }
.hero-sub { color: var(--muted); max-width: 72ch; text-wrap: balance; margin: 0; font-size: clamp(16px, 0.5vw + 14px, 20px); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.chips { list-style: none; margin: clamp(6px, 1.5vh, 16px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 12px; border-radius: 999px;
  background: rgba(10, 20, 44, 0.6); border: 1px solid var(--line); color: var(--muted); font-size: 0.86em; font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  animation: chip-in 0.8s var(--ease) both;
}
.chip:nth-child(2) { animation-delay: 0.12s; } .chip:nth-child(3) { animation-delay: 0.24s; }
.chip b { color: var(--fg); font-weight: 650; }
.chip svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; }
#chip-temp svg { fill: #ffd37a; }
.chip-t { transition: opacity 0.35s; }
.chip-t.swap { opacity: 0; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px); } }
.hint { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: var(--dim); font-size: 0.78em; margin: 0; pointer-events: none; transition: opacity 0.6s; }
.hint.gone { opacity: 0; }
.scroll-cue { position: absolute; bottom: clamp(14px, 3vh, 28px); left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(140, 196, 255, 0.35); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s infinite var(--ease); }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 940px) { .hint, .scroll-cue { display: none; } }
@media (max-width: 520px) { .scroll-cue { display: none; } .chip { font-size: 0.8em; } }

/* --- live radar --- */
section { padding-block: clamp(64px, 10vw, 140px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ff0a8; box-shadow: 0 0 0 0 rgba(95, 240, 168, 0.6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(95, 240, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 240, 168, 0); } }
.radar-card { margin: 0; border-radius: var(--radius); background: rgba(8, 16, 36, 0.7); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(77, 141, 255, 0.35); }
.radar-stage { position: relative; aspect-ratio: 16 / 10; min-height: 300px; max-height: 78vh; width: 100%; background: #060d1e; }
@media (max-width: 700px) { .radar-stage { aspect-ratio: 4 / 5; } }
#radar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
/* the wind's streaks over the map (radar.js windLayout puts it on the map canvas) */
.radar-wind { position: absolute; left: 0; top: 0; pointer-events: none; }
.radar-badge { position: absolute; left: 14px; top: 14px; display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: rgba(5, 10, 24, 0.72); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: calc(100% - 80px); }
.badge-kind { font-size: 0.76em; color: var(--accent); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.badge-kind.fc { color: #ffd37a; }
.badge-time { font-size: clamp(20px, 2vw + 10px, 30px); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.info { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(5, 10, 24, 0.72); color: var(--muted); font: italic 700 15px/1 Georgia, "Times New Roman", serif; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: color 0.2s, border-color 0.2s; }
.info:hover { color: var(--fg); border-color: var(--accent); }
/* the radar's map picker, left of the info button: the map shown and a menu of the others */
.radar-pick { position: absolute; right: 54px; top: 14px; z-index: 3; }
.radar-pick[hidden] { display: none; }
.pick-btn { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(5, 10, 24, 0.72); color: var(--fg); font: 600 0.8em/1 inherit; font-family: inherit; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color 0.2s; }
.pick-btn:hover, .radar-pick.open .pick-btn { border-color: var(--accent); }
.pick-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pick-ico { color: var(--accent); }
.pick-chev { color: var(--muted); transition: transform 0.2s; }
.radar-pick.open .pick-chev { transform: rotate(180deg); }
.pick-menu { position: absolute; right: 0; top: 40px; min-width: 196px; display: none; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8, 15, 34, 0.94); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.radar-pick.open .pick-menu { display: grid; gap: 2px; animation: pick-in 0.16s ease-out; }
@keyframes pick-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.pick-menu button { display: flex; align-items: center; gap: 11px; text-align: left; padding: 10px 12px; border: 0; border-radius: 11px; background: none; color: var(--muted); font: inherit; font-size: 0.9em; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.pick-menu button[hidden] { display: none; }
.pick-menu button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pick-menu button:hover { background: rgba(120, 160, 255, 0.1); color: var(--fg); }
.pick-menu button.on { background: rgba(120, 160, 255, 0.16); color: var(--fg); }
.pick-menu button.on svg { color: var(--accent); }
.pick-menu button.on::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.kbd .pick-btn:focus-visible, .kbd .pick-menu button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) {
  /* next to the time badge there is room for the symbol only; the menu names the maps */
  .pick-cur { display: none; }
  .radar-badge { max-width: calc(100% - 136px); }
  .badge-time { font-size: 17px; white-space: nowrap; }
}
/* the drizzle map's legend: one class, its colour and what it is */
.dz-l { display: none; align-items: center; gap: 8px; }
.dz-l .sw { width: 12px; height: 12px; border-radius: 4px; background: #d4feff; display: inline-block; }
.dz-l .sw.fog { background: #b9aeea; }
.radar-stage.dz .radar-legend > :not(.dz-l) { display: none; }
.radar-stage.dz .dz-l { display: inline-flex; }
/* the lightning map's: the strikes' colour by their age */
.li-l { display: none; align-items: center; gap: 8px; }
.ramp.li { width: clamp(50px, 8vw, 90px); background: linear-gradient(90deg, #ffffff, #ffe66b, #ff9f2e, #e5484d); }
.radar-stage.li .radar-legend > :not(.li-l) { display: none; }
.radar-stage.li .li-l { display: inline-flex; }
/* the model maps' (hail, temperature, wind): the scale between its ends, set by radar.js */
.gen-l { display: none; align-items: center; gap: 8px; }
.radar-stage.gen .radar-legend > :not(.gen-l) { display: none; }
.radar-stage.gen .gen-l { display: inline-flex; }
/* a map without a forecast (lightning): no timeline under it */
.radar-card.nocast .radar-controls { display: none; }
.src-pop { margin: auto; max-width: min(420px, calc(100vw - 32px)); padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(8, 15, 34, 0.97); color: var(--muted); font-size: 0.86em; line-height: 1.55; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9); }
.src-pop strong { color: var(--fg); display: block; margin-bottom: 6px; }
.src-pop p { margin: 0; }
.src-pop::backdrop { background: rgba(3, 6, 15, 0.5); backdrop-filter: blur(2px); }
.radar-legend { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 8px 12px; border-radius: 12px; background: rgba(5, 10, 24, 0.72); border: 1px solid var(--line); font-size: 0.75em; color: var(--muted); max-width: calc(100% - 28px); }
.ramp { display: inline-block; width: clamp(60px, 10vw, 120px); height: 8px; border-radius: 4px; }
.ramp.rain { background: linear-gradient(90deg, #d4feff, #aafeff, #53d2ff, #32adfe, #1e78f0, #1446c8, #3a1f9e, #8e3ccb, #d79af2); }
.ramp.snow { width: clamp(40px, 6vw, 70px); background: linear-gradient(90deg, #fde8f8, #fbd3f2, #f5a8e6, #ec7ad8, #df4fc8, #a51892); }
.snow-l { margin-left: 6px; }
.radar-controls { display: flex; align-items: center; gap: 14px; padding: 14px clamp(14px, 2vw, 22px); border-top: 1px solid var(--line); }
.play { flex-shrink: 0; position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #07122b;
  background: radial-gradient(120% 120% at 30% 20%, #d6ebff 0%, var(--accent) 45%, var(--accent2) 100%);
  box-shadow: 0 0 0 5px rgba(140, 196, 255, 0.12), 0 10px 28px -8px rgba(77, 141, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 8px rgba(30, 70, 160, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.play:hover { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(140, 196, 255, 0.16), 0 14px 32px -8px rgba(77, 141, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 8px rgba(30, 70, 160, 0.35); }
.play:active { transform: scale(0.96); }
.play.on { box-shadow: 0 0 0 5px rgba(140, 196, 255, 0.18), 0 0 26px 2px rgba(140, 196, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 8px rgba(30, 70, 160, 0.35); }
.play svg { width: 22px; height: 22px; fill: currentColor; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4)); }
.play .i-play { transform: translateX(1px); }
.play .i-pause, .play.on .i-play { display: none; }
.play.on .i-pause { display: inline; }
.timeline { flex: 1; min-width: 0; position: relative; --pos: 50%; --now: 50%; }
.tl-top { position: relative; height: 18px; }
.tl-fc { position: absolute; left: calc(var(--now) + (100% - var(--now)) / 2); transform: translateX(-50%); font-size: 0.72em; color: var(--dim); white-space: nowrap; }
.timeline.no-fc .tl-fc { display: none; }
.tl-bar { position: relative; height: 26px; }
.tl-bar i { position: absolute; top: 50%; pointer-events: none; }
.tl-past { left: 0; width: var(--now); height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(140, 196, 255, 0.22); }
.tl-future { left: var(--now); right: 0; height: 4px; margin-top: -2px; background: radial-gradient(circle, rgba(140, 196, 255, 0.5) 1.3px, transparent 1.8px) 0 50% / 8px 4px repeat-x; }
.tl-fill { left: 0; width: var(--pos); height: 4px; margin-top: -2px; border-radius: 2px; background: linear-gradient(90deg, rgba(95, 240, 200, 0.35), #6ff0d4); box-shadow: 0 0 10px rgba(111, 240, 212, 0.65); }
.tl-mark { left: var(--now); width: 2px; height: 14px; margin: -7px 0 0 -1px; border-radius: 1px; background: rgba(242, 245, 250, 0.55); }
.tl-thumb { left: var(--pos); width: 4px; height: 22px; margin: -11px 0 0 -2px; border-radius: 2px; background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.85), 0 0 22px 6px rgba(111, 240, 212, 0.55); }
.tl-thumb::before { /* the glowing triangle on top */
  content: ""; position: absolute; left: 50%; top: -11px; width: 0; height: 0; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #fff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 10px rgba(111, 240, 212, 0.8));
}
.tl-thumb::after { /* a soft cone of light under the marker */
  content: ""; position: absolute; left: 50%; top: -14px; width: 46px; height: 50px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, rgba(160, 255, 230, 0.32), transparent 70%);
}
.tl-bar input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kbd .tl-bar:has(input:focus-visible) .tl-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.tl-labels { position: relative; height: 18px; font-size: 0.72em; color: var(--dim); font-variant-numeric: tabular-nums; }
.tl-labels span { position: absolute; top: 0; white-space: nowrap; transition: opacity 0.2s; }
.tl-start { left: 0; } .tl-end { right: 0; }
.tl-now { left: var(--now); transform: translateX(-50%); color: var(--fg); font-weight: 650; }
.tl-labels .gone { opacity: 0; }
.timeline.now-end .tl-now { transform: translateX(-100%); }
.timeline.now-start .tl-now { transform: none; }

/* --- cities: a small moving strip --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-bottom: clamp(20px, 3vw, 32px); }
.stat { padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(26px, 2vw + 14px, 38px); font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.86em; }
.stat.skeleton { min-height: 92px; }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 10px; border-radius: 14px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 0.72em; line-height: 1.35; display: block; margin-top: 4px; }
  .stat.skeleton { min-height: 80px; }
}
/* Clipped sideways only, faded at the edges by two overlays (no mask: some browsers cut the moving
   rows' bottom edge off with it). */
.marquee { position: relative; display: grid; gap: 14px; overflow-x: clip; overflow-y: visible; padding-block: 12px 20px; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: min(12%, 140px); z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, rgb(7, 13, 31), rgba(7, 13, 31, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, rgb(7, 13, 31), rgba(7, 13, 31, 0)); }
.mq-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: mq 60s linear infinite; }
.mq-track.rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-25%); } }
.cc { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: linear-gradient(160deg, rgba(43, 63, 115, 0.5), rgba(11, 22, 48, 0.7)); border: 1px solid var(--line); white-space: nowrap; }
.cc.wet { background: linear-gradient(160deg, rgba(30, 120, 240, 0.38), rgba(11, 22, 48, 0.75)); border-color: rgba(83, 210, 255, 0.3); }
.cc.snow { background: linear-gradient(160deg, rgba(223, 79, 200, 0.3), rgba(11, 22, 48, 0.75)); border-color: rgba(245, 168, 230, 0.3); }
.cc svg { width: 30px; height: 30px; flex-shrink: 0; }
.cc .n { font-weight: 600; font-size: 0.92em; }
.cc .t { font-weight: 300; font-size: 1.3em; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cc .w { color: var(--muted); font-size: 0.8em; }
.cc.skeleton { width: 170px; height: 48px; background: rgba(43, 63, 115, 0.35); }

/* --- features --- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 90px); align-items: center; margin-block: clamp(48px, 8vw, 120px); }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--muted); margin: 0 0 1.1em; font-size: 1.05em; }
.num, .step-n { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.num b, .step-n b {
  font-size: 2.1em; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(160deg, #ffffff 10%, var(--accent) 55%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(77, 141, 255, 0.45));
}
.num::after, .step-n::after { content: ""; width: 56px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.step-n i { font-style: normal; font-size: 0.85em; font-weight: 600; color: var(--dim); letter-spacing: 0.04em; order: 2; }
.step-n::after { order: 3; }
.has-pro { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pro-badge { font-size: 0.5em; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: #07122b; background: linear-gradient(180deg, #a6d2ff, var(--accent)); box-shadow: 0 6px 18px -6px rgba(140, 196, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); line-height: 1.2; }
.ticks-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks-list li { padding-left: 30px; position: relative; }
.ticks-list li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.phones { position: relative; display: grid; place-items: center; padding: 4% 12% 4% 4%; }
.phone { width: min(300px, 70%); aspect-ratio: 1272 / 2800; object-fit: cover; object-position: top; border-radius: clamp(24px, 3vw, 40px); border: clamp(4px, 0.6vw, 8px) solid #11192d; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line); background: #0b1630; position: relative; z-index: 1; transition: transform 0.6s var(--ease); }
.phone.back { position: absolute; width: min(250px, 58%); right: 2%; top: 12%; z-index: 0; transform: rotate(6deg); opacity: 0.9; filter: saturate(0.9) brightness(0.85); }
.feature.flip .phone.back { right: auto; left: 2%; transform: rotate(-6deg); }
.feature.flip .phones { padding: 4% 4% 4% 12%; }
.feature:hover .phone:not(.back) { transform: translateY(-6px); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .phones { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* --- story: a sticky phone, one screen per step --- */
.story { padding-bottom: clamp(32px, 6vw, 80px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); }
.story-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; gap: 22px; order: 2; padding-top: 70px; }
.story-phone {
  position: relative; height: min(76svh, 720px); aspect-ratio: 1272 / 2800; max-width: 100%;
  border-radius: clamp(28px, 3.5vw, 48px); border: clamp(5px, 0.7vw, 9px) solid #11192d; overflow: hidden; background: #0b1630;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line), 0 0 120px -30px rgba(77, 141, 255, 0.45);
}
.story-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.story-phone img.on { opacity: 1; transform: none; }
.story-dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.story-dots li { width: 6px; height: 6px; border-radius: 3px; background: rgba(140, 196, 255, 0.25); transition: height 0.4s var(--ease), background 0.4s; }
.story-dots li.on { height: 26px; background: var(--accent); }
.story-steps { list-style: none; margin: 0; padding: 0; order: 1; }
.step { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; opacity: 0.25; transform: translateX(-10px); transition: opacity 0.6s, transform 0.6s var(--ease); }
.step:first-child { min-height: 62svh; }
.step.on { opacity: 1; transform: none; }
.step h3 { font-size: clamp(26px, 2.4vw + 12px, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 14px; }
.step p { color: var(--muted); font-size: clamp(16px, 0.6vw + 14px, 21px); margin: 0; max-width: 34ch; }
@media (max-width: 820px) {
  .story-grid { display: block; }
  /* the phone sticks under the header, each step's card sits right below it while its step is
     in the middle of the screen (a step is 64svh, so its top is then at 18svh) */
  .story-stage { height: auto; top: 76px; padding: 0; order: 0; z-index: 0; }
  .story-phone { height: min(50svh, 480px); }
  .story-steps { position: relative; z-index: 1; margin-top: calc(-1 * min(50svh, 480px) - 12px); }
  .step, .step:first-child { min-height: 64svh; justify-content: flex-start; padding: calc(min(50svh, 480px) + 88px - 18svh) 0 0; transform: translateY(12px); }
  .story-dots { display: none; }
  .step { opacity: 0; }
  .step.on { opacity: 1; transform: none; }
  .sc { padding: 16px 18px 18px; border-radius: 20px; background: rgba(8, 15, 34, 0.86); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); }
  .step h3 { font-size: 22px; margin: 6px 0 6px; }
  .step p { font-size: 15px; max-width: none; }
}

/* --- pro --- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--gap); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 3vw, 38px); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(43, 63, 115, 0.32), rgba(11, 22, 48, 0.55));
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.plan:hover { transform: translateY(-4px); }
.plan-head { display: flex; align-items: center; gap: 16px; }
.plan-head h3 { margin: 0; font-size: clamp(24px, 1.4vw + 16px, 32px); }
.plan-sub { margin: 2px 0 0; color: var(--muted); font-size: 0.92em; }
.plan-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(145deg, rgba(140, 196, 255, 0.18), rgba(77, 141, 255, 0.05)); box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.plan-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.plan ul { list-style: none; margin: 0; padding: 22px 0 0; display: grid; align-content: start; gap: 13px; color: var(--muted); border-top: 1px solid var(--line); flex: 1; }
.plan li { padding-left: 34px; position: relative; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 0; top: calc(0.725em - 11px); width: 22px; height: 22px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%238cc4ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat, rgba(140, 196, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.22); }
.plan-btn { width: 100%; }
/* Pro: a slowly turning light runs around its edge (conic gradient on the border box), an aurora
   glows in the corner, a few stars twinkle behind the list */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.pro-plan {
  border: 1.5px solid transparent;
  background:
    radial-gradient(70% 55% at 88% -5%, rgba(140, 196, 255, 0.30), transparent 70%) padding-box,
    radial-gradient(60% 50% at -10% 110%, rgba(77, 141, 255, 0.22), transparent 70%) padding-box,
    linear-gradient(165deg, rgb(30, 52, 108), rgb(10, 19, 46)) padding-box,
    conic-gradient(from var(--spin), rgba(140, 196, 255, 0.15), rgba(166, 210, 255, 0.95) 12%, rgba(77, 141, 255, 0.4) 25%, rgba(140, 196, 255, 0.15) 40%, rgba(140, 196, 255, 0.15) 60%, rgba(196, 226, 255, 0.85) 72%, rgba(140, 196, 255, 0.15) 85%) border-box;
  box-shadow: 0 40px 100px -40px rgba(77, 141, 255, 0.7), 0 0 90px -30px rgba(140, 196, 255, 0.45);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }
.pro-plan::before { /* stars */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.7;
  background:
    radial-gradient(1.5px 1.5px at 78% 30%, #fff, transparent), radial-gradient(1px 1px at 88% 52%, #cfe5ff, transparent),
    radial-gradient(1.2px 1.2px at 70% 72%, #fff, transparent), radial-gradient(1px 1px at 92% 84%, #cfe5ff, transparent),
    radial-gradient(1.4px 1.4px at 60% 12%, #fff, transparent), radial-gradient(1px 1px at 95% 18%, #fff, transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.9; } }
.pro-plan .plan-head h3 { font-size: clamp(30px, 1.8vw + 18px, 40px); letter-spacing: -0.02em; }
.pro-plan .plan-ico { width: 58px; height: 58px; border-radius: 18px; position: relative; }
.pro-plan .plan-ico::after { content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 1px solid rgba(140, 196, 255, 0.35); box-shadow: 0 0 18px -2px rgba(140, 196, 255, 0.6); }
.pro-plan li { transition: transform 0.25s var(--ease); }
.pro-plan li:hover { transform: translateX(3px); }
.plan-tag { overflow: hidden; }
/* Kostenlos: the same build as Pro (turning edge, aurora, stars, ringed icon, big title, tag), in
   a calmer key, so the two stand as a pair */
.free-plan {
  border: 1.5px solid transparent;
  background:
    radial-gradient(70% 55% at 88% -5%, rgba(140, 196, 255, 0.14), transparent 70%) padding-box,
    radial-gradient(60% 50% at -10% 110%, rgba(77, 141, 255, 0.10), transparent 70%) padding-box,
    linear-gradient(165deg, rgb(22, 36, 74), rgb(9, 16, 38)) padding-box,
    conic-gradient(from var(--spin), rgba(140, 196, 255, 0.08), rgba(166, 210, 255, 0.45) 12%, rgba(140, 196, 255, 0.08) 30%, rgba(140, 196, 255, 0.08) 60%, rgba(166, 210, 255, 0.35) 72%, rgba(140, 196, 255, 0.08) 88%) border-box;
  box-shadow: 0 40px 100px -50px rgba(77, 141, 255, 0.4);
  animation: spin 14s linear infinite reverse;
}
.free-plan::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.45;
  background: radial-gradient(1.2px 1.2px at 80% 26%, #fff, transparent), radial-gradient(1px 1px at 90% 58%, #cfe5ff, transparent),
    radial-gradient(1px 1px at 66% 14%, #fff, transparent), radial-gradient(1px 1px at 94% 80%, #cfe5ff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate; }
.free-plan .plan-head h3 { font-size: clamp(30px, 1.8vw + 18px, 40px); letter-spacing: -0.02em; }
.free-plan .plan-ico { width: 58px; height: 58px; border-radius: 18px; position: relative; }
.free-plan .plan-ico::after { content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 1px solid rgba(140, 196, 255, 0.2); }
.free-plan .plan-tag { color: var(--fg); background: rgba(140, 196, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.3); }
.free-plan li { transition: transform 0.25s var(--ease); }
.free-plan li:hover { transform: translateX(3px); }
.plan-tag::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent); transform: skewX(-20deg); animation: shine 4.2s ease-in-out 1.2s infinite; }
.pro-plan h3 { background: linear-gradient(100deg, #fff 20%, #cfe5ff 45%, var(--accent) 70%, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pro-plan ul { color: var(--fg); border-color: rgba(140, 196, 255, 0.25); }
.pro-plan li::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%2307122b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat, linear-gradient(145deg, var(--accent), var(--accent2)); box-shadow: 0 4px 12px -4px rgba(77, 141, 255, 0.8); }
.pro-plan .plan-ico { background: linear-gradient(145deg, var(--accent), var(--accent2)); box-shadow: 0 10px 24px -10px rgba(77, 141, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.pro-plan .plan-ico svg { stroke: #07122b; fill: rgba(7, 18, 43, 0.15); }
.plan-tag { position: absolute; top: clamp(20px, 2.6vw, 30px); right: clamp(20px, 2.6vw, 30px); padding: 5px 12px; border-radius: 999px; font-size: 0.72em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #07122b; background: linear-gradient(180deg, #a6d2ff, var(--accent)); box-shadow: 0 6px 18px -6px rgba(140, 196, 255, 0.9); }

/* --- download --- */
.dl-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); align-items: center;
  padding: clamp(28px, 5vw, 72px); border-radius: calc(var(--radius) + 8px);
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgb(24, 42, 88), rgb(9, 17, 40) 70%) padding-box,
    linear-gradient(135deg, rgba(140, 196, 255, 0.55), rgba(140, 196, 255, 0.08) 50%, rgba(77, 141, 255, 0.45)) border-box;
  box-shadow: 0 50px 120px -50px rgba(77, 141, 255, 0.55);
}
.dl-card::before, .dl-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.dl-card::before { width: 60%; aspect-ratio: 1; right: -12%; top: -30%; background: radial-gradient(closest-side, rgba(77, 141, 255, 0.45), transparent); }
.dl-card::after { width: 45%; aspect-ratio: 1; left: -10%; bottom: -40%; background: radial-gradient(closest-side, rgba(140, 196, 255, 0.22), transparent); }
.dl-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-points li { padding: 7px 14px 7px 30px; border-radius: 999px; background: rgba(140, 196, 255, 0.08); border: 1px solid var(--line); font-size: 0.86em; color: var(--fg); position: relative; }
.dl-points li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 4px; margin-top: -4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.play-badge { display: inline-block; margin-top: 26px; border-radius: 12px; transition: transform 0.25s var(--ease); }
.play-badge:hover { transform: translateY(-2px); }
.play-badge img { height: clamp(60px, 4vw + 40px, 78px); width: auto; }
.dl-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.dl-phone {
  position: absolute; right: 2%; top: 50%; width: min(210px, 46%); aspect-ratio: 1272 / 2800; object-fit: cover; object-position: top;
  transform: translateY(-50%) rotate(8deg); border-radius: 30px; border: 6px solid #11192d;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); opacity: 0.85;
}
.qr-card {
  position: relative; z-index: 1; margin-right: 22%; text-align: center; width: min(250px, 72%);
  padding: 18px 18px 16px; border-radius: 26px;
  background: rgba(242, 245, 250, 0.96); color: #0b1630;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 6px rgba(140, 196, 255, 0.12);
}
.qr-frame { position: relative; padding: 12px; }
.qr-frame::before { /* scan corners */
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  background:
    linear-gradient(#4d8dff, #4d8dff) top left / 22px 3px, linear-gradient(#4d8dff, #4d8dff) top left / 3px 22px,
    linear-gradient(#4d8dff, #4d8dff) top right / 22px 3px, linear-gradient(#4d8dff, #4d8dff) top right / 3px 22px,
    linear-gradient(#4d8dff, #4d8dff) bottom left / 22px 3px, linear-gradient(#4d8dff, #4d8dff) bottom left / 3px 22px,
    linear-gradient(#4d8dff, #4d8dff) bottom right / 22px 3px, linear-gradient(#4d8dff, #4d8dff) bottom right / 3px 22px;
  background-repeat: no-repeat;
}
.qr-card img { width: 100%; height: auto; image-rendering: pixelated; display: block; }
.qr-title { margin: 8px 0 0; font-weight: 700; font-size: 0.98em; }
.qr-card .fine { color: #4b556a; margin: 2px 0 0; }
@media (max-width: 820px) {
  .dl-card { grid-template-columns: 1fr; }
  .dl-visual { min-height: 0; padding-top: 10px; }
  .dl-phone { display: none; }
  .qr-card { margin: 0; }
}
@media (max-width: 640px) { .dl-visual { display: none; } /* on the phone itself the badge is the way */ }

/* --- footer --- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px) 0; background: rgba(3, 7, 17, 0.6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { margin: 14px 0 0; color: var(--muted); max-width: 36ch; }
.foot-brand .fine { margin-top: 8px; }
.made { display: flex; align-items: center; gap: 6px; }
.heart { width: 15px; height: 15px; fill: #ff3b5c; filter: drop-shadow(0 0 6px rgba(255, 59, 92, 0.55)); }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer nav strong { color: var(--fg); font-size: 0.8em; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.94em; width: fit-content; }
.footer nav a:hover { color: var(--fg); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(32px, 5vw, 56px); padding-block: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--dim); font-size: 0.8em; }

/* --- reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s, transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .step, .story-phone img { transition: none; transform: none; }
  .reveal { opacity: 1; }
  .live-dot, .scroll-cue span, .chip, .top.open .nav a, .pro-plan, .pro-plan::before, .plan-tag::after, .free-plan, .free-plan::before { animation: none; }
  .mq-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .mq-track [aria-hidden] { display: none; }
  .btn:hover, .feature:hover .phone:not(.back), .plan:hover { transform: none; }
}

/* the language flag and Live-Radar as a pair: one height, centred on one line, the same edge */
.actions .get { height: 36px; min-height: 36px; box-sizing: border-box; font-size: 0.86em; }
/* the flag a size smaller than the pill and centred on its height, so it reads as a ball beside it */
.actions .lang { height: 28px; min-height: 28px; align-self: center; box-sizing: border-box; margin-block: auto; }
.actions .lang { width: 28px; border: 1px solid rgba(166, 210, 255, 0.45); background: rgba(14, 26, 56, 0.9); box-shadow: 0 8px 22px -12px rgba(140, 196, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.actions .lang .flag { width: 26px; height: 26px; box-shadow: none; }
.actions .lang { border-width: 1px; padding: 0; overflow: hidden; }
.actions .get { padding: 0 16px 0 14px; }
/* Live-Radar's glow evenly around it (a glow below made the pill look lower than the flag) */
.actions .get.fancy { box-shadow: 0 0 18px -6px rgba(95, 157, 255, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.25) inset, inset 0 1px 0 rgba(255, 255, 255, 0.7) !important; }
.actions .lang { box-shadow: 0 0 14px -6px rgba(140, 196, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); }

/* on scaled screens (125 %, 150 %) the flag rounded half a pixel high against the pill: down 1px */
.actions .lang { position: relative; top: 2px; }

/* the tag in the head row, centred on the icon and the title, its right edge on the content edge */
.plan-head .plan-tag { position: relative; top: auto; right: auto; margin-left: auto; align-self: center; flex-shrink: 0; }
/* the icon's ring inside the content edge, like the list and the button below */
.free-plan .plan-ico, .pro-plan .plan-ico { margin: 6px 4px 6px 6px; }

/* --- phones: tighter sections, the pair of screenshots centred, nothing under the map's legend --- */
@media (max-width: 640px) {
  section { padding-block: 44px; }
  .hero { padding-bottom: 36px; }
  .section-head { margin-bottom: 20px; }
  .feature { margin-block: 40px; gap: 22px; }
  .feature:first-of-type { margin-top: 8px; }
  .feature:last-of-type { margin-bottom: 0; }
  /* both screenshots inside the column: the back one was cut off at the screen's edge */
  .phones, .feature.flip .phones { padding: 0 0 4%; max-width: 340px; }
  .phone { width: 62%; margin-right: 22%; }
  .phone.back { width: 50%; right: 3%; top: 9%; transform: rotate(5deg); }
  .feature.flip .phone { margin-right: 0; margin-left: 22%; }
  .feature.flip .phone.back { left: 3%; transform: rotate(-5deg); }
  /* the legend as a slim line of its own under the map */
  .radar-legend { position: static; max-width: none; justify-content: center; flex-wrap: nowrap; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: rgba(5, 10, 24, 0.5); padding: 9px 12px; font-size: 0.72em; }
  .radar-legend .ramp.rain { flex: 1; max-width: 130px; }
  .radar-stage { display: flex; flex-direction: column; aspect-ratio: auto; max-height: none; }
  .radar-stage #radar-canvas { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 5; max-height: 70svh; }
  .radar-controls { padding: 12px 14px; gap: 12px; }
  .play { width: 46px; height: 46px; }
  .plan { padding: 22px 18px; gap: 18px; }
  .plan-head { gap: 12px; }
  .pro-plan .plan-head h3 { font-size: 26px; }
  .dl-card { text-align: center; }
  .dl-card .eyebrow { justify-content: center; }
  .dl-card .lead { margin-inline: auto; }
  .dl-points { justify-content: center; }
  .footer-grid { row-gap: 26px; }
}
/* the tour's phone a little bigger on tall phones: the card under it left a third of the screen empty */
@media (max-width: 820px) and (min-height: 760px) {
  .story-phone { height: min(56svh, 540px); }
  .story-steps { margin-top: calc(-1 * min(56svh, 540px) - 12px); }
  .step, .step:first-child { padding-top: calc(min(56svh, 540px) + 88px - 18svh); }
}
@media (max-width: 640px) {
  .phone.back, .feature.flip .phone.back { margin: 0; }
}
/* narrow phones: the tag on a line of its own above the title (title and tag side by side were cramped) */
@media (max-width: 480px) {
  .plan-head { flex-wrap: wrap; row-gap: 10px; }
  .plan-head .plan-tag { order: -2; margin-left: 0; }
  .plan-head::before { content: ""; order: -1; flex-basis: 100%; height: 0; }
  .plan-head > div { min-width: 0; flex: 1; }
}


/* === the middle and lower part as one system (2026-11): sections parted by a hairline, the
   features as panels with their screenshots rising out of the lower edge, the sources named,
   the tour with a marker at the step shown, a calmer footer. Everything here comes after the
   rules above and overrides them. === */
.story, .pro { position: relative; }
/* (not above the features: the sources' line parts them from the cities already) */
.story::before, .pro::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1180px, 100% - 2 * clamp(16px, 4vw, 48px)); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 196, 255, 0.3) 20%, rgba(140, 196, 255, 0.3) 80%, transparent);
}

/* the three numbers: glass tiles with a lit upper edge */
.stat {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(140, 196, 255, 0.1), rgba(140, 196, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px -36px rgba(0, 0, 0, 0.9);
}
.stat b { background: linear-gradient(160deg, #fff 20%, #cfe5ff 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.skeleton b { background: none; }

/* whose data this is: names only, one quiet line */
.sources { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px clamp(16px, 3vw, 36px); margin-top: clamp(28px, 4vw, 52px); padding-block: clamp(16px, 2vw, 24px); border-block: 1px solid rgba(140, 196, 255, 0.12); }
.sources-t { color: var(--dim); font-size: 0.74em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(18px, 3vw, 40px); }
.sources li { color: var(--muted); font-weight: 650; font-size: 0.92em; letter-spacing: 0.06em; white-space: nowrap; opacity: 0.85; }

/* a feature: a panel, the text beside the screenshots, which rise out of its lower edge */
.features .feature {
  position: relative; isolation: isolate; overflow: hidden;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
  margin-block: clamp(18px, 2.2vw, 28px);
  padding: clamp(28px, 4.2vw, 60px) clamp(28px, 4.2vw, 60px) 0;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(24, 42, 92, 0.55) 0%, rgba(9, 17, 38, 0.82) 55%, rgba(6, 12, 28, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 50px 90px -60px rgba(0, 0, 0, 0.9);
}
.features .feature:first-of-type { margin-top: 0; }
.features .feature:last-of-type { margin-bottom: 0; }
.features .feature::before { /* the light behind the screenshots */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -10%; bottom: -30%; right: -8%; width: 62%;
  background: radial-gradient(closest-side, rgba(77, 141, 255, 0.34), rgba(77, 141, 255, 0.08) 60%, transparent 75%);
}
.features .feature.flip::before { right: auto; left: -8%; }
.features .feature-text { padding-bottom: clamp(28px, 4.2vw, 60px); }
.features .feature-text h3 { font-size: clamp(24px, 1.5vw + 15px, 38px); letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 0.55em; }
.features .feature-text p { font-size: 1.06em; max-width: 46ch; margin-bottom: 1.5em; }
.features .ticks-list { gap: 12px; }
.features .ticks-list li { padding-left: 34px; color: var(--fg); }
.features .ticks-list li::before {
  left: 0; top: calc(0.8em - 11px); width: 22px; height: 22px; border: 0; border-radius: 50%; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%238cc4ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px 15px no-repeat, rgba(140, 196, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.3);
}
.features .phones { align-self: end; margin-bottom: clamp(-96px, -7vw, -56px); }
@media (max-width: 820px) {
  .features .feature { grid-template-columns: 1fr; gap: 8px; padding: 24px 20px 0; }
  .features .feature-text { padding-bottom: 12px; }
  .features .feature::before, .features .feature.flip::before { top: 38%; bottom: -20%; left: -10%; right: -10%; width: auto; }
  .features .phones { margin-bottom: -48px; }
}
@media (max-width: 640px) {
  .features .feature { margin-block: 16px; }
  .features .feature:first-of-type { margin-top: 0; }
}

/* the animated widgets (feature 03): films of the app's own widgets in the launcher's shape, two by
   two where the other features have their screenshots. They rest on their still frame (app.js) */
.wdg { align-self: center; display: grid; justify-items: center; gap: 16px; padding-bottom: clamp(28px, 4.2vw, 60px); }
.wdg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); width: min(100%, 400px); }
.wdg-tile {
  appearance: none; -webkit-appearance: none; display: block; margin: 0; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 1; border-radius: 15%; overflow: hidden; background: #0b1630;
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease);
}
.wdg-tile:hover { transform: translateY(-4px); }
.wdg-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wdg-tile video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* the hint under them: a pill with a play sign, which plays all four */
.wdg-hint {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: 9px; margin: 4px 0 0; padding: 9px 18px 9px 12px;
  border-radius: 999px; border: 1px solid rgba(140, 196, 255, 0.35); background: rgba(140, 196, 255, 0.1); color: var(--fg);
  font: inherit; font-size: 0.9em; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.3s var(--ease);
  box-shadow: 0 0 22px -8px rgba(95, 157, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.wdg-hint:hover { background: rgba(140, 196, 255, 0.18); transform: translateY(-2px); }
.wdg-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wdg-hint svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; fill: #07122b; background: linear-gradient(180deg, #a6d2ff, var(--accent)); }
@media (max-width: 820px) {
  .wdg { padding-bottom: 24px; padding-top: 10px; }
  .wdg-grid { width: min(100%, 340px); }
}
@media (prefers-reduced-motion: reduce) { .wdg-tile:hover, .wdg-hint:hover { transform: none; } }

/* the tour on wide screens: shorter steps, a marker at the step shown, light behind the phone */
@media (min-width: 821px) {
  .step { min-height: 66svh; }
  .step:first-child { min-height: 54svh; }
  .step .sc { padding: 6px 0 6px clamp(20px, 2.4vw, 32px); border-left: 2px solid rgba(140, 196, 255, 0.14); transition: border-color 0.6s; }
  .step.on .sc { border-left-color: var(--accent); }
  .story-stage { isolation: isolate; }
  .story-stage::before { content: ""; position: absolute; z-index: -1; width: min(620px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(77, 141, 255, 0.26), transparent 72%); pointer-events: none; }
}

/* the footer: a hairline instead of a hard edge, the page fading into it */
.footer { position: relative; border-top: 0; background: linear-gradient(180deg, rgba(3, 7, 17, 0.25), rgba(3, 7, 17, 0.85)); }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 196, 255, 0.35) 30%, rgba(140, 196, 255, 0.35) 70%, transparent);
}
.footer nav a { transition: color 0.2s; }
.foot-bottom { border-top-color: rgba(140, 196, 255, 0.12); }

/* a section off screen holds its endless animations (app.js marks it): they cost frames unseen */
.asleep, .asleep *, .asleep *::before, .asleep *::after { animation-play-state: paused !important; }
