/* ============================================================
   AURAPODS 2 PRO — dark premium design system
   Canvas #050505 · aurora mint #7CF5D4 · violet #8A7CFF
   Space Grotesk (display) + Instrument Sans (body)
   ============================================================ */

/* ---- Fonts (self-hosted, OFL license — assets/fonts/) ----------------
   Dřív se načítaly z fonts.googleapis.com; vlastní kopie znamená žádné
   předávání IP adres třetí straně a o dvě síťová spojení méně. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-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: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-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;
}

:root {
  --bg: #050505;
  --bg-2: #0a0a0c;
  --ink: #f2f3f5;
  --ink-dim: #9ba0a8;
  --mint: #7cf5d4;
  --violet: #8a7cff;
  --mint-glow: rgba(124, 245, 212, 0.16);
  --violet-glow: rgba(138, 124, 255, 0.14);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --nav-bg: rgba(10, 10, 12, 0.55);
  --footer-bg: rgba(5, 5, 5, 0.7);
  --overlay-bg: rgba(5, 5, 5, 0.86);
  --modal-bg: linear-gradient(170deg, #101216, #0a0b0e);
  --input-bg: #1b1e25;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.55);
  --r-lg: 2rem;
  --r-md: calc(2rem - 0.375rem);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3f5f7;
  --bg-2: #eaeef2;
  --ink: #10151b;
  --ink-dim: #55616e;
  --mint: #14b8a6;
  --violet: #6355e6;
  --mint-glow: rgba(20, 184, 166, 0.12);
  --violet-glow: rgba(99, 85, 230, 0.09);
  --hairline: rgba(16, 30, 40, 0.1);
  --hairline-strong: rgba(16, 30, 40, 0.18);
  --panel: rgba(255, 255, 255, 0.65);
  --panel-strong: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --footer-bg: rgba(255, 255, 255, 0.72);
  --overlay-bg: rgba(240, 244, 247, 0.9);
  --modal-bg: linear-gradient(170deg, #ffffff, #f4f7f9);
  --input-bg: #eef2f5;
  --shadow-soft: 0 24px 70px rgba(30, 50, 70, 0.14);
  color-scheme: light;
}
html[data-theme="light"] .aurora-blob { opacity: 0.3; }
html[data-theme="light"] { --addr-list-bg: #ffffff; }
html[data-theme="light"] .modal-backdrop { background: rgba(25, 38, 50, 0.35); }
html[data-theme="light"] .stepper button:hover { background: rgba(16, 30, 40, 0.07); }
html[data-theme="light"] .modal__close:hover { background: rgba(16, 30, 40, 0.08); }
html[data-theme="light"] .popup-card, html[data-theme="light"] .phone, html[data-theme="light"] .phone__screen { border-color: rgba(16, 30, 40, 0.2); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--mint); color: #04231a; }

a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; }

/* ---------- Aurora backdrop ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  /* No filter: blur() here. Three huge blurred layers animating transform
     forced iOS Safari to re-rasterize them on the CPU every frame — the
     main reason the page crawled on iPhones (desktop GPUs hid the cost).
     A radial-gradient already fades to transparent with zero filter work. */
  opacity: 0.5;
  will-change: transform;
}
.aurora-blob--1 {
  width: 55vw; height: 55vw;
  top: -20vw; left: -12vw;
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 60%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora-blob--2 {
  width: 50vw; height: 50vw;
  top: 30vh; right: -18vw;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 60%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora-blob--3 {
  width: 40vw; height: 40vw;
  bottom: -15vw; left: 25vw;
  background: radial-gradient(circle, rgba(124,245,212,0.08) 0%, transparent 60%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-7vw, -5vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(5vw, -8vh) scale(1.1); } }

/* ---------- Layout primitives ---------- */
main, .footer { position: relative; z-index: 1; }

.section { padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 5vw, 4rem); max-width: 1200px; margin: 0 auto; }

.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(124, 245, 212, 0.25);
  background: rgba(124, 245, 212, 0.06);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  margin-bottom: 1.1rem;
}

/* ---------- Nav ---------- */
.nav-shell {
  position: fixed;
  top: 1.1rem;
  left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: min(1100px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand:hover { text-decoration: none; }
.nav__brand b { color: var(--mint); font-weight: 600; }
.nav__mark { width: 22px; height: 22px; color: var(--mint); }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  color: var(--ink-dim);
  font-size: 0.9rem;
  transition: color 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--panel-strong);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5em 1em;
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.lang-toggle:hover { background: rgba(255,255,255,0.1); transform: scale(1.04); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--panel-strong);
  cursor: pointer;
  align-items: center;
}
.burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.45s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--overlay-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:nth-child(1) { animation: menuIn 0.5s var(--ease) both; }
.mobile-menu a:nth-child(2) { animation: menuIn 0.5s var(--ease) 0.06s both; }
.mobile-menu a:nth-child(3) { animation: menuIn 0.5s var(--ease) 0.12s both; }
.mobile-menu a:nth-child(4) { animation: menuIn 0.5s var(--ease) 0.18s both; }
.mobile-menu a:nth-child(5) { animation: menuIn 0.5s var(--ease) 0.24s both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.85em 1.4em 0.85em 1.7em;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn--primary {
  color: #04231a;
  background: linear-gradient(135deg, #a9ffe7 0%, var(--mint) 55%, #58d9b4 100%);
  box-shadow: 0 10px 40px rgba(124, 245, 212, 0.25), inset 0 1px 1px rgba(255,255,255,0.4);
}
html[data-theme="light"] .btn--primary {
  color: #ffffff; /* white on a solid, calm green — comfortable contrast in bright mode */
  background: linear-gradient(135deg, #1fb989 0%, #17a379 55%, #128f6b 100%);
  box-shadow: 0 10px 40px rgba(23, 163, 121, 0.28), inset 0 1px 1px rgba(255,255,255,0.35);
}
html[data-theme="light"] .btn--primary:hover { box-shadow: 0 16px 50px rgba(23, 163, 121, 0.38), inset 0 1px 1px rgba(255,255,255,0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(124, 245, 212, 0.35), inset 0 1px 1px rgba(255,255,255,0.4); }
.btn--primary:active { transform: scale(0.98); }
.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em; height: 2em;
  border-radius: 50%;
  background: rgba(4, 35, 26, 0.12);
  transition: transform 0.5s var(--ease);
}
.btn:hover .btn__icon { transform: translate(3px, -3px) scale(1.05); }
.btn__icon svg { width: 1em; height: 1em; }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  padding: 0.8em 1.6em;
}
.btn--ghost:hover { background: var(--panel-strong); transform: translateY(-2px); }
.btn--sm { font-size: 0.85rem; padding: 0.7em 1.1em 0.7em 1.4em; }
.btn--lg { font-size: 1.05rem; padding: 1em 1.6em 1em 2em; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 5vw, 4rem) 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero__copy .pill { animation: riseIn 0.9s var(--ease) 0.15s both; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  animation: riseIn 0.9s var(--ease) 0.3s both;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--mint) 20%, var(--violet) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub {
  margin-top: 1.4rem;
  max-width: 34rem;
  color: var(--ink-dim);
  font-size: 1.08rem;
  animation: riseIn 0.9s var(--ease) 0.45s both;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; animation: riseIn 0.9s var(--ease) 0.6s both; }
.hero__facts {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  animation: riseIn 0.9s var(--ease) 0.75s both;
}
.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero__facts span { color: var(--ink-dim); font-size: 0.85rem; }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Hero visual: rendered product ---------- */
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: riseIn 1s var(--ease) 0.5s both;
}
.hero-stage__row {
  position: relative;
  display: flex;
  align-items: flex-end; /* phone + case rest on one shared ground line */
  justify-content: center;
}
/* soft shadow breathing on the shared ground */
.hero-stage__row::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 125%;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.5), transparent 72%);
  filter: blur(5px);
  z-index: 0;
  animation: groundBreathe 5.5s ease-in-out infinite alternate;
}
@keyframes groundBreathe {
  from { transform: translateX(-50%) scaleX(0.9); opacity: 0.7; }
  to { transform: translateX(-50%) scaleX(1.06); opacity: 1; }
}
/* the case sits LEFT of the phone, overlapping its lower-left corner */
.hero-stage__case {
  order: -1;
  position: relative;
  z-index: 3; /* in front of the phone's lower-left corner */
  /* real AirPods case is ~62% of an iPhone's width -- matches 140px vs 224px.
     Only a light overlap: any deeper and the case crosses onto the popup card,
     which is a screen-space layer and must stay on top. */
  width: min(140px, 34%);
  margin-right: -10px;
  margin-bottom: 2px;
}
.hero-stage__case img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.4));
  animation: heroDrift 7s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: translateY(0) rotate(-1.2deg); }
  to { transform: translateY(-9px) rotate(1.2deg); }
}
@keyframes artFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.phone {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(224px, 64%);
  border-radius: 1.7rem;
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(165deg, #14161a, #0a0b0e);
  padding: 5px; /* thin bezel */
  box-shadow: var(--shadow-soft);
  animation: phoneIn 1.2s var(--ease) 1.5s both;
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px); } }
.phone__screen {
  position: relative;
  width: 100%;
  /* 1179 × 2556 px panel — iPhone-class 19.5:9, portrait */
  aspect-ratio: 1179 / 2556;
  border-radius: calc(1.7rem - 5px);
  background: radial-gradient(120% 90% at 30% 10%, #101b22 0%, #05070a 60%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* faint home-screen wallpaper texture */
.wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 24%, rgba(138, 124, 255, 0.22), transparent 46%),
    radial-gradient(circle at 16% 84%, rgba(124, 245, 212, 0.16), transparent 48%),
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.7px);
  background-size: auto, auto, 24px 24px;
}
/* Dynamic Island */
.phone__island {
  position: absolute;
  top: 3.2%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(34px, 24%, 70px);
  height: clamp(7px, 7.5%, 13px); /* slimmer: a chunky island read as a black pill rather than a cutout */
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.lockscreen-time {
  position: absolute;
  top: 11%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11cqw, 3.6rem); /* big iPhone-style clock — reads as a real lock screen, not a stamp */
  font-weight: 200;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.94);
}

/* ---------- simulated lock-screen notifications ---------- */
.phone__notifs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 33%;
  width: calc(100% - 18px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}
.notif {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 5px 7px 6px;
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* deliberately soft: the lock-screen notifications are scenery, the popup
     card below them is the message. A hair of blur reads as depth-of-field. */
  filter: blur(0.5px);
  animation: notifIn 0.7s var(--ease) both;
}
.notif:nth-child(1) { animation-delay: 1.1s; }
.notif:nth-child(2) { animation-delay: 1.45s; }
@keyframes notifIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
}
.notif__icon {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4.5px;
  display: grid;
  place-items: center;
  background: #34c759;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.notif__icon svg { display: block; width: 11px; height: 11px; }
.notif__icon--mail { background: #0a84ff; }
.notif__body {
  /* must FILL the row: shrink-to-fit would size each card to its own longest
     line, so the right-aligned <time> would land at a different x per card.
     This is what kept the Mail timestamp to the left of the Messages one. */
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.notif__head {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.6);
}
.notif__head time { font-weight: 500; margin-left: auto; }
.notif__title {
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif__text {
  font-size: 0.55rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.66);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.phone__home {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}
/* light sweep across the screen */
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.09) 50%, transparent 60%);
  transform: translateX(-130%);
  animation: screenSweep 9s ease-in-out 3.5s infinite;
}
@keyframes screenSweep {
  0%, 52% { transform: translateX(-130%); }
  88%, 100% { transform: translateX(130%); }
}

/* ---------- iOS-style popup cards (white sheets) ---------- */
.popup-card {
  position: relative;
  z-index: 2;
  width: calc(100% - 14px);
  margin: 0 7px;
  border-radius: 0.8rem;
  background: #ffffff;
  color: #10151b;
  border: 1px solid rgba(16, 30, 40, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(22px) scale(0.95);
  transition: opacity 0.7s var(--ease) 2.6s, transform 0.7s var(--ease) 2.6s;
}
.popup-card.is-on { opacity: 1; transform: translateY(0) scale(1); }
.hero-stage .popup-card {
  margin-top: auto; /* pinned to the very bottom of the screen */
  margin-bottom: 8px;
  animation:
    cardIn 0.75s cubic-bezier(0.22, 1.18, 0.36, 1) 2.3s forwards,
    cardReemerge 10s ease-in-out 3.4s infinite;
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cardReemerge {
  0%, 86%, 100% { opacity: 1; transform: translateY(0) scale(1); }
  91% { opacity: 0.4; transform: translateY(5px) scale(0.97); }
  95% { opacity: 1; transform: translateY(0) scale(1); }
}
.popup-card__close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(60, 60, 67, 0.12);
  color: rgba(60, 60, 67, 0.8);
  font-size: 0.78rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: default;
}
.popup-card__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000000;
}
/* hero pairing card: CONNECT */
.popup-card--pair { align-items: center; gap: 0.26rem; text-align: center; }
.popup-card__ear {
  width: auto;
  height: 38px;
  object-fit: contain;
  animation: artFloat 5.5s ease-in-out infinite alternate;
}
.popup-card__note {
  font-size: 0.64rem;
  line-height: 1.35;
  color: #8e8e93;
  max-width: 27ch;
}
.popup-card__btn {
  width: 100%;
  border: none;
  border-radius: 0.6rem;
  padding: 0.42rem 0.5rem;
  background: #007aff;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  transition: background 0.3s var(--ease);
}
.popup-card__btn:hover { background: #0066d6; }
.popup-card__btn:active { background: #005ec4; }
.popup-card__btn:focus-visible { outline: 2px solid rgba(0, 122, 255, 0.5); outline-offset: 2px; }
/* pairing demo: iOS-style 12-spoke spinner, then the "connected" label */
.pair-btn__spin { display: none; width: 1.1rem; height: 1.1rem; animation: pairSpin 0.9s linear infinite; }
.popup-card__btn.is-loading .pair-btn__spin { display: block; }
.popup-card__btn.is-loading .pair-btn__label { display: none; }
.popup-card__btn.is-done { background: #34c759; }
.popup-card__btn.is-done:hover { background: #2fb04f; }
@keyframes pairSpin { to { transform: rotate(360deg); } }
.pair-btn__spin circle { animation: pairFade 1.2s ease-in-out infinite; }
@keyframes pairFade { 0%, 100% { opacity: 0.18; } 45% { opacity: 1; } }
/* connected card: earbuds + case + battery rings */
.popup-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
}
.popup-card__state { color: #8e8e93; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; }
.popup-card__art {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 0.55rem read as one clump at this scale: open it up, and drop the pair
     toward the battery row so the sheet reads title / art / rings top to bottom */
  gap: 1.05rem;
  margin-top: 1.4rem;
  /* both art and battery rows share one centre line: the pair is centred as a
     group, so the gap never pushes either child off-axis */
}
.popup-card__buds,
.popup-card__case {
  width: auto;
  /* the pair used to crowd the sheet: 38px of art inside a 139px card. Shrink it
     so the taller window reads as air around the art, not a packed box. */
  height: 31px;
  object-fit: contain;
}
.popup-card__buds {
  /* nudged so the pair sits centred over the LEFT battery ring, the way the
     iOS sheet lines the earbuds up with their own charge ring. `left` rather
     than a transform, so the artFloat animation keeps owning `transform`. */
  position: relative;
  left: -3px;
  animation: artFloat 5s ease-in-out infinite alternate;
}
.popup-card__case { animation: artFloat 5s ease-in-out 0.8s infinite alternate; }
.popup-card__batt {
  display: flex;
  /* centred, so both rings keep an identical inset from the sheet edges however
     wide the gap gets; the gap itself is what separates them */
  justify-content: center;
  gap: 2.1rem;
  padding-top: 0.3rem;
  margin-top: 0.1rem;
  border-top: 1px solid rgba(16, 30, 40, 0.08);
}
.batt {
  --ring: 3.7px;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none; /* never let the flex row squash a ring -> it would read off-centre */
}
.batt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#34c759 var(--lvl), rgba(60, 60, 67, 0.14) 0);
  /* feathered inner edge instead of a hard stop: a single-stop mask aliases into
     visible jaggies at these radii */
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring) - 0.7px), #000 calc(100% - var(--ring)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring) - 0.7px), #000 calc(100% - var(--ring)));
}
.batt i {
  position: relative;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 600;
  color: #1c1c1e;
  /* The grid centres the box, not the glyphs: an inherited 1.6 line-height
     leaves half-leading under the digits, which rode the ink up inside the ring
     (0.67px at the mobile size). line-height:1 plus a measured optical nudge
     keeps the ink within 0.33px of the ring centre at every breakpoint. */
  line-height: 1;
  padding-top: 0.08em;
}
.popup-card--lg.is-on .batt::after { animation: battSweep 0.9s var(--ease) backwards; }
.popup-card--lg.is-on .batt:nth-child(2)::after { animation-delay: 0.12s; }
@keyframes battSweep {
  from { transform: rotate(-90deg) scale(0.35); opacity: 0; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* ---------- Bento features ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 1.1rem;
}
.card { grid-column: span 1; }
.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }
.card__bezel {
  height: 100%;
  padding: 1.4rem;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--hairline);
  transition: background 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.6s var(--ease);
}
.card__bezel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.card__bezel p { color: var(--ink-dim); font-size: 0.94rem; max-width: 30rem; }
.card:hover .card__bezel {
  background: var(--panel-strong);
  border-color: var(--hairline-strong);
  transform: translateY(-4px);
}

.waves {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 64px;
  margin-top: 1.4rem;
  overflow: hidden;
}
.waves i {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mint), var(--violet));
  height: 100%;
  transform: scaleY(var(--h, 0.3));
  transform-origin: center;
  animation: wave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.09s);
  opacity: 0.85;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(0.95); }
}
.waves i:nth-child(1) { --h: 0.4; --i: 1; }   .waves i:nth-child(2) { --h: 0.75; --i: 2; }
.waves i:nth-child(3) { --h: 0.5; --i: 3; }   .waves i:nth-child(4) { --h: 0.95; --i: 4; }
.waves i:nth-child(5) { --h: 0.35; --i: 5; }  .waves i:nth-child(6) { --h: 0.85; --i: 6; }
.waves i:nth-child(7) { --h: 0.6; --i: 7; }   .waves i:nth-child(8) { --h: 1; --i: 8; }
.waves i:nth-child(9) { --h: 0.45; --i: 9; }  .waves i:nth-child(10) { --h: 0.8; --i: 10; }
.waves i:nth-child(11) { --h: 0.55; --i: 11; } .waves i:nth-child(12) { --h: 0.9; --i: 12; }
.waves i:nth-child(13) { --h: 0.3; --i: 13; } .waves i:nth-child(14) { --h: 0.7; --i: 14; }
.waves i:nth-child(15) { --h: 0.85; --i: 15; } .waves i:nth-child(16) { --h: 0.5; --i: 16; }
.waves i:nth-child(17) { --h: 0.95; --i: 17; } .waves i:nth-child(18) { --h: 0.4; --i: 18; }
.waves i:nth-child(19) { --h: 0.65; --i: 19; } .waves i:nth-child(20) { --h: 0.9; --i: 20; }
.waves i:nth-child(21) { --h: 0.35; --i: 21; } .waves i:nth-child(22) { --h: 0.75; --i: 22; }
.waves i:nth-child(23) { --h: 0.55; --i: 23; } .waves i:nth-child(24) { --h: 1; --i: 24; }

.orb {
  width: 150px; height: 150px;
  margin: 1.6rem auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.5), transparent 42%),
    radial-gradient(circle at 68% 72%, var(--violet-glow), transparent 55%),
    conic-gradient(from 180deg, var(--mint), var(--violet), #4dd0ff, var(--mint));
  filter: blur(1px);
  animation: orbSpin 14s linear infinite;
  opacity: 0.85;
}
@keyframes orbSpin { to { transform: rotate(360deg); } }

.charge {
  margin-top: 1.6rem;
  height: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.charge i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--mint), #3fd9ae);
  box-shadow: 0 0 18px rgba(124,245,212,0.4);
  animation: chargePulse 3.2s ease-in-out infinite;
}
@keyframes chargePulse { 50% { filter: brightness(1.3); } }

/* ---------- Popup showcase ---------- */
.section--popup { max-width: none; padding-left: 0; padding-right: 0; }
.popup-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.popup-copy__lead { color: var(--ink-dim); margin-top: 1rem; }
.checklist { list-style: none; margin-top: 1.6rem; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-size: 0.95rem;
}
.checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}
.note {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
  border-left: 2px solid var(--hairline-strong);
  padding-left: 0.9rem;
}
.popup-visual { display: grid; place-items: center; }
.phone--lg {
  position: relative;
  width: min(224px, 64%);
  transform: none;
  animation: none;
}
.popup-card--lg {
  width: calc(100% - 14px);
  margin: auto 7px 8px;
  /* taller window: the title stays pinned to the top edge and the battery row to
     the bottom one, so the extra height becomes air around the earbuds */
  min-height: 162px;
  justify-content: space-between;
  border-radius: 0.85rem;
  padding: 0.55rem 0.65rem 0.6rem;
  gap: 0.34rem;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.popup-card--lg.is-on { opacity: 1; transform: none; }
.popup-card--lg .popup-card__title { font-size: 0.9rem; }

/* ---------- Specs ---------- */
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.specs__col {
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 1.6rem;
}
.specs__col h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.2rem;
}
.specs dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
}
.specs dl div:last-child { border-bottom: none; }
.specs dt { color: var(--ink-dim); font-size: 0.9rem; }
.specs dd { font-weight: 600; font-size: 0.9rem; text-align: right; }

/* ---------- Order ---------- */
.section--order { max-width: none; }
.order-inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }
.order-box {
  border-radius: calc(var(--r-lg) + 0.5rem);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(124,245,212,0.1), transparent 55%),
    var(--panel);
  border: 1px solid rgba(124, 245, 212, 0.2);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.order-box h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; }
.order-price { margin: 1rem 0 0.4rem; }
.order-price strong { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.02em; }
.order-price span { color: var(--ink-dim); margin-left: 0.8rem; }
.order-desc { color: var(--ink-dim); max-width: 34rem; margin: 0 auto 2rem; }
.assurances {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.8rem;
  margin-top: 1.8rem;
  color: var(--ink-dim);
  font-size: 0.86rem;
}
.assurances li::before { content:  "• "; color: var(--mint); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-list details {
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 0;
}
.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mint);
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.45s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--ink-dim); margin-top: 0.7rem; padding-right: 2rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 5vw, 4rem) 2.5rem;
  background: var(--footer-bg);
}
.footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 2.5rem;
}
.footer__brand .nav__brand { font-size: 1.15rem; }
.footer__tagline { color: var(--ink-dim); margin-top: 0.9rem; font-size: 0.9rem; }
.footer__col h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1rem;
}
.footer__col a { display: block; color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 0.55rem; }
.footer__col a:hover { color: var(--ink); }
.mono {
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.9;
  font-variant-numeric: tabular-nums;
}
.footer__note { color: var(--ink-dim); font-size: 0.78rem; margin-top: 0.9rem; line-height: 1.6; }
.footer__legal {
  max-width: 1200px;
  margin: 2.8rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-dim);
  font-size: 0.8rem;
}

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.modal-root[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 4, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 0.4s var(--ease) both;
}
.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88dvh, 780px);
  overflow-y: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline-strong);
  background: var(--modal-bg);
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255,255,255,0.1);
  padding: 2rem;
  animation: modalIn 0.55s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal__close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); background: rgba(255,255,255,0.12); }
.modal h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; padding-right: 2.5rem; }
.modal__sub { color: var(--ink-dim); font-size: 0.88rem; margin: 0.5rem 0 1.4rem; }
.modal form label { display: block; margin-bottom: 0.85rem; }
.modal form label[hidden] { display: none !important; }
.modal form label span { display: block; font-size: 0.8rem; color: var(--ink-dim); margin-bottom: 0.3rem; }
/* Clarifying note under a field whose purpose is easy to misread (the address is
   billing-only; the parcel goes to the Zasilkovna pickup point). */
.modal form .field-note {
  display: block;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--ink-dim);
  margin: 0.35rem 0 0;
  opacity: 0.85;
}
.modal input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--hairline);
  border-radius: 0.9rem;
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 1rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.modal input:focus {
  outline: none;
  border-color: rgba(124, 245, 212, 0.5);
  background: rgba(124, 245, 212, 0.04);
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button {
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.stepper button:hover { background: rgba(255,255,255,0.08); }
.stepper output { min-width: 2ch; text-align: center; font-weight: 600; color: var(--ink); }
.qty-total { margin-left: auto; font-family: var(--font-display); font-weight: 600; color: var(--mint); }
.modal__summary {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--panel);
  border: 1px solid var(--hairline);
  font-size: 0.9rem;
}
.modal__summary > div { display: flex; justify-content: space-between; padding: 0.25rem 0; color: var(--ink-dim); }
.modal__summary .modal__total {
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-weight: 600;
}
.modal__total span:last-child { color: var(--mint); }
.modal__disclosure { font-size: 0.76rem; color: var(--ink-dim); line-height: 1.55; margin-bottom: 1.1rem; }
.modal__fallback { font-size: 0.8rem; color: var(--ink-dim); margin-top: 0.9rem; text-align: center; }

/* ---------- Order success view (after submit) ---------- */
.order-success { text-align: center; }
.order-success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mint);
  margin: 0.2rem 0 0.4rem;
}
.order-success__vs { color: var(--ink-dim); font-size: 0.9rem; margin: 0 0 1rem; }
.order-success__vs strong { color: var(--ink); font-family: var(--font-display); }
.order-success__qr {
  display: inline-grid;
  place-items: center;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.order-success__qr svg, .order-success__qr img { display: block; }
.order-success__scan { font-size: 0.78rem; color: var(--ink-dim); line-height: 1.5; margin: 0.9rem auto 1.1rem; max-width: 30ch; }
.order-success__details {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--panel);
  border: 1px solid var(--hairline);
  text-align: left;
}
.order-success__details > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; font-size: 0.9rem; }
.order-success__details dt { color: var(--ink-dim); }
.order-success__details dd { margin: 0; color: var(--ink); font-weight: 600; font-family: var(--font-display); }
.order-success__note { font-size: 0.78rem; color: var(--ink-dim); line-height: 1.5; margin: 0 0 1.1rem; }

/* ---------- Theme toggle ---------- */
.lang-toggle { display: inline-flex; align-items: center; justify-content: center; }
.theme-icon { width: 15px; height: 15px; }
html[data-theme="dark"] .theme-icon--sun { display: none; }
html[data-theme="light"] .theme-icon--moon { display: none; }

/* ---------- 3D model section ---------- */
.section--model { max-width: none; padding-left: 0; padding-right: 0; }
.model-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.model-copy__lead { color: var(--ink-dim); margin-top: 1rem; }
.model-stage {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(100% 100% at 70% 0%, var(--mint-glow), transparent 60%),
    var(--panel);
  border: 1px solid var(--hairline);
  padding: 1rem;
}
.turn-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
}
.turn-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
.turn-stack img.is-current { opacity: 1; }
.model-hint {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.8rem;
  padding: 0.7rem 0 0.4rem;
}

/* ---------- Pickup picker ---------- */
.pickup-picker { display: flex; gap: 0.7rem; margin-top: -0.35rem; }
.pickup-status {
  font-size: 0.82rem;
  color: var(--ink);
  background: rgba(124, 245, 212, 0.08);
  border: 1px solid rgba(124, 245, 212, 0.25);
  border-radius: 0.8rem;
  padding: 0.6rem 0.9rem;
  margin-top: 0.6rem;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.duo__item {
  border-radius: var(--r-md);
  background:
    radial-gradient(90% 90% at 60% 10%, var(--mint-glow), transparent 65%),
    var(--panel);
  border: 1px solid var(--hairline);
  padding: 1.6rem 1.2rem 1.1rem;
  display: grid;
  place-items: center;
  gap: 0.9rem;
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease);
}
.duo__item:hover { transform: translateY(-4px); border-color: var(--hairline-strong); }
.duo__item img {
  width: 100%;
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
}
.duo__item figcaption {
  font-size: 0.8rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

/* ---------- Brand logo ---------- */
.nav__logo {
  height: 44px;
  width: auto;
  display: block;
  background: var(--bg);
  border-radius: 12px;
  padding: 5px 9px;
  box-sizing: content-box;
}
html[data-theme="light"] .nav__logo,
html[data-theme="light"] .footer__logo { background: #0a0a0d; }
.footer__logo {
  margin: 0 0 0.4rem;
  background: var(--footer-bg);
  border-radius: 16px;
  padding: 14px 18px;
  width: fit-content;
}
.footer__logo img { display: block; width: 190px; height: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nav__brand:focus-visible .nav__logo { outline: 2px solid var(--accent, #d9a441); outline-offset: 3px; }
@media print {
  .nav__logo, .footer__logo { filter: invert(1) hue-rotate(180deg); }
}

/* ---------- Product art placeholder ---------- */
.product-art {
  width: min(320px, 80%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 2rem;
  background: radial-gradient(120% 120% at 30% 20%, rgba(124,245,212,.25), transparent 55%), var(--panel);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.product-art__shape {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--violet));
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.product-art__label { margin-top: 1rem; font-weight: 600; color: var(--ink-dim); }

/* ---------- Product catalog ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}
.product-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.product-card__art {
  height: 150px;
  border-radius: 1rem;
  background: radial-gradient(120% 120% at 30% 20%, rgba(124,245,212,.2), transparent 55%), var(--panel-strong);
  border: 1px solid var(--hairline);
}
.product-card__art--aurapods { background: radial-gradient(120% 120% at 30% 20%, rgba(138,124,255,.28), transparent 55%), var(--panel-strong); }
.product-card__art--ak6 { background: radial-gradient(120% 120% at 30% 20%, rgba(224,82,160,.24), transparent 55%), var(--panel-strong); }
.product-card__art--ak3 { background: radial-gradient(120% 120% at 30% 20%, rgba(124,245,212,.2), transparent 55%), var(--panel-strong); }
.product-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.product-card p { margin: 0; color: var(--ink-dim); font-size: .92rem; line-height: 1.55; }
.product-card__price { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.product-card__colors { font-size: .82rem; color: var(--ink-dim); }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Scroll progress rail ----------
   One hairline at the very top edge that fills as the document scrolls. It is
   purely CSS (scroll-driven animations); browsers without support never show
   it, so no JS and no fallback code is needed. */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 70;
  pointer-events: none;
  overflow: hidden;
}
.scroll-progress > i {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint), var(--violet));
}
@supports not (animation-timeline: scroll()) {
  .scroll-progress { display: none; }
}

/* ---------- Scroll-driven motion (progressive) ----------
   Same rules as the shop stylesheet: nothing is hidden, nothing depends on
   JavaScript, and reduced-motion users get the static page. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress > i {
      animation: railFill linear both;
      animation-timeline: scroll(root block);
    }

    /* hero composition lifts and fades back as the first section arrives */
    .hero-stage__row {
      animation: heroLeave linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }

    /* product photographs settle while they travel up the viewport */
    .duo__item img {
      animation: artSettle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }

    /* the specs block rises out of the fold line */
    .specs {
      animation: blockRise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}

@keyframes railFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes heroLeave {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to { transform: translateY(-6%) scale(0.98); opacity: 0.55; }
}
@keyframes artSettle {
  from { transform: translateY(26px) scale(0.96); }
  to { transform: none; }
}
@keyframes blockRise {
  from { transform: translateY(30px); }
  to { transform: none; }
}

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .model-wrap { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .burger { display: flex; }
  .hero { min-height: auto; padding-top: 7rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .popup-wrap { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
/* ---------- Mobile perf: iOS Safari rasterizes blurs + every running
   animation on the CPU, so phones pay for decorative motion forever. This
   block keeps the layout identical but stops the money burners. ---------- */
@media (max-width: 900px) {
  /* 1. backdrop-filter: replace with plain semi-transparent backgrounds
        (visually near-identical, zero per-frame rasterization). */
  .nav,
  .mobile-menu,
  .modal-backdrop,
  .notif {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .modal-backdrop { background: rgba(3, 3, 4, 0.88); }
  html[data-theme="light"] .modal-backdrop { background: rgba(25, 38, 50, 0.55); }
  .nav { background: rgba(10, 10, 12, 0.82); }
  html[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.88); }
  .mobile-menu { background: rgba(5, 5, 5, 0.94); }
  html[data-theme="light"] .mobile-menu { background: rgba(240, 244, 247, 0.97); }
  .notif { filter: none; }

  /* 2. Decorative infinite animations off — hero/product animations that
        play for the whole session cost battery and jank scrolling. */
  .aurora-blob,
  .hero-stage__row::after,
  .hero-stage__case img,
  .popup-card__ear,
  .popup-card__buds,
  .popup-card__case {
    animation: none !important;
  }

  /* 3. Product art is inside overflow-hidden fixed-width frames — promote
        to their own layers so a scroll never repaints the whole page. */
  .popup-card__art img,
  .hero-stage__img {
    transform: translateZ(0);
  }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide, .card--tall { grid-column: span 1; grid-row: span 1; }
  .card--tall .orb { width: 120px; height: 120px; }
  .hero__facts { gap: 1.4rem; }
  .hero-stage__case { width: min(84px, 27%); margin-right: -8px; margin-bottom: 1px; }
  /* Hero phone: 110px left the popup sheet proportionally oversized (chunky
     text, heavy island). Give the phone a bit more width so the popup scales
     down WITH the frame instead of dominating it. */
  .phone { width: 128px; padding: 4px; border-radius: 1.4rem; }
  .phone__screen { border-radius: calc(1.4rem - 4px); }
  /* the showcase phone needs its own width: the generic rule above is for
     the hero phone; both phones keep the same layout proportions now. */
  .phone--lg { width: 170px; }
  .phone--lg .lockscreen-time { font-size: 1.9rem; } /* clock scales with the bigger frame, matching the hero phone's ratio */
  .phone--lg .phone__notifs { top: 30%; } /* single notif sits clear of the popup card */
  .popup-card { width: calc(100% - 10px); margin: 0 5px; border-radius: 0.6rem; padding: 0.35rem 0.45rem; gap: 0.2rem; }
  .popup-card__close { width: 15px; height: 15px; font-size: 0.6rem; top: 4px; right: 4px; }
  .popup-card__ear { height: 18px; }
  .popup-card--pair .popup-card__title { font-size: 0.68rem; }
  .popup-card__note { display: none; }
  .popup-card__btn { font-size: 0.62rem; padding: 0.3rem 0.4rem; border-radius: 0.45rem; }
  .popup-card--lg { width: calc(100% - 10px); margin: auto 5px 8px; padding: 0.4rem 0.45rem 0.45rem; gap: 0.26rem; border-radius: 0.7rem; min-height: 148px; }
  .popup-card--lg .popup-card__title { font-size: 0.74rem; }
  .popup-card--lg .popup-card__meta { flex-direction: column; align-items: center; gap: 0.08rem; }
  .popup-card__state { font-size: 0.62rem; }
  /* the iOS crops are wide (176x114, 222x142) -- size by width so the pair fits */
  .popup-card__buds { width: 46px; height: auto; }
  .popup-card__case { width: 38.8px; height: auto; }
  .popup-card__art { gap: 0.55rem; margin-top: 0.7rem; }
  .popup-card__batt { gap: 1.7rem; padding-top: 0.25rem; }
  .batt { --ring: 3.0px; width: 26px; height: 26px; }
  .lockscreen-time { font-size: 1.7rem; top: 11%; }
  .phone__notifs { top: 28%; width: calc(100% - 12px); gap: 3px; } /* moved up: the popup card must never cover the second message */
  .notif { gap: 4px; padding: 3px 5px 4px; border-radius: 0.5rem; filter: blur(0.3px); }
  .notif__icon { width: 12px; height: 12px; border-radius: 3.5px; }
  .notif__icon svg { width: 8.5px; height: 8.5px; }
  .notif__head { font-size: 0.42rem; }
  .notif__title { font-size: 0.5rem; }
  .notif__text { font-size: 0.45rem; -webkit-line-clamp: 1; }
  /* Purple hairlines at certain zoom levels: the wallpaper's dotted texture
     and the aurora blobs alias at fractional device-pixel ratios and the
     violet/mint dots fringe into colored lines. Rasterizing the wallpaper
     onto its own layer + slightly coarser dots removes the fringing. */
  .wallpaper {
    transform: translateZ(0);
    background-size: auto, auto, 26px 26px;
    background:
      radial-gradient(circle at 76% 24%, rgba(138, 124, 255, 0.18), transparent 48%),
      radial-gradient(circle at 16% 84%, rgba(124, 245, 212, 0.13), transparent 50%),
      radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.9px);
  }
}
@media (max-width: 480px) {
  #navOrderBtn { display: none; }
  .nav { padding: 0.5rem 0.55rem 0.5rem 0.9rem; gap: 0.5rem; }
}

/* ---------- Reviews (real customer reviews from Vinted) ---------- */
.reviews {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
}
.reviews__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.reviews__score {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.reviews__scorecol {
  display: grid;
  gap: 0.25rem;
  text-align: left;
}
.reviews__stars {
  color: #f5b301;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}
.star-row {
  display: inline-flex;
  gap: 0.15rem;
  vertical-align: middle;
}
.reviews__meta {
  font-size: 0.82rem;
  color: var(--ink-dim);
}
.reviews__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 1.15rem 1.25rem;
  margin: 0;
  text-align: left;
}
.review-card__stars {
  color: #f5b301;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}
.review-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink);
}
.review-card__meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-dim);
}
.review-card__author { font-weight: 600; }
@media (max-width: 560px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .review-card__meta { justify-content: center; }
  .reviews__scorecol { text-align: center; }
}
.reviews__note {
  font-size: 0.78rem;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 48ch;
}

/* ============ v28 — stock badge, sold-out state, address autocomplete ============ */
.stock-badge {
  display: flex;
  width: fit-content;
  margin: 0.9rem auto 1.15rem; /* own line, centered — no longer sharing a baseline with the order button */
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 207, 142, 0.45);
  background: rgba(62, 207, 142, 0.12);
  color: #3ecf8e;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.stock-badge[hidden] { display: none; }
.stock-badge::before {
  content: "";
  flex: none; /* flex row must never squash the square into an oval */
  aspect-ratio: 1; /* width and height always compute equal — a true dot, not an oval */
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.stock-badge--out {
  border-color: rgba(224, 82, 82, 0.5);
  background: rgba(224, 82, 82, 0.12);
  color: #e05252;
}
.stock-badge--low {
  border-color: rgba(240, 164, 39, 0.5);
  background: rgba(240, 164, 39, 0.12);
  color: #d98f1f;
}
.btn--soldout {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.4);
}
.addr-wrap {
  position: relative;
}
.addr-list {
  position: absolute;
  z-index: 80; /* above the modal (60) — the dropdown must never sink behind the modal content */
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  /* Fully opaque: dark theme gets its own solid card color, light theme white.
     (var(--panel) is translucent — suggestions used to bleed through the
     notes below the field and read as one unreadable mess.) */
  background: var(--addr-list-bg, #14161c);
  color: var(--ink, #1a1a2e);
  border: 1px solid var(--hairline-strong, #dfe3ea);
  border-radius: var(--r-md, 12px);
  box-shadow: 0 12px 32px rgba(10, 14, 30, 0.18);
  overflow: hidden;
  max-height: 17rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.addr-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline, #eef0f4);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  line-height: 1.35;
}
.addr-item:last-child { border-bottom: 0; }
.addr-item:hover, .addr-item:focus { background: rgba(99, 102, 241, 0.09); }
.addr-item__main { display: block; font-weight: 600; font-size: 0.88rem; }
.addr-item__sub { display: block; font-size: 0.76rem; color: var(--ink-dim, #6b7280); }
.addr-item--none { cursor: default; color: var(--ink-dim, #6b7280); font-size: 0.85rem; }
.order-success__spam {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #8a6d1a;
  background: #fdf6e3;
  border: 1px solid #f0e3b6;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  text-align: center;
}
.order-success__spam a { color: inherit; font-weight: 600; }
.stock-out { text-align: center; padding: 2.2rem 1rem 1.4rem; }
.stock-out__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #e05252;
}
.stock-out__sub {
  margin: 0.55rem auto 0;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-dim, #6b7280);
}
.order-success__track { margin: 0.8rem 0 0; font-size: 0.9rem; }
.order-success__track a { color: var(--ink, #1a1a2e); font-weight: 600; }
/* Honeypot: skryté pole pro boty; pro lidi i čtečky zcela mimo layout. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}
