/* ============================================================
   Aurelia Beauty — Landing Page Styles
   Malina 2 design system. UTF-8.
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ──
   Brand palette lives in the shared css/brand.css (linked by landing.html
   before this file). Only landing-specific layout tokens live here. */
:root {
  --nav-h:          68px;
  --nav-h-sm:       56px;
  --section-gap:    120px;
  --container-max:  1200px;
  --container-pad:  clamp(20px, 5vw, 60px);
}

/* ── Base ── */
html {
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Native fallback for anchor jumps landing under the fixed nav */
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg-base);
  color: var(--fg);
}

body {
  background: var(--bg-base);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

/* Remove the gray tap flash on iOS/Android; kill the 300ms dbl-tap delay */
a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Anchor targets clear the fixed nav even without JS smooth-scroll */
section[id], [id="features"], [id="pricing"], [id="faq"] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -56px;
  left: 0;
  z-index: 99999;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0 !important; }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  /* Landscape-notch phones: never let content slide under the sensor housing */
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
}

/* ── Ambient orbs ── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.30;
  z-index: 0;
  will-change: transform;
}
.orb-gold { width: 600px; height: 600px; background: #E9D6A4; top: -200px; left: -200px; }
.orb-rose { width: 500px; height: 500px; background: #E8C0B0; bottom: -150px; right: -150px; }
.orb-teal { width: 380px; height: 380px; background: #C2D8CD; top: 45%; left: 55%; }

/* ── Typography helpers ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 0.75rem, 3rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--fg-strong);
  text-wrap: balance;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--fg-strong);
  text-wrap: balance;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 12px;
  display: block;
}
.section-sub {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.05rem);
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 580px;
  text-wrap: pretty;
}
.text-accent { color: var(--accent-strong); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 28px;
  min-height: 48px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }

.btn-primary {
  /* Soft metallic gradient + hairline edge + inner highlight = tangible */
  background: linear-gradient(180deg, #D0AD65 0%, var(--gold-300) 55%, #B8934C 100%);
  color: var(--accent-ink);
  border: 1px solid rgba(122, 93, 34, 0.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), var(--shadow-sm);
}
.btn-primary:hover {
  /* Tactile: color deepens, lifts a hair, scales a touch */
  background: linear-gradient(180deg, #C29C52 0%, var(--gold-400) 55%, #A5813C 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
              0 4px 6px -1px rgba(197,160,89,0.25),
              0 10px 24px -8px rgba(118,90,35,0.35);
  transform: translateY(-1px) scale(1.015);
}
.btn-primary:active { background: var(--accent-press); transform: translateY(0) scale(1); }

.btn-ghost {
  background: var(--bg-elev-1);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent-strong);
  background: var(--gold-50);
}

.btn-sm {
  min-height: 38px;
  padding: 4px 18px;
  font-size: 0.82rem;
}

.btn-lg {
  min-height: 56px;
  padding: 8px 36px;
  font-size: 1rem;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-gold {
  background: var(--accent-tint-2);
  border: 1px solid var(--accent-border);
  color: var(--accent-strong);
}

/* ================================================================
   NAV
   ================================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              height var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  height: var(--nav-h-sm);
  background: rgba(253,251,247,0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--accent-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 4px 24px rgba(76,60,28,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-disc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg-strong);
  line-height: 1;
}
.nav-logo-name span { color: var(--accent-strong); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 40px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--fg); background: rgba(44,42,38,0.05); }
.nav-links a:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--radius-md); }

.nav-spacer { flex: 1; }

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

.lang-toggle {
  display: flex;
  gap: 4px;
}
.lang-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  transition: all var(--dur-fast) var(--ease-out);
}
.lang-btn.active {
  background: var(--accent-tint);
  border-color: var(--accent-border);
  color: var(--accent-strong);
}
.lang-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease-out);
}
.nav-hamburger:focus-visible { outline: none; box-shadow: var(--ring-focus); }

/* Mobile nav drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(253,251,247,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--accent-border);
  box-shadow: 0 16px 40px -16px rgba(76,60,28,0.18);
  padding: 20px var(--container-pad) 28px;
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
  z-index: 899;
  flex-direction: column;
  gap: 6px;
  /* Short landscape phones: keep the drawer inside the viewport and scroll */
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-mobile-drawer.open {
  display: flex;
  animation: drawer-in 0.22s var(--ease-out);
}
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* When the nav has shrunk to its scrolled height, dock the drawer to it —
   otherwise a 4–12px gap opens between the bar and the drawer. */
.site-nav.scrolled + .nav-mobile-drawer {
  top: var(--nav-h-sm);
  max-height: calc(100dvh - var(--nav-h-sm));
}
/* Direct children only — the .drawer-actions buttons must keep their own
   .btn-primary/.btn-ghost colors (this rule was painting the gold CTA's
   label white). */
.nav-mobile-drawer > a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out);
}
.nav-mobile-drawer > a:hover { background: rgba(44,42,38,0.05); }
.nav-mobile-drawer .drawer-divider { height: 1px; background: var(--border-soft); margin: 8px 0; }
.nav-mobile-drawer .drawer-actions { display: flex; gap: 10px; margin-top: 8px; }
.nav-mobile-drawer .drawer-actions .btn { flex: 1; justify-content: center; min-height: 44px; }
/* Language toggle relocated into the drawer (the top-bar one is hidden on
   phones so the hamburger fits) — comfortable touch sizing. */
.nav-mobile-drawer .drawer-lang { padding: 2px 2px 4px; }
.nav-mobile-drawer .drawer-lang .lang-btn { padding: 10px 18px; font-size: 13px; min-height: 42px; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  padding: 80px 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--fg-strong);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-strong);
}

.hero-sub {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.1rem);
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-nocrd {
  font-size: 0.78rem;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-nocrd i { width: 14px; height: 14px; color: var(--teal); }

/* ── CSS Product Preview Mockup ── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-shell {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elev-1);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(197,160,89,0.14);
  overflow: hidden;
  animation: mockup-float 5s ease-in-out infinite;
}
@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mockup-topbar {
  background: var(--bg-elev-3);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #C98A80; }
.mockup-dot:nth-child(2) { background: var(--gold-400); }
.mockup-dot:nth-child(3) { background: var(--teal); }
.mockup-topbar-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  flex: 1;
  text-align: center;
  letter-spacing: 0.04em;
}

.mockup-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 320px;
}

.mockup-sidebar {
  background: var(--bg-inset);
  border-right: 1px solid var(--border-soft);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-dim);
  border-radius: 6px;
  margin: 0 6px;
}
.mock-nav-item.active {
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.mock-nav-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
.mock-nav-item.active .mock-nav-icon { opacity: 1; }

.mockup-content { padding: 14px; }

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.mock-stat {
  background: var(--bg-elev-3);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 10px 8px;
}
.mock-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-strong);
  line-height: 1;
  margin-bottom: 3px;
}
.mock-stat-lbl {
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.mock-stat-val.gold { color: var(--accent-strong); }

.mock-sched-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.mock-schedule {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-sched-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 6px;
  align-items: center;
}
.mock-time { font-size: 8px; color: var(--fg-dim); }
.mock-appt {
  height: 22px;
  border-radius: 4px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}
.mock-appt-a { background: rgba(197,160,89,0.16); color: var(--accent-strong); border-left: 3px solid var(--gold-300); }
.mock-appt-b { background: rgba(62,114,102,0.12); color: var(--teal); border-left: 3px solid var(--teal); }
.mock-appt-c { background: rgba(168,98,78,0.12); color: var(--rose); border-left: 3px solid var(--rose); }
.mock-appt-d { background: rgba(197,160,89,0.10); color: var(--gold-500); border-left: 3px solid var(--gold-400); }
.mock-appt-empty { background: var(--bg-base); border: 1px dashed var(--border); color: var(--fg-dim); opacity: 0.6; }

/* ================================================================
   STAT STRIP
   ================================================================ */
.stat-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid var(--border-soft);
  position: relative;
}
.stat-card:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--accent-strong);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.4;
  /* i18n swaps the <br> for \n via textContent — keep the intended break */
  white-space: pre-line;
}

/* ================================================================
   SECTION WRAPPER
   ================================================================ */
.section {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
}
.section-header {
  margin-bottom: 56px;
}
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ================================================================
   FEATURES GRID
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-elev-1);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-xl);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
}
.feature-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--gold-50), var(--gold-100));
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  margin-bottom: 16px;
}
.feature-icon i { width: 20px; height: 20px; }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg-strong);
  margin-bottom: 8px;
  line-height: 1.2;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ================================================================
   BENEFITS (alternating rows)
   ================================================================ */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.benefit-row.reverse { direction: rtl; }
.benefit-row.reverse > * { direction: ltr; }

.benefit-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-elev-1);
  border: 1px solid rgba(212,175,55,0.18);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Benefit visual 1 — calendar/no-shows */
.benefit-visual-1 {
  background: linear-gradient(135deg, var(--bg-elev-1) 0%, var(--bg-inset) 100%);
}
.bv1-inner {
  width: 80%;
}
.bv1-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}
.bv1-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.bv1-av-a { background: rgba(197,160,89,0.20); color: var(--accent-strong); }
.bv1-av-b { background: rgba(62,114,102,0.14); color: var(--teal); }
.bv1-av-c { background: rgba(168,98,78,0.14); color: var(--rose); }
.bv1-info { flex: 1; min-width: 0; }
.bv1-name { font-size: 12px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv1-time { font-size: 10px; color: var(--fg-dim); }
.bv1-confirm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(62,114,102,0.10);
  border-radius: 4px;
  padding: 3px 8px;
}
.bv1-sms {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--fg-dim);
  background: var(--bg-elev-3);
  border-radius: 4px;
  padding: 3px 8px;
}
.bv1-missed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-tint);
  border-radius: 4px;
  padding: 3px 8px;
}

/* Benefit visual 2 — loyalty/rebook */
.benefit-visual-2 {
  background: linear-gradient(135deg, var(--bg-inset) 0%, var(--bg-elev-2) 100%);
  padding: 24px;
  flex-direction: column;
  gap: 12px;
}
.bv2-progress-card {
  width: 100%;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.bv2-title { font-size: 11px; font-weight: 700; color: var(--fg-muted); letter-spacing: 0.05em; margin-bottom: 8px; }
.bv2-bar-bg { background: var(--gold-100); border-radius: 6px; height: 8px; overflow: hidden; margin-bottom: 6px; }
.bv2-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-400), var(--gold-200)); }
.bv2-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--fg-dim); }
.bv2-pts { font-size: 18px; font-weight: 700; color: var(--accent-strong); margin-top: 4px; }
.bv2-pts-label { font-size: 9px; color: var(--fg-dim); }

/* Benefit visual 3 — multi-location */
.benefit-visual-3 {
  background: linear-gradient(135deg, var(--bg-elev-2) 0%, var(--bg-inset) 100%);
  padding: 24px;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.bv3-location {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.bv3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bv3-dot-a { background: var(--gold-300); }
.bv3-dot-b { background: var(--teal); }
.bv3-dot-c { background: var(--rose); }
.bv3-name { font-size: 12px; font-weight: 600; color: var(--fg); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv3-revenue { font-size: 11px; font-weight: 700; color: var(--accent-strong); }
.bv3-active { font-size: 9px; color: var(--teal); background: rgba(62,114,102,0.10); padding: 2px 7px; border-radius: 4px; }

/* Benefit visual 4 — analytics */
.benefit-visual-4 {
  background: linear-gradient(135deg, var(--bg-inset) 0%, var(--bg-elev-1) 100%);
  padding: 24px;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.bv4-kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
.bv4-kpi {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.bv4-kpi-val { font-size: 20px; font-weight: 700; font-family: var(--font-display); color: var(--fg-strong); line-height: 1; }
.bv4-kpi-val.up { color: var(--teal); }
.bv4-kpi-lbl { font-size: 9px; color: var(--fg-dim); margin-top: 4px; letter-spacing: 0.04em; }
.bv4-trend { display: flex; align-items: center; gap: 6px; width: 100%; }
.bv4-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--gold-100); overflow: hidden; }
.bv4-bar-inner { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--gold-400), var(--gold-200)); }
.bv4-trend-label { font-size: 9px; color: var(--fg-dim); white-space: nowrap; }

.benefit-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.benefit-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--fg-strong);
  line-height: 1.2;
  margin: 12px 0 16px;
  text-wrap: balance;
}
.benefit-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.benefit-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.benefit-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.bullet-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.bullet-icon i { width: 10px; height: 10px; color: var(--accent-strong); }

/* ================================================================
   MULTI-LOCATION BAND
   ================================================================ */
.multiloc-band {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.multiloc-inner {
  background: linear-gradient(135deg, var(--bg-elev-1) 0%, var(--bg-elev-2) 55%, var(--gold-50) 100%);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-2xl);
  padding: 72px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.multiloc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint-2);
  border: 1px solid var(--accent-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.multiloc-tag i { width: 14px; height: 14px; }
.multiloc-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--fg-strong);
  line-height: 1.15;
  margin-bottom: 16px;
  /* i18n swaps the <br> for \n via textContent — keep the intended break */
  white-space: pre-line;
}
.multiloc-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.multiloc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.multiloc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.multiloc-chip i { width: 14px; height: 14px; color: var(--accent-strong); }

/* Location map visual (CSS) */
.multiloc-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loc-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.loc-card:hover { border-color: var(--accent-border); }
.loc-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  flex-shrink: 0;
  font-family: var(--font-display);
}
.loc-info { flex: 1; min-width: 0; }
.loc-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.loc-meta { font-size: 11px; color: var(--fg-dim); }
.loc-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.loc-live { background: rgba(62,114,102,0.10); color: var(--teal); }
.loc-setup { background: rgba(197,160,89,0.14); color: var(--gold-500); }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% / 3 + 28px);
  right: calc(50% / 3 + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-border), transparent 20%, transparent 80%, var(--accent-border));
  pointer-events: none;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-elev-1);
  border: 2px solid var(--accent-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg-strong);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-elev-1);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-2xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
}
.pricing-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pricing-card.featured {
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, var(--gold-50) 100%);
  border-color: var(--accent-border);
  box-shadow: 0 0 40px rgba(197,160,89,0.16), var(--shadow-md);
  transform: translateY(-8px);
  position: relative;
}
.pricing-card.featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 60px rgba(197,160,89,0.22), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #D0AD65, var(--gold-300));
  box-shadow: var(--shadow-sm);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.pricing-card.featured .pricing-plan { color: var(--accent-strong); }

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--fg-strong);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup {
  font-size: 1.2rem;
  font-weight: 500;
  vertical-align: top;
  margin-top: 6px;
  margin-right: 2px;
}
.pricing-price sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-muted);
  vertical-align: baseline;
  margin-left: 2px;
}
.pricing-contact { font-size: 1.6rem; font-family: var(--font-display); color: var(--fg-strong); margin-bottom: 4px; }
.pricing-trial {
  font-size: 0.78rem;
  color: var(--fg-dim);
  margin-bottom: 24px;
}
.pricing-card.featured .pricing-trial { color: var(--fg-muted); }

.pricing-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 0 0 24px;
}

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.pricing-features li i {
  width: 16px;
  height: 16px;
  color: var(--accent-strong);
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-features li.dim { color: var(--fg-dim); }
.pricing-features li.dim i { color: var(--fg-dim); opacity: 0.4; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial-card {
  background: var(--bg-elev-1);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-2xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--accent-strong);
}
.testimonial-stars i { width: 14px; height: 14px; }

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.6;
  flex: 1;
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}
.av-a { background: rgba(197,160,89,0.20); color: var(--accent-strong); }
.av-b { background: rgba(62,114,102,0.14); color: var(--teal); }
.av-c { background: rgba(168,98,78,0.14); color: var(--rose); }
.testimonial-name { font-size: 0.875rem; font-weight: 600; color: var(--fg); line-height: 1.2; }
.testimonial-role { font-size: 0.78rem; color: var(--fg-dim); }

/* ================================================================
   FAQ
   ================================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-item:first-child { border-top: 1px solid var(--border-soft); }

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-question:hover { color: var(--accent-strong); }
.faq-question:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--radius-md); }
.faq-question[aria-expanded="true"] { color: var(--accent-strong); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
  color: var(--fg-muted);
}
.faq-icon i { width: 12px; height: 12px; transition: transform var(--dur-med) var(--ease-out); }
.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--accent-tint);
  border-color: var(--accent-border);
  color: var(--accent-strong);
}
.faq-question[aria-expanded="true"] .faq-icon i { transform: rotate(45deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-med) var(--ease-out),
              padding var(--dur-fast) var(--ease-out);
}
.faq-answer.open {
  /* Generous cap — long answers on 320px viewports run past 400px */
  max-height: 640px;
}
.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 0.925rem;
  color: var(--fg-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ================================================================
   FINAL CTA BAND
   ================================================================ */
.cta-band {
  position: relative;
  z-index: 1;
}
.cta-band-inner {
  background: linear-gradient(135deg, var(--bg-elev-1) 0%, var(--bg-elev-2) 55%, var(--gold-50) 100%);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-2xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gold-200);
  filter: blur(120px);
  opacity: 0.35;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--fg-strong);
  margin-bottom: 12px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}
.cta-band-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}
.cta-band-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-band-nocrd {
  font-size: 0.78rem;
  color: var(--fg-dim);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 14px;
}
.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 220px;
  margin-bottom: 16px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.footer-social-btn:hover { border-color: var(--accent-border); color: var(--accent-strong); }
.footer-social-btn i { width: 14px; height: 14px; }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-links a:hover { color: var(--fg); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-dim);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--fg-muted); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .mockup-shell { animation: none !important; }
  .hero-pill-dot { animation: none !important; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
/* Touch devices: hover-lift transforms stick after a tap (the fake hover
   never clears) — keep the color/shadow feedback, drop the movement. */
@media (hover: none) {
  .feature-card:hover,
  .pricing-card:hover,
  .btn-primary:hover { transform: none; }
}

@media (max-width: 1024px) {
  :root { --section-gap: 80px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn:not(.btn-primary) { display: none; }

  /* Headline + CTA first on small screens; the mockup follows */
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 56px; }
  .hero-visual { order: 1; }
  .mockup-shell { max-width: 440px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }

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

  .benefit-row { grid-template-columns: 1fr; gap: 36px; }
  .benefit-row.reverse { direction: ltr; }

  .multiloc-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 36px; }

  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pricing-card.featured { transform: none; order: -1; grid-column: span 2; }
  .pricing-card.featured:hover { transform: translateY(-4px); }

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

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }

  .steps-grid::before { display: none; }
}

/* Mid-width tablets: the two-column pricing/testimonial cards get cramped
   below ~900px — collapse them earlier instead of jumping from 1024 to 640. */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { grid-column: auto; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Phones: the top-bar row (logo + EN/RU + CTA + hamburger ≈ 450px) overflowed
   every phone width and drew the hamburger off-canvas with no way to scroll to
   it. Hide the top-bar language toggle (it lives in the drawer on mobile) and
   give the hamburger a full-size, non-shrinking touch target. */
@media (max-width: 768px) {
  .nav-inner { min-width: 0; }
  .nav-actions { gap: 8px; }
  .nav-actions .lang-toggle { display: none; }
  .nav-hamburger { width: 44px; height: 44px; flex-shrink: 0; }
  .footer-bottom .lang-btn { padding: 9px 16px; min-height: 40px; }

  .section-header { margin-bottom: 44px; }

  /* Three ~150px step columns are unreadable — stack them here, not at 640 */
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .step-card { padding: 0 16px; }
}

@media (max-width: 640px) {
  :root { --section-gap: 60px; --nav-h: 60px; }

  /* Blurred 400–600px orbs are the most expensive paint on the page —
     shrink the effect and drop the mid-screen one on phones */
  .bg-orb { filter: blur(72px); opacity: 0.22; }
  .orb-teal { display: none; }

  .hero-inner { gap: 44px; padding: 32px 0 56px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-sub { margin-bottom: 28px; }

  /* Full-width, wrappable CTAs — the RU labels are far too long for
     fixed-width nowrap pills on a phone */
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-ctas .btn,
  .cta-band-actions .btn,
  .multiloc-text .btn { width: 100%; white-space: normal; }
  .nav-mobile-drawer .drawer-actions .btn { white-space: normal; }

  .mockup-shell { max-width: 100%; }

  /* Clean 2×2 stat grid with cross dividers (the old rules left a stray
     border under only one card of the bottom row) */
  .stat-strip { padding: 36px 0; }
  .stat-card { padding: 24px 16px; border-right: none; border-bottom: none; }
  .stat-card:nth-child(odd) { border-right: 1px solid var(--border-soft); }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px 20px; }

  /* The forced 4:3 box clips the padded flex content on narrow screens —
     let the visuals size to their content instead */
  .benefit-visual { aspect-ratio: auto; min-height: 200px; }
  .benefit-visual-1 { padding: 20px 0; }
  .bv1-inner { width: 88%; }
  .benefit-visual-2,
  .benefit-visual-3,
  .benefit-visual-4 { padding: 20px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 30px 22px; }
  .pricing-card.featured { transform: none; grid-column: auto; }
  .pricing-card.featured:hover { transform: translateY(-4px); }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 24px 20px; }
  .testimonial-quote { font-size: 1.05rem; }

  .faq-question { padding: 18px 0; font-size: 0.95rem; }

  .cta-band-inner { padding: 48px 24px; }

  /* Brand on its own row, link columns paired underneath */
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .multiloc-inner { padding: 36px 22px; }
}

@media (max-width: 480px) {
  /* Keep logo + CTA + hamburger comfortably inside a 320px viewport */
  .nav-actions .btn-primary { padding: 8px 12px; font-size: 0.8rem; }
  .nav-logo { gap: 8px; }
  .nav-logo-disc { width: 34px; height: 34px; font-size: 17px; }
  .nav-logo-name { font-size: 1.05rem; }

  .nav-mobile-drawer .drawer-actions { flex-direction: column; }

  /* Mockup sidebar collapses to an icon rail so the schedule stays legible;
     let the body hug its content instead of forcing dead space below */
  .mockup-body { grid-template-columns: 46px 1fr; min-height: 0; }
  .mockup-sidebar { padding: 12px 0; }
  .mock-nav-item { font-size: 0; gap: 0; justify-content: center; padding: 10px 0; margin: 0 7px; }
  .mock-nav-icon { width: 15px; height: 15px; }

  .section-header { margin-bottom: 36px; }

  .pricing-price { font-size: 2.6rem; }
  .cta-band-inner { padding: 44px 20px; }
  .multiloc-inner { padding: 32px 18px; }
}

@media (max-width: 360px) {
  :root { --container-pad: 16px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary { padding: 8px 10px; font-size: 0.76rem; }
  /* Logo disc + CTA + hamburger can't share 320px with the wordmark too —
     the wordmark was colliding with the CTA. Disc-only branding here. */
  .nav-logo-name { display: none; }
  .feature-card { padding: 20px 16px; }
}

/* Short landscape phones: don't force a full-viewport hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 0 48px; }
}
