/* AUTO-GENERATED bundle — do not edit directly.
 * Source: scripts/bundle-css.js. Edit the source files below and re-run
 * `node scripts/bundle-css.js` (or `npm run build:css`) to regenerate. */

/* ==== tokens.css ==== */
/* Discovera site — design tokens (single source; extended in styles.css :root for legacy) */
:root {
  /* Color */
  --c-bg: #0f0e0d;
  --c-surface: #1c1917;
  --c-surface-elevated: #252321;
  --c-primary: #d97706;
  --c-primary-dark: #b45309;
  --c-text: #fafaf9;
  --c-muted: #b5b0ab;
  --c-muted-strong: #d6d3d1;
  --c-border: rgba(255, 255, 255, 0.1);
  --c-border-soft: rgba(255, 255, 255, 0.06);

  /* Typography roles */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: var(--font-sans);
  --font-heading: var(--font-display);
  --font-ui: var(--font-sans);

  --text-xs: 0.68rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.65rem, 3.2vw, 2.25rem);
  --leading-tight: 1.15;
  --leading-body: 1.65;
  --leading-relaxed: 1.75;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --section-y: clamp(var(--space-7), 6vw, var(--space-8));

  /* Shape & elevation */
  --radius-card: 16px;
  --radius-panel: 16px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);

  --topo: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}


/* ==== site-loading.css ==== */
/* Discovera coil loader — elastic spin (loading.svg) */

@keyframes discovera-coil-elastic {
  0% {
    transform: rotate(0deg) scale(0.88);
  }
  22% {
    transform: rotate(-88deg) scale(1.1);
  }
  44% {
    transform: rotate(-168deg) scale(0.93);
  }
  66% {
    transform: rotate(-248deg) scale(1.06);
  }
  88% {
    transform: rotate(-328deg) scale(0.95);
  }
  100% {
    transform: rotate(-360deg) scale(0.88);
  }
}

.discovera-loader,
.mny-spinner,
.footer-coil,
.redirect-root .coil-spin {
  display: block;
  object-fit: contain;
  transform-origin: center center;
  filter: brightness(0) saturate(100%) invert(58%) sepia(62%) saturate(456%)
    hue-rotate(2deg) brightness(96%) contrast(94%);
  animation: discovera-coil-elastic 2.05s cubic-bezier(0.38, 1.25, 0.55, 1) infinite;
  will-change: transform;
}

.footer-coil {
  opacity: 0.55;
  animation-duration: 3.1s;
}

.mny-spinner {
  opacity: 0.9;
  flex-shrink: 0;
}

.redirect-root .coil-spin {
  opacity: 0.92;
  animation-duration: 2.35s;
}

/* Inline / card loaders */
.discovera-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}

.live-card--loading {
  min-height: 7.5rem;
}

.live-card__loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0 0.25rem;
}

.live-card__loader .discovera-loader {
  width: 40px;
  height: 40px;
}

.live-card__text--pending {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Hero phone: coil until screenshot decodes */
.phone-screen-shot--await {
  position: relative;
}

.phone-screen-shot--await > img:not(.discovera-loader) {
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-screen-shot--await.is-shot-ready > img:not(.discovera-loader) {
  opacity: 1;
}

.phone-screen-shot--await .discovera-loader-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse 72% 58% at 50% 42%,
    rgba(251, 191, 36, 0.07),
    transparent 68%
  );
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.phone-screen-shot--await.is-shot-ready .discovera-loader-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.phone-screen-shot--await .discovera-loader-overlay .discovera-loader {
  width: clamp(44px, 14vw, 58px);
  height: clamp(44px, 14vw, 58px);
}

.mny-idle-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .discovera-loader,
  .mny-spinner,
  .footer-coil,
  .redirect-root .coil-spin {
    animation: none !important;
    transform: none !important;
  }

  .phone-screen-shot--await > img:not(.discovera-loader) {
    opacity: 1;
    transition: none;
  }

  .phone-screen-shot--await .discovera-loader-overlay {
    display: none;
  }
}


/* ==== site-phase12.css ==== */
/**
 * Phase 12: loading polish — fact bubble preview, live-card reveal.
 */

.fact-bubble__pill-preview--loading {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.25rem;
}

.fact-bubble__preview-coil {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  animation-duration: 1.75s;
}

.fact-bubble__preview-label {
  font-size: inherit;
  color: var(--c-muted);
  opacity: 0.85;
}

.live-card--find.live-card--ready {
  animation: live-card-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes live-card-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-card--find.live-card--ready {
    animation: none;
  }
}


/* ==== site-phase13.css ==== */
/**
 * Phase 13: live-card error state, hero image sizing hint.
 */

.live-card--error .live-card__text {
  color: var(--c-muted);
  opacity: 0.8;
}

.phone-screen-shot--await > img:not(.discovera-loader) {
  width: 100%;
  height: auto;
}


/* ==== typography.css ==== */
/* Type roles: Playfair = display headings; Inter = UI & body */

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

/* Section titles & final CTA — brand serif (not hero, which has its own rules) */
.section-head h2,
.final-cta h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
}

.lang-en .section-head h2,
.lang-en .final-cta h2 {
  letter-spacing: -0.015em;
}

/* Card titles & in-page structure — clean sans */
h1:not(.hero-title),
h3,
h4,
h5,
h6,
.pillar-card h3,
.how-step h3,
.feature-card h3,
.ai-cap-card h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro,
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--c-muted);
}

.eyebrow {
  font-family: var(--font-ui);
}

.btn,
.site-nav a,
.lang-link {
  font-family: var(--font-ui);
}


/* ==== hero-typography.css ==== */
/* Display serif for hero — Playfair with Cyrillic */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/fonts/playfair-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.02em;
  margin: 0 0 18px;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 8.2vw, 5.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-title__line {
  display: block;
  white-space: nowrap;
}

.hero-title__line--accent {
  background: linear-gradient(118deg, #fff7ed 0%, #fde68a 28%, #fbbf24 58%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(217, 119, 6, 0.28));
}

.lang-en .hero-title {
  max-width: 14ch;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.15rem, 11vw, 3.35rem);
    max-width: none;
  }

  .hero-title__line {
    white-space: normal;
  }
}

/* Section h2 stays Inter; only hero uses display */
.hero-v2-copy .hero-title {
  font-family: var(--font-display);
}


/* ==== hero-mobile.css ==== */
/**
 * Mobile hero (≤768px): one phone mockup, centered copy, more breathing room.
 */
@media (max-width: 768px) {
  .hero-v2 {
    min-height: auto;
    padding: var(--space-6, 32px) 0 var(--space-7, 48px);
    align-items: stretch;
  }

  .hero-v2-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6, 32px);
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .hero-v2-copy {
    max-width: 36rem;
    width: 100%;
    margin: 0 auto;
  }

  .hero-v2-copy .eyebrow {
    justify-content: center;
  }

  .hero-title {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-v2 .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-v2 .cta-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3, 12px);
  }

  .mockup-cluster {
    display: flex !important;
    grid-template-columns: unset !important;
    grid-template-areas: unset !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: min(100%, 300px);
    min-height: 0 !important;
    margin: 0 auto;
    padding: var(--space-2, 8px) 0 var(--space-4, 16px);
    transform: none;
    animation: none;
    overflow: visible;
    box-sizing: border-box;
  }

  .mockup-cluster .phone-frame-small,
  .mockup-cluster .screen-artifact,
  .mockup-cluster .screen-trips {
    display: none !important;
  }

  .mockup-cluster .phone-frame-main {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(76vw, 280px);
    min-height: 0;
    margin: 0 auto;
    transform: none;
  }

  .mockup-cluster .phone-frame--device-in-shot .phone-screen-shot img {
    -webkit-mask-image: none;
    mask-image: none;
    filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.55));
  }
}

@media (max-width: 640px) {
  .hero-v2 {
    padding-top: var(--space-5, 24px);
    padding-bottom: var(--space-6, 32px);
  }

  .mockup-cluster {
    max-width: min(100%, 280px);
    padding-bottom: var(--space-2, 8px);
  }

  .mockup-cluster .phone-frame-main {
    width: min(72vw, 256px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mockup-cluster {
    animation: none;
  }
}


/* ==== hero-trust.css ==== */
/* Hero trust strip + 3-step flow (landing) */
.hero-trust {
  margin-top: var(--space-5, 24px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
  width: 100%;
  max-width: 36rem;
}

.hero-trust-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(28, 25, 23, 0.65);
  color: var(--c-muted-strong, #d6d3d1);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hero-trust-play:hover,
.hero-trust-play:focus-visible {
  border-color: rgba(217, 119, 6, 0.45);
  background: rgba(40, 36, 34, 0.9);
  color: var(--c-text);
}

.hero-trust-play svg {
  flex-shrink: 0;
  color: #3ddc84;
}

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-trust-chips li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hero-step;
}

.hero-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px 12px;
  border-radius: var(--radius-card, 16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(28, 25, 23, 0.55);
  text-align: left;
}

.hero-step::before {
  counter-increment: hero-step;
  content: counter(hero-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-ui);
  color: #1c1410;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.hero-step strong {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}

.hero-step span {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--c-muted);
}

@media (max-width: 768px) {
  .hero-v2-copy .hero-trust {
    margin-left: auto;
    margin-right: auto;
    align-items: center;
  }

  .hero-trust-play {
    align-self: center;
  }

  .hero-trust-chips {
    justify-content: center;
  }

  .hero-steps {
    grid-template-columns: 1fr;
    max-width: 20rem;
    margin: 0 auto;
    width: 100%;
  }

  .hero-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
  }

  .hero-step::before {
    flex-shrink: 0;
    margin-top: 2px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .hero-steps {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
}


/* ==== site-polish.css ==== */
/**
 * Phase 2 polish: readability, focus rings, final CTA actions.
 */

:root {
  --c-muted: #b5b0ab;
}

.academy-card:focus-visible,
.hero-trust-play:focus-visible,
.pillar-card:focus-visible,
.mny-map-card:focus-visible,
.tool-card:focus-within,
.faq-v2 summary:focus-visible,
.pp-lang-toggle button:focus-visible,
.pp-nav a:focus-visible,
.btn:focus-visible,
.lang-link:focus-visible,
.menu-toggle:focus-visible,
.cookie-consent-accept:focus-visible,
.cookie-consent-actions a:focus-visible,
.fact-bubble__toggle:focus-visible,
.fact-bubble__close:focus-visible {
  outline: 2px solid rgba(217, 119, 6, 0.55);
  outline-offset: 3px;
}

.final-cta-card {
  flex-wrap: wrap;
}

.final-cta-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.final-cta-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3, 12px);
}

.final-cta-actions .btn-play-store img {
  height: 58px;
  width: auto;
}

.final-cta-lead {
  color: var(--c-muted-strong);
}

@media (max-width: 768px) {
  .final-cta-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .final-cta-copy {
    text-align: center;
  }

  .final-cta-copy .eyebrow {
    justify-content: center;
  }

  .final-cta-card h2::after {
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
  }

  .final-cta-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .final-cta-list {
    justify-items: center;
  }

  .final-cta-actions {
    width: 100%;
    padding-top: var(--space-2, 8px);
  }
}


/* ==== site-a11y.css ==== */
/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fafaf9;
  color: #1c1917;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.skip-link:focus {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  top: max(12px, env(safe-area-inset-top, 0px));
  width: auto;
  height: auto;
  overflow: visible;
}


/* ==== site-mobile-extras.css ==== */
/**
 * Mobile-first polish: scroll offsets, back-to-top, touch targets.
 */

html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--topbar-height, 52px) + 12px);
}

@media (min-width: 769px) {
  html {
    scroll-padding-top: 80px;
  }
}

.back-to-top {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(28, 25, 23, 0.92);
  color: #fafaf9;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

body:has(.mobile-floating-cta.is-visible) .back-to-top {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

body.cookie-banner-visible .back-to-top {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

body:has(.mobile-floating-cta.is-visible).cookie-banner-visible .back-to-top {
  bottom: calc(148px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
  .skip-link:focus {
    top: calc(env(safe-area-inset-top, 0px) + var(--topbar-height, 52px) + 8px);
    left: max(12px, env(safe-area-inset-left, 0px));
  }

  .container {
    width: min(1120px, calc(100% - 24px));
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4, 16px);
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero-v2-copy .hero-trust {
    margin-top: var(--space-4, 16px);
    gap: var(--space-3, 12px);
  }

  .hero-trust-chips li {
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  .hero-step {
    padding: 12px 10px;
  }

  .hero-step strong {
    font-size: 0.78rem;
  }

  .hero-step span {
    font-size: 0.72rem;
  }
}

@media (max-width: 768px) {
  .hero-v2-copy .hero-trust-play {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero-trust-play {
    font-size: 0.8rem;
    padding: 7px 12px 7px 8px;
  }
}


/* ==== tools.css ==== */
/**
 * Tools hub (/ru/tools/, /en/tools/) — layout aligned with site-v2 surfaces.
 */

.tools-hero {
  padding: clamp(48px, 8vw, 80px) 0 clamp(28px, 4vw, 40px);
}

.tools-hero h1 {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.tools-hero .lead {
  max-width: 44rem;
  color: var(--c-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 18px;
  padding-bottom: clamp(40px, 6vw, 64px);
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-panel, 16px);
}

.tool-card h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.tool-card .tool-eyebrow {
  margin: 0;
  color: #f59e0b;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tool-card p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.tool-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tool-card ul li + li {
  margin-top: 4px;
}

.tool-card .tool-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.tools-faq-section {
  padding: 0 0 clamp(48px, 8vw, 80px);
}

@media (max-width: 768px) {
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-card {
    padding: 18px;
  }

  .tool-card .tool-play-badge {
    display: none;
  }

  .tool-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-card-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tools-hero h1 {
    font-size: 1.65rem;
  }
}


/* ==== site-phase6.css ==== */
/**
 * Phase 6: section rhythm, stacking (fact bubble / CTA / cookies), readability on mobile.
 */

@media (max-width: 768px) {
  .landing-v2-section.section:not(.hero-v2) {
    padding-top: clamp(44px, 11vw, 64px);
    padding-bottom: clamp(44px, 11vw, 64px);
  }

  .section-head h2 {
    text-wrap: balance;
  }

  .section-intro {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 36rem;
  }

  .map-blend-section .section-head-wide {
    text-align: center;
  }

  .map-blend-section .section-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .cookie-consent-inner {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent-actions .cookie-consent-accept {
    min-height: 44px;
  }

  .fact-bubble {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
  }

  body:has(.mobile-floating-cta.is-visible) .fact-bubble {
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }

  body.cookie-banner-visible .fact-bubble {
    bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.mobile-floating-cta.is-visible).cookie-banner-visible .fact-bubble {
    bottom: calc(228px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .hero-v2 {
    min-height: auto;
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
    padding-bottom: 40px;
  }
}


/* ==== site-phase7.css ==== */
/**
 * Phase 7: satellite pages shell, touch feedback, media in articles.
 */

body.pp-page .pp-main {
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--topbar-height, 52px) + 20px);
}

.pp-page-title {
  margin: 0 0 var(--space-4, 16px);
  font-family: var(--font-heading, var(--font-sans));
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  text-wrap: balance;
}

.article-body img,
.pp-main img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .pillar-card:active,
  .academy-card:active,
  .tool-card:active,
  .mny-map-card:active {
    transform: scale(0.99);
  }

  .final-cta-card {
    padding: 20px 16px;
  }

  .section-jump-dock {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
}


/* ==== site-mobile-perfect.css ==== */
/**
 * Phase 8: mobile comfort — tap targets, anchors, UI stacking when menu open.
 */

@media (max-width: 768px) {
  body {
    overflow-x: clip;
  }

  main,
  #main-content {
    overflow-x: clip;
  }

  .btn,
  .cookie-consent-accept,
  .faq-v2 summary,
  .menu-toggle {
    touch-action: manipulation;
  }

  .btn {
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero-v2 .cta-row {
    width: 100%;
  }

  .hero-v2 .cta-row .btn {
    flex: 1 1 auto;
    min-width: min(100%, 280px);
    justify-content: center;
  }

  .hero-v2 .cta-row .btn-play-store {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar .lang-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
  }

  .menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  .map-blend-range {
    min-height: 44px;
    padding: 12px 0;
    cursor: pointer;
  }

  .map-blend-range::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  .map-blend-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }

  .faq-v2 summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }

  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }

  /* Menu open: hide floating chrome so nothing fights the drawer */
  body.topbar-menu-open .mobile-floating-cta,
  body.topbar-menu-open .fact-bubble,
  body.topbar-menu-open .back-to-top,
  body.topbar-menu-open .global-cta-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(12px) !important;
  }
}

@media (max-width: 400px) {
  .hero-v2 .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-v2 .cta-row .btn,
  .hero-v2 .cta-row .btn-play-store {
    width: 100%;
    max-width: none;
  }

  .final-cta-actions .btn-play-store img {
    height: 52px;
  }
}


/* ==== maps-near-you-skeleton.css ==== */
/* Maps Near You — loading skeleton cards */
.mny-skeleton-grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0 8px;
}

.mny-skeleton-card {
  flex: 0 0 min(42vw, 168px);
  height: 118px;
  border-radius: 12px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.04) 90%
  );
  background-size: 200% 100%;
  animation: mny-shimmer 1.4s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes mny-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.mny-state--loading .mny-spinner {
  margin-bottom: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .mny-skeleton-card {
    animation: none;
    background: rgba(255, 255, 255, 0.06);
  }
}


/* ==== site-header.css ==== */
/* Header brand: DISCOVERA wordmark + logo spin on hover */
.logo {
  font-size: 0;
  line-height: 1;
  gap: 10px;
  text-decoration: none;
  color: transparent;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  outline: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.logo:link,
.logo:visited,
.logo:active {
  color: transparent;
}

.logo:active {
  opacity: 0.88;
  transform: scale(0.98);
}

.logo::after {
  content: "DISCOVERA";
  font-family: var(--font-display), Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(118deg, #fff7ed 0%, #fde68a 40%, #fbbf24 75%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  background: var(--c-surface);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(217, 119, 6, 0.14),
    0 6px 18px rgba(0, 0, 0, 0.38);
  transition:
    transform 0.65s cubic-bezier(0.34, 1.1, 0.48, 1),
    width 0.28s ease,
    height 0.28s ease,
    box-shadow 0.3s ease;
  transform-origin: center center;
}

.logo:active .logo-mark {
  transform: scale(0.94);
  transition-duration: 0.12s;
}

.logo:focus-visible {
  outline: 2px solid rgba(217, 119, 6, 0.45);
  outline-offset: 4px;
  border-radius: 12px;
}

.logo:hover .logo-mark,
.logo:focus-visible .logo-mark {
  transform: rotate(360deg);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.4),
    0 0 0 5px rgba(217, 119, 6, 0.22),
    0 8px 22px rgba(217, 119, 6, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark {
    transition: none;
  }

  .logo:hover .logo-mark,
  .logo:focus-visible .logo-mark {
    transform: none;
  }
}


/* ==== site-shell.css ==== */
/**
 * Site shell: header + navigation (desktop + mobile).
 * Loaded via <link> after styles.css — do not @import at end of stylesheet.
 */

/* ─── Shared shell ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(
    180deg,
    rgba(36, 32, 30, 0.96) 0%,
    rgba(18, 16, 15, 0.94) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transition:
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 119, 6, 0.2) 15%,
    rgba(251, 191, 36, 0.65) 50%,
    rgba(20, 184, 166, 0.3) 85%,
    transparent
  );
  pointer-events: none;
}

.topbar.is-scrolled {
  background: linear-gradient(
    180deg,
    rgba(28, 25, 23, 0.98) 0%,
    rgba(12, 11, 10, 0.97) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 40px rgba(0, 0, 0, 0.38);
}

.topbar > .container,
.topbar-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
  min-height: 66px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: min-height 0.3s ease;
}

.topbar.is-scrolled > .container,
.topbar.is-scrolled.topbar-wrap,
.topbar.is-scrolled > .container.topbar-wrap {
  min-height: 58px;
}

.topbar .logo {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  line-height: 1;
  min-height: 0;
}

.topbar .logo::after {
  align-self: center;
}

.topbar .site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 auto;
  padding: 5px;
  max-width: min(100%, 760px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
    rgba(10, 9, 8, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 18px rgba(0, 0, 0, 0.2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.topbar .site-nav::-webkit-scrollbar {
  display: none;
}

.topbar .site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
  background: transparent;
  border: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.topbar .site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d97706, #fbbf24);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.topbar .site-nav a:hover,
.topbar .site-nav a:focus-visible {
  color: #fde68a;
  background: rgba(217, 119, 6, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.topbar .site-nav a:hover::after,
.topbar .site-nav a:focus-visible::after {
  width: 52%;
}

.topbar .site-nav a.is-active,
.topbar .site-nav a[aria-current="true"] {
  color: #fde68a;
  background: rgba(217, 119, 6, 0.16);
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.22);
}

.topbar .site-nav a.is-active::after,
.topbar .site-nav a[aria-current="true"]::after {
  width: 58%;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.topbar .lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.topbar .lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--c-muted);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    rgba(20, 18, 17, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.topbar .lang-link:hover,
.topbar .lang-link:focus-visible {
  color: var(--c-text);
  border-color: rgba(251, 191, 36, 0.35);
  transform: translateY(-1px);
}

.topbar .lang-switch .lang-link.is-active {
  display: none;
}

.menu-toggle,
.topbar-menu-backdrop {
  display: none !important;
}

/* ─── Mobile (768px and below) ─── */
@media (max-width: 768px) {
  :root {
    --topbar-height: 52px;
    --topbar-total: calc(var(--topbar-height) + env(safe-area-inset-top, 0px));
  }

  html {
    background-color: #0f0e0d;
    overscroll-behavior-y: none;
  }

  body {
    overscroll-behavior-y: none;
  }

  html.scroll-locked,
  html.scroll-locked body {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  body:has(.topbar) {
    padding-top: var(--topbar-total);
  }

  /* Bar sits below the notch; safe-area is outside the 52px strip (not empty padding inside it) */
  .topbar {
    position: fixed !important;
    top: env(safe-area-inset-top, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 120;
    height: var(--topbar-height) !important;
    min-height: var(--topbar-height) !important;
    max-height: var(--topbar-height) !important;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(0);
    background: linear-gradient(180deg, #1c1917 0%, #0f0e0d 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow:
      inset 0 1px 0 rgba(251, 191, 36, 0.2),
      0 4px 20px rgba(0, 0, 0, 0.35) !important;
  }

  .topbar.is-scrolled {
    --topbar-height: 50px;
    box-shadow:
      inset 0 1px 0 rgba(251, 191, 36, 0.28),
      0 6px 24px rgba(0, 0, 0, 0.42) !important;
  }

  .topbar.is-scrolled .logo-mark {
    width: 36px;
    height: 36px;
  }

  .topbar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 100px;
    background: #0f0e0d;
    pointer-events: none;
  }

  .topbar > .container,
  .topbar > .container.topbar-wrap {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    gap: 8px;
    box-sizing: border-box;
  }

  .topbar .logo {
    max-width: calc(100% - 100px);
    height: auto;
    margin: 0;
    padding: 0;
  }

  .topbar .logo-mark {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0;
    flex-shrink: 0;
  }

  .topbar .logo::after {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.1;
  }

  .topbar-end {
    align-self: center;
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0 !important;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(40, 36, 34, 0.95) !important;
    color: #fafaf9;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
  }

  .menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: #fafaf9;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* Legacy: three <span> children */
  .menu-toggle span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    margin: 0 !important;
    padding: 0;
    border-radius: 1px;
    background: linear-gradient(90deg, #fafaf9, #fde68a) !important;
    opacity: 1 !important;
  }

  .topbar.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.is-open .menu-toggle span:nth-child(2) {
    opacity: 0 !important;
  }

  .topbar.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .topbar .lang-switch {
    gap: 4px;
  }

  .topbar-menu-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 118;
    border: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .topbar.is-open .topbar-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Nav panel: not in header flex row */
  .topbar .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--topbar-total);
    z-index: 122;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: none;
    max-height: min(calc(100dvh - var(--topbar-total)), 70vh);
    margin: 0;
    padding: 0 0 12px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: linear-gradient(180deg, #24201e 0%, #121110 100%);
    box-shadow:
      0 1px 0 rgba(251, 191, 36, 0.1) inset,
      0 18px 44px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 0.24s ease,
      transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.24s ease;
  }

  html.lang-ru .topbar .site-nav::before {
    content: "Навигация";
  }

  html.lang-en .topbar .site-nav::before,
  html[lang="en"] .topbar .site-nav::before {
    content: "Navigate";
  }

  .topbar .site-nav::before {
    display: block;
    padding: 12px max(16px, env(safe-area-inset-left)) 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(217, 119, 6, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
  }

  .topbar.is-open .site-nav {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .topbar .site-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
    min-height: 50px;
    padding: 12px max(16px, env(safe-area-inset-left));
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--c-muted);
    white-space: normal;
    transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
  }

  .topbar .site-nav a::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.5);
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .topbar .site-nav a::after {
    display: none;
  }

  .topbar .site-nav a:hover,
  .topbar .site-nav a:focus-visible {
    color: #fde68a;
    background: rgba(217, 119, 6, 0.09);
    padding-left: calc(max(16px, env(safe-area-inset-left)) + 4px);
    transform: none;
    box-shadow: none;
  }

  .topbar .site-nav a:hover::before,
  .topbar .site-nav a:focus-visible::before {
    transform: scale(1.6);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.55);
  }

  .topbar .site-nav a.is-active,
  .topbar .site-nav a[aria-current="true"] {
    color: #fde68a;
    background: rgba(217, 119, 6, 0.12);
    padding-left: calc(max(16px, env(safe-area-inset-left)) + 2px);
  }

  .topbar .site-nav a.is-active::before,
  .topbar .site-nav a[aria-current="true"]::before {
    transform: scale(1.8);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.65);
    background: #fbbf24;
  }

  .topbar .site-nav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .topbar > .container {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar .site-nav,
  .topbar-menu-backdrop,
  .menu-toggle span {
    transition: none;
  }
}


/* ==== site-v2.css ==== */
/* App-aligned visuals: warm background, gold buttons, glass cards */

body {
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 120% 85% at 8% -15%, rgba(217, 119, 6, 0.22), transparent 52%),
    radial-gradient(ellipse 70% 55% at 95% 5%, rgba(180, 83, 9, 0.12), transparent 48%),
    var(--topo, none);
  background-attachment: fixed;
}

body::after {
  background:
    radial-gradient(ellipse 55% 45% at 20% 25%, rgba(217, 119, 6, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 35% at 85% 75%, rgba(120, 53, 15, 0.08), transparent 55%);
}

.hero-v2::before {
  background:
    radial-gradient(circle, rgba(217, 119, 6, 0.2), transparent 62%),
    conic-gradient(from 120deg, rgba(251, 191, 36, 0.14), transparent, rgba(217, 119, 6, 0.1), transparent);
}

.btn-primary {
  color: #1c1410;
  border-color: rgba(253, 224, 171, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    linear-gradient(135deg, #92400e 0%, #d97706 38%, #fbbf24 72%, #f59e0b 100%);
  box-shadow:
    0 6px 20px rgba(217, 119, 6, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 0 rgba(120, 53, 15, 0.35);
  font-family: var(--font-sans);
  font-weight: 700;
}

.btn-play-store.btn-primary,
a.btn-play-store {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.btn-ghost {
  background: linear-gradient(165deg, rgba(48, 42, 40, 0.92), rgba(20, 18, 17, 0.88));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pillar-card,
.live-card,
.surface-card,
.hub-card,
.ai-cap-card,
.feature-card,
.why-item,
.how-step,
.mny-map-card,
.tools-hub-panel,
.academy-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(148deg, rgba(58, 50, 46, 0.98) 0%, rgba(32, 28, 26, 0.98) 38%, rgba(16, 14, 13, 1) 100%),
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(217, 119, 6, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(146, 64, 14, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(251, 191, 36, 0.04) 0%, transparent 35%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pillar-card::before,
.live-card::before,
.feature-card::before,
.why-item::before,
.how-step::before,
.surface-card::before,
.hub-card::before,
.ai-cap-card::before,
.tools-hub-panel::before,
.academy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--topo);
  opacity: 0.42;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.pillar-card::after,
.live-card::after,
.feature-card::after,
.why-item::after,
.how-step::after,
.surface-card::after,
.hub-card::after,
.ai-cap-card::after,
.tools-hub-panel::after,
.academy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--noise);
  opacity: 0.055;
  pointer-events: none;
}

.pillar-card > *,
.live-card > *,
.feature-card > *,
.why-item > *,
.how-step > *,
.surface-card > *,
.tools-hub-panel > *,
.academy-card > * {
  position: relative;
  z-index: 1;
}

/* Cookie stacks above sticky CTA (both visible) */
body.cookie-banner-visible .global-cta-bar {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

body.cookie-banner-visible.has-global-cta-bar {
  padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
}

.cookie-consent {
  z-index: 120;
  font-family: var(--font-sans);
}

.cookie-consent-accept {
  font-family: var(--font-sans);
}


/* ==== dig-scroll.css ==== */
/**
 * Side digging scroll progress — shovel pin + treasure at depth
 */

html.has-dig-scroll .read-progress {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Desktop: native scrollbar off — dig trench is the scroll affordance */
@media (min-width: 769px) {
  html.has-dig-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html.has-dig-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .dig-scroll {
    pointer-events: none;
  }

  .dig-scroll__trench {
    pointer-events: auto;
    cursor: pointer;
  }

  .dig-scroll__meta {
    pointer-events: none;
  }
}

.dig-scroll {
  --dig-top: 82px;
  --dig-header-gap: 12px;
  --dig-bottom: 64px;
  --dig-shovel-y: 0.07;
  --dig-trench-inset-x: 7px;
  position: fixed;
  right: max(10px, env(safe-area-inset-right, 0px));
  top: calc(var(--dig-top) + env(safe-area-inset-top, 0px));
  bottom: calc(var(--dig-bottom) + env(safe-area-inset-bottom, 0px));
  width: 40px;
  z-index: 44;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow: visible;
}

.dig-scroll.is-ready {
  opacity: 1;
  transform: translateX(0);
}

body.cookie-banner-visible .dig-scroll {
  --dig-bottom: 140px;
}

body.has-global-cta-bar .dig-scroll {
  --dig-bottom: 64px;
}

body.cookie-banner-visible.has-global-cta-bar .dig-scroll {
  --dig-bottom: 140px;
}

body.has-global-cta-bar:has(.section-jump-dock) .dig-scroll {
  --dig-bottom: 108px;
}

.dig-scroll__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-bottom: 6px;
  padding-top: var(--dig-header-gap, 12px);
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.9);
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.dig-scroll.is-complete .dig-scroll__remain {
  color: #fde68a;
  animation: dig-label-pulse 1.2s ease-in-out infinite;
}

@keyframes dig-label-pulse {
  0%,
  100% {
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
  }
  50% {
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.95);
  }
}

.dig-scroll__remain {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.dig-scroll__hint {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

/* Trench track */
.dig-scroll__trench {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  border-radius: 14px;
  overflow: visible;
  border: 1px solid rgba(120, 53, 15, 0.55);
  box-shadow:
    inset 0 2px 14px rgba(0, 0, 0, 0.6),
    0 4px 22px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(28, 25, 23, 0.55) 0%, transparent 10%),
    linear-gradient(180deg, #3d2914 0%, #1c1410 38%, #0f0c0a 100%);
}

.dig-scroll__trench-inner {
  position: absolute;
  inset: 2px var(--dig-trench-inset-x, 7px);
  border-radius: 10px;
  overflow: hidden;
  z-index: 0;
}

.dig-scroll__undug,
.dig-scroll__dug {
  border-radius: inherit;
  overflow: hidden;
}

.dig-scroll__undug {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc((1 - var(--dig-progress, 0)) * 100%);
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(68, 45, 22, 0.25), transparent 14%),
    repeating-linear-gradient(
      180deg,
      rgba(87, 56, 28, 0.4) 0,
      rgba(87, 56, 28, 0.4) 3px,
      rgba(45, 30, 18, 0.25) 3px,
      rgba(45, 30, 18, 0.25) 7px
    ),
    linear-gradient(180deg, #5c3d1e 0%, #2a1a0e 55%, #120d0a 100%);
  transition: height 0.14s ease-out;
  pointer-events: none;
}

.dig-scroll__dug {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--dig-progress, 0) * 100%);
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 45% at 50% 100%, rgba(217, 119, 6, 0.28), transparent 72%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.94) 0%, rgba(32, 26, 22, 0.9) 100%);
  box-shadow: inset 0 -5px 14px rgba(217, 119, 6, 0.2);
  transition: height 0.14s ease-out;
}

.dig-scroll__edge {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--dig-shovel-y, var(--dig-progress, 0)) * 100%);
  height: 4px;
  margin-top: -2px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  box-shadow:
    0 0 12px rgba(251, 191, 36, 0.65),
    0 0 24px rgba(217, 119, 6, 0.35);
  transition: top 0.14s ease-out;
  z-index: 3;
  pointer-events: none;
}

/* Shovel — moves down with scroll (no circle badge) */
.dig-scroll__shovel-pin {
  position: absolute;
  left: 50%;
  top: calc(var(--dig-shovel-y, 0.06) * 100%);
  z-index: 8;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  transform: translateX(1px);
  transition: top 0.16s ease-out, opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.dig-scroll__shovel {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 85%;
}

.dig-scroll__shovel svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

.dig-scroll.is-digging .dig-scroll__shovel {
  animation: dig-shovel-thrust 0.36s ease-out;
}

.dig-scroll.is-complete .dig-scroll__shovel-pin {
  opacity: 0;
  visibility: hidden;
  transform: translateX(1px) translateY(6px);
}

@keyframes dig-shovel-thrust {
  0% {
    transform: rotate(-6deg) translateY(0);
  }
  40% {
    transform: rotate(4deg) translateY(5px);
  }
  70% {
    transform: rotate(-2deg) translateY(2px);
  }
  100% {
    transform: rotate(0) translateY(0);
  }
}

/* Treasure — hidden until dig complete */
.dig-scroll__loot {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 12;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  transform: translateY(50%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(50%) scale(0.2);
  pointer-events: none;
}

.dig-scroll__loot.is-revealed {
  visibility: visible;
  animation: dig-loot-appear 0.7s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

.dig-scroll__loot.is-revealed:not(.is-burst) {
  transform: translateY(50%) scale(1);
}

.dig-scroll__loot.is-revealed.is-burst .dig-scroll__loot-glow {
  animation: dig-loot-glow 1.4s ease-in-out 2;
}

@keyframes dig-loot-appear {
  0% {
    opacity: 0;
    transform: translateY(50%) scale(0.35);
  }
  60% {
    opacity: 1;
    transform: translateY(42%) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(50%) scale(1);
  }
}

.dig-scroll__loot-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45), transparent 68%);
  animation: dig-loot-glow 2s ease-in-out infinite;
}

@keyframes dig-loot-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.dig-scroll__chest {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  color: #fbbf24;
}

.dig-scroll__chest-svg {
  width: 100%;
  height: 100%;
}

.dig-scroll__coin-burst {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 0;
  height: 0;
  z-index: 2;
}

.dig-scroll__coin {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fde68a, #d97706);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  opacity: 0;
  animation: dig-coin-pop 0.85s ease-out forwards;
  animation-delay: var(--coin-delay, 0s);
}

@keyframes dig-coin-pop {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(cos(var(--coin-angle)) * 22px),
        calc(sin(var(--coin-angle)) * -28px - 8px)
      )
      scale(0.6);
  }
}

/* Fallback for browsers without cos() in transform — use fixed offsets via nth-child */
.dig-scroll__coin:nth-child(1) {
  animation-name: dig-coin-1;
}
.dig-scroll__coin:nth-child(2) {
  animation-name: dig-coin-2;
  animation-delay: 0.05s;
}
.dig-scroll__coin:nth-child(3) {
  animation-name: dig-coin-3;
  animation-delay: 0.1s;
}
.dig-scroll__coin:nth-child(4) {
  animation-name: dig-coin-4;
  animation-delay: 0.15s;
}
.dig-scroll__coin:nth-child(5) {
  animation-name: dig-coin-5;
  animation-delay: 0.2s;
}
.dig-scroll__coin:nth-child(6) {
  animation-name: dig-coin-6;
  animation-delay: 0.08s;
}
.dig-scroll__coin:nth-child(7) {
  animation-name: dig-coin-7;
  animation-delay: 0.14s;
}
.dig-scroll__coin:nth-child(8) {
  animation-name: dig-coin-8;
  animation-delay: 0.2s;
}

@keyframes dig-coin-1 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-18px, -26px) scale(0.5);
  }
}
@keyframes dig-coin-2 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-8px, -32px) scale(0.55);
  }
}
@keyframes dig-coin-3 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(6px, -34px) scale(0.5);
  }
}
@keyframes dig-coin-4 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(16px, -28px) scale(0.55);
  }
}
@keyframes dig-coin-5 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(22px, -18px) scale(0.45);
  }
}
@keyframes dig-coin-6 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-24px, -14px) scale(0.5);
  }
}
@keyframes dig-coin-7 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(0, -36px) scale(0.55);
  }
}
@keyframes dig-coin-8 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(26px, -10px) scale(0.48);
  }
}

.dig-scroll__loot.is-burst .dig-scroll__coin {
  animation-duration: 0.95s;
}

.dig-scroll__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
}

.dig-scroll__particle {
  position: absolute;
  width: var(--p-size, 4px);
  height: var(--p-size, 4px);
  border-radius: 2px;
  background: linear-gradient(135deg, #fcd34d, #92400e);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
  opacity: 0;
  animation: dig-particle-fly var(--p-dur, 0.65s) ease-out forwards;
}

@keyframes dig-particle-fly {
  0% {
    opacity: 0.95;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--p-tx, -12px), var(--p-ty, 18px)) rotate(var(--p-rot, 40deg)) scale(0.35);
  }
}

/* Phone: overlay strip — no layout reserve, shovel only */
@media (max-width: 768px) {
  html.has-dig-scroll {
    --layout-gutter: 12px;
  }

  .dig-scroll.dig-scroll--overlay,
  .dig-scroll {
    --dig-top: 56px;
    --dig-trench-inset-x: 0px;
    --dig-trench-width: 12px;
    --dig-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    top: var(--dig-top, 56px);
    right: 0;
    width: 22px;
    padding-right: max(2px, env(safe-area-inset-right, 0px));
    gap: 0;
    z-index: 95;
    align-items: center;
    pointer-events: none;
    mix-blend-mode: normal;
  }

  .dig-scroll__meta {
    display: none !important;
  }

  body.has-global-cta-bar .dig-scroll {
    --dig-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  body.cookie-banner-visible .dig-scroll {
    --dig-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }

  body.cookie-banner-visible.has-global-cta-bar .dig-scroll {
    --dig-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }

  .dig-scroll {
    overflow: visible;
  }

  .dig-scroll__trench {
    flex: 1;
    width: var(--dig-trench-width, 14px);
    max-width: var(--dig-trench-width, 14px);
    min-height: 96px;
    margin: 0 auto;
    border-radius: 10px;
    align-self: center;
    overflow: visible;
  }

  .dig-scroll__trench-inner {
    inset: 2px 0;
    left: 0;
    right: 0;
    border-radius: 8px;
    overflow: hidden;
  }

  .dig-scroll__shovel-pin {
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    z-index: 9;
  }

  .dig-scroll__loot {
    width: 28px;
    height: 28px;
    margin-left: -14px;
    bottom: 2px;
    z-index: 14;
  }

  .dig-scroll__trench {
    border-color: rgba(120, 53, 15, 0.42);
    box-shadow:
      inset 0 2px 10px rgba(0, 0, 0, 0.45),
      0 0 16px rgba(0, 0, 0, 0.25);
    background:
      linear-gradient(180deg, rgba(28, 25, 23, 0.35) 0%, transparent 12%),
      linear-gradient(180deg, rgba(61, 41, 20, 0.88) 0%, rgba(28, 20, 16, 0.92) 38%, rgba(15, 12, 10, 0.94) 100%);
  }
}

@media (max-width: 380px) {
  .dig-scroll {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dig-scroll__shovel-pin,
  .dig-scroll__dug,
  .dig-scroll__undug,
  .dig-scroll__edge {
    transition: none;
  }

  .dig-scroll.is-digging .dig-scroll__shovel {
    animation: none;
  }

  .dig-scroll__particle,
  .dig-scroll__coin {
    display: none;
  }

  .dig-scroll__loot.is-revealed {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .dig-scroll__loot-glow {
    animation: none;
  }

  .dig-scroll.is-complete .dig-scroll__remain {
    animation: none;
  }
}


/* ==== site-cta.css ==== */
/* Download notify modal (email → Telegram waitlist) */
.download-notify-modal[hidden] {
  display: none !important;
}

.download-notify-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.download-notify-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.download-notify-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(37, 35, 33, 0.98), rgba(20, 18, 17, 0.99));
  box-shadow: var(--shadow-float);
}

.download-notify-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.download-notify-title {
  margin: 0 32px 8px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text);
}

.download-notify-lead {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.download-notify-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.download-notify-label-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-muted);
}

.download-notify-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: rgba(15, 14, 13, 0.85);
  color: var(--c-text);
  font-size: 16px;
  font-family: inherit;
}

.download-notify-input:focus {
  outline: none;
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.download-notify-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.download-notify-status {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.download-notify-status.is-error {
  color: #fca5a5;
}

.download-notify-status.is-ok {
  color: #6ee7b7;
}

.download-notify-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-notify-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

body.download-notify-open {
  overflow: hidden;
}

@media (min-width: 520px) {
  .download-notify-modal {
    align-items: center;
  }
}

/* Global sticky CTA bar */
.global-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(180deg, transparent, rgba(15, 14, 13, 0.92) 24%);
  pointer-events: none;
}

.global-cta-bar-inner {
  pointer-events: auto;
  padding: 8px 16px 10px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.global-cta-bar-btn.btn-play-store,
.global-cta-play-badge {
  display: inline-flex;
  width: auto;
  max-width: min(100%, 220px);
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.global-cta-play-badge img {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(100%, 200px);
}

.global-cta-bar-btn,
.site-cta-primary {
  display: inline-flex;
  width: auto;
  max-width: min(100%, 520px);
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid rgba(253, 224, 171, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    linear-gradient(135deg, #92400e 0%, #d97706 38%, #fbbf24 72%, #f59e0b 100%);
  color: #1c1410;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(217, 119, 6, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
  .global-cta-bar-inner {
    padding: 8px 12px 10px;
  }

  .global-cta-bar-btn.btn-play-store,
  .global-cta-play-badge {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .global-cta-play-badge img {
    height: 46px;
    max-width: min(100%, 210px);
  }

  .global-cta-bar-btn:not(.btn-play-store),
  .site-cta-primary {
    width: 100%;
    max-width: none;
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.82rem;
    padding: 10px 14px;
  }
}

@media (min-width: 769px) {
  body.has-global-cta-bar {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

.global-cta-bar-btn:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.65);
  outline-offset: 2px;
}

body.has-global-cta-bar {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

html[data-play-store-live="true"] .global-cta-bar .global-cta-play-badge {
  max-width: min(100%, 220px);
}

a.footer-cta.btn-play-store,
a.tool-play-badge {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}

a.footer-cta.btn-play-store img,
a.tool-play-badge img {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(100%, 200px);
}

@media (max-width: 768px) {
  body.has-global-cta-bar .section-jump-dock {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.mobile-floating-cta.is-visible) .section-jump-dock {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==== site-screens-desktop.css ==== */
/* Uniform phone screenshots + desktop carousel (3–4 visible) */

:root {
  --screen-slot-width: 200px;
  --screen-aspect: 9 / 19.5;
}

.clan-screen-photo-wrap,
.section-phone .clan-screen-photo-wrap,
.mockup-cluster .phone-screen-shot {
  width: min(100%, var(--screen-slot-width));
  max-width: var(--screen-slot-width);
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: var(--screen-aspect);
  height: auto;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(6, 5, 5, 0.92);
}

.clan-screen-photo-wrap img,
.section-phone .clan-screen-photo-wrap img,
.mockup-cluster .phone-screen-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.clan-screen-frame {
  width: 100%;
  max-width: calc(var(--screen-slot-width) + 24px);
  margin-left: auto;
  margin-right: auto;
  padding: 8px 10px 10px;
}

.clan-screen-card {
  align-items: center;
}

/* Desktop: 3–4 screens per “page”, equal slots */
@media (min-width: 1024px) {
  :root {
    --screen-slot-width: 210px;
  }

  .map-settings-screens-row.landing-carousel-track,
  .arsenal-screens-row.landing-carousel-track,
  .clan-screens-row.landing-carousel-track {
    gap: 16px;
    scroll-padding-inline: 8px;
  }

  .map-settings-screens-row.landing-carousel-track .clan-screen-card,
  .arsenal-screens-row.landing-carousel-track .clan-screen-card,
  .clan-screens-row.landing-carousel-track .clan-screen-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
    padding: 0 4px;
    box-sizing: border-box;
  }

  .story-route.landing-carousel-track {
    gap: 16px;
  }

  .story-route.landing-carousel-track .story-step {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
    padding: 0 4px;
    box-sizing: border-box;
  }

  .screen-gallery-outer,
  .story-carousel-outer {
    padding: 0 52px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Hero: three equal phones in a row */
  .mockup-cluster {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(12px, 2vw, 20px);
    min-height: 0;
    transform: none;
    margin-top: 12px;
    padding-bottom: 8px;
  }

  .mockup-cluster .phone-frame-main,
  .mockup-cluster .phone-frame-small {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: var(--screen-slot-width);
    max-width: var(--screen-slot-width);
    min-height: 0;
    margin: 0;
    padding: 8px 10px 10px;
    transform: none !important;
  }

  .mockup-cluster .phone-frame-main.has-photo .phone-screen-shot,
  .mockup-cluster .phone-frame-small.has-photo .phone-screen-shot {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .section-phone-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, var(--screen-slot-width)));
    justify-content: center;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
  }

  .section-phone-duo .section-phone {
    max-width: var(--screen-slot-width);
    width: 100%;
  }

  .section-phone-duo .section-phone .phone-frame,
  .section-phone-duo .section-phone .clan-screen-photo-wrap {
    max-width: 100%;
    width: 100%;
  }
}

@media (min-width: 1400px) {
  :root {
    --screen-slot-width: 200px;
  }

  .map-settings-screens-row.landing-carousel-track .clan-screen-card,
  .arsenal-screens-row.landing-carousel-track .clan-screen-card,
  .clan-screens-row.landing-carousel-track .clan-screen-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: calc((100% - 48px) / 4);
    max-width: calc((100% - 48px) / 4);
  }

  .story-route.landing-carousel-track .story-step {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: calc((100% - 48px) / 4);
    max-width: calc((100% - 48px) / 4);
  }
}


/* ==== styles.css (inline) ==== */
/* Discovera landing — same tokens / atmosphere as app (index.css + LoadingScreen) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: optional;
  src: url("/assets/fonts/jetbrains-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --c-bg: #0f0e0d;
  --c-surface: #1c1917;
  --c-surface-elevated: #252321;
  --c-surface-dark: #141211;
  --c-surface-highlight: #292524;
  --c-primary: #d97706;
  --c-primary-dark: #b45309;
  --c-secondary: #14b8a6;
  --c-text: #fafaf9;
  --c-muted: #b5b0ab;
  --c-border: rgba(255, 255, 255, 0.1);
  --c-border-soft: rgba(255, 255, 255, 0.06);
  --radius-card: 12px;
  --radius-panel: 16px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-heading: var(--font-display);
  --font-body: var(--font-sans);
  --font-ui: var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' fill='%23fff' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  --topo: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  isolation: isolate;
  position: relative;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(217, 119, 6, 0.16), transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 10%, rgba(20, 184, 166, 0.09), transparent 45%),
    var(--topo);
  /* scroll avoids compositor / parallax mismatch vs sticky header on desktop */
  background-attachment: scroll;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--noise);
  background-repeat: repeat;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 42% at 22% 28%, rgba(217, 119, 6, 0.12), transparent 55%),
    radial-gradient(ellipse 48% 40% at 88% 72%, rgba(20, 184, 166, 0.08), transparent 52%);
  animation: ambient-glow 6s ease-in-out infinite alternate;
}

@media (min-width: 1024px) {
  body::after {
    animation: none;
    opacity: 0.78;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-size: 0.9em;
  color: var(--c-secondary);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Top bar — site-header.css + site-shell.css */

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 88px) 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lang-en .hero-copy h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d97706;
  margin: 0 0 0.65rem;
}

.hero-mono-strip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border-soft);
  background: rgba(20, 18, 17, 0.65);
  display: inline-block;
  max-width: 100%;
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.65;
  color: var(--c-muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-panel);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--c-bg);
  border-color: transparent;
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  background-size: 200% 100%;
  box-shadow: 0 8px 28px rgba(217, 119, 6, 0.35);
  animation: shimmer-cta 6s ease-in-out infinite;
}

.btn-play-store {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.btn-play-store:hover {
  filter: brightness(1.07);
}

.btn-play-store:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.9);
  outline-offset: 4px;
}

.btn-play-store img {
  display: block;
  width: clamp(148px, 46vw, 194px);
  height: auto;
}

.btn-ghost {
  color: var(--c-text);
  background: rgba(28, 25, 23, 0.85);
}

.btn-ghost:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.15);
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
  opacity: 0.7;
}

.cta-note {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-top: 4px;
}

/* Hero radar — same language as LoadingScreen */
.hero-radar {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 8px;
  flex-shrink: 0;
}

.hero-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.2);
  pointer-events: none;
}

.hero-radar-ring--1 {
  inset: 0;
  animation: radar-ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-radar-ring--2 {
  inset: 0;
  border-width: 1px;
  border-color: rgba(245, 158, 11, 0.1);
  animation: radar-ping 3s cubic-bezier(0, 0, 0.2, 1) infinite 1s;
}

.hero-radar-ring--3 {
  inset: 16px;
  border-width: 1px;
  border-color: rgba(245, 158, 11, 0.28);
  animation: none;
}

.hero-radar-core {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: rgb(28, 25, 23);
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-radar-core img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 50%;
}

/* Hero visual card */
.hero-visual {
  position: relative;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.45), rgba(20, 184, 166, 0.25), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow-float);
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-visual-inner {
  position: relative;
  border-radius: 23px;
  background: linear-gradient(
    165deg,
    rgba(37, 35, 33, 0.98) 0%,
    rgba(28, 25, 23, 0.98) 45%,
    rgba(20, 18, 17, 0.99) 100%
  );
  padding: clamp(20px, 3vw, 28px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.hero-map-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  color: rgba(217, 119, 6, 0.45);
}

.hero-map-deco svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-visual-inner > :not(.hero-map-deco) {
  position: relative;
  z-index: 1;
}

.hero-visual h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
}

.hero-visual p {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(217, 119, 6, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.pill.teal {
  background: rgba(20, 184, 166, 0.1);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.28);
}

/* Sections */
.section {
  padding: var(--section-y, clamp(40px, 6vw, 72px)) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl, clamp(1.65rem, 3.2vw, 2.25rem));
  margin: 0 0 var(--space-3, 10px);
  font-weight: 700;
}

.lang-en .section-head h2 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-intro {
  margin: 0;
  color: var(--c-muted);
  line-height: var(--leading-relaxed, 1.7);
  font-size: var(--text-lg, 1.02rem);
}

.section-head .section-intro + .section-intro {
  margin-top: 0.75rem;
}

.section-head-wide {
  max-width: 52rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: #f59e0b;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts {
  padding: 12px 0 clamp(24px, 5vw, 46px);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  min-height: 150px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-panel);
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(37, 35, 33, 0.88), rgba(20, 18, 17, 0.94)),
    radial-gradient(circle at 14% 0%, rgba(217, 119, 6, 0.2), transparent 34%);
  box-shadow: var(--shadow-card);
}

.fact span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.fact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--c-text);
  font-size: 0.98rem;
}

.fact p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.5), rgba(20, 184, 166, 0.4), transparent);
  pointer-events: none;
}

.timeline-step {
  position: relative;
  z-index: 1;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-panel);
  padding: 18px;
  background: rgba(20, 18, 17, 0.86);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.timeline-step:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.34);
}

.timeline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #fcd34d;
  font-family: var(--font-mono);
  font-weight: 700;
  box-shadow: 0 0 24px rgba(217, 119, 6, 0.14);
}

.timeline-step h3,
.audience-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.timeline-step p,
.audience-card p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.spotlight-section {
  padding-top: clamp(46px, 7vw, 86px);
}

.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: stretch;
  border: 1px solid var(--c-border);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 119, 6, 0.24), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(20, 184, 166, 0.16), transparent 28%),
    linear-gradient(150deg, rgba(37, 35, 33, 0.96), rgba(20, 18, 17, 0.98));
  box-shadow: var(--shadow-float);
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.spotlight-copy {
  position: relative;
  z-index: 1;
}

.spotlight-copy h2,
.map-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.14;
}

.lang-en .spotlight-copy h2,
.lang-en .map-copy h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.spotlight-copy p,
.map-copy p {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.mini-pill {
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: var(--radius-pill);
  padding: 7px 11px;
  background: rgba(217, 119, 6, 0.1);
  color: #fde68a;
  font-size: 0.74rem;
  font-weight: 700;
}

.ivan-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 300px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 14, 13, 0.36), rgba(15, 14, 13, 0.82)),
    radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.18), transparent 38%);
}

.ivan-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 50%;
  border: 1px dashed rgba(245, 158, 11, 0.25);
  animation: redirect-ring-spin 20s linear infinite;
}

.chat-bubble {
  width: min(88%, 390px);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 13px 15px;
  background: rgba(37, 35, 33, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.chat-bubble.user {
  justify-self: end;
  border-color: rgba(20, 184, 166, 0.26);
  background: rgba(20, 184, 166, 0.09);
}

.chat-bubble.ai {
  border-color: rgba(217, 119, 6, 0.25);
}

.chat-bubble b {
  display: block;
  margin-bottom: 4px;
  color: var(--c-text);
  font-size: 0.92rem;
}

.chat-bubble span {
  color: var(--c-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.map-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(140deg, rgba(28, 25, 23, 0.82), rgba(20, 18, 17, 0.96));
  box-shadow: var(--shadow-card);
}

.map-visual {
  position: relative;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 26%, rgba(20, 184, 166, 0.2), transparent 25%),
    radial-gradient(circle at 18% 76%, rgba(217, 119, 6, 0.22), transparent 24%),
    rgba(15, 14, 13, 0.62);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

.map-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-visual path {
  fill: none;
  stroke: rgba(251, 191, 36, 0.45);
  stroke-width: 2;
  stroke-dasharray: 7 10;
  animation: dash-flow 18s linear infinite;
}

.map-visual path:nth-child(2) {
  stroke: rgba(20, 184, 166, 0.34);
  animation-duration: 22s;
}

.map-visual path:nth-child(3) {
  stroke: rgba(255, 255, 255, 0.2);
  animation-duration: 26s;
}

.map-pin {
  position: absolute;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.12), 0 12px 24px rgba(0, 0, 0, 0.35);
}

.map-pin::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-bg);
}

.pin-a {
  top: 30%;
  left: 24%;
}

.pin-b {
  top: 54%;
  left: 62%;
  background: linear-gradient(135deg, #14b8a6, #5eead4);
}

.pin-c {
  top: 68%;
  left: 38%;
  transform: rotate(-45deg) scale(0.82);
}

.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--c-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fbbf24 0 35%, rgba(217, 119, 6, 0.2) 36% 100%);
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.2);
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border-radius: var(--radius-panel);
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(37, 35, 33, 0.95), rgba(28, 25, 23, 0.98));
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(217, 119, 6, 0.12);
}

.card:hover .landing-icon-chip {
  border-color: rgba(252, 211, 77, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

/* App-like icon chip (landing + #features cards) */
.landing-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  box-sizing: border-box;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
}

.landing-icon-chip img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  color: #ffffff;
  filter: brightness(0) invert(1);
}

.landing-icon-chip.chip-tone-gold {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(252, 211, 77, 0.42);
}

.landing-icon-chip.chip-tone-teal {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(45, 212, 191, 0.36);
}

.landing-icon-chip.chip-tone-neutral {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.card-icon.landing-icon-chip {
  margin-bottom: 14px;
}


.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Audience strip */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audience-card {
  border-radius: var(--radius-panel);
  border: 1px solid var(--c-border);
  padding: 20px;
  background: linear-gradient(180deg, rgba(37, 35, 33, 0.86), rgba(20, 18, 17, 0.96));
  box-shadow: var(--shadow-card);
}

.audience-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  color: #5eead4;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.22);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strip {
  border-radius: var(--radius-panel);
  border: 1px solid var(--c-border);
  background: rgba(28, 25, 23, 0.65);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.strip p {
  margin: 0;
  color: var(--c-muted);
  max-width: 52rem;
  line-height: 1.65;
}

.strip strong {
  color: var(--c-text);
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 52rem;
}

.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-panel);
  background: rgba(20, 18, 17, 0.88);
  padding: 16px 18px;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.faq-item b {
  display: block;
  margin-bottom: 8px;
  color: var(--c-text);
  font-size: 0.98rem;
}

.faq-item span {
  color: var(--c-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  margin-top: 24px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--c-border-soft);
  color: var(--c-muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img:first-of-type {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

.footer-coil {
  width: 22px;
  height: 22px;
}

/* Cookie consent (marketing site) */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(15, 14, 13, 0.94), rgba(10, 9, 8, 0.99));
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.5);
  color: var(--c-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.cookie-consent-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.cookie-consent-text {
  margin: 0;
  flex: 1 1 240px;
  max-width: 640px;
  color: #d6d3d1;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.cookie-consent-actions a {
  color: #fcd34d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions a:hover {
  color: #fde68a;
}

.cookie-consent-accept {
  cursor: pointer;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--c-bg);
  background: linear-gradient(135deg, #d97706, #fbbf24);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.cookie-consent-accept:hover {
  filter: brightness(1.06);
}

body.cookie-banner-visible {
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  body.cookie-banner-visible {
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }
}

/* Root redirect splash */
.redirect-root {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(217, 119, 6, 0.2), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(20, 184, 166, 0.08), transparent 45%),
    var(--topo);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}

.redirect-root .logo-ring {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.redirect-root .logo-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.25);
  animation: redirect-ring-spin 4s linear infinite;
}

.redirect-root .redirect-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.redirect-root .coil-spin {
  position: absolute;
  width: 76px;
  height: 76px;
  z-index: 2;
  pointer-events: none;
}

.redirect-root p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--c-muted);
}

@keyframes redirect-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes redirect-coil-spin {
  to {
    transform: rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .redirect-root .logo-ring::before,
  .redirect-root .coil-spin {
    animation: none !important;
  }
}

/* Root page: open-in-app gate (same paths as Discovera deep links) */
.deeplink-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 22rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
  text-align: center;
  gap: 0.75rem;
}

.deeplink-gate__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
}

.deeplink-gate__hint {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--c-muted);
}

.deeplink-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
  width: 100%;
}

.deeplink-gate__actions .btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.footer a {
  color: #fcd34d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: #fde68a;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .fact,
.reveal.is-visible .timeline-step,
.reveal.is-visible .card,
.reveal.is-visible .audience-card,
.reveal.is-visible .chat-bubble {
  animation: fade-in-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal.is-visible :is(.fact, .timeline-step, .card, .audience-card, .chat-bubble):nth-child(2) {
  animation-delay: 0.06s;
}

.reveal.is-visible :is(.fact, .timeline-step, .card, .audience-card, .chat-bubble):nth-child(3) {
  animation-delay: 0.12s;
}

.reveal.is-visible :is(.fact, .timeline-step, .card, .audience-card, .chat-bubble):nth-child(4) {
  animation-delay: 0.18s;
}

.reveal.is-visible :is(.fact, .timeline-step, .card):nth-child(n + 5) {
  animation-delay: 0.08s;
}

.hero-copy {
  animation: fade-in-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Keyframes */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-glow {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 0.95;
  }
}

@keyframes radar-ping {
  0%,
  100% {
    opacity: 0.32;
  }
  50% {
    opacity: 0.06;
  }
}

@keyframes shimmer-cta {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -160;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::after {
    animation: none !important;
  }

  .hero-radar-ring--1,
  .hero-radar-ring--2 {
    animation: none !important;
    opacity: 0.25;
  }

  .hero-copy,
  .hero-visual {
    animation: none !important;
  }

  .btn-primary {
    animation: none !important;
  }

  .ivan-card::before,
  .map-visual path {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .reveal.is-visible .fact,
  .reveal.is-visible .timeline-step,
  .reveal.is-visible .card,
  .reveal.is-visible .audience-card,
  .reveal.is-visible .chat-bubble {
    animation: none !important;
  }

  .card:hover,
  .btn:hover {
    transform: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .topbar-wrap,
  .topbar > .container.topbar-wrap {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (max-width: 1024px) {
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .facts-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    display: none;
  }

  .spotlight,
  .map-spotlight {
    grid-template-columns: 1fr;
  }

  .grid-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 24px));
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .facts-grid,
  .timeline,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .spotlight,
  .map-spotlight {
    border-radius: 22px;
  }

  .map-visual {
    min-height: 240px;
  }

  .chat-bubble {
    width: 100%;
  }

  .grid-features {
    grid-template-columns: 1fr;
  }

  .maps-near-you {
    padding: 1.1rem 1rem;
  }

  .mny-headline {
    font-size: 1rem;
  }
}

/* Landing v2 — digital open-air museum */
.landing-v2-section {
  position: relative;
}

.hero-v2 {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 9vw, 118px) 0 clamp(52px, 8vw, 92px);
}

.hero-v2::before {
  content: "";
  position: absolute;
  inset: 8% -8% auto auto;
  width: min(56vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(20, 184, 166, 0.16), transparent 62%),
    conic-gradient(from 120deg, rgba(217, 119, 6, 0.18), transparent, rgba(20, 184, 166, 0.12), transparent);
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}

.map-parallax {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--c-bg);
  /* Field photo + overlays (stack mirrored horizontally for composition); vignettes follow the flip */
  background-image:
    radial-gradient(ellipse 84% 70% at 86% 18%, rgba(255, 250, 235, 0.18), transparent 56%),
    linear-gradient(
      115deg,
      rgba(11, 10, 9, 0.88) 0%,
      rgba(11, 10, 9, 0.54) 34%,
      rgba(11, 10, 9, 0.38) 52%,
      rgba(11, 10, 9, 0.8) 100%
    ),
    linear-gradient(180deg, rgba(11, 10, 9, 0.36) 0%, transparent 44%, rgba(11, 10, 9, 0.54) 100%),
    url("/assets/hero-field-discovery.png");
  background-size: cover;
  background-position: 42% center;
  background-repeat: no-repeat;
  transform: scaleX(-1) translate3d(0, var(--parallax-y, 0px), 0);
  transition: transform 0.12s linear;
  opacity: 1;
}

@media (min-width: 1024px) {
  .map-parallax {
    transform: scaleX(-1) !important;
    transition: none !important;
  }
}

.hero-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .hero-v2-grid {
    grid-template-columns: 1fr;
  }
}

.hero-v2-copy {
  max-width: 640px;
}

.hero-v2-copy h1:not(.hero-title) {
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: clamp(2.65rem, 6.7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.final-cta h2 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: var(--leading-tight, 1.1);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lang-en .hero-v2-copy h1 {
  font-family: var(--font-sans);
  font-weight: 800;
}

.lang-en .final-cta h2 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero-v2 .lead {
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #d6d3d1;
}

.hero-v2-stats,
.gallery-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-v2-stats span,
.gallery-points span {
  border: 1px solid rgba(214, 177, 126, 0.22);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  background: rgba(214, 177, 126, 0.07);
  color: #e7d8bd;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-proof-strip {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-proof-strip li {
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #d8f3ef;
  background: rgba(20, 184, 166, 0.08);
  text-align: center;
}

.mockup-cluster {
  position: relative;
  min-height: 620px;
  transform: translateX(28px);
  animation: hero-phone-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(37, 35, 33, 0.98), rgba(15, 14, 13, 0.98)),
    var(--topo);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.56), 0 0 0 8px rgba(255, 255, 255, 0.035);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.phone-speaker {
  width: 68px;
  height: 6px;
  margin: 16px auto 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}

.phone-frame-main {
  width: min(100%, 316px);
  min-height: 560px;
  margin-left: auto;
  padding: 0 18px 18px;
}

.phone-frame-main.has-photo {
  display: flex;
  flex-direction: column;
}

.phone-frame-main.has-photo .phone-screen-shot {
  position: relative;
  flex: none;
  width: 100%;
  margin: 6px -6px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 5, 5, 0.92);
  aspect-ratio: 9 / 18.5;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame-main.has-photo .phone-screen-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.phone-frame-small.has-photo {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
}

.phone-frame-small.has-photo .phone-screen-shot {
  position: relative;
  flex: none;
  width: 100%;
  margin: 4px -2px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 5, 5, 0.92);
  aspect-ratio: 9 / 18.5;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame-small.has-photo .phone-screen-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

/*
 * Asset already includes device bezel — avoid a second synthetic phone UI.
 * For flat UI captures without a frame, omit this modifier on the frame.
 */
.phone-frame.phone-frame--device-in-shot {
  background: rgba(12, 11, 10, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-frame.phone-frame--device-in-shot::before {
  display: none;
}

.phone-frame--device-in-shot .phone-speaker {
  display: none !important;
}

.phone-frame-main.phone-frame--device-in-shot {
  padding: 8px 10px 12px;
}

.phone-frame-main.phone-frame--device-in-shot.has-photo .phone-screen-shot {
  margin: 0;
  border: none;
  background: transparent;
}

.phone-frame-small.phone-frame--device-in-shot {
  padding: 6px 8px 10px;
}

.phone-frame-small.phone-frame--device-in-shot.has-photo .phone-screen-shot {
  margin: 0;
  border: none;
  background: transparent;
}

.gallery-phone.phone-frame--device-in-shot.has-gallery-photo .gallery-photo {
  top: 12px;
  left: 8px;
  right: 8px;
  bottom: 82px;
  border: none;
  background: transparent;
}

.phone-screen-shot {
  margin: 0;
}

.phone-frame-small {
  position: absolute;
  width: 190px;
  min-height: 245px;
  padding: 0 16px 18px;
}

.mockup-cluster .screen-artifact {
  left: 16%;
  bottom: 22px;
  transform: rotate(-5deg);
}

.mockup-cluster .screen-trips {
  right: -2%;
  top: 18px;
  transform: rotate(6deg);
}

.screen-topline,
.artifact-card-mini,
.trip-row,
.phone-mini span {
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-topline {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  color: var(--c-muted);
  font-size: 0.85rem;
}

.screen-topline b {
  color: #fcd34d;
}

.mini-map {
  position: relative;
  min-height: 305px;
  margin: 14px 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 68% 22%, rgba(20, 184, 166, 0.2), transparent 24%),
    radial-gradient(circle at 24% 74%, rgba(217, 119, 6, 0.2), transparent 26%),
    rgba(20, 18, 17, 0.86);
  background-size: 30px 30px, 30px 30px, auto, auto, auto;
}

.route-line {
  position: absolute;
  left: 17%;
  right: 12%;
  top: 48%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent, #fbbf24, #14b8a6, transparent);
  transform: rotate(-18deg);
  box-shadow: 0 0 22px rgba(20, 184, 166, 0.3);
}

.map-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.12), 0 0 18px rgba(245, 158, 11, 0.45);
}

.dot-a {
  top: 26%;
  left: 24%;
}

.dot-b {
  top: 54%;
  left: 58%;
  background: #14b8a6;
}

.dot-c {
  top: 68%;
  left: 38%;
}

.artifact-card-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.artifact-card-mini b,
.screen-artifact b,
.screen-trips b,
.gallery-phone b {
  display: block;
  color: var(--c-text);
}

.artifact-card-mini span,
.screen-artifact span,
.screen-trips span,
.gallery-phone span {
  color: var(--c-muted);
  font-size: 0.85rem;
}

.screen-artifact,
.screen-trips {
  display: grid;
  align-content: start;
  gap: 12px;
}


.screen-artifact.has-photo,
.screen-trips.has-photo {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-content: stretch;
}

.screen-artifact > img {
  margin: 18px auto 4px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(217, 119, 6, 0.12);
}

.trip-row {
  display: block;
  height: 42px;
}

.trip-row.short {
  width: 72%;
}

.faq-v2 details {
  border: 1px solid var(--c-border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(37, 35, 33, 0.9), rgba(20, 18, 17, 0.96)),
    radial-gradient(circle at 20% 0%, rgba(214, 177, 126, 0.08), transparent 38%);
  box-shadow: var(--shadow-card);
}

.story-route {
  position: relative;
}

.story-route.landing-carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 0 20px;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(214, 177, 126, 0.35) transparent;
  touch-action: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0;
}

.story-route.landing-carousel-track .story-step {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0 6px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.story-route::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 118px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.15), rgba(251, 191, 36, 0.68), rgba(20, 184, 166, 0.58), rgba(217, 119, 6, 0.15));
}

.story-route.landing-carousel-track::before {
  display: none;
}

.story-step {
  position: relative;
  z-index: 1;
}

.phone-mini {
  min-height: 240px;
  border-radius: 28px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(37, 35, 33, 0.95), rgba(15, 14, 13, 0.98)),
    var(--topo);
  box-shadow: var(--shadow-card);
}

.phone-mini span {
  display: inline-flex;
  padding: 7px 10px;
  color: #fcd34d;
  font-size: 0.78rem;
  font-weight: 700;
}

.phone-mini i {
  display: block;
  height: 108px;
  margin-top: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 32% 28%, rgba(245, 158, 11, 0.75) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 64%, rgba(20, 184, 166, 0.8) 0 5px, transparent 6px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px;
}

.phone-mini-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  padding: 8px;
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 5, 5, 0.92);
  width: min(220px, 100%);
  box-sizing: border-box;
}

.phone-mini-shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(52vh, 400px);
  object-fit: contain;
  object-position: center center;
}

.phone-mini.has-story-photo i {
  display: none;
}

.story-carousel-outer,
.screen-gallery-outer {
  position: relative;
  padding: 0 48px;
}


.screen-gallery-outer .carousel-surface-btn {
  top: 42%;
  transform: translateY(-50%);
}

.section-screens-carousel-outer .carousel-surface-btn {
  top: 42%;
  transform: translateY(-50%);
}

.map-settings-screens-row.landing-carousel-track,
.arsenal-screens-row.landing-carousel-track,
.clan-screens-row.landing-carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 0 28px;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(214, 177, 126, 0.35) transparent;
  touch-action: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0;
}

.map-settings-screens-row.landing-carousel-track .clan-screen-card,
.arsenal-screens-row.landing-carousel-track .clan-screen-card,
.clan-screens-row.landing-carousel-track .clan-screen-card {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0 6px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
}

#story .story-step .story-screen-card {
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

#story .story-step:not(.is-story-active) .story-screen-card {
  opacity: 0.9;
  transform: scale(0.992);
}

@media (prefers-reduced-motion: reduce) {
  #story .story-step .story-screen-card,
  #story .story-step:not(.is-story-active) .story-screen-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.carousel-surface-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 11, 10, 0.88);
  color: #fcd34d;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.carousel-surface-btn:hover {
  border-color: rgba(20, 184, 166, 0.45);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(20, 184, 166, 0.12);
}

.carousel-surface-btn:focus-visible {
  outline: 2px solid rgba(20, 184, 166, 0.7);
  outline-offset: 2px;
}

.carousel-surface-btn--prev {
  left: 2px;
}

.carousel-surface-btn--next {
  right: 2px;
}

.story-carousel-outer .carousel-surface-btn {
  top: min(210px, 42%);
  transform: translateY(-50%);
}

@media (max-width: 560px) {
  .screen-gallery-outer {
    padding: 0 40px;
  }

  .carousel-surface-btn {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .story-carousel-outer .carousel-surface-btn {
    top: min(190px, 44%);
  }
}

/* #story / #screens: mobile — свайп; боковые стрелки скрыты */
@media (max-width: 640px) {
  .story-carousel-outer,
  .screen-gallery-outer {
    padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  }

  .story-carousel-outer .carousel-surface-btn,
  .screen-gallery-outer .carousel-surface-btn {
    display: none;
  }

  .story-route.landing-carousel-track {
    scroll-padding-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px));
  }

  .story-route.landing-carousel-track .story-step {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 4px;
  }

  .map-settings-screens-row.landing-carousel-track .clan-screen-card,
  .arsenal-screens-row.landing-carousel-track .clan-screen-card,
  .clan-screens-row.landing-carousel-track .clan-screen-card {
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .gallery-phone {
    padding: 16px;
    min-height: 476px;
  }

  .gallery-phone.has-gallery-photo .gallery-photo {
    top: 10px;
    bottom: 108px;
    left: 8px;
    right: 8px;
  }

  .gallery-phone.phone-frame--device-in-shot.has-gallery-photo .gallery-photo {
    top: 10px;
    bottom: 108px;
    left: 8px;
    right: 8px;
  }

  .gallery-points {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-top: 16px;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 177, 126, 0.35) transparent;
    overscroll-behavior-x: contain;
  }

  .gallery-points span {
    flex: 0 0 auto;
    font-size: 0.72rem;
    padding: 6px 10px;
  }
}

.gallery-phone {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.gallery-phone:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.4);
}

.gallery-phone:focus-visible {
  outline: 2px solid rgba(20, 184, 166, 0.75);
  outline-offset: 2px;
}

.gallery-phone.has-gallery-photo::after {
  display: none;
}

.gallery-phone.has-gallery-photo .gallery-photo {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 112px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 0;
  background: rgba(6, 5, 5, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-phone.has-gallery-photo .gallery-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.gallery-phone.has-gallery-photo > b,
.gallery-phone.has-gallery-photo > span {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.82);
  border-radius: 10px;
  padding: 2px 2px;
}

.gallery-phone::after {
  content: "";
  position: absolute;
  inset: 10px 10px 112px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 26% 24%, rgba(245, 158, 11, 0.24), transparent 25%),
    radial-gradient(circle at 72% 62%, rgba(20, 184, 166, 0.2), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.live-screen::after {
  animation: gallery-scroll 6s ease-in-out infinite;
}

.museum-panel {
  border: 1px solid rgba(214, 177, 126, 0.18);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 14% 0%, rgba(214, 177, 126, 0.16), transparent 26%),
    radial-gradient(circle at 86% 20%, rgba(20, 184, 166, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(37, 35, 33, 0.86), rgba(15, 14, 13, 0.96));
  box-shadow: var(--shadow-float);
}

.community-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
}

.community-trust-strip li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 16px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--c-border);
  background: rgba(20, 18, 17, 0.55);
}

.community-trust-strip .landing-icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.community-trust-strip img {
  opacity: 0.95;
}

.community-trust-strip strong {
  display: block;
  font-size: 0.95rem;
  color: var(--c-text);
  margin-bottom: 4px;
}

.community-trust-strip p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .community-trust-strip {
    grid-template-columns: 1fr;
  }
}


.clan-screens-row:not(.landing-carousel-track),
.map-settings-screens-row:not(.landing-carousel-track) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
}

.clan-screens-row {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--c-border-soft);
}

.map-settings-screens-row {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.map-settings-screens-row .clan-screen-caption > span:only-child {
  display: block;
  margin-top: 0;
  color: var(--c-text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.clan-screen-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.clan-screen-frame {
  padding: 10px 12px 12px;
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
}

.clan-screen-photo-wrap {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(6, 5, 5, 0.92);
  aspect-ratio: 487 / 1024;
}

.clan-screen-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.clan-screen-caption {
  margin: 0;
  padding: 0 4px;
  text-align: center;
}

.clan-screen-caption strong {
  display: block;
  font-size: 0.95rem;
  color: var(--c-text);
}

.clan-screen-caption span {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--c-muted);
}

@media (max-width: 960px) {
  .clan-screens-row:not(.landing-carousel-track),
  .map-settings-screens-row:not(.landing-carousel-track) {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

.partner-callout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(214, 177, 126, 0.24);
  border-radius: 24px;
  padding: clamp(16px, 2.8vw, 24px);
  background:
    radial-gradient(circle at 12% 20%, rgba(20, 184, 166, 0.12), transparent 32%),
    radial-gradient(circle at 88% 80%, rgba(251, 191, 36, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(37, 35, 33, 0.92), rgba(15, 14, 13, 0.96));
  box-shadow: var(--shadow-card);
}

.partner-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.38);
  padding: 10px 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.partner-logo-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.partner-logo-link img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
}

.partner-callout-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.partner-callout-copy p {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.55;
}

.partner-link {
  display: inline-flex;
  margin-top: 10px;
  color: #e7e5e4;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.partner-callout-stack {
  display: grid;
  gap: clamp(14px, 2.5vw, 18px);
}

.partner-callout-stack > .section {
  margin: 0;
}

.archive-aerial-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.95fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 24px;
  padding: clamp(16px, 2.8vw, 26px);
  background:
    radial-gradient(circle at 8% 18%, rgba(251, 191, 36, 0.14), transparent 34%),
    radial-gradient(circle at 92% 82%, rgba(20, 184, 166, 0.1), transparent 36%),
    linear-gradient(165deg, rgba(41, 37, 36, 0.94), rgba(15, 14, 13, 0.98));
  box-shadow: var(--shadow-card);
}

.archive-aerial-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.12rem, 2.1vw, 1.5rem);
  line-height: 1.25;
}

.archive-aerial-lead {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.archive-aerial-lead strong {
  color: #f5f5f4;
  font-weight: 700;
}

.archive-aerial-perks {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.archive-aerial-perks li {
  position: relative;
  padding-left: 18px;
  color: #e7e5e4;
  font-size: 0.88rem;
  line-height: 1.45;
}

.archive-aerial-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}

.archive-aerial-attribution {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: rgba(168, 162, 158, 0.85);
  letter-spacing: 0.02em;
}

.archive-aerial-cta {
  margin-top: 16px;
  width: fit-content;
  max-width: 100%;
}

.archive-aerial-mosaic-wrap {
  position: relative;
}

.archive-aerial-stat {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 14, 13, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.archive-aerial-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #fbbf24;
  letter-spacing: -0.02em;
}

.archive-aerial-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d6d3d1;
}

.archive-aerial-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(72px, 1fr));
  gap: 6px;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 8, 0.45);
}

.archive-aerial-mosaic.is-loaded .archive-aerial-mosaic-skeleton {
  display: none;
}

.archive-aerial-mosaic-skeleton {
  border-radius: 4px;
  background: linear-gradient(
    110deg,
    rgba(68, 64, 60, 0.35) 8%,
    rgba(120, 113, 108, 0.22) 18%,
    rgba(68, 64, 60, 0.35) 33%
  );
  background-size: 200% 100%;
  animation: archive-mosaic-shimmer 1.4s ease-in-out infinite;
}

.archive-aerial-mosaic-cell {
  display: block;
  min-height: 72px;
  overflow: hidden;
  border-radius: 4px;
}

.archive-aerial-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.archive-aerial-mosaic-cell:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
  z-index: 1;
}

.archive-aerial-mosaic img.archive-aerial-thumb--placeholder {
  object-fit: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.12), transparent 50%),
    rgba(28, 25, 23, 0.9);
}

@keyframes archive-mosaic-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 1024px) {
  .archive-aerial-callout {
    grid-template-columns: 1fr;
  }

  .archive-aerial-visual {
    order: -1;
  }

  .archive-aerial-mosaic {
    min-height: 148px;
  }
}

@media (max-width: 520px) {
  .archive-aerial-mosaic {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: unset;
    grid-template-rows: unset;
    min-height: 0;
    padding-bottom: 2px;
  }

  .archive-aerial-mosaic::-webkit-scrollbar {
    display: none;
  }

  .archive-aerial-mosaic-cell,
  .archive-aerial-mosaic-skeleton {
    flex: 0 0 42%;
    min-height: 96px;
    scroll-snap-align: start;
  }

  .archive-aerial-mosaic img {
    min-height: 96px;
  }
}


.faq-v2-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
}

.faq-v2 {
  display: grid;
  gap: 12px;
}

.faq-v2 details {
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-v2 details:hover {
  border-color: rgba(251, 191, 36, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), 0 0 12px rgba(251, 191, 36, 0.05);
}

.faq-v2 summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--c-text);
  font-weight: 800;
  list-style: none;
}

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

.faq-v2 summary::after {
  content: "+";
  float: right;
  color: #fbbf24;
}

.faq-v2 details[open] summary::after {
  content: "-";
}

.faq-v2 details > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-v2 details[open] > div {
  grid-template-rows: 1fr;
}

.faq-v2 p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 20px 18px;
  color: var(--c-muted);
  line-height: 1.65;
}

.final-cta {
  padding: clamp(50px, 8vw, 98px) 0;
}

.final-cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 34px;
  padding: clamp(24px, 5vw, 48px);
  background:
    radial-gradient(circle at 16% 24%, rgba(217, 119, 6, 0.24), transparent 28%),
    radial-gradient(circle at 88% 58%, rgba(20, 184, 166, 0.18), transparent 28%),
    linear-gradient(140deg, rgba(41, 37, 36, 0.96), rgba(15, 14, 13, 0.98));
  box-shadow: var(--shadow-float);
}

.final-cta-card h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
}

.final-cta-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.final-cta-list li {
  color: #e7e5e4;
  font-size: 0.9rem;
}

.final-cta-list li::before {
  content: "• ";
  color: #fbbf24;
}

.mobile-floating-cta {
  display: none;
}

.menu-toggle {
  display: none !important;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: rgba(20, 18, 17, 0.74);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: var(--radius-pill);
  background: var(--c-text);
}

@keyframes hero-phone-in {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gallery-scroll {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-parallax {
    transform: scaleX(-1) !important;
    transition: none !important;
  }

  .mockup-cluster,
  .live-screen::after {
    animation: none !important;
  }

}

@media (max-width: 1024px) {
  .mockup-cluster {
    transform: none;
  }

  .hero-v2-grid,
  .faq-v2-wrap {
    grid-template-columns: 1fr;
  }

  .mockup-cluster {
    min-height: 580px;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .final-cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-proof-strip {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .partner-callout,
  .archive-aerial-callout {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 768px) {
  .lang-link {
    padding: 5px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    white-space: nowrap;
  }

  .menu-toggle {
    display: inline-flex !important;
    flex-shrink: 0;
  }

  .hero-v2,
  .hero-v2 .hero-v2-grid,
  .hero-v2 .container {
    overflow-x: clip;
    max-width: 100%;
  }

  .mockup-cluster {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main main"
      "left right";
    column-gap: 6px;
    row-gap: 0;
    width: min(100%, 340px);
    min-height: 0;
    max-width: 100%;
    margin: 0 auto;
    padding: 4px 10px 16px;
    overflow: visible;
    box-sizing: border-box;
  }

  .mockup-cluster .phone-frame.phone-frame--device-in-shot {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-height: 0;
  }

  .mockup-cluster .phone-frame.phone-frame--device-in-shot::before {
    display: none;
  }

  .mockup-cluster .phone-frame--device-in-shot .phone-screen-shot {
    position: relative;
    margin: 0;
    border: none;
    background: transparent;
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
  }

  .mockup-cluster .phone-frame--device-in-shot .phone-screen-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.52));
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 6%,
      #000 16%,
      #000 84%,
      rgba(0, 0, 0, 0.35) 94%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 6%,
      #000 16%,
      #000 84%,
      rgba(0, 0, 0, 0.35) 94%,
      transparent 100%
    );
  }

  .mockup-cluster .phone-frame-main {
    grid-area: main;
    position: relative;
    left: auto;
    top: auto;
    z-index: 3;
    width: min(100%, 272px);
    min-height: 0;
    margin: 0 auto;
    transform: none;
    justify-self: center;
  }

  .mockup-cluster .phone-frame-small {
    position: relative;
    width: min(100%, 158px);
    min-height: 0;
    padding: 0;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    margin-top: -12%;
    z-index: 2;
  }

  .mockup-cluster .screen-artifact {
    grid-area: left;
    justify-self: end;
    transform: rotate(-8deg);
    transform-origin: 50% 100%;
  }

  .mockup-cluster .screen-trips {
    grid-area: right;
    justify-self: start;
    transform: rotate(8deg);
    transform-origin: 50% 100%;
  }

  /* Landing: centered floater after hero; academy/tools keep bottom sticky bar */
  body:has(.mobile-floating-cta) .global-cta-bar {
    display: none !important;
  }

  body:has(.mobile-floating-cta).has-global-cta-bar {
    padding-bottom: 0;
  }

  .mobile-floating-cta {
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 70;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(20, 18, 17, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(110%);
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.28s ease;
  }

  .mobile-floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  body:has(.mobile-floating-cta.is-visible) {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-floating-cta img {
    display: block;
    width: auto;
    height: 46px;
    max-width: min(100%, 210px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  }

  .footer {
    padding-bottom: 24px;
  }
}

@media (max-width: 768px) {
  html {
    overflow-x: clip;
  }
}

@media (max-width: 640px) {
  .hero-v2 {
    min-height: auto;
    padding-top: 44px;
    overflow: hidden;
  }

  .hero-v2-copy h1:not(.hero-title) {
    font-size: clamp(2.35rem, 14vw, 3.8rem);
  }

  .final-cta h2 {
    font-size: clamp(1.85rem, 8vw, 2.65rem);
  }

  .mockup-cluster {
    width: min(100%, 320px);
    padding-bottom: 8px;
  }

  .mockup-cluster .phone-frame-main {
    width: min(100%, 256px);
  }

  .mockup-cluster .phone-frame-small {
    width: min(100%, 148px);
    margin-top: -14%;
  }

  .mockup-cluster .screen-artifact {
    transform: rotate(-9deg);
  }

  .mockup-cluster .screen-trips {
    transform: rotate(9deg);
  }

  .mockup-cluster .phone-frame--device-in-shot .phone-screen-shot {
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.48));
  }

}

/* --- Map blend demo (landing EN/RU, after capabilities bento) --- */
.map-blend-section,
.map-settings-section,
.arsenal-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border-soft);
}

.arsenal-screens-row:not(.landing-carousel-track) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 18px);
}

.arsenal-screens-row .clan-screen-frame {
  max-width: 240px;
}

@media (max-width: 1100px) {
  .arsenal-screens-row:not(.landing-carousel-track) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .arsenal-screens-row:not(.landing-carousel-track) {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

.map-blend-copy {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.map-blend-figure {
  margin: 0;
}

.map-blend-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.map-blend-phone {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 12px 12px;
}

.map-blend-stack {
  position: relative;
  --blend: 0.7;
  aspect-ratio: 487 / 1024;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0c0b0a;
}

.map-blend-stack .map-blend-base {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.map-blend-stack .map-blend-top {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: var(--blend);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .map-blend-stack .map-blend-top {
    transition: none;
  }
}

.map-blend-range-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  color: var(--c-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.map-blend-range-wrap {
  height: 220px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem 0;
}

.map-blend-range-label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

.map-blend-range {
  width: 200px;
  height: 36px;
  margin: 0;
  /* -90deg: min (0% historic) at bottom by «Спутник», max at top by «Историческая» — заливка трека от min к value растёт снизу вверх */
  transform: rotate(-90deg);
  transform-origin: center center;
  accent-color: var(--c-primary);
  cursor: pointer;
}

.map-blend-range:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 4px;
}

.map-blend-pct {
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}

.map-blend-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .map-blend-range-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .map-blend-edge-label--high {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .map-blend-edge-label--low {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .map-blend-range-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    height: auto;
    width: 100%;
    max-width: min(320px, 100%);
    padding: 0 4px;
  }

  .map-blend-range {
    transform: none;
    width: 100%;
    /* Историческая слева, спутник справа: в LTR заливка шла бы «от спутника»; rtl совмещает рост % с левой подписью */
    direction: rtl;
  }

  .map-blend-pct {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
  }
}

/* ─── Maps Near You Section ──────────────────────────────────────────────── */

.maps-near-you {
  background: var(--c-surface-elevated);
  border-radius: 14px;
  border-left: 3px solid var(--c-primary);
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-height: 100px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.mny-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
}

.mny-thumb--placeholder {
  background: var(--c-surface);
  min-height: 90px;
}

.maps-near-you[hidden] { display: none; }

.mny-state {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  align-self: stretch;
}

.mny-state[hidden] { display: none; }

.mny-state--requesting,
.mny-state--loading {
  padding: 1rem 0;
}

.mny-spinner {
  /* animation in site-loading.css */
}

.mny-status-text {
  color: var(--c-muted);
  font-size: 0.9rem;
  margin: 0;
}

.mny-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 0.5rem;
  text-align: left;
  width: 100%;
}

.mny-thumbs-grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: none;
  touch-action: pan-x;
}
.mny-thumbs-grid::-webkit-scrollbar { display: none; }

.mny-map-card {
  flex: 0 0 130px;
  min-width: 130px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-surface);
  transition: transform 0.15s ease;
}

.mny-map-card:hover {
  transform: translateY(-2px);
}
.mny-map-card:hover .mny-thumb {
  opacity: 0.92;
}

.mny-thumb {
  width: 130px;
  height: 86px;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}

.mny-map-label {
  padding: 5px 7px 6px;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mny-map-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mny-map-year {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}

.mny-cta {
  margin-top: 0.5rem;
  align-self: flex-start;
  text-decoration: none;
}

/* ─── Live Community Section ─────────────────────────────────────────────── */

.live-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .live-cards-grid {
    grid-template-columns: 1fr;
  }
}

.live-card {
  background: var(--c-surface-elevated);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 3px solid transparent;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

.live-card--fact   { border-left-color: var(--c-primary); }
.live-card--finding { border-left-color: var(--c-secondary); }

/* header row */
.live-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-card__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.live-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.live-card__date {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--c-muted);
}

/* image */
.live-card__img-wrap {
  border-radius: 8px;
  overflow: hidden;
  max-height: 140px;
  background: var(--c-surface);
}

.live-card__img-wrap img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* text body */
.live-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  margin: 0;
}

.live-card__text {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* tags */
.live-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.live-card__tag {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--c-surface);
  color: var(--c-muted);
  white-space: nowrap;
}

/* author row */
.live-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.live-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-surface);
  flex-shrink: 0;
}

.live-card__nickname {
  font-size: 0.78rem;
  color: var(--c-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-card__open-btn {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-secondary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-card__open-btn:hover {
  text-decoration: underline;
}

/* skeleton shimmer */
@keyframes live-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.live-card__skeleton-line {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-surface) 25%, var(--c-surface-highlight) 50%, var(--c-surface) 75%);
  background-size: 800px 100%;
  animation: live-shimmer 1.4s ease-in-out infinite;
}

.live-card__skeleton-img {
  border-radius: 8px;
  height: 100px;
  background: linear-gradient(90deg, var(--c-surface) 25%, var(--c-surface-highlight) 50%, var(--c-surface) 75%);
  background-size: 800px 100%;
  animation: live-shimmer 1.4s ease-in-out infinite;
}

/* hidden state */
.live-card[hidden] { display: none; }

/* ─── Latest Finding card — app-style ───────────────────────────────────── */

.live-card--find {
  border-left: none;
  padding: 1.15rem 1.2rem 1.2rem;
  gap: 0.65rem;
  min-height: 0;
  border: 1px solid rgba(214, 177, 126, 0.16);
  background:
    linear-gradient(168deg, rgba(44, 40, 38, 0.96) 0%, rgba(22, 20, 19, 0.98) 55%, rgba(14, 13, 12, 1) 100%),
    radial-gradient(ellipse 85% 55% at 0% 0%, rgba(245, 166, 35, 0.12), transparent 52%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.live-card--find .live-card__title {
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author row */
.live-card--find .finding-author {
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.finding-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.finding-author__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--c-surface);
}
.finding-author__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
}
.finding-author__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.finding-author__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finding-author__time {
  font-size: 0.72rem;
  color: var(--c-muted);
  line-height: 1;
}

/* Photo — aspect on container only (no max-height on img) */
.live-card--find .finding-card__image {
  border-radius: 14px;
  overflow: hidden;
  background: #0c0b0a;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(72vw, 340px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.live-card--find .finding-card__image--landscape {
  aspect-ratio: 4 / 3;
}

.live-card--find .finding-card__image--portrait {
  aspect-ratio: 3 / 4;
}

.live-card--find .finding-card__image--square {
  aspect-ratio: 1 / 1;
}

.live-card--find .finding-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 641px) {
  .live-card--find .finding-card__image {
    max-height: 280px;
  }
}

/* Meta chips */
.live-card--find .finding-meta {
  padding: 8px 12px;
  margin: 2px 0 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.finding-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.78rem;
  color: var(--c-muted);
}
.finding-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.finding-meta__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.finding-meta__dot--gold { background: var(--c-secondary, #f5a623); }
.finding-meta__dot--teal { background: #14b8a6; }

/* Description clamp */
.finding-desc {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Location */
.finding-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--c-muted);
}
.finding-location__icon {
  flex-shrink: 0;
  color: var(--c-secondary, #f5a623);
}

/* Footer: stats + CTA */
.live-card--find .finding-card__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-card--find .live-card__meta {
  margin-top: 0;
}

/* Stats row */
.live-card--find .finding-stats {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.finding-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.finding-stats__icon { opacity: 0.65; }

/* CTA button */
.live-card--find .finding-cta-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  align-self: stretch;
}

.live-card--find .finding-cta-play img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 100%;
}

.live-card--find .finding-cta-play:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.finding-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--c-secondary, #f5a623);
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  align-self: flex-start;
}
.finding-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .live-card--find .finding-author__avatar,
  .live-card--find .finding-author__avatar--placeholder {
    width: 24px;
    height: 24px;
  }
}

/* ═══════════════════════════════════════
   AI Restoration Demo
═══════════════════════════════════════ */

.ai-demo-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ai-demo-card {
  background: var(--c-surface, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  max-width: min(380px, 100%);
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow 0.3s ease;
}

.ai-demo-card--scanning {
  box-shadow: 0 0 0 2px var(--c-secondary, #f5a623);
}

.ai-demo-card--done {
  box-shadow: 0 0 0 2px #4caf50;
}

.ai-demo-photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 3 / 4;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ai-demo-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.ai-demo-photo--hidden {
  opacity: 0;
}

.ai-demo-photo--result {
  opacity: 0;
  position: absolute;
  inset: 0;
}

.ai-demo-photo--result.ai-demo-photo--visible {
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Scan overlay */
.ai-demo-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
}

.ai-demo-scan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(245,166,35,0.08) 0%,
    rgba(245,166,35,0.04) 100%
  );
}

.ai-demo-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-secondary, #f5a623), transparent);
  box-shadow: 0 0 12px 4px rgba(245,166,35,0.6);
  top: -2px;
}

.ai-demo-scan--running .ai-demo-scan-line {
  animation: ai-scan-move 1.8s linear forwards;
}

@keyframes ai-scan-move {
  0%   { top: -2px; opacity: 1; }
  90%  { top: calc(100% + 2px); opacity: 1; }
  100% { top: calc(100% + 2px); opacity: 0; }
}

/* Badge overlay */
.ai-demo-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  animation: ai-badge-pop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

.ai-demo-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-secondary, #f5a623);
  flex-shrink: 0;
}

@keyframes ai-badge-pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* State labels */
.ai-demo-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.ai-demo-label--result {
  color: #4caf50;
}

/* Actions */
.ai-demo-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ai-demo-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--c-secondary, #f5a623);
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s;
}

.ai-demo-btn:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.ai-demo-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-demo-btn-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.ai-demo-cost {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin: 0;
}

@media (min-width: 640px) {
  .ai-demo-card {
    max-width: min(340px, 100%);
  }
}

/* ─── Map rows ─── */
.mny-row[hidden] {
  display: none;
}

.mny-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  align-self: stretch;
}

.mny-row + .mny-row {
  margin-top: 16px;
}

.mny-row-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.mny-row::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  bottom: 6px;
  width: 32px;
  background: linear-gradient(to right, transparent, var(--c-bg, #0f0e0d));
  pointer-events: none;
  border-radius: 0 10px 10px 0;
}

/* ═══════════════════════════════════════
   Reading-progress bar (top of viewport)
═══════════════════════════════════════ */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.read-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--c-primary, #d97706), var(--c-secondary, #14b8a6));
  transform: scaleX(var(--scroll, 0));
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

@media (prefers-reduced-motion: reduce) {
  .read-progress-bar { transition: none; }
}

/* ═══════════════════════════════════════
   Pillars (3 cards: Карта · ИИ · Команда)
═══════════════════════════════════════ */
.pillar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 1.5rem;
}

.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--c-surface-elevated, #252321);
  border: 1px solid var(--c-border, rgba(255,255,255,0.08));
  border-radius: var(--radius-panel, 16px);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 160px;
  min-width: 0;
  box-sizing: border-box;
}

.pillar-card:hover,
.pillar-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(217,119,6,0.25);
}

.pillar-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--c-primary, #d97706);
  flex-shrink: 0;
}

.pillar-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
}

.pillar-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.pillar-card-arrow {
  position: static;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 4px;
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(255,255,255,0.3);
  transition: transform 0.18s ease, color 0.18s ease;
}

.pillar-card:hover .pillar-card-arrow {
  transform: translateX(4px);
  color: var(--c-primary, #d97706);
}

@media (min-width: 640px) {
  .pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ═══════════════════════════════════════
   AI capabilities 3-up (under demo)
═══════════════════════════════════════ */
.ai-capabilities-3up {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ai-cap-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border-soft, rgba(255,255,255,0.06));
  border-radius: var(--radius-card, 12px);
}

.ai-cap-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  padding-top: 14px;
  position: relative;
}

.ai-cap-card h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--c-primary, #d97706);
  border-radius: 2px;
}

.ai-cap-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--c-muted);
}

.ai-demo-hint {
  text-align: center;
  color: var(--c-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  .ai-capabilities-3up {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* ═══════════════════════════════════════
   Section contextual phone (inline with a caption)
═══════════════════════════════════════ */
.section-phone-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.section-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  max-width: min(280px, 100%);
  min-width: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.section-phone .phone-frame {
  max-width: 220px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.section-phone .clan-screen-photo-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.section-phone-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-phone-caption strong {
  font-size: 1rem;
  color: var(--c-text);
}

.section-phone-caption span {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .section-phone {
    max-width: 320px;
  }
  .section-phone .phone-frame {
    max-width: 260px;
  }
}

/* ═══════════════════════════════════════
   Final CTA — lead under heading
═══════════════════════════════════════ */
.final-cta-lead {
  margin: 12px 0 18px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--c-muted);
  max-width: 44ch;
}

/* ═══════════════════════════════════════
   Mobile-first: horizontal-scroll site-nav
═══════════════════════════════════════ */
@media (max-width: 1099px) {
  .site-nav {
    /* When the burger opens it, allow horizontal scrolling */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ═══════════════════════════════════════
   Maps Near You — idle state (spinner → CTA button)
═══════════════════════════════════════ */
.mny-state--idle {
  padding: 1.25rem 0.5rem 1.5rem;
  min-height: 180px;
  justify-content: center;
}

.mny-idle-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: mny-idle-fade 0.4s ease-out;
}
.mny-idle-loader[hidden] { display: none; }

.mny-idle-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 360px;
  animation: mny-idle-pop 0.45s cubic-bezier(.2,.9,.3,1.2);
}
.mny-idle-cta[hidden] { display: none; }

.mny-idle-headline {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
  line-height: 1.35;
}

.mny-idle-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 38ch;
}

.mny-idle-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--c-muted);
  text-align: center;
  line-height: 1.4;
  opacity: 0.7;
}

.mny-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 56px;
  padding: 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px -8px rgba(0, 122, 255, 0.55);
}
.mny-trigger-btn:hover { transform: translateY(-1px); }
.mny-trigger-btn:active { transform: translateY(0); }
.mny-trigger-btn svg { flex-shrink: 0; }

.mny-state--denied {
  padding: 1rem 0.5rem;
  gap: 1rem;
}

.mny-retry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: transparent;
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.mny-retry-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(217, 119, 6, 0.5);
  transform: translateY(-1px);
}

@keyframes mny-idle-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mny-idle-pop {
  0% { opacity: 0; transform: scale(0.94) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ═══════════════════════════════════════
   #maps — two-phone duo (archive + georef)
═══════════════════════════════════════ */
.section-phone-duo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin: 28px auto 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.section-phone-duo .section-phone {
  max-width: min(220px, 100%);
  margin: 0;
  min-width: 0;
}

.section-phone-duo .section-phone .phone-frame {
  max-width: min(220px, 100%);
}

.section-phone-duo .section-phone .clan-screen-photo-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.section-phone-duo .section-phone img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 24px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
}

.section-phone-duo .section-phone-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--c-muted);
  text-align: center;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .section-phone-duo {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
  }
  .section-phone-duo .section-phone {
    flex: 0 1 220px;
    min-width: 0;
    max-width: 220px;
    width: auto;
  }

  .section-phone-duo .section-phone .phone-frame {
    max-width: 220px;
    width: 100%;
  }
}

/* ═══════════════════════════════════════
   #live — single-column when only finding is shown
═══════════════════════════════════════ */
.live-grid--single {
  grid-template-columns: 1fr !important;
  max-width: min(100%, 420px);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .live-grid--single {
    max-width: min(100%, 440px);
  }
}

/* ═══════════════════════════════════════
   Floating fact bubble (collapsible)
═══════════════════════════════════════ */
.fact-bubble {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 340px;
  width: calc(100vw - 40px);
  pointer-events: none;
}
.fact-bubble[hidden] { display: none; }
.fact-bubble > * { pointer-events: auto; }

.fact-bubble__pill {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--c-surface-elevated, #242220);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--c-primary, #d97706);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.7);
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.fact-bubble__pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.75);
}

.fact-bubble__toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--c-text, #fff);
  min-width: 0;
  font: inherit;
}
.fact-bubble__toggle:focus-visible {
  outline: 2px solid var(--c-primary, #d97706);
  outline-offset: -2px;
}
.fact-bubble__toggle svg {
  flex-shrink: 0;
  color: var(--c-primary, #d97706);
}

.fact-bubble__pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fact-bubble__pill-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary, #d97706);
  line-height: 1;
}
.fact-bubble__pill-preview {
  font-size: 12px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-width: 230px;
}

.fact-bubble__close {
  flex-shrink: 0;
  padding: 0 12px;
  background: none;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.fact-bubble__close:hover {
  color: var(--c-text, #fff);
  background: rgba(255, 255, 255, 0.04);
}
.fact-bubble__close:focus-visible {
  outline: 2px solid var(--c-primary, #d97706);
  outline-offset: -2px;
}

.fact-bubble__card {
  background: var(--c-surface-elevated, #242220);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--c-primary, #d97706);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  animation: fact-card-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  max-height: 70vh;
  overflow-y: auto;
}
.fact-bubble__card[hidden] { display: none; }

.fact-bubble__card .live-card__title {
  font-size: 1rem;
  margin: 0;
}
.fact-bubble__card .live-card__text {
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-line-clamp: unset;
  display: block;
}

@keyframes fact-card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  /* Lift above mobile-floating-cta (bottom: 16px, height ~64px) */
  .fact-bubble {
    bottom: 92px;
  }
}

@media (max-width: 520px) {
  .fact-bubble {
    bottom: 92px;
    right: 12px;
    left: 12px;
    max-width: none;
    width: auto;
  }
  .fact-bubble__pill-preview { max-width: 60vw; }
  .fact-bubble__card { padding: 14px 16px; }
}

/* When CTA is not visible (user hasn't scrolled past hero), restore default position */
@media (max-width: 768px) {
  body:has(.mobile-floating-cta:not(.is-visible)) .fact-bubble {
    bottom: 24px;
  }
}

/* ═══════════════════════════════════════
   Pillars — render as .ai-cap-card on mobile (< 640px)
═══════════════════════════════════════ */
@media (max-width: 639px) {
  .pillar-card {
    padding: 20px;
    min-height: auto;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border-soft, rgba(255, 255, 255, 0.06));
    border-radius: var(--radius-card, 12px);
    box-shadow: none;
  }
  .pillar-card:hover,
  .pillar-card:focus-visible {
    transform: none;
    box-shadow: none;
  }
  .pillar-card-icon,
  .pillar-card-arrow {
    display: none;
  }
  .pillar-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-text);
    padding-top: 14px;
    position: relative;
    margin: 0;
  }
  .pillar-card h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--c-primary, #d97706);
    border-radius: 2px;
  }
  .pillar-card p {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--c-muted);
    margin: 0;
  }
}

/* ═══════════════════════════════════════
   Brand cohesion polish
═══════════════════════════════════════ */

/* Unified eyebrow: tiny amber spark mark before every section label */
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.section-head .eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary, #d97706) 30%, var(--c-primary, #d97706));
  flex-shrink: 0;
  border-radius: 1px;
}

/* Subtle animated accent line under each section h2 for visual rhythm */
.section-head h2 {
  position: relative;
  padding-bottom: 14px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary, #d97706), rgba(217, 119, 6, 0));
  border-radius: 2px;
  transform-origin: left;
  animation: brand-accent-pulse 4s ease-in-out infinite;
}

@keyframes brand-accent-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.9; }
  50%      { transform: scaleX(1.5); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .section-head h2::after { animation: none; }
}

/* Card hover unification — soft amber border glow on key cards */
.pillar-card,
.live-card,
.ai-cap-card,
.mny-map-card {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              box-shadow 0.2s ease;
}

.pillar-card:hover,
.ai-cap-card:hover,
.live-card:hover {
  border-color: rgba(217, 119, 6, 0.32) !important;
  box-shadow: 0 12px 32px -16px rgba(217, 119, 6, 0.35);
}

body.cookie-banner-visible .global-cta-bar {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
.cookie-consent { z-index: 120; font-family: var(--font-sans); }

/* ── AI lab: restoration demo + lab screen side by side ── */
.ai-lab-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
  justify-items: center;
}

.ai-lab-showcase__col--demo {
  width: 100%;
  max-width: 400px;
}

.ai-lab-showcase__col--demo .ai-demo-wrap {
  padding-top: 0;
}

.ai-lab-showcase__col--phone {
  margin: 0;
  max-width: var(--screen-slot-width, 220px);
}

@media (min-width: 900px) {
  .ai-lab-showcase {
    grid-template-columns: minmax(300px, 400px) minmax(180px, var(--screen-slot-width, 220px));
    justify-content: center;
    align-items: start;
    gap: clamp(28px, 5vw, 56px);
  }

  .ai-lab-showcase__col--demo {
    justify-self: end;
  }

  .ai-lab-showcase__col--phone {
    justify-self: start;
    padding-top: 2.5rem;
  }
}

/* ── Carousels: 3 screens visible (must be last — overrides mobile 100% slide) ── */
@media (min-width: 900px) {
  .map-settings-screens-row.landing-carousel-track,
  .arsenal-screens-row.landing-carousel-track,
  .clan-screens-row.landing-carousel-track {
    gap: 16px;
  }

  .map-settings-screens-row.landing-carousel-track .clan-screen-card,
  .arsenal-screens-row.landing-carousel-track .clan-screen-card,
  .clan-screens-row.landing-carousel-track .clan-screen-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
    padding: 0 6px;
    box-sizing: border-box;
  }

  .story-route.landing-carousel-track {
    gap: 16px;
  }

  .story-route.landing-carousel-track .story-step {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
    padding: 0 6px;
    box-sizing: border-box;
  }

  .screen-gallery-outer,
  .story-carousel-outer {
    width: 100%;
    max-width: min(100%, 1200px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1400px) {
  .map-settings-screens-row.landing-carousel-track .clan-screen-card,
  .arsenal-screens-row.landing-carousel-track .clan-screen-card,
  .clan-screens-row.landing-carousel-track .clan-screen-card,
  .story-route.landing-carousel-track .story-step {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: calc((100% - 48px) / 4);
    max-width: calc((100% - 48px) / 4);
  }
}

/* Static carousel: all items visible — centered, no side arrows */
@media (min-width: 900px) {
  :root {
    --screen-slot-width: 210px;
  }

  [data-landing-carousel].carousel--static.screen-gallery-outer,
  [data-landing-carousel].carousel--static.story-carousel-outer {
    padding-left: 0;
    padding-right: 0;
  }

  [data-landing-carousel].carousel--static .carousel-surface-btn {
    display: none !important;
  }

  [data-landing-carousel].carousel--static .landing-carousel-track {
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  [data-landing-carousel].carousel--static .landing-carousel-track::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  [data-landing-carousel].carousel--static .clan-screen-card,
  [data-landing-carousel].carousel--static .story-step {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: calc(var(--screen-slot-width) + 28px) !important;
    width: calc(var(--screen-slot-width) + 28px) !important;
    padding: 0 8px;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
}

/* Mobile header row — must load after legacy .topbar-wrap rules in this file */
@media (max-width: 768px) {
  header.topbar,
  .topbar {
    top: env(safe-area-inset-top, 0px);
    height: var(--topbar-height, 52px);
    min-height: var(--topbar-height, 52px);
    max-height: var(--topbar-height, 52px);
    padding-top: 0;
    padding-bottom: 0;
  }

  .topbar > .container.topbar-wrap,
  header.topbar > .container.topbar-wrap {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 0;
    height: 100%;
    max-height: none;
    padding-top: 0;
    padding-bottom: 0;
    row-gap: 0;
  }

  .topbar .logo,
  .topbar .topbar-end,
  .topbar .menu-toggle,
  .topbar .lang-switch {
    align-self: center;
  }
}
