@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fonts are self-hosted (no requests to Google). Manrope and JetBrains Mono: SIL Open Font License 1.1. */

:root {
  color-scheme: dark;

  --bg: #0c0d0f;
  --bg-raised: #121316;
  --surface: #16181b;
  --surface-2: #1c1e22;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #eceef0;
  --muted: #9a9fa8;
  --faint: #6b7079;
  --amber: #ffb02e;
  --amber-hover: #ffc05a;
  --amber-ink: #1d1404;
  --amber-soft: rgba(255, 176, 46, 0.1);
  --amber-glow: rgba(255, 176, 46, 0.55);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: 24px;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--amber); color: var(--amber-ink); }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 0 0 1px rgba(255, 176, 46, 0.4), 0 8px 24px -8px rgba(255, 176, 46, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-sm { --btn-h: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--amber-hover); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
}

/* Channel-colored buttons: same hues as the channel dots */
.btn[data-chat], .btn-ghost[href^="tel:"] {
  background: rgba(var(--ch), 0.14);
  border-color: rgba(var(--ch), 0.42);
  color: var(--ch-text);
}
.btn[data-chat="viber"]     { --ch: 127, 102, 255; --ch-text: #b3a6ff; }
.btn[data-chat="whatsapp"]  { --ch: 37, 211, 102;  --ch-text: #5ee39a; }
.btn[data-chat="messenger"] { --ch: 59, 140, 255;  --ch-text: #86b8ff; }
.btn-ghost[href^="tel:"]    { --ch: 255, 176, 46;  --ch-text: #ffc566; }

@media (hover: hover) and (pointer: fine) {
  .btn[data-chat]:hover, .btn-ghost[href^="tel:"]:hover {
    background: rgba(var(--ch), 0.24);
    border-color: rgba(var(--ch), 0.6);
  }
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 13, 15, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.header[data-scrolled="true"] { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 46, 0.25);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.brand-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 200ms ease, background-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
}

.nav .btn { margin-left: 8px; }

/* Mobile menu — replaces the header nav + call button under 760px
   (calling lives in the bottom call bar there). */

.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}

.menu-btn:active { transform: scale(0.94); }

.menu-btn span {
  grid-area: 1 / 1;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 220ms var(--ease-out);
}

.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.06); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  right: 12px;
  display: none;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.85);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  visibility: hidden;
  pointer-events: none;
  /* exit: quick */
  transition: opacity 140ms ease-out, transform 140ms var(--ease-out), visibility 0s linear 140ms;
}

.mobile-menu[data-open="true"] {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  /* enter */
  transition: opacity 200ms ease-out, transform 200ms var(--ease-out), visibility 0s;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 14px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease;
}

.mobile-menu a + a { box-shadow: 0 -1px 0 var(--line); }
.mobile-menu a:active { background: rgba(255, 255, 255, 0.06); }
.mobile-menu .icon { width: 18px; height: 18px; color: var(--faint); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(255, 176, 46, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero h1 .accent { color: var(--amber); }

.hero-lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}

.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .btn { --btn-h: 54px; padding: 0 24px; font-size: 16px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--muted);
}

.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 17px; height: 17px; color: var(--amber); }

/* Entrance stagger — plays once on load */
.stagger > * {
  animation: rise 700ms var(--ease-out) both;
}
.stagger > *:nth-child(1) { animation-delay: 40ms; }
.stagger > *:nth-child(2) { animation-delay: 100ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 220ms; }
.stagger > *:nth-child(5) { animation-delay: 280ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Radio faceplate ---------- */
/* States on .stage[data-state]: locked → decoding → playing.
   Only transform/opacity animate; everything pauses off-screen (data-paused). */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  animation: rise 900ms var(--ease-out) 200ms both;
}

.stage[data-paused="true"] *,
.stage[data-paused="true"] *::before,
.stage[data-paused="true"] *::after { animation-play-state: paused !important; }

.stage-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 150%;
  aspect-ratio: 1.6;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 176, 46, 0.22), rgba(255, 176, 46, 0.06) 55%, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 900ms ease, transform 900ms var(--ease-out);
}

.stage[data-state="playing"] .stage-glow { opacity: 1; transform: scale(1.08); }

.tilt::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -34px;
  height: 40px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
  filter: blur(6px);
  pointer-events: none;
}

.tilt {
  position: relative;
  width: min(100%, 500px);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Sound-wave rings — only while playing */
.waves { position: absolute; inset: 0; pointer-events: none; }

.waves i {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 2px solid rgba(255, 176, 46, 0.75);
  box-shadow: 0 0 18px rgba(255, 176, 46, 0.25), inset 0 0 18px rgba(255, 176, 46, 0.15);
  opacity: 0;
}

.stage[data-state="playing"] .waves i { animation: wave 2.4s cubic-bezier(0.2, 0.6, 0.35, 1) infinite; }
.stage[data-state="playing"] .waves i:nth-child(2) { animation-delay: 0.8s; }
.stage[data-state="playing"] .waves i:nth-child(3) { animation-delay: 1.6s; }

@keyframes wave {
  0%   { opacity: 0.9; transform: scale(1, 1); }
  100% { opacity: 0; transform: scale(1.2, 1.85); }
}

.radio {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #24262b, #17181b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 0 7px #0a0a0c,
    0 0 0 8px rgba(255, 255, 255, 0.06),
    0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

/* Light sweep that follows the tilt */
.sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.sheen i {
  position: absolute;
  inset: 0 -60%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
  will-change: transform;
}

.knob {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.07) 0deg 4deg, rgba(0, 0, 0, 0.12) 4deg 8deg),
    radial-gradient(circle at 35% 30%, #3a3d43, #1b1c20 70%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 0 0 3px #101114,
    0 0 0 4px rgba(255, 255, 255, 0.05),
    0 6px 14px rgba(0, 0, 0, 0.6);
}

.knob-cap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: transform 700ms var(--ease-out);
}

.knob-cap::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 10px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
}

.radio-center { display: grid; gap: 12px; min-width: 0; }

.lcd {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 78px;
  padding: 0 16px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #120d05, #0b0803);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 176, 46, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.lcd::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 45%);
  pointer-events: none;
}

/* Unlock flash */
.lcd-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 236, 200, 0.85), rgba(255, 176, 46, 0.35) 45%, transparent 75%);
  opacity: 0;
  pointer-events: none;
}

.lcd-flash[data-on="true"] { animation: flash 900ms ease-out; }

@keyframes flash {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  100% { opacity: 0; }
}

.lcd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lcd-side {
  display: grid;
  gap: 3px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 176, 46, 0.22);
  transition: color 200ms ease;
}

.lcd-side.right { text-align: right; }

.lcd-side span[data-on="true"] {
  color: var(--amber);
  text-shadow: 0 0 6px var(--amber-glow);
}

.lcd-text {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(22px, 4.2vw, 30px);
  line-height: 1;
  letter-spacing: 0.22em;
  white-space: pre;
  color: var(--amber);
  text-shadow: 0 0 10px var(--amber-glow), 0 0 2px rgba(255, 220, 160, 0.9);
  transition: opacity 180ms ease, filter 180ms ease;
}

.lcd-text[data-swapping="true"] { opacity: 0; filter: blur(3px); }

.stage[data-state="locked"] .lcd-text { animation: blink 1.1s steps(1, end) infinite; }

@keyframes blink { 50% { opacity: 0.18; } }

/* Per-digit spans while decoding */
.lcd-text .d {
  display: inline-block;
  opacity: 0.55;
  text-shadow: 0 0 6px rgba(255, 176, 46, 0.35);
}

.lcd-text .d[data-locked="true"] {
  opacity: 1;
  text-shadow: 0 0 10px var(--amber-glow), 0 0 2px rgba(255, 220, 160, 0.9);
  animation: lock 480ms var(--ease-out);
}

@keyframes lock {
  0%   { transform: scale(1.5); text-shadow: 0 0 22px #ffd88a, 0 0 4px #fff; }
  100% { transform: scale(1); }
}

/* Bottom row: progress while decoding, equalizer while playing */
.lcd-meter { position: relative; height: 12px; }

.lcd-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgba(255, 176, 46, 0.14);
  overflow: hidden;
  opacity: 0;
  transition: opacity 250ms ease;
}

.lcd-progress i {
  position: absolute;
  inset: 0;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
}

.stage[data-state="decoding"] .lcd-progress { opacity: 1; }

.eq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 300ms ease;
}

.eq i {
  width: 4px;
  height: 100%;
  border-radius: 1px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
  transform: scaleY(0.12);
  transform-origin: bottom;
}

.stage[data-state="playing"] .eq { opacity: 1; }
.stage[data-state="playing"] .eq i { animation: eq var(--d, 600ms) ease-in-out infinite alternate; }

@keyframes eq {
  from { transform: scaleY(0.12); }
  to   { transform: scaleY(var(--h, 1)); }
}

.presets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.preset {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2b2d33, #1e2024);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 0 #0d0e10,
    0 3px 6px rgba(0, 0, 0, 0.5);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #8a8f98;
  transition: transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out), color 120ms ease;
}

.preset[data-pressed="true"] {
  transform: translateY(2px);
  color: var(--amber);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 #0d0e10,
    0 1px 2px rgba(0, 0, 0, 0.5);
  text-shadow: 0 0 6px var(--amber-glow);
}

.stage-caption {
  position: relative;
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--faint);
}

.stage-caption .led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3d43;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.stage[data-state="locked"] .stage-caption .led { background: #e5484d; box-shadow: 0 0 8px rgba(229, 72, 77, 0.6); }
.stage[data-state="decoding"] .stage-caption .led { background: var(--amber); box-shadow: 0 0 8px var(--amber-glow); }
.stage[data-state="playing"] .stage-caption .led { background: #39d98a; box-shadow: 0 0 8px rgba(57, 217, 138, 0.7); }

/* Reduced motion: keep the light/text effects (scramble, flash, equalizer, glow),
   drop the big movements (tilt, expanding rings, digit pop). */
@media (prefers-reduced-motion: reduce) {
  .stage[data-state="playing"] .waves i { animation: none; }
  .stage[data-state="playing"] .stage-glow { animation: glow-pulse 2.4s ease-in-out infinite; }
  .lcd-text .d[data-locked="true"] { animation: lock-glow 480ms ease-out; }
}

@keyframes glow-pulse { 50% { opacity: 0.55; } }
@keyframes lock-glow { from { text-shadow: 0 0 22px #ffd88a, 0 0 4px #fff; } }

/* ---------- Cables (decorative) ---------- */

.cables {
  position: absolute;
  left: -50%;
  top: 0;
  width: 200%;
  aspect-ratio: 2 / 1;
  margin-top: -10%; /* % of width: puts viewBox y=0 at the radio top */
  overflow: visible;
  pointer-events: none;
}

.wire, .wire-hl, .pulse { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wire.sheath { stroke: #08090a; stroke-width: 8; }
.wire { stroke-width: 5.5; }
.wire.thick { stroke-width: 8; }
.cables .wire.sheath:has(+ .thick) { stroke-width: 11; }
.wire.red    { stroke: #9e3f35; }
.wire.yellow { stroke: #b98b2f; }
.wire.black  { stroke: #2a2d33; }
.wire.blue   { stroke: #355f9c; }
.wire.stripe { stroke: rgba(255, 176, 46, 0.35); stroke-width: 1.5; stroke-dasharray: 10 8; }
.wire-hl { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; transform: translate(-0.8px, -1.6px); }

.plug   { fill: #1d1f24; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.socket { fill: #15171a; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.plug-tip { fill: #6b6f78; }
.pin    { fill: rgba(255, 176, 46, 0.55); }
.latch  { fill: #2a2d33; }

/* Signal pulses run along the hero cables while the radio plays */
.pulse {
  stroke: #ffd27a;
  stroke-width: 3;
  stroke-dasharray: 7 100;
  stroke-dashoffset: 107;
  opacity: 0;
  transition: opacity 300ms ease;
}

.stage[data-state="playing"] .pulse {
  opacity: 1;
  animation: signal 1.6s linear infinite;
  animation-delay: var(--delay, 0ms);
}

@keyframes signal { to { stroke-dashoffset: 0; } }

.section { position: relative; }

.cable-divider {
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  height: 80px;
  pointer-events: none;
  opacity: 0.9;
}

.cable-divider svg { display: block; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .stage[data-state="playing"] .pulse { animation: none; opacity: 0; }
}

/* ---------- More decoration: antenna, screws, FM dial, broadcast rings ---------- */

.ant-mount { fill: #1b1c20; stroke: rgba(255, 255, 255, 0.1); }
.ant-seg { stroke: url(#chrome); stroke-linecap: round; }
.ant-tip { fill: #d9dbe0; }

.sig {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.12;
}

.stage[data-state="playing"] .sig {
  animation: broadcast 1.8s ease-out infinite;
  animation-delay: calc(var(--i) * 220ms);
}

@keyframes broadcast {
  0%   { opacity: 0.12; }
  25%  { opacity: 1; }
  100% { opacity: 0.12; }
}

.stage[data-state="playing"] .ant-tip { fill: #ffd27a; }

.screw {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #50535b, #1c1d21 75%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.screw::after {
  content: "";
  position: absolute;
  left: 1.5px;
  right: 1.5px;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(var(--r, 35deg));
}

.screw.tl { top: 7px; left: 7px; }
.screw.tr { top: 7px; right: 7px; --r: -20deg; }
.screw.bl { bottom: 7px; left: 7px; --r: 70deg; }
.screw.br { bottom: 7px; right: 7px; --r: 10deg; }

/* Analog FM tuning dial */
.dial {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -12px 0 40px;
  padding: 14px 18px;
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 50% 120%, rgba(255, 176, 46, 0.1), transparent 60%),
    linear-gradient(180deg, #0e0c08, #0a0906);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 176, 46, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.dial-band, .dial-unit {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 176, 46, 0.7);
}

.dial-inner { position: relative; flex: 1; height: 40px; margin: 0 12px; }

.dial-ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 176, 46, 0.55) 0 1.5px, transparent 1.5px 20%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 176, 46, 0.3) 0 1px, transparent 1px 5%) 0 6px / 100% 6px no-repeat;
  box-shadow: 1.5px 0 0 0 transparent;
}

.dial-ticks::after { /* last major tick at 108 */
  content: "";
  position: absolute;
  right: -1px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(255, 176, 46, 0.55);
}

.dial-unit { white-space: nowrap; flex-shrink: 0; }

.dial-freq {
  display: inline-block;
  width: 5ch; /* fixed: "98.6", "100.9" and "SEEK" must not resize the scale */
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--amber);
  text-shadow: 0 0 8px var(--amber-glow);
  transition: opacity 150ms ease;
}

.dial[data-seeking="true"] .dial-freq { opacity: 0.45; }

.dial-labels span {
  position: absolute;
  top: 0;
  translate: -50% 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 176, 46, 0.75);
  text-shadow: 0 0 8px rgba(255, 176, 46, 0.35);
}

/* Full-width layer, so translateX(%) maps onto the scale */
.dial-needle {
  position: absolute;
  inset: -8px 0;
  transform: translateX(8%);
  transition: transform 1.8s var(--ease-in-out) 300ms;
}

.dial-needle::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 1px;
  background: #ff5a3c;
  box-shadow: 0 0 8px rgba(255, 90, 60, 0.8), 0 0 2px #ffb4a3;
}

.js .dial[data-visible="true"] .dial-needle,
html:not(.js) .dial-needle { transform: translateX(53%); } /* 98.6 MHz */

/* Broadcast rings behind the contact section */

.has-rings::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 100% 0%, rgba(255, 176, 46, 0.07) 0 1.5px, transparent 1.5px 56px);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0, transparent 70%);
  mask-image: radial-gradient(circle at 100% 0%, #000 0, transparent 70%);
  pointer-events: none;
}

.has-rings > .container { position: relative; }

/* Antenna pivots around its mount (fill-box origin: mount is 15 units in, 6 up from the bottom) */
.antenna { transform-box: fill-box; transform-origin: 15px calc(100% - 6px); }

@keyframes wave-sm {
  0%   { opacity: 0.7; transform: scale(1, 1); }
  100% { opacity: 0; transform: scale(1.1, 1.5); }
}

/* Phones: leave room at the sides so cables, antenna and rings are not cut off */
@media (max-width: 520px) {
  .tilt { width: 84%; }
  .hero .hero-grid { gap: 96px; }
  .antenna { transform: rotate(-12deg); }
  .stage[data-state="playing"] .waves i { animation-name: wave-sm; }
}

@media (max-width: 520px) {
  .screw { width: 7px; height: 7px; }
  .screw.tl, .screw.tr { top: 5px; }
  .screw.bl, .screw.br { bottom: 5px; }
  .screw.tl, .screw.bl { left: 5px; }
  .screw.tr, .screw.br { right: 5px; }
  .dial { gap: 10px; padding: 12px; }
  .dial-inner { margin: 0 8px; }
  .dial-labels span { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-state="playing"] .sig { animation: none; opacity: 0.8; }
  .dial-needle { transition: none; }
}

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-raised); }

.section-head { max-width: 640px; margin-bottom: 48px; }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.section-head p {
  margin-top: 16px;
  font-size: 17.5px;
  color: var(--muted);
}

/* Scroll reveal — only when JS is running */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 46, 0.2);
}

.card h3 {
  margin-top: 20px;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--muted);
}

.lcd-chip {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: #120d05;
  box-shadow: inset 0 0 0 1px rgba(255, 176, 46, 0.25);
  font-family: var(--mono);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--line-strong);
  font-size: 15px;
  color: var(--muted);
}

.note .icon { margin-top: 2px; color: var(--amber); }
.note a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 176, 46, 0.5); }

/* ---------- Modes ---------- */

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mode {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mode.featured {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 176, 46, 0.09), transparent 60%),
    var(--surface);
  border-color: rgba(255, 176, 46, 0.22);
}

.mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.pill.amber {
  background: var(--amber-soft);
  border-color: rgba(255, 176, 46, 0.3);
  color: var(--amber);
}

.mode h3 {
  margin-top: 22px;
  font-size: 26px;
  font-weight: 800;
}

.mode > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
}

.checks li { display: flex; gap: 12px; align-items: flex-start; }

.checks .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--amber);
  stroke-width: 2.25;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
}

.channel i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.step h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  interpolate-size: allow-keywords;
}

.faq details::details-content {
  height: 0;
  overflow: clip;
  opacity: 0;
  transition:
    height 280ms var(--ease-out),
    opacity 280ms var(--ease-out),
    content-visibility 280ms allow-discrete;
}

.faq details[open]::details-content {
  height: auto;
  opacity: 1;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .plus {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  transition: transform 280ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}

.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.faq summary .plus::after { transform: rotate(90deg); }

.faq details[open] summary .plus {
  transform: rotate(45deg);
  border-color: rgba(255, 176, 46, 0.4);
  background: var(--amber-soft);
  color: var(--amber);
}

@media (hover: hover) and (pointer: fine) {
  .faq summary:hover .plus { border-color: rgba(255, 255, 255, 0.25); }
}

.faq .answer {
  padding: 0 56px 24px 4px;
  color: var(--muted);
  font-size: 16px;
}

.faq .answer p + p { margin-top: 10px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}

.contact-list {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}

.contact-row + .contact-row { border-top: 1px solid var(--line); }

.contact-row .card-icon { width: 42px; height: 42px; flex-shrink: 0; }

.contact-meta { flex: 1; min-width: 0; }

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
}

.contact-value {
  word-break: normal;
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-value.mono { font-family: var(--mono); font-size: 17px; letter-spacing: 0; white-space: nowrap; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }

/* Row whose action buttons sit under the text at every width */
.contact-row.stacked { flex-wrap: wrap; row-gap: 12px; }
.contact-row.stacked .contact-meta { flex-basis: calc(100% - 58px); }
.contact-row.stacked .contact-actions { flex: 1 1 calc(100% - 58px); min-width: 0; margin-left: 58px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon { width: 18px; height: 18px; }

.icon-btn .swap {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
}

.icon-btn .swap > * {
  grid-area: 1 / 1;
  transition: opacity 200ms ease, transform 200ms var(--ease-out), filter 200ms ease;
}

.icon-btn .swap .done { opacity: 0; transform: scale(0.6); filter: blur(2px); color: #39d98a; }
.icon-btn[data-copied="true"] .swap .idle { opacity: 0; transform: scale(0.6); filter: blur(2px); }
.icon-btn[data-copied="true"] .swap .done { opacity: 1; transform: none; filter: none; }

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
}

.place {
  padding: 28px;
  border-radius: 20px;
  background:
    radial-gradient(100% 70% at 0% 0%, rgba(255, 176, 46, 0.08), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}

.place h3 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 800;
}

.place address {
  margin-top: 8px;
  font-style: normal;
  color: var(--muted);
  font-size: 16px;
}

.place-facts {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}

.place-facts li { display: flex; gap: 12px; align-items: flex-start; }
.place-facts .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--amber); }
.place-facts strong { color: var(--text); font-weight: 600; }

.place .btn { margin-top: 24px; width: 100%; }

.place-map {
  position: relative;
  margin: -12px -12px 24px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.place-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95);
  transition: opacity 400ms ease;
}

@starting-style {
  .place-map iframe { opacity: 0; }
}

.map-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 16px 24px;
  border: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 176, 46, 0.12), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 28px),
    var(--surface-2);
  text-align: center;
}

.map-load-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.map-pin {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 0 0 6px rgba(255, 176, 46, 0.15), 0 8px 20px -6px rgba(255, 176, 46, 0.6);
  transition: transform 160ms var(--ease-out);
}

.map-load-btn:active .map-pin { transform: scale(0.94); }

.map-load-title { font-weight: 700; font-size: 15.5px; }

.map-load-note {
  max-width: 30em;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--faint);
}

.map-load-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .map-load-btn:hover .map-load-title { color: var(--amber); }
}

.place-map::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

/* ---------- Footer ---------- */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer a { color: var(--muted); transition: color 200ms ease; }

@media (hover: hover) and (pointer: fine) {
  .footer a:hover { color: var(--text); }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Legal pages (impresszum, adatvédelem) ---------- */

.legal { padding: 56px 0 104px; }

.legal-inner { max-width: 780px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 200ms ease;
}

.back-link .icon { width: 17px; height: 17px; transform: rotate(180deg); }

@media (hover: hover) and (pointer: fine) {
  .back-link:hover { color: var(--text); }
}

.legal h1 {
  margin-top: 28px;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.legal .lead {
  margin-top: 16px;
  font-size: 17.5px;
  color: var(--muted);
}

.legal h2 {
  margin-top: 56px;
  font-size: 23px;
  font-weight: 800;
  scroll-margin-top: 96px;
}

.legal h2 + p, .legal h2 + .facts, .legal h2 + ul { margin-top: 14px; }

.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal .facts + p, .legal ul + p { margin-top: 16px; }
.legal strong { color: var(--text); font-weight: 600; }

.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--amber); }

.legal a:not(.btn):not(.back-link) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 176, 46, 0.5);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.facts {
  margin: 20px 0 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.facts dl { margin: 0; }

.facts dl > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4px 24px;
  padding: 14px 22px;
}

.facts dl > div + div { border-top: 1px solid var(--line); }

.facts dt { font-size: 14px; font-weight: 600; color: var(--faint); padding-top: 1px; }
.facts dd { margin: 0; font-size: 16px; color: var(--text); overflow-wrap: anywhere; }

.facts-title {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}


/* Data the owner still has to fill in — impossible to miss before going live */
.todo {
  display: inline;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 46, 0.45);
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 700;
  color: var(--amber);
}

@media (max-width: 640px) {
  .facts dl > div { grid-template-columns: 1fr; padding: 14px 16px; }
  .facts-title { padding: 14px 16px; }
  .legal { padding: 40px 0 80px; }
}

/* ---------- Mobile call bar ---------- */

.callbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(22, 24, 27, 0.86);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(calc(100% + 24px));
  transition: transform 400ms var(--ease-out);
}

.callbar[data-visible="true"] { transform: translateY(0); }
.callbar .btn { --btn-h: 48px; }
.callbar .btn-ghost { padding: 0 14px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 14px;
  background: #1f2125;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  width: max-content;
  max-width: calc(100vw - 32px);
  font-size: 14.5px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(100% + 32px));
  transition: transform 400ms ease, opacity 400ms ease;
}

.toast .icon { width: 18px; height: 18px; color: #39d98a; stroke-width: 2.25; }

.toast[data-visible="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .stage { padding-bottom: 8px; }
  .stage-caption { margin-top: 28px; }
  .modes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu { display: block; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .callbar { display: grid; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  body { padding-bottom: 80px; }
  .mode { padding: 24px; }
  .faq .answer { padding-right: 4px; }
  .contact-row { padding: 18px 16px; gap: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .steps { grid-template-columns: 1fr; }
  .radio { gap: 12px; padding: 16px 14px; }
  .knob { width: 40px; height: 40px; }
  .knob-cap::after { top: 5px; height: 8px; }
  .lcd { height: 70px; padding: 0 10px; }
  .lcd-side { display: none; }
  .preset { height: 24px; font-size: 11px; }
  .contact-row:has(.btn-sm) { flex-wrap: wrap; row-gap: 12px; }
  .contact-row:has(.btn-sm) .contact-meta { flex-basis: calc(100% - 56px); }
  .contact-row:has(.btn-sm) .contact-actions { flex: 1 1 calc(100% - 56px); min-width: 0; margin-left: 56px; }
  .contact-row.stacked .contact-actions { display: grid; grid-template-columns: 1fr 1fr; margin-left: 0; flex-basis: 100%; }
  .contact-value { font-size: 16.5px; }
  .contact-value.mono { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stagger > *, .stage { animation: fade 300ms ease both; }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .preset[data-pressed="true"] { transform: none; }
  .callbar { transition: none; }
  .toast { transition: opacity 200ms ease; transform: translate(-50%, 0); }
  .faq summary .plus { transition: border-color 200ms ease, background-color 200ms ease; }
  .faq details::details-content { transition: opacity 200ms ease, content-visibility 200ms allow-discrete; }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
