/* ============ FC Zeta Milano · Shared styles ============ */
:root {
  --zred: #E30613;
  --zink: #0A0A0A;
  --zbone: #F4F1EC;
  --zmuted: rgba(244, 241, 236, 0.6);
  --hairline: rgba(244, 241, 236, 0.12);
  --hairline-dark: rgba(10, 10, 10, 0.12);

  --maxw: 1320px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* iOS: kill the blue tap highlight overlay on links/buttons */
a, button { -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--zink);
  color: var(--zbone);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

.font-display { font-family: 'Anton', 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.005em; line-height: 0.88; text-transform: uppercase; }
.font-condensed { font-family: 'Bebas Neue', 'Anton', Impact, sans-serif; letter-spacing: 0.04em; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--zred);
}

/* ============ NAVBAR ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
  /* iPhone notch / status bar safe area */
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.nav.scrolled, .nav.solid {
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 40px; } }

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 40px; height: 40px; display: block; }
.brand-name {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.nav-links {
  display: none;
  gap: 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  color: #fff;
  opacity: 0.85;
  transition: color 160ms ease, opacity 160ms ease;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--zred); opacity: 1; }
.nav-links a.active { color: #fff; opacity: 1; border-bottom-color: var(--zred); }

/* ============ NAVBAR · split layout (centered logo) ============ */
.nav.split {
  background: rgba(10, 10, 10, 0);
  transition: background-color 220ms ease, border-color 220ms ease;
}
.nav.split.scrolled,
.nav.split.solid {
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
}
.nav-split-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
@media (min-width: 768px) {
  .nav-split-inner { padding: 0 40px; height: 92px; }
}

.nav-side {
  display: none;
  gap: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.nav-side.left  { justify-content: flex-end; }
.nav-side.right { justify-content: flex-start; }
@media (min-width: 900px) { .nav-side { display: flex; } }

.nav-side a {
  color: #fff;
  opacity: 0.88;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, opacity 160ms ease, border-color 160ms ease;
}
.nav-side a:hover { color: var(--zred); opacity: 1; }
.nav-side a.active {
  color: #fff;
  opacity: 1;
  border-bottom-color: var(--zred);
}

.nav-side .nav-app-link {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  opacity: 0.88;
  padding: 8px 0;
  position: relative;
  text-transform: uppercase;
  transition: color 160ms ease, opacity 160ms ease, border-color 160ms ease;
}
.nav-side .nav-app-link::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -10px;
  width: 6px;
  height: 6px;
  background: var(--zred);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.65);
  animation: livePulse 1.6s ease-out infinite;
}
.nav-side .nav-app-link:hover {
  color: var(--zred);
  opacity: 1;
}

.nav-side a.shop {
  color: #fff;
  background: var(--zred);
  padding: 8px 14px;
  border-bottom: none;
  letter-spacing: 0.16em;
}
.nav-side a.shop:hover { background: #fff; color: var(--zink); }
.nav-side a.shop.active { background: var(--zred); }

.brand-center {
  display: inline-flex; align-items: center;
  justify-self: center;
}
.brand-center img {
  width: 58px; height: 58px; display: block;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
}
@media (min-width: 768px) { .brand-center img { width: 68px; height: 68px; } }

.nav-mobile {
  display: flex; align-items: center; gap: 8px;
  justify-self: end;
}
@media (min-width: 900px) { .nav-mobile { display: none; } }

.menu-btn-home { display: inline-grid; }
@media (min-width: 900px) { .menu-btn-home { display: none; } }

/* Active state in drawer */
.drawer-links a.active { color: var(--zred); }

/* ============ TUTTOCAMPO WIDGET CARDS (shared) ============ */
.widget-card {
  position: relative;
  background: #fff;
  color: var(--zink);
  border: 1px solid rgba(10, 10, 10, 0.10);
  border-top: 3px solid var(--zred);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
@media (hover: hover) {
  .widget-card:hover {
    border-color: var(--zred);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

/* Dark header that bridges the page palette and the white iframe body */
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--zink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.widget-head .widget-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--zred);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Pulsing live dot for real-time data */
.widget-head .widget-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--zred);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.6);
  animation: widgetLivePulse 1.8s ease-out infinite;
}
@keyframes widgetLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(227, 6, 19, 0); }
}
.widget-head .widget-title {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.widget-head .widget-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.55);
}

.widget-frame {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  display: flex;
  justify-content: center;
}
.widget-frame iframe {
  display: block;
  border: 0;
  flex: 0 0 auto;
}

/* Attribution footer */
.widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: var(--zink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.5);
}
.widget-foot .source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.widget-foot .source::before {
  content: "ⓘ";
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  color: rgba(244, 241, 236, 0.45);
}
.widget-foot a {
  color: rgba(244, 241, 236, 0.7);
  border-bottom: 1px solid rgba(244, 241, 236, 0.2);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}
@media (hover: hover) {
  .widget-foot a:hover {
    color: var(--zred);
    border-bottom-color: var(--zred);
  }
}

/* ============ MOBILE RESPONSIVE FIXES ============ */
@media (max-width: 480px) {
  /* Tighten edges on phones */
  .wrap { padding: 0 18px; }
  .nav-inner, .nav-split-inner { padding: 0 18px; }
  .footer-inner { padding: 56px 18px 28px; gap: 32px; }
  .footer-bottom { padding: 18px 18px 24px; gap: 10px; }
  .footer ul a { font-size: 17px; }
  .footer-meta { font-size: 10px; }
}
/* Stack footer bottom on very narrow screens */
@media (max-width: 520px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  /* Allow drawer links to shrink on tiny screens */
  .drawer-links { font-size: 36px; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  background: #fff; color: var(--zink);
}
.btn:hover { background: var(--zred); color: #fff; }
.btn-red { background: var(--zred); color: #fff; }
.btn-red:hover { background: #fff; color: var(--zink); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: #fff; color: var(--zink); }
.btn-ghost-dark { background: transparent; color: var(--zink); border: 1px solid rgba(10,10,10,0.3); }
.btn-ghost-dark:hover { background: var(--zink); color: #fff; }
.btn-lg { height: 56px; padding: 0 22px; font-size: 22px; }

.btn .arrow { width: 14px; height: 14px; }

.menu-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
}
@media (min-width: 900px) { .menu-btn { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0;
  background: var(--zink);
  z-index: 60;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, -12px, 0);
  isolation: isolate;
  transition:
    clip-path 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 0s linear 520ms;
}
.drawer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--zred);
  box-shadow: 0 0 54px rgba(227, 6, 19, 0.55);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0);
  transform: translate3d(0, 0, 0);
  transition:
    clip-path 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 0s linear 0s;
}
.drawer.open::before {
  transform: scaleY(1);
}
.drawer-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  transition:
    opacity 280ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.open .drawer-top {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 120ms;
}
.drawer-links {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'Anton', sans-serif;
  font-size: 44px; letter-spacing: 0.02em; text-transform: uppercase;
}
.drawer-links a,
.drawer-links button {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    color 160ms ease,
    opacity 360ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer-links button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}
.drawer-links a:hover,
.drawer-links button:hover { color: var(--zred); }
.drawer.open .drawer-links > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.drawer.open .drawer-links > :nth-child(1) { transition-delay: 120ms; }
.drawer.open .drawer-links > :nth-child(2) { transition-delay: 160ms; }
.drawer.open .drawer-links > :nth-child(3) { transition-delay: 200ms; }
.drawer.open .drawer-links > :nth-child(4) { transition-delay: 240ms; }
.drawer.open .drawer-links > :nth-child(5) { transition-delay: 280ms; }
.drawer.open .drawer-links > :nth-child(6) { transition-delay: 320ms; }
.drawer.open .drawer-links > :nth-child(7) { transition-delay: 360ms; }
.drawer-app-link {
  position: relative;
}
.drawer-app-link::after {
  content: "NEW";
  display: inline-flex;
  margin-left: 12px;
  transform: translateY(-8px);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #fff;
  background: var(--zred);
  padding: 4px 7px;
  vertical-align: middle;
}

.drawer-socials {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 28px;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 360ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.open .drawer-socials {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 430ms;
}
.drawer-socials-label {
  display: block;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.55);
}
.drawer-socials-row {
  display: flex;
  gap: 10px;
}
.drawer-socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: rgba(244, 241, 236, 0.85);
  border: 1px solid rgba(244, 241, 236, 0.16);
  background: rgba(244, 241, 236, 0.04);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.drawer-socials a:hover {
  color: #fff;
  border-color: var(--zred);
  background: var(--zred);
  transform: translateY(-2px);
}

@media (max-width: 780px) {
  .drawer {
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  }
  .drawer-links {
    margin-top: 28px;
    gap: 0;
    font-size: clamp(30px, 8.4vw, 36px);
    line-height: 0.96;
  }
  .drawer-links a,
  .drawer-links button {
    padding: 8px 0;
  }
  .drawer-app-link::after {
    margin-left: 9px;
    transform: translateY(-6px);
    font-size: 8px;
    padding: 3px 6px;
  }
  .drawer-socials {
    padding-top: 18px;
  }
  .drawer-socials a {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer,
  .drawer::before,
  .drawer-top,
  .drawer-links a,
  .drawer-links button,
  .drawer-socials,
  .drawer-socials a {
    transition: none !important;
  }
  .drawer,
  .drawer.open,
  .drawer-top,
  .drawer.open .drawer-top,
  .drawer-links a,
  .drawer-links button,
  .drawer.open .drawer-links > *,
  .drawer-socials,
  .drawer.open .drawer-socials {
    transform: none !important;
  }
}

/* ============ MONDO ZETA APP POPUP ============ */
html.app-popup-lock,
html.app-popup-lock body {
  overflow: hidden;
}

.app-popup-shell {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.app-popup-shell.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-popup-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(227, 6, 19, 0.22), transparent 34%),
    rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  cursor: pointer;
}

.app-popup-card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  color: var(--zbone);
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(244, 241, 236, 0.16);
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.72),
    0 0 90px -28px rgba(227, 6, 19, 0.72);
  isolation: isolate;
  outline: none;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, -12px, 0) scale(0.985);
  transition:
    clip-path 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}
.app-popup-shell.is-open .app-popup-card {
  opacity: 1;
  clip-path: inset(0);
  transform: translate3d(0, 0, 0) scale(1);
}
.app-popup-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zred) 0%, var(--zred) 42%, rgba(227, 6, 19, 0) 100%);
  z-index: 2;
}
.app-popup-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.045) 50%, transparent 100%);
  background-size: 220% 100%;
  animation: appPopupScan 7s linear infinite;
  opacity: 0.7;
  z-index: 1;
}
@keyframes appPopupScan {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

.app-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 236, 0.16);
  background: rgba(10, 10, 10, 0.65);
  color: rgba(244, 241, 236, 0.72);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.app-popup-close:hover {
  color: #fff;
  border-color: var(--zred);
  transform: rotate(90deg);
}

.app-popup-kicker {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 28px 0;
  padding: 9px 14px;
  color: #fff;
  background: var(--zred);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.app-popup-close,
.app-popup-kicker,
.app-popup-visual,
.app-popup-label,
.app-popup-content h2,
.app-popup-content p,
.app-popup-tags,
.app-popup-actions {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 360ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
.app-popup-shell.is-open .app-popup-close,
.app-popup-shell.is-open .app-popup-kicker,
.app-popup-shell.is-open .app-popup-visual,
.app-popup-shell.is-open .app-popup-label,
.app-popup-shell.is-open .app-popup-content h2,
.app-popup-shell.is-open .app-popup-content p,
.app-popup-shell.is-open .app-popup-tags,
.app-popup-shell.is-open .app-popup-actions {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.app-popup-shell.is-open .app-popup-close { transition-delay: 120ms; }
.app-popup-shell.is-open .app-popup-kicker { transition-delay: 120ms; }
.app-popup-shell.is-open .app-popup-visual { transition-delay: 180ms; }
.app-popup-shell.is-open .app-popup-label { transition-delay: 220ms; }
.app-popup-shell.is-open .app-popup-content h2 { transition-delay: 260ms; }
.app-popup-shell.is-open .app-popup-content p { transition-delay: 300ms; }
.app-popup-shell.is-open .app-popup-tags { transition-delay: 340ms; }
.app-popup-shell.is-open .app-popup-actions { transition-delay: 380ms; }
.app-popup-shell.is-open .app-popup-close:hover { transform: rotate(90deg); }

.app-popup-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 34px;
  padding: 28px;
  align-items: center;
}

.app-popup-visual {
  min-height: 440px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 236, 0.12);
  background:
    linear-gradient(135deg, rgba(244, 241, 236, 0.08), rgba(244, 241, 236, 0)),
    repeating-linear-gradient(135deg, rgba(244, 241, 236, 0.045) 0 2px, transparent 2px 14px);
  overflow: hidden;
}
.app-phone {
  width: min(220px, 74%);
  aspect-ratio: 9 / 18.5;
  padding: 11px;
  background: #050505;
  border: 1px solid rgba(244, 241, 236, 0.28);
  border-radius: 28px;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 50px -18px rgba(227, 6, 19, 0.85);
  transform: rotate(-5deg);
}
.app-phone-top {
  width: 64px;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(244, 241, 236, 0.28);
}
.app-screen {
  height: calc(100% - 13px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px;
  color: #fff;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(227, 6, 19, 0.18), rgba(10, 10, 10, 0.2)),
    #111;
}
.app-screen-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: auto;
  background: var(--zred);
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 38px;
  line-height: 1;
}
.app-screen-title {
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: 34px;
  line-height: 0.92;
  text-transform: uppercase;
}
.app-screen-row {
  display: block;
  width: 100%;
  height: 10px;
  background: rgba(244, 241, 236, 0.18);
}
.app-screen-row.red { background: var(--zred); }
.app-screen-row.short { width: 62%; }

.app-popup-label {
  margin: 0 0 10px;
  color: var(--zred);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.app-popup-content h2 {
  margin: 0;
  max-width: 580px;
  color: #fff;
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: 0;
  line-height: 0.88;
  text-transform: uppercase;
}
.app-popup-content p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(244, 241, 236, 0.72);
  font-size: 16px;
  line-height: 1.55;
}
.app-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}
.app-popup-tags span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(244, 241, 236, 0.18);
  color: rgba(244, 241, 236, 0.76);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.app-store-btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #fff;
  border: 1px solid rgba(244, 241, 236, 0.22);
  background: rgba(244, 241, 236, 0.05);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.app-store-btn.primary {
  background: var(--zred);
  border-color: var(--zred);
}
.app-store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 241, 236, 0.55);
  background: rgba(244, 241, 236, 0.1);
}
.app-store-btn.primary:hover {
  background: #ff1d2d;
  border-color: #ff1d2d;
}
.store-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
}
.app-store-btn span:last-child {
  display: grid;
  gap: 2px;
  font-family: 'Anton', 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.app-store-btn small {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.72;
}

@media (max-width: 780px) {
  .app-popup-shell {
    align-items: end;
    padding: 10px;
  }
  .app-popup-backdrop {
    background: rgba(10, 10, 10, 0.48);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
  }
  .app-popup-card {
    width: min(520px, 100%);
    max-height: calc(100dvh - 20px);
    box-shadow:
      0 -18px 60px rgba(0, 0, 0, 0.58),
      0 0 46px -24px rgba(227, 6, 19, 0.72);
  }
  .app-popup-card::after { display: none; }
  .app-popup-kicker {
    margin: 16px 18px 0;
    padding: 7px 12px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }
  .app-popup-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 18px 18px;
  }
  .app-popup-visual {
    display: none;
  }
  .app-popup-label {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  .app-popup-content h2 {
    max-width: 320px;
    font-size: clamp(32px, 9vw, 44px);
    line-height: 0.9;
  }
  .app-popup-content p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.42;
  }
  .app-popup-tags {
    display: none;
  }
  .app-popup-actions {
    margin-top: 14px;
  }
  .app-store-btn {
    min-height: 46px;
    padding: 8px 12px;
  }
  .app-store-btn span:last-child {
    font-size: 17px;
  }
  .app-store-btn small {
    font-size: 8px;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 460px) {
  .app-popup-actions,
  .app-store-btn {
    width: 100%;
  }
  .app-store-btn {
    justify-content: center;
  }
  .app-popup-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-popup-shell,
  .app-popup-card,
  .app-popup-card::after,
  .app-popup-close,
  .app-popup-kicker,
  .app-popup-visual,
  .app-popup-label,
  .app-popup-content h2,
  .app-popup-content p,
  .app-popup-tags,
  .app-popup-actions,
  .nav-side .nav-app-link::after {
    animation: none !important;
    transition: opacity 160ms ease !important;
  }
  .app-popup-card,
  .app-popup-close,
  .app-popup-kicker,
  .app-popup-visual,
  .app-popup-label,
  .app-popup-content h2,
  .app-popup-content p,
  .app-popup-tags,
  .app-popup-actions {
    transform: none !important;
  }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--zink); color: var(--zbone);
  border-top: 1px solid var(--hairline);
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid; grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.4fr; padding: 80px 40px 36px; }
}
.footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--zred); margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px; letter-spacing: 0.04em;
}
.footer ul a:hover { color: var(--zred); }
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; line-height: 1.7; letter-spacing: 0.04em;
  color: rgba(244,241,236,0.55);
  margin-top: 16px;
}
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244,241,236,0.5);
}
.footer-bottom a:hover { color: var(--zred); }
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom .powered-by {
  color: rgba(244, 241, 236, 0.68);
}

.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(244,241,236,0.85);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.socials a:hover { background: var(--zred); border-color: var(--zred); color: #fff; }

/* ============ PAGE HEADER (interior pages) ============ */
.page-head {
  position: relative;
  padding-top: 140px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}
.page-head .eyebrow { color: var(--zred); margin-bottom: 14px; }
.page-head h1 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.86;
  margin: 0;
}
.page-head p {
  margin-top: 20px;
  max-width: 640px;
  color: rgba(244,241,236,0.75);
  font-size: 17px;
  line-height: 1.55;
}

/* Sections */
section { padding: 80px 0; }
@media (min-width: 768px) { section { padding: 112px 0; } }
.section-head { margin-bottom: 48px; }
.section-head h2 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.9;
  margin: 12px 0 0;
}
.section-head p { color: rgba(244,241,236,0.7); max-width: 560px; margin: 16px 0 0; line-height: 1.55; }

.section-light { background: var(--zbone); color: var(--zink); }
.section-light .section-head p { color: rgba(10,10,10,0.7); }
.section-light .eyebrow { color: var(--zred); }

/* Photo placeholder */
.ph {
  position: relative;
  background-color: #1a1a1a;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 2px,
      transparent 2px 14px);
  overflow: hidden;
}
.ph.light {
  background-color: #e6e2db;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(10,10,10,0.05) 0 2px,
      transparent 2px 14px);
}
.ph-label {
  position: absolute; left: 12px; bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.75);
  background: rgba(10,10,10,0.6);
  padding: 4px 8px; border: 1px solid rgba(244,241,236,0.15);
}
.ph.light .ph-label {
  color: rgba(10,10,10,0.75);
  background: rgba(255,255,255,0.8);
  border-color: rgba(10,10,10,0.15);
}

/* Grain overlay (subtle) */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.12; mix-blend-mode: overlay; pointer-events: none;
}

/* Card hover */
.card { transition: transform 240ms cubic-bezier(.2,.7,.2,1), border-color 200ms ease; }
.card:hover { transform: translateY(-4px); }

/* Generic */
.muted { color: rgba(244,241,236,0.6); }
.section-light .muted { color: rgba(10,10,10,0.6); }

/* Big numbers stat */
.stat-num { font-family: 'Anton', sans-serif; font-size: clamp(48px, 6vw, 72px); line-height: 0.9; }
.stat-lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; margin-top: 8px; }

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; height: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
}
.tag-red { background: var(--zred); color: #fff; }
.tag-dark { background: var(--zink); color: #fff; }
.tag-light { background: #fff; color: var(--zink); }

/* Live dot */
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,6,19,0.7); }
  50% { box-shadow: 0 0 0 8px rgba(227,6,19,0); }
}
.live-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--zred); border-radius: 999px;
  animation: livePulse 1.6s ease-out infinite;
}
.live-dot.white { background: #fff; }
