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

/* -- Qurio Design System — Scope360 Dark Edition -- */
:root {
  --bg: #0B0D12;
  --surface: #101011;
  --ink: #F7F8F8;
  --ink2: #D1D5DB;
  --muted: #8E8E93;
  --soft: #515151;
  --border: #292929;
  --accent: #007AFF;
  --accent-h: #004DA1;
  --accent-lt: rgba(0, 122, 255, .1);
  --violet: #007AFF;
  --pink: #007AFF;
  --green: #56B683;
  --green-lt: rgba(86, 182, 131, .1);
  --red: #F18169;
  --red-lt: rgba(241, 129, 105, .1);
  --neon: #01BAF9;
  --grad: linear-gradient(135deg, #0039FF 0%, #01BAF9 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 57, 255, .06) 0%, rgba(1, 186, 249, .06) 100%);
  --glass-bg: rgba(16, 16, 17, .85);
  --glass-border: #292929;
  --glass-blur: blur(20px);
  --shadow: 0 4px 16px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
  --glow: none;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-btn: 10px;
  --nav-h: 64px;
  --section-w: 1200px;
  --ease: 0.25s cubic-bezier(.4, 0, .2, 1);
  color-scheme: dark;
}

/* Light theme disabled: keep dark palette even if old settings request light */
[data-theme="light"] {
  --bg: #0B0D12;
  --surface: #101011;
  --ink: #F7F8F8;
  --ink2: #D1D5DB;
  --muted: #8E8E93;
  --soft: #515151;
  --border: #292929;
  --accent: #007AFF;
  --accent-h: #004DA1;
  --accent-lt: rgba(0, 122, 255, .1);
  --green-lt: rgba(86, 182, 131, .1);
  --red-lt: rgba(241, 129, 105, .1);
  --glass-bg: rgba(16, 16, 17, .85);
  --glass-border: #292929;
  --shadow: 0 4px 16px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
  --glow: none;
  color-scheme: dark;
}

[data-theme="dark"] {
  --bg: #0B0D12;
  --surface: #101011;
  --ink: #F7F8F8;
  --ink2: #D1D5DB;
  --muted: #8E8E93;
  --soft: #515151;
  --border: #292929;
  --accent-lt: rgba(0, 122, 255, .1);
  --green-lt: rgba(86, 182, 131, .1);
  --red-lt: rgba(241, 129, 105, .1);
  --glass-bg: rgba(16, 16, 17, .85);
  --glass-border: #292929;
  --shadow: 0 4px 16px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
  --glow: none;
  color-scheme: dark;
}


html {
  /* smooth scroll for anchor navigation buttons (Можливості, Ціни etc.)
     JS scrollTo({behavior:'instant'}) overrides this for page navigation */
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  padding-top: env(safe-area-inset-top, 0px);
}

body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
  font-size: 16px;
  line-height: 1.6;
}

/* Dark-only site: hide theme switch controls */
.theme-toggle {
  display: none !important;
}

#settings-theme-row {
  display: none !important;
}

/* Skip-to-content link — hidden offscreen, visible only on Tab focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: .5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
  pointer-events: auto;
}

/* Back-to-top button — hidden by default */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}

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

.back-to-top:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* ═══ Background — Scope360 flat dark + subtle blob ═══ */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  contain: layout style;
  background-color: #0B0D12;
}

[data-theme="light"] .bg-blobs {
  background-color: #0B0D12;
}

[data-theme="dark"] .bg-blobs {
  background-color: #0B0D12;
}

/* Child blob divs — hidden */
.bg-blob-1,
.bg-blob-2,
.bg-blob-3,
.bg-blob-4,
.bg-blob-5 {
  display: none;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .bg-blobs {
    animation: none;
  }

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


/* ── Typography ── */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink)
}

.heading-xl {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.heading-lg {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.heading-md {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}

.text-muted {
  color: var(--muted)
}

.text-accent {
  color: var(--accent)
}

/* -- Logo -- */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none
}

.logo span {
  color: var(--ink)
}

/* ── Page system ── */
/* DEFINITIVE FIX: padding-top = nav height means the FIRST pixel of content
   in any page starts exactly below the fixed navbar, regardless of scrollY.
   This eliminates the "content behind nav" bug completely. */
.page {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  /* Push all page content below the fixed navbar */
  padding-top: var(--nav-h);
  background: transparent;
  /* Flex column so footer sticks to the bottom */
  flex-direction: column;
}

.page.active {
  display: flex
}

/* Make the main content section grow to fill available space */
.page>section {
  flex-grow: 1;
}

/* -- Navbar (Paddle-style dark bar) -- */
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 3rem);
  background: rgba(10, 10, 14, .92);
  border-bottom: 1px solid #292929;
  transition: box-shadow var(--ease);
}

[data-theme="light"] .nav {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: #E2E4EC;
}

[data-theme="dark"] .nav {
  background: rgba(10, 10, 14, .92);
  border-bottom-color: #292929;
}

/* ── Paddle-style landing nav — theme-aware ── */
.nav.nav-paddle {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  justify-content: center;
  padding: 0 clamp(1rem, 3vw, 3rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-paddle-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: space-between;
}

.nav.nav-paddle .logo {
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav.nav-paddle .logo span {
  color: var(--ink);
}

.nav.nav-paddle .nav-link {
  color: var(--muted);
}

.nav.nav-paddle .nav-link:hover {
  color: var(--ink);
}

.nav.nav-paddle .nav-link::after {
  background: var(--ink);
}

.nav.nav-paddle .nav-right {
  flex-shrink: 0;
}

.nav.nav-paddle .hamburger {
  color: var(--ink);
}

.nav.nav-paddle .theme-toggle {
  color: var(--muted);
}

.nav.nav-paddle .nav-lang-btn {
  color: var(--muted);
  border-color: var(--border);
  font-size: .75rem;
  padding: .25rem .5rem;
  min-width: 32px;
  font-weight: 700;
}

.nav.nav-paddle .nav-lang-btn:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* Login button — text style with chevron */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  padding: .4rem .5rem;
  transition: color .2s;
  font-family: inherit;
}

.nav-login-btn:hover {
  color: var(--ink);
}

/* CTA button — Scope360 blue pill */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  background: #007AFF;
  border: none;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  padding: .5rem 1.25rem;
  border-radius: 10px;
  transition: all .2s ease;
  font-family: inherit;
  letter-spacing: -.01em;
  box-shadow: none;
}

[data-theme="dark"] .nav-cta-btn {
  background: #007AFF;
  color: #fff;
}

.nav-cta-btn:hover {
  background: #004DA1;
  transform: translateY(-1px);
  box-shadow: none;
}

/* Dark-theme adjustments for paddle nav */
[data-theme="dark"] .nav.nav-paddle {
  background: rgba(10, 10, 14, .92);
  border-bottom-color: #292929;
}

/* Paddle nav logo — switching handled by JS updateThemeIcon */

.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06)
}

.nav.nav-paddle.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--ease);
  position: relative
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: width var(--ease)
}

.nav-link:hover {
  color: var(--ink)
}

.nav-link:hover::after {
  width: 100%
}

.nav-right {
  display: flex;
  gap: .75rem;
  align-items: center
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--ink)
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem
}

/* Theme-aware mobile menu for landing (paddle nav) */
.page.active:has(.nav-paddle)~.mobile-menu,
body:has(.nav-paddle) .mobile-menu {
  background: var(--bg);
}

body:has(.nav-paddle) .mobile-menu .nav-link {
  color: var(--muted);
}

body:has(.nav-paddle) .mobile-menu .nav-link:hover {
  color: var(--ink);
}

body:has(.nav-paddle) .mobile-menu hr {
  border-top-color: var(--border) !important;
}

body:has(.nav-paddle) .mobile-menu .btn-primary {
  background: var(--ink);
  color: var(--bg);
}

body:has(.nav-paddle) .mobile-menu .btn-ghost {
  color: var(--muted);
  border-color: var(--border);
}

.mobile-menu.open {
  display: flex
}

.mobile-menu .nav-link {
  font-size: 1.125rem
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  padding: .625rem 1.25rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  line-height: 1
}

.btn-primary {
  background: #007AFF;
  color: #fff;
  box-shadow: none;
  border-radius: var(--radius-btn);
}

.btn-primary:hover {
  background: #004DA1;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-primary:active {
  transform: translateY(0) scale(.98);
  box-shadow: none;
}

[data-theme="dark"] .btn-primary {
  background: #007AFF;
  color: #fff;
  box-shadow: none;
}

[data-theme="dark"] .btn-primary:hover {
  background: #004DA1;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-btn);
}

[data-theme="dark"] .btn-outline {
  background: transparent;
  color: #F7F8F8;
  border: 1.5px solid #3E3E3E;
}

.btn-outline:hover {
  background: var(--accent-lt);
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(0, 122, 255, .08);
  border-color: #007AFF;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
}

[data-theme="dark"] .btn-ghost {
  background: #292929;
  border-color: #3E3E3E;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .05);
  border-color: var(--muted);
  color: var(--ink);
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255, 255, 255, .05);
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1.5px solid rgba(220, 38, 38, .2)
}

.btn-danger:hover {
  background: var(--red-lt)
}

.btn-lg {
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
  min-height: 52px;
  height: 52px;
  line-height: 52px
}

.btn-sm {
  padding: .5rem 1rem;
  font-size: .8125rem
}

.btn-block {
  width: 100%
}

.btn-google {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
  max-width: 320px;
  align-self: center
}

.btn-google.btn-block {
  width: 100%;
  max-width: 100%
}

.btn-google:hover {
  background: var(--bg);
  border-color: var(--muted)
}

.btn:disabled {
  opacity: .5;
  pointer-events: none
}

/* Pricing CTA — outlined pill (Scope360 blue) */
.btn-glow-pricing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: transparent;
  color: #007AFF;
  border: 1.5px solid #007AFF;
  padding: .875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -.01em;
  transition: all .3s ease;
}

[data-theme="dark"] .btn-glow-pricing {
  color: #007AFF;
  border-color: #007AFF;
}

.btn-glow-pricing:hover {
  background: rgba(0, 122, 255, .1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, .15);
}

[data-theme="dark"] .btn-glow-pricing:hover {
  background: rgba(0, 122, 255, .1);
  box-shadow: 0 4px 12px rgba(0, 122, 255, .15);
}

/* -- Cards -- */
.card {
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all .25s ease;
}

[data-theme="dark"] .card {
  background: #101011;
  border-color: #292929;
}

.card:hover {
  transform: none;
  border-color: #3E3E3E;
  box-shadow: none;
}

/* ── Section ── */
.section {
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
}

.section-inner {
  max-width: var(--section-w, 1200px);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-top: .75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════════════════
   HERO — Premium split layout with phone mockups
   ══════════════════════════════════════════════════════ */
.hero {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 2rem;
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
}

.hero::before,
.hero::after {
  display: none;
}

/* ── Hero Split Layout ── */
.hero-split .hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: var(--section-w);
  margin: 0 auto;
  width: 100%;
}

.hero-split .hero-text {
  flex: 0 0 58%;
  max-width: 58%;
  text-align: left;
}

.hero-split .hero-visual {
  flex: 0 0 42%;
  max-width: 42%;
  position: relative;
  perspective: 1200px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 1.25rem 0 2rem;
  line-height: 1.7;
}

.hero-split .hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 100%;
}

.hero-split .hero-actions .hero-action-btn {
  min-width: 0 !important;
  flex: 0 1 auto;
  padding-inline: 1.35rem;
  font-size: .95rem;
}

.hero-pricing-wrap {
  margin-top: 1rem;
}

.hero-pricing-btn {
  white-space: nowrap;
  padding-inline: 1.35rem;
  font-size: .95rem;
}

.hero-trust {
  color: var(--muted);
  font-size: .875rem;
  margin-top: 1.25rem;
  opacity: .8;
}

/* Hero heading — Scope360-style large bold with tight letter-spacing */
.hero-text .heading-xl {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.heading-xl.grad {
  color: var(--ink);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--ink);
  background-clip: unset;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1)
  }

  50% {
    transform: translate(40px, 30px) scale(1.08)
  }

  100% {
    transform: translate(-20px, -40px) scale(.95)
  }
}

/* ══════════════════════════════════════════════════════
   PHONE FRAMES — Samsung S25 Ultra mockup
   ══════════════════════════════════════════════════════ */
.phone-frame {
  border-radius: 28px;
  border: 3px solid #2A2A2E;
  background: #111;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .12);
  overflow: hidden;
  position: relative;
  transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

[data-theme="light"] .phone-frame {
  border-color: #D1D1D6;
  background: #f8f8f8;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .08);
}

/* Phone demo inside frame */
.phone-frame .phone-demo {
  margin: 0;
  border-radius: 12px;
}

/* Camera punch-hole (S25 Ultra style — small centered circle) */
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 50%;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, .08);
}

[data-theme="light"] .phone-notch {
  background: #ddd;
  border-color: rgba(0, 0, 0, .1);
}

/* Static phone statusbar (second phone) */
.phone-screen-static .phone-statusbar {
  font-size: .55rem;
  padding: .3rem .5rem;
}

/* Main phone — larger, gentle float */
.phone-main {
  width: 280px;
  z-index: 3;
  animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Secondary phone — smaller, slight offset tilt */
.phone-secondary {
  width: 200px;
  position: absolute;
  right: -30px;
  bottom: -10px;
  z-index: 1;
  opacity: .85;
  animation: phoneFloat2 6s ease-in-out infinite;
}

@keyframes phoneFloat2 {

  0%,
  100% {
    transform: rotate(3deg) scale(.82) translateY(0);
  }

  50% {
    transform: rotate(3deg) scale(.82) translateY(-8px);
  }
}

/* Static result screen for secondary phone */
.phone-screen-static {
  min-height: 340px;
  background: #F2F2F7;
  display: flex;
  flex-direction: column;
  padding: 0;
}

[data-theme="dark"] .phone-screen-static {
  background: #111;
}

.static-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: .5rem;
}

.static-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(46, 139, 87, .15);
  color: #2E8B57;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.static-result-text {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
}

.static-result-answer {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}

.static-result-meta {
  font-size: .625rem;
  color: var(--muted);
  opacity: .7;
}

/* ══════════════════════════════════════════════════════
   GLASS FLOAT — Glassmorphism floating badge cards
   ══════════════════════════════════════════════════════ */
.glass-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  pointer-events: none;
}

[data-theme="light"] .glass-float {
  background: rgba(255, 255, 255, .75);
  border-color: rgba(0, 0, 0, .08);
  color: var(--ink);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
}

/* Positions & animations for each badge */
.glass-float-1 {
  top: 8%;
  left: -30px;
  animation: glassBob1 4s ease-in-out infinite;
}

.glass-float-2 {
  top: 25%;
  right: -20px;
  animation: glassBob2 5s ease-in-out infinite;
}

.glass-float-3 {
  bottom: 28%;
  left: -40px;
  animation: glassBob3 4.5s ease-in-out infinite;
}

.glass-float-4 {
  bottom: 10%;
  right: -10px;
  animation: glassBob4 5.5s ease-in-out infinite;
}

@keyframes glassBob1 {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes glassBob2 {

  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }

  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes glassBob3 {

  0%,
  100% {
    transform: translateY(0) rotate(0.5deg);
  }

  50% {
    transform: translateY(-12px) rotate(-0.5deg);
  }
}

@keyframes glassBob4 {

  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }

  50% {
    transform: translateY(-6px) rotate(0.5deg);
  }
}

/* ══════════════════════════════════════════════════════
   COUNTER ROW — Animated stat counters
   ══════════════════════════════════════════════════════ */
.counter-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.counter-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}

.counter-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   SCROLL PROMPT — Bouncing arrow at bottom of hero
   ══════════════════════════════════════════════════════ */
.scroll-prompt {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
  opacity: .7;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
}

.scroll-prompt svg {
  width: 18px;
  height: 18px;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: .7;
  }

  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 1;
  }
}

/* ══════════════════════════════════════════════════════
   HERO RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-split .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-split .hero-text {
    flex: 1;
    max-width: 100%;
    text-align: center;
  }

  .hero-split .hero-visual {
    flex: 1;
    max-width: 100%;
    min-height: 400px;
    margin-top: 1rem;
  }

  .hero-split .hero-actions {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .counter-row {
    justify-content: center;
  }

  .counter-item {
    align-items: center;
  }

  .hero-trust {
    text-align: center;
  }

  .phone-secondary {
    right: -15px;
    bottom: -15px;
    width: 170px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 3rem;
  }

  .hero-split .hero-inner {
    text-align: center;
  }

  .hero-split .hero-text {
    max-width: 100%;
  }

  .hero-split .hero-visual {
    display: none;
  }

  .hero-split .hero-actions {
    justify-content: center;
  }

  .counter-row {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .counter-sep {
    display: none;
  }

  .counter-item {
    align-items: center;
  }

  .counter-value {
    font-size: 1.5rem;
  }

  .hero-trust {
    text-align: center;
  }

  .scroll-prompt {
    display: none;
  }
}

@media (max-width: 480px) {
  .counter-item {
    flex: 0 0 40%;
  }
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em
}

.stat-label {
  color: var(--muted);
  font-size: .875rem;
  margin-top: .25rem
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.feature-card {
  padding: 2rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--accent);
  transition: all .3s ease;
}

[data-theme="dark"] .feature-icon {
  background: rgba(0, 122, 255, .1);
  color: #007AFF;
}

.card:hover .feature-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 4px 20px rgba(0, 122, 255, .25);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55;
}

/* ── App Panel Replica ── */
.demo-wrap {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: center
}

.app-panel {
  width: 340px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden
}

[data-theme="dark"] .app-panel {
  background: rgba(10, 10, 10, .95);
  box-shadow: none;
}

.app-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}

.app-panel-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #1C1C1E
}

[data-theme="dark"] .app-panel-label {
  color: #F5F5F5
}

.app-panel-label svg {
  width: 14px;
  height: 14px;
  color: #4A9EF5
}

.app-panel-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600
}

.app-panel-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2E8B57
}

.app-panel-status span {
  color: #2E8B57
}

.app-panel-divider {
  height: 1px;
  background: #E0E4EE;
  margin-bottom: 10px
}

[data-theme="dark"] .app-panel-divider {
  background: rgba(255, 255, 255, .08)
}

.app-panel-result {
  background: #F0F4FF;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  transition: opacity .3s ease
}

[data-theme="dark"] .app-panel-result {
  background: rgba(74, 158, 245, .08)
}

.app-panel-result p {
  color: #2E8B57;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0
}

[data-theme="dark"] .app-panel-result p {
  color: #4ADE80
}

.app-panel-meta {
  font-size: 9px;
  color: #5A5A6A;
  margin-bottom: 10px;
  padding-left: 2px
}

[data-theme="dark"] .app-panel-meta {
  color: #9CA3AF
}

.app-panel-buttons {
  display: flex;
  gap: 6px
}

.app-panel-btn {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: default;
  font-family: 'Inter', sans-serif;
  border: none;
  transition: all .2s ease
}

.app-panel-btn.outline {
  background: transparent;
  color: #5A5A6A;
  border: 1.5px solid #E0E4EE
}

[data-theme="dark"] .app-panel-btn.outline {
  border-color: rgba(255, 255, 255, .1);
  color: #9CA3AF
}

.app-panel-btn.primary {
  background: #4A9EF5;
  color: #fff;
  flex: 1.2
}

.app-panel-btn.primary.pressing {
  animation: btnPress .35s ease;
}

@keyframes btnPress {
  0% {
    transform: scale(1)
  }

  35% {
    transform: scale(1.13)
  }

  70% {
    transform: scale(1.06)
  }

  100% {
    transform: scale(1)
  }
}

.app-panel-btn svg {
  width: 12px;
  height: 12px
}

/* Loading state */
.app-panel-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
  font-size: 11px;
  color: #5A5A6A;
  font-weight: 500
}

.app-panel-loading.show {
  display: flex
}

.app-panel-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #E0E4EE;
  border-top-color: #4A9EF5;
  border-radius: 50%;
  animation: spin .7s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* ── Phone Demo ── */
.phone-demo {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto
}

.phone-screen {
  width: 320px;
  min-height: 520px;
  background: #F2F2F7;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column
}

[data-theme="dark"] .phone-screen {
  background: #111111;
  box-shadow: none;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1C1C1E
}

[data-theme="dark"] .phone-statusbar {
  color: #F5F5F5
}

.phone-statusbar-right {
  display: flex;
  gap: 4px;
  align-items: center
}

.phone-statusbar-right svg {
  width: 14px;
  height: 14px
}

/* Test content */
.phone-test {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.test-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8E8E93;
  padding: 0 2px
}

.test-question-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06)
}

[data-theme="dark"] .test-question-card {
  background: #2C2C2E
}

.test-question-num {
  font-size: 9px;
  font-weight: 700;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px
}

.test-question-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #1C1C1E;
  margin-bottom: 12px
}

[data-theme="dark"] .test-question-text {
  color: #F5F5F5
}

.test-options {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.test-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #F8F8FA;
  border-radius: 8px;
  font-size: 11px;
  color: #1C1C1E;
  border: 1.5px solid transparent;
  transition: all .3s ease;
  cursor: default
}

[data-theme="dark"] .test-option {
  background: #3A3A3C;
  color: #F5F5F5
}

.test-option-letter {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #E8E8ED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  color: #636366;
  flex-shrink: 0;
  transition: all .3s ease
}

[data-theme="dark"] .test-option-letter {
  background: #48484A;
  color: #AEAEB2
}

.test-option.correct {
  border-color: #2E8B57;
  background: #F0FFF5
}

[data-theme="dark"] .test-option.correct {
  background: rgba(46, 139, 87, .12)
}

.test-option.correct .test-option-letter {
  background: #2E8B57;
  color: #fff
}

.test-option.wrong {
  border-color: #D94040;
  background: #FFF5F5
}

/* Overlay in phone */
.phone-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 5
}

/* Drag handle hint */
.app-panel-drag-hint {
  width: 32px;
  height: 3px;
  background: rgba(0, 0, 0, .12);
  border-radius: 99px;
  margin: 0 auto 8px;
  cursor: grab
}

[data-theme="dark"] .app-panel-drag-hint {
  background: rgba(255, 255, 255, .15)
}

.phone-overlay .app-panel {
  width: 100%;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .1), 0 4px 20px rgba(0, 0, 0, .08)
}

/* ── Demo Split: Phone left + Text right ── */
.demo-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.demo-split-phone {
  flex: 0 0 auto;
  position: relative;
}

.demo-split-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

/* Story cards */
.demo-story {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  width: 100%;
}

.demo-story-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.demo-story-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-lt, rgba(99, 102, 241, .08));
  border-radius: 12px;
  color: var(--accent, #6366F1);
  border: 1.5px solid rgba(99, 102, 241, .15);
}

[data-theme="dark"] .demo-story-icon {
  background: rgba(99, 102, 241, .1);
  color: #A5B4FC;
  border-color: rgba(163, 180, 252, .2);
}

.demo-story-icon .lucide {
  width: 22px;
  height: 22px;
}

.demo-story-item h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--ink);
}

.demo-story-item p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Arrow pointing at Search button — absolutely positioned */
.demo-curved-arrow {
  position: absolute;
  /* Aligned with the center of the "Пошук" button */
  bottom: 28px;
  left: calc(100% + 12px);
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  opacity: .85;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.demo-arrow-icon {
  width: 22px;
  height: 22px;
  transform: scaleX(-1) rotate(180deg);
}

.demo-arrow-label {
  letter-spacing: .01em;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .demo-center {
    flex-direction: column;
    align-items: center;
  }

  .demo-split-text {
    padding-top: 1.5rem;
  }

  .demo-curved-arrow {
    position: static;
    justify-content: center;
    margin-top: .75rem;
  }

  .demo-arrow-icon {
    transform: rotate(180deg);
  }
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.testimonial-card {
  padding: 1.5rem
}

.testimonial-text {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--ink2);
  margin-bottom: 1rem;
  font-style: italic
}

.testimonial-author {
  font-size: .8125rem;
  font-weight: 600
}

.testimonial-role {
  font-size: .75rem;
  color: var(--muted)
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto
}

.pricing-card {
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-lg)
}

[data-theme="dark"] .pricing-card.popular {
  border-color: rgba(240, 238, 255, .5);
  box-shadow: 0 0 0 1px rgba(240, 238, 255, .5), var(--shadow-lg)
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 99px
}

[data-theme="dark"] .pricing-badge {
  background: rgba(240, 238, 255, .12);
  color: var(--ink);
  border: 1px solid rgba(240, 238, 255, .3)
}

.pricing-title {
  font-size: 1.125rem;
  font-weight: 700
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: .75rem 0 .25rem;
  letter-spacing: -.03em
}

.pricing-price span {
  font-size: .875rem;
  font-weight: 400;
  color: var(--muted)
}

.pricing-subtitle {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1.25rem
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 1.5rem;
  flex: 1;
}


.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: var(--ink2)
}

.pricing-features .check {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px
}

.pricing-features .x-mark {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .6
}

.pricing-limit {
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: .5rem .75rem;
  background: var(--accent-lt);
  border-radius: var(--radius-sm)
}

/* -- Auth -- */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  /* page already has padding-top: nav-h, just add inner spacing */
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  padding: 2rem clamp(1rem, 3vw, 3rem);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  background: #FFFFFF;
  border: 1px solid #EBEBEB;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .04);
  position: relative;
}

[data-theme="dark"] .auth-card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.auth-card::before {
  display: none;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: .375rem;
  color: var(--ink);
}

.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.auth-foot {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .8125rem;
  color: var(--muted)
}

.auth-foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--soft);
  font-size: .8125rem
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border)
}

/* ── Form ── */
.field {
  margin-bottom: 1rem
}

.field label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: .375rem
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem 1rem;
  font-size: .9375rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  box-sizing: border-box;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsla(245, 80%, 60%, .15);
}

.field input.error {
  border-color: var(--red)
}

.field .err-text {
  display: none;
  color: var(--red);
  font-size: .75rem;
  margin-top: .25rem
}

.field input.error~.err-text {
  display: block
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between
}

/* Toggle */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer
}

.toggle input {
  display: none
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 99px;
  transition: background var(--ease)
}

.toggle input:checked+.toggle-track {
  background: var(--accent)
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
}

.toggle input:checked~.toggle-thumb {
  transform: translateX(20px)
}

/* ── Dashboard ── */
.dash-wrap {
  padding-top: calc(var(--nav-h) + 2rem);
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem
}

.search-box {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.5rem
}

.search-box input {
  flex: 1;
  padding: .75rem 1rem;
  font-size: .9375rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color var(--ease)
}

.search-box input:focus {
  border-color: var(--accent)
}

.result-box {
  display: none;
  padding: 1.5rem;
  margin-bottom: 2rem
}

.result-box.show {
  display: block
}

.result-text {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--ink2)
}

/* ── Settings ── */
.settings-wrap {
  padding-top: calc(var(--nav-h) + 2rem);
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 4rem
}

.settings-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem
}

.settings-section {
  margin-bottom: 2rem
}

.settings-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .75rem;
  padding-left: .25rem
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease)
}

.settings-row:last-child {
  border-bottom: none
}

.settings-row:hover {
  background: rgba(99, 102, 241, .02)
}

[data-theme="dark"] .settings-row:hover {
  background: rgba(255, 255, 255, .02)
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: .875rem;
  min-width: 0
}

.settings-row-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Match feature icons: green-lavender gradient */
  background: linear-gradient(135deg, hsla(120, 50%, 85%, .8) 0%, hsla(270, 55%, 88%, .7) 100%);
  border-radius: var(--radius-sm);
  color: #2d7a47;
  flex-shrink: 0
}

[data-theme="dark"] .settings-row-icon {
  background: linear-gradient(135deg, hsla(120, 40%, 25%, .6) 0%, hsla(270, 45%, 28%, .5) 100%);
  color: #4ade80
}

.settings-row-icon.danger {
  background: var(--red-lt);
  color: var(--red)
}

[data-theme="dark"] .settings-row-icon.danger {
  background: var(--red-lt);
  color: var(--red)
}

.settings-row-text h4 {
  font-size: .875rem;
  font-weight: 600
}

.settings-row-text p {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: .125rem
}

.settings-row-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .5rem
}

.settings-value {
  font-size: .8125rem;
  color: var(--muted)
}

/* Plan badge */
.plan-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .625rem;
  border-radius: 99px
}

.plan-free {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted)
}

.plan-pro {
  background: var(--accent-lt);
  color: var(--accent)
}

/* ── Avatar ── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.125rem
}

/* ── Dropdown ── */
.dropdown {
  position: relative
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .375rem;
  z-index: 200
}

.dropdown-menu.open {
  display: block
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  font-size: .8125rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease);
  border: none;
  background: none;
  width: 100%;
  font-family: inherit
}

.dropdown-item:hover {
  background: var(--accent-lt)
}

.dropdown-item.danger {
  color: var(--red)
}

.dropdown-item.danger:hover {
  background: var(--red-lt)
}

/* ── Modals ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .4);
  align-items: center;
  justify-content: center;
  padding: 1rem
}

.modal-backdrop.open {
  display: flex
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg)
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .375rem
}

.modal-sub {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1.25rem
}

.modal-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1.25rem
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  /* Empty toast = zero size, no padding */
  padding: 0;
  max-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
  transition: transform .3s ease, max-height .3s ease, padding .3s ease, box-shadow .3s ease;
  z-index: 999;
  white-space: nowrap;
  pointer-events: none
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  padding: .75rem 1.25rem;
  max-height: 80px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto
}

.toast.success {
  background: #059669;
  color: #fff
}

.toast.error {
  background: var(--red);
  color: #fff
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1rem, 3vw, 3rem);
  text-align: center;
  font-size: .8125rem;
  color: var(--muted)
}

/* ── Dark mode toggle ── */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--ease)
}

.theme-toggle:hover {
  border-color: var(--muted);
  color: var(--ink)
}

/* -- Responsive -- */
@media (max-width: 768px) {
  .nav-links {
    display: none
  }

  .hamburger {
    display: flex
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem
  }

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    /* .page already offsets by nav height, hero just needs breathing room */
    padding-top: 3rem;
    padding-bottom: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .heading-xl {
    font-size: clamp(1.75rem, 8vw, 2.5rem)
  }

  .hero-sub {
    font-size: 1rem
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .section {
    padding: 3rem 1rem
  }

  .auth-card {
    padding: 1.75rem 1.5rem
  }

  .settings-row {
    padding: .875rem 1rem
  }

  .phone-demo {
    padding: 0 1rem
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  .heading-xl {
    font-size: 1.75rem;
  }

  .btn-lg {
    font-size: .9375rem;
  }
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease
}

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

/* ── Lucide icon sizing ── */
.lucide {
  width: 20px;
  height: 20px;
  stroke-width: 2
}

.lucide-sm {
  width: 16px;
  height: 16px
}

.lucide-lg {
  width: 24px;
  height: 24px
}

/* Code inputs for verification */
.code-wrap {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: 1rem 0
}

.code-input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--ease)
}

.code-input:focus {
  border-color: var(--accent)
}

/* ── Admin Analytics Dashboard ── */
.admin-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 102px 18px 56px;
}

.admin-header-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(125deg, rgba(0, 122, 255, .08), rgba(0, 245, 255, .04) 42%, transparent 75%),
    var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md);
  padding: 1.4rem;
  display: grid;
  gap: 1.2rem;
}

.admin-header-main {
  display: grid;
  gap: .5rem;
}

.admin-eyebrow {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.admin-title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.15;
}

.admin-subtitle {
  color: var(--muted);
  max-width: 78ch;
  font-size: .93rem;
}

.admin-controls-wrap {
  display: grid;
  gap: .9rem;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.admin-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .65);
  color: var(--ink2);
  padding: .48rem .82rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), color var(--ease), background var(--ease);
}

[data-theme="dark"] .admin-chip {
  background: rgba(18, 19, 30, .82);
}

.admin-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.admin-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #44c9ff);
}

.admin-custom-range {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}

.admin-custom-range.open {
  display: flex;
}

.admin-custom-range label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-custom-range input {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  height: 34px;
  padding: 0 .55rem;
  font-size: .78rem;
}

.admin-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  flex-wrap: wrap;
}

.admin-view-switch {
  display: inline-grid;
  grid-auto-flow: column;
  gap: .3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .3rem;
}

.admin-view-btn {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  min-width: 94px;
  height: 32px;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.admin-view-btn.active {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.admin-view-btn:hover {
  transform: translateY(-1px);
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}

.admin-select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  height: 34px;
  padding: 0 .7rem;
  font-size: .77rem;
  font-weight: 600;
}

.admin-kpi-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.admin-kpi-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: .88rem .95rem;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--glass-border));
  box-shadow: var(--shadow-md);
}

.admin-kpi-label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.admin-kpi-value {
  margin-top: .32rem;
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}

.admin-kpi-delta {
  margin-top: .22rem;
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  font-size: .74rem;
  font-weight: 700;
  padding: .15rem .42rem;
  border-radius: 999px;
}

.admin-kpi-delta.up {
  color: #0f8a57;
  background: rgba(16, 185, 129, .12);
}

.admin-kpi-delta.down {
  color: #cc3d3d;
  background: rgba(239, 68, 68, .12);
}

.admin-kpi-delta.flat {
  color: var(--muted);
  background: rgba(148, 163, 184, .18);
}

.admin-state {
  margin-top: 1rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: .8rem 1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.admin-spin {
  animation: admin-spin 1s linear infinite;
}

@keyframes admin-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.admin-layout {
  margin-top: .95rem;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: .95rem;
  align-items: start;
}

.admin-settings-panel {
  position: sticky;
  top: 88px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  padding: .95rem;
  display: grid;
  gap: .9rem;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.admin-settings-head h3 {
  font-size: .98rem;
  color: var(--ink);
}

.admin-settings-head p {
  margin-top: .24rem;
  font-size: .78rem;
  color: var(--muted);
}

.admin-toggle-group {
  display: grid;
  gap: .5rem;
}

.admin-toggle-title {
  font-size: .76rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-toggle-list {
  display: grid;
  gap: .36rem;
}

.admin-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  font-size: .78rem;
  color: var(--ink2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .42rem .55rem;
  background: var(--surface);
}

.admin-toggle-item input {
  accent-color: var(--accent);
}

.admin-content-stack {
  display: grid;
  gap: .95rem;
}

.admin-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: .95rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  display: grid;
  gap: .82rem;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
}

.admin-section-label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
}

.admin-section h2 {
  margin-top: .2rem;
  font-size: 1.1rem;
  line-height: 1.2;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}

.admin-metric-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .72rem .8rem;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.admin-metric-card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  transform: translateY(-1px);
}

.admin-metric-name {
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.admin-metric-value {
  margin-top: .22rem;
  font-size: clamp(1.02rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.admin-metric-trend {
  margin-top: .22rem;
  font-size: .72rem;
  font-weight: 700;
}

.admin-metric-trend.up {
  color: #10b981;
}

.admin-metric-trend.down {
  color: #ef4444;
}

.admin-metric-trend.flat {
  color: var(--muted);
}

.admin-compare-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.admin-compare-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .6rem .72rem;
  background: var(--surface);
}

.admin-compare-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}

.admin-compare-values {
  margin-top: .28rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .42rem;
}

.admin-compare-value strong {
  display: block;
  font-size: .98rem;
  line-height: 1.2;
  color: var(--ink);
}

.admin-compare-value span {
  font-size: .72rem;
  color: var(--muted);
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.admin-chart-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .76rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: .56rem;
  min-height: 300px;
}

.admin-chart-card--table {
  min-height: 0;
}

.admin-chart-head h3 {
  font-size: .88rem;
  line-height: 1.2;
  color: var(--ink);
}

.admin-chart-head p {
  margin-top: .16rem;
  font-size: .74rem;
  color: var(--muted);
}

.admin-chart-svg {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--accent) 5%, transparent), transparent 45%),
    color-mix(in srgb, var(--bg) 58%, transparent);
}

.admin-donut-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
}

.admin-chart-donut {
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
}

.admin-donut-legend {
  display: grid;
  gap: .35rem;
}

.admin-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  font-size: .75rem;
  color: var(--ink2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .35rem .48rem;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.admin-legend-key {
  display: inline-flex;
  align-items: center;
  gap: .36rem;
}

.admin-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.admin-data-table th {
  text-align: left;
  padding: .66rem .72rem;
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}

.admin-data-table td {
  padding: .6rem .72rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.admin-data-table tr:last-child td {
  border-bottom: none;
}

.admin-data-table tr:hover td {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.admin-tooltip {
  position: fixed;
  z-index: 99;
  pointer-events: none;
  border-radius: 8px;
  padding: .35rem .46rem;
  font-size: .7rem;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .12s linear, transform .12s linear;
}

.admin-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] .admin-header-card,
[data-theme="dark"] .admin-settings-panel,
[data-theme="dark"] .admin-section {
  box-shadow: var(--shadow-md);
}

@media (max-width: 1200px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-settings-panel {
    position: relative;
    top: 0;
    max-height: none;
    display: none;
  }

  .admin-settings-panel.open {
    display: grid;
  }

  .admin-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .admin-shell {
    padding-top: 92px;
  }

  .admin-metrics-grid,
  .admin-charts-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-donut-wrap {
    grid-template-columns: 1fr;
  }

  .admin-compare-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-shell {
    padding-inline: 12px;
  }

  .admin-header-card {
    border-radius: 16px;
    padding: .88rem;
  }

  .admin-chip {
    font-size: .7rem;
    padding: .4rem .66rem;
  }

  .admin-view-btn {
    min-width: 82px;
    font-size: .7rem;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-section {
    border-radius: 14px;
    padding: .72rem;
  }
}

/* ═══ Policy Pages ═══ */
.policy-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.policy-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.policy-updated {
  font-size: .85rem;
  color: var(--soft);
  margin-bottom: 24px;
}

.policy-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}

.policy-card p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--ink2);
  margin-bottom: 12px;
}

.policy-card ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.policy-card li {
  font-size: .93rem;
  line-height: 1.6;
  color: var(--ink2);
  margin-bottom: 6px;
}

.policy-card strong {
  color: var(--ink);
}

.policy-footer {
  margin-top: 32px;
  font-size: .85rem;
  color: var(--soft);
  text-align: center;
}

@media (max-width: 600px) {
  .policy-card {
    padding: 24px 18px;
  }

  .policy-card h1 {
    font-size: 1.35rem;
  }
}

/* ═══ Payment Choice Modal ═══ */
.pay-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: payFadeIn .25s ease;
}

[data-theme="dark"] .pay-modal-overlay {
  background: rgba(0, 0, 0, 0.65);
}

@keyframes payFadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.pay-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: paySlideUp .3s ease;
}

@keyframes paySlideUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.pay-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--soft);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.pay-modal__close:hover {
  color: var(--ink);
}

.pay-modal__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.pay-modal__title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}

.pay-modal__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-modal__btn {
  width: 100%;
  border: none;
  border-radius: var(--radius-btn);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.pay-modal__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.pay-modal__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

.pay-modal__btn:active {
  transform: translateY(0);
}

.pay-modal__btn--card {
  background: var(--grad);
}

.pay-modal__btn--crypto {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.pay-modal__btn-icon {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.pay-modal__btn-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.pay-modal__btn-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.pay-modal__disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .pay-modal {
    padding: 24px 18px 20px;
  }

  .pay-modal__title {
    font-size: 16px;
  }

  .pay-modal__btn {
    padding: 16px 18px;
  }

  .pay-modal__btn-title {
    font-size: 15px;
  }
}

/* (old REDESIGN hero block removed — styles now in premium hero section above) */

/* ── Blue accent glow button ── */
.btn-glow {
  position: relative;
  box-shadow: 0 0 20px rgba(0, 122, 255, .2), 0 0 60px rgba(0, 122, 255, .08);
  transition: box-shadow .3s ease, transform .2s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(0, 122, 255, .3), 0 0 80px rgba(0, 122, 255, .15);
  transform: translateY(-2px);
}

.hero-phone-mock {
  position: relative;
  width: 280px;
  height: 420px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-screen-content {
  padding: 2rem 1.25rem;
}

.hero-screen-lines {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.hero-screen-line {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  animation: linePulse 2s ease-in-out infinite alternate;
}

.hero-screen-line:nth-child(2) {
  animation-delay: .2s;
}

.hero-screen-line:nth-child(3) {
  animation-delay: .4s;
}

.hero-screen-line:nth-child(4) {
  animation-delay: .6s;
}

.hero-screen-line:nth-child(5) {
  animation-delay: .8s;
}

@keyframes linePulse {
  0% {
    opacity: .3;
  }

  100% {
    opacity: .85;
  }
}

/* Floating search button */
.hero-overlay-btn {
  position: absolute;
  bottom: 80px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, .4);
  animation: fabPulse 2s ease-in-out infinite;
}

.hero-overlay-btn .lucide {
  width: 20px;
  height: 20px;
}

@keyframes fabPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(99, 102, 241, .4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 6px 30px rgba(99, 102, 241, .6);
    transform: scale(1.08);
  }
}

/* AI answer card */
.hero-ai-card {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: .625rem;
  font-size: .7rem;
  animation: cardSlide 3s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(99, 102, 241, .15);
}

.hero-ai-card-header {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .65rem;
  margin-bottom: .375rem;
}

.hero-ai-card-body {
  color: var(--ink);
  line-height: 1.5;
}

@keyframes cardSlide {

  0%,
  20% {
    opacity: 0;
    transform: translateY(10px);
  }

  30%,
  80% {
    opacity: 1;
    transform: translateY(0);
  }

  90%,
  100% {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.lucide-sm {
  width: 14px;
  height: 14px;
}

.lucide-lg {
  width: 28px;
  height: 28px;
}

/* ═══════════════════════════════════════════
   REDESIGN: Interactive Overlay Demo
   ═══════════════════════════════════════════ */
.overlay-demo {
  display: flex;
  justify-content: center;
}

.overlay-demo-screen {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 380px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.overlay-demo-content {
  padding: 2rem;
}

.overlay-demo-q {
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  font-size: .875rem;
  color: var(--ink);
  line-height: 1.5;
}

/* Floating button */
.overlay-demo-fab {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, .4);
  transition: transform .15s ease, box-shadow .15s ease;
  z-index: 5;
}

.overlay-demo-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(99, 102, 241, .6);
}

.overlay-demo-fab:active {
  transform: scale(.95);
}

.overlay-demo-fab .lucide {
  width: 22px;
  height: 22px;
}

/* Screenshot flash */
.overlay-demo-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

.overlay-demo-flash.active {
  animation: demoFlash .4s ease-out;
}

@keyframes demoFlash {
  0% {
    opacity: .8;
  }

  100% {
    opacity: 0;
  }
}

/* Result card */
.overlay-demo-result {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  z-index: 6;
}

.overlay-demo-result.visible {
  transform: translateY(0);
}

.overlay-demo-result-header {
  display: flex;
  align-items: center;
  gap: .375rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .8125rem;
  margin-bottom: .75rem;
}

.overlay-demo-result-body {
  font-size: .875rem;
  color: var(--ink);
  line-height: 1.6;
}

.overlay-demo-typing {
  color: var(--muted);
  font-style: italic;
}

.overlay-demo-answer p {
  margin-bottom: .375rem;
}

/* ═══════════════════════════════════════════
   REDESIGN: 5-Step Vertical Zig-Zag Flow
   ═══════════════════════════════════════════ */
.steps-vertical {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Central vertical gradient glow line — bright neon path */
.steps-vertical::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, 
    rgba(0, 140, 255, 0) 0%, 
    rgba(0, 140, 255, 0.7) 10%, 
    rgba(0, 200, 255, 0.9) 50%, 
    rgba(0, 140, 255, 0.7) 90%, 
    rgba(0, 140, 255, 0) 100%);
  z-index: 0;
  border-radius: 999px;
}

/* Wide soft glow halo behind the vertical line */
.steps-vertical::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 20px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgba(0, 140, 255, 0) 0%,
    rgba(0, 160, 255, 0.08) 15%,
    rgba(0, 200, 255, 0.15) 50%,
    rgba(0, 160, 255, 0.08) 85%,
    rgba(0, 140, 255, 0) 100%);
  filter: blur(6px);
  z-index: 0;
  border-radius: 999px;
  animation: timeline-pulse 3s ease-in-out infinite;
}

@keyframes timeline-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.step-card {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 1;
}

.step-left {
  justify-content: flex-start;
  padding-right: 50%;
}

.step-right {
  justify-content: flex-end;
  padding-left: 50%;
}

.step-card-inner {
  position: relative;
  width: 90%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.step-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 122, 255, 0.3);
}

[data-theme="dark"] .step-card-inner:hover {
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.08);
}

.step-circle.zig {
  flex-shrink: 0;
  margin: 0;
  width: 56px;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.step-circle.zig .step-icon {
  color: #007AFF;
}

.step-circle.zig .step-num {
  display: none;
}

.step-left .step-circle.zig {
  margin-right: auto;
}

.step-right .step-circle.zig {
  margin-left: auto;
  order: 2;
}

.step-content {
  flex: 1;
  text-align: left;
}

.step-right .step-content {
  text-align: right;
  order: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.step-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.step-right .step-features {
  align-items: flex-end;
}

.step-features li {
  font-size: 0.85rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-features .check {
  color: var(--green);
}

/* ── Connector from card to center line — glowing bridge ── */
.step-connector-line {
  position: absolute;
  top: 50%;
  width: 10%;
  height: 2px;
  z-index: 0;
  border-radius: 999px;
}

/* Gradient body of connector */
.step-connector-line::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 160, 255, 0.15), rgba(0, 200, 255, 0.7), rgba(0, 160, 255, 0.15));
}

/* Soft glow around connector */
.step-connector-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 100%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 160, 255, 0), rgba(0, 200, 255, 0.2), rgba(0, 160, 255, 0));
  filter: blur(4px);
}

/* Glowing node dot where connector meets the vertical line */
.step-left .step-connector-line {
  right: 50%;
  transform: translateX(100%);
}

.step-right .step-connector-line {
  left: 50%;
  transform: translateX(-100%);
}

/* Mobile styles for steps */
@media (max-width: 768px) {
  .steps-vertical::before {
    left: 35px;
    /* Move line to left side */
  }

  .step-card {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .step-card-inner {
    width: 100%;
    margin-left: 70px;
    padding: 1.25rem;
    flex-direction: column !important;
    /* Stack circle and content */
    align-items: center !important;
    text-align: center !important;
  }

  /* Make circles overlap the center line slightly */
  .step-circle.zig {
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    margin: 0 !important;
  }

  .step-content,
  .step-right .step-content {
    text-align: center;
    order: unset;
  }

  .step-right .step-features {
    align-items: center;
  }

  .step-features li {
    justify-content: center;
  }

  .step-connector-line {
    display: none;
  }

  .timeline-particle {
    left: 35px !important;
  }
}

/* ── Traveling light particle on timeline ── */
.timeline-particle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.9);
  box-shadow: 
    0 0 6px 2px rgba(0, 200, 255, 0.8),
    0 0 16px 4px rgba(0, 160, 255, 0.4),
    0 0 30px 8px rgba(0, 140, 255, 0.15);
  transform: translateX(-50%);
  z-index: 1;
  animation: travel-down 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes travel-down {
  0% { top: 2%; opacity: 0; }
  5% { opacity: 1; }
  50% { top: 98%; opacity: 1; }
  55% { opacity: 0; }
  56% { top: 2%; opacity: 0; }
  60% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 98%; opacity: 0; }
}

/* ── Google Play badge ── */
.google-play-badge {
  display: inline-block;
  transition: transform .2s ease, filter .2s ease;
  border-radius: 8px;
}

.google-play-badge:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.15) drop-shadow(0 4px 20px rgba(0, 140, 255, 0.3));
}

/* ═══════════════════════════════════════════
   REDESIGN: Features Grid (4 cards)
   ═══════════════════════════════════════════ */
.features-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════
   REDESIGN: Security & Privacy
   ═══════════════════════════════════════════ */
.security-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.security-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.security-icon {
  font-size: 2rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  transition: transform .3s ease, border-color .3s ease;
}

.security-step:hover .security-icon {
  transform: scale(1.1);
  border-color: var(--accent);
}

.security-step-delete .security-icon {
  border-color: rgba(239, 68, 68, .3);
}

.security-step span {
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 500;
}

.security-arrow {
  font-size: 1.25rem;
  color: var(--muted);
  opacity: .4;
  margin-top: -1rem;
}

.security-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin: 2rem 0;
}

.security-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--ink);
}

.security-check .check {
  color: #10b981;
  flex-shrink: 0;
}

.security-link {
  color: var(--accent);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: opacity .2s ease;
}

.security-link:hover {
  opacity: .8;
}

/* ═══════════════════════════════════════════
   REDESIGN: Pricing Limit Line
   ═══════════════════════════════════════════ */
.pricing-limit {
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: .375rem .75rem;
  background: var(--accent-lt);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ═══════════════════════════════════════════
   REDESIGN: Premium Footer
   ═══════════════════════════════════════════ */
.footer-full {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.footer-col h4 {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--soft);
  margin-bottom: .375rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-brand .logo {
  color: var(--ink);
}

.footer-tagline {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.footer-email {
  display: inline-block;
  margin-top: .5rem;
  color: var(--accent) !important;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s ease;
}

.footer-email:hover {
  opacity: .8;
}

.footer-dev {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: .8125rem;
  color: var(--soft);
  margin: 0;
}

/* ═══════════════════════════════════════════
   REDESIGN: CTA Pulse Animation
   ═══════════════════════════════════════════ */
.cta-pulse {
  position: relative;
  overflow: hidden;
}

.cta-pulse::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transform: skewX(-20deg);
  animation: ctaShimmer 3s ease-in-out infinite;
}

@keyframes ctaShimmer {
  0% {
    left: -60%;
  }

  40%,
  100% {
    left: 120%;
  }
}

/* ═══════════════════════════════════════════
   REDESIGN: Scroll Reveal Animations
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

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

.reveal .card,
.reveal .step-item,
.reveal .security-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
}

.reveal.visible .card,
.reveal.visible .step-item,
.reveal.visible .security-step {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible .card:nth-child(1),
.reveal.visible .step-item:nth-child(1),
.reveal.visible .security-step:nth-child(1) {
  transition-delay: .1s;
}

.reveal.visible .card:nth-child(2),
.reveal.visible .step-item:nth-child(2),
.reveal.visible .security-step:nth-child(2) {
  transition-delay: .2s;
}

.reveal.visible .card:nth-child(3),
.reveal.visible .step-item:nth-child(3),
.reveal.visible .security-step:nth-child(3) {
  transition-delay: .3s;
}

.reveal.visible .card:nth-child(4),
.reveal.visible .step-item:nth-child(4),
.reveal.visible .security-step:nth-child(4) {
  transition-delay: .4s;
}

/* ═══════════════════════════════════════════
   REDESIGN: Mobile Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-text .heading-xl {
    text-align: center;
  }

  .hero-split .hero-sub,
  .hero-sub {
    margin: 1rem auto 2rem;
    text-align: center;
    max-width: 100%;
  }

  .hero-split .hero-actions,
  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    text-align: center;
  }

  .hero-visual {
    order: 2;
    justify-content: center;
  }

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

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

@media (max-width: 600px) {
  .hero-inner {
    gap: 2rem;
  }

  .hero-phone-mock {
    width: 240px;
    height: 360px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .steps-flow {
    flex-direction: column;
    align-items: center;
    gap: .5rem;
  }

  .step-path {
    transform: rotate(90deg);
    margin: -.5rem 0;
  }

  .step-connector {
    display: none;
  }

  .step-item {
    max-width: 300px;
  }

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

  .security-flow {
    flex-direction: column;
  }

  .security-arrow {
    transform: rotate(90deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ═══════════════════════════════════════════
   REDESIGN: Phone Demo Frame
   ═══════════════════════════════════════════ */
.phone-demo {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}

.phone-screen {
  position: relative;
  width: 320px;
  min-height: 560px;
  background: var(--surface);
  border: 2.5px solid var(--border);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

[data-theme="dark"] .phone-statusbar {
  color: #F5F5F5;
}

.phone-statusbar-right {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 10px;
}

/* Test content */
.phone-test {
  padding: 0 14px 14px;
}

.test-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: center;
}

.test-question-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.test-question-num {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.test-question-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}

.test-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
  cursor: default;
}

.test-option.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, .08);
}

.test-option-letter {
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-lt);
  color: var(--accent);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.test-option.correct .test-option-letter {
  background: #10b981;
  color: #fff;
}

/* Phone overlay */
.phone-overlay {
  position: absolute;
  bottom: 10px;
  left: 8px;
  right: 8px;
  z-index: 3;
}

.app-panel-drag-hint {
  width: 32px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 0 auto 8px;
}

.app-panel-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.app-panel-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinnerSpin .6s linear infinite;
}

@keyframes spinnerSpin {
  to {
    transform: rotate(360deg);
  }
}

.app-panel-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 8px;
  transition: opacity .3s ease;
}

/* Security icon color fix */
.security-icon .lucide-lg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.security-step-delete .security-icon .lucide-lg {
  color: #ef4444;
}

@media (max-width: 600px) {
  .phone-screen {
    width: 280px;
    min-height: 480px;
  }

  .phone-demo {
    max-width: 300px;
  }
}

/* ═══════════════════════════════════════════
   Phone screen: no text selection
   ═══════════════════════════════════════════ */
.phone-screen {
  user-select: none;
  -webkit-user-select: none;
}

.app-panel-btn.primary {
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   RESPONSIVE: Tablet (≤ 768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav: show hamburger, hide desktop links ── */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  #landing-nav-guest {
    display: none !important;
  }

  .nav-right .btn-ghost[onclick*="navigate('login')"],
  .nav-right .btn-primary[onclick*="navigate"] {
    display: none;
  }

  /* Logo image smaller on mobile */
  .nav-logo {
    height: 24px !important;
  }

  .logo {
    font-size: 1.25rem;
  }

  /* ── Hero: stack vertically ── */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-split {
    text-align: center;
  }

  .hero-split .hero-sub,
  .hero-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
  }

  .hero-split .hero-actions,
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* ── Sections: reduce padding ── */
  .section {
    padding: 3rem clamp(.75rem, 3vw, 2rem);
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* ── Stats: 2 columns ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* ── Steps: vertical ── */
  .steps-flow {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .step-connector {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .step-item {
    max-width: 100%;
  }

  /* ── Features: 2 columns ── */
  .features-grid,
  .features-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  /* ── Testimonials: 1 column ── */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* ── Pricing: 1 column ── */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* ── Security: smaller icons ── */
  .security-icon {
    width: 52px;
    height: 52px;
  }

  .security-flow {
    gap: .75rem;
  }

  /* ── Footer: stack brand full-width ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* ── Phone demos ── */
  .phone-screen {
    width: 300px;
    min-height: 500px;
  }

  .phone-demo {
    max-width: 320px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: Phone (≤ 480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Smaller nav */
  :root {
    --nav-h: 56px;
  }

  .logo {
    font-size: 1.125rem;
  }

  .nav-logo {
    height: 20px !important;
  }

  .nav {
    padding: 0 .75rem;
  }

  /* ── Hero: tighter ── */
  .hero {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero-text .heading-xl {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions .btn {
    max-width: 100%;
    font-size: .9375rem;
    min-height: 48px;
    height: 48px;
    line-height: 48px;
  }

  /* ── Sections ── */
  .section {
    padding: 2rem .75rem;
  }

  .heading-lg {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
  }

  /* ── Stats: 2 columns, smaller ── */
  .stat-number {
    font-size: 1.625rem;
  }

  .stat-label {
    font-size: .75rem;
  }

  /* ── Features: single column ── */
  .features-grid,
  .features-grid-4 {
    grid-template-columns: 1fr;
  }

  /* ── Security ── */
  .security-icon {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .security-icon .lucide-lg {
    width: 22px;
    height: 22px;
  }

  .security-arrow {
    font-size: 1rem;
  }

  .security-check {
    font-size: .8125rem;
    text-align: left;
  }

  /* ── Pricing ── */
  .pricing-price {
    font-size: 2rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  /* ── Phone demos ── */
  .phone-screen {
    width: 260px;
    min-height: 450px;
  }

  .phone-demo {
    max-width: 280px;
  }

  .test-question-text {
    font-size: .8125rem;
  }

  .test-option span {
    font-size: .75rem;
  }

  .app-panel {
    padding: 10px;
  }

  .app-panel-result p {
    font-size: .75rem;
  }

  /* ── Footer: single column ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-inner {
    padding: 2.5rem 1.25rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
    margin-top: 2rem;
    padding: 1.25rem 0;
  }

  /* ── Auth ── */
  .auth-card {
    padding: 1.5rem;
  }

  /* ── Settings ── */
  .settings-row {
    padding: .75rem 1rem;
    flex-wrap: wrap;
  }

  .settings-row-text h4 {
    font-size: .8125rem;
  }

  .settings-row-text p {
    font-size: .75rem;
  }

  .btn-lg {
    padding: 0 1.25rem;
    font-size: .9375rem;
    min-height: 48px;
    height: 48px;
    line-height: 48px;
  }
}

/* ══════════════════════════════════════════════════════ */
/*   PREMIUM LANDING — 2026 Redesign Overrides           */
/* ══════════════════════════════════════════════════════ */

/* ── Gradient CTA Button ── */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(0, 122, 255, .3);
  text-decoration: none;
  line-height: 1;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 122, 255, .45);
}

.btn-gradient:active {
  transform: translateY(0) scale(.98);
}

.btn-gradient.btn-lg {
  padding: 0 2.5rem;
  font-size: 1.0625rem;
  min-height: 56px;
  height: 56px;
  border-radius: 14px;
}

/* ── Hero enhancements ── */
.hero-sub {
  color: var(--muted);
  font-size: 1.1875rem;
  max-width: 560px;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.65;
}

/* Hero content wrapper for full width */
.hero .section-inner {
  width: 100%;
}

.hero-visual {
  margin-top: 3rem;
}

/* ── Floating particles — subtle dots ── */
.hero-particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 122, 255, .6);
  border-radius: 50%;
  opacity: .25;
  animation: float-particle linear infinite;
}

/* Light theme: dark particles for visibility */
:root .hero-particles span,
[data-theme="light"] .hero-particles span {
  background: rgba(60, 40, 120, .5);
}

[data-theme="dark"] .hero-particles span {
  background: rgba(0, 122, 255, .6);
}

/* ── Individual particle positions ── */
.hero-particles span:nth-child(1) {
  left: 5%;
  top: 15%;
  animation-duration: 18s;
  animation-delay: 0s;
  width: 3px;
  height: 3px;
  --r: 0.2;
}

.hero-particles span:nth-child(2) {
  left: 12%;
  top: 55%;
  animation-duration: 22s;
  animation-delay: -3s;
  width: 5px;
  height: 5px;
  --r: 0.7;
  opacity: .2;
}

.hero-particles span:nth-child(3) {
  left: 20%;
  top: 10%;
  animation-duration: 20s;
  animation-delay: -7s;
  --r: 0.4;
}

.hero-particles span:nth-child(4) {
  left: 28%;
  top: 70%;
  animation-duration: 16s;
  animation-delay: -5s;
  width: 6px;
  height: 6px;
  --r: 0.9;
  opacity: .15;
}

.hero-particles span:nth-child(5) {
  left: 35%;
  top: 25%;
  animation-duration: 24s;
  animation-delay: -10s;
  width: 3px;
  height: 3px;
  --r: 0.1;
}

.hero-particles span:nth-child(6) {
  left: 42%;
  top: 50%;
  animation-duration: 19s;
  animation-delay: -2s;
  --r: 0.6;
  opacity: .3;
}

.hero-particles span:nth-child(7) {
  left: 50%;
  top: 80%;
  animation-duration: 21s;
  animation-delay: -8s;
  width: 5px;
  height: 5px;
  --r: 0.3;
  opacity: .18;
}

.hero-particles span:nth-child(8) {
  left: 58%;
  top: 35%;
  animation-duration: 17s;
  animation-delay: -4s;
  width: 3px;
  height: 3px;
  --r: 0.8;
}

.hero-particles span:nth-child(9) {
  left: 65%;
  top: 62%;
  animation-duration: 23s;
  animation-delay: -1s;
  width: 4px;
  height: 4px;
  --r: 0.45;
  opacity: .22;
}

.hero-particles span:nth-child(10) {
  left: 73%;
  top: 18%;
  animation-duration: 15s;
  animation-delay: -6s;
  width: 5px;
  height: 5px;
  --r: 0.55;
}

.hero-particles span:nth-child(11) {
  left: 80%;
  top: 45%;
  animation-duration: 20s;
  animation-delay: -11s;
  width: 3px;
  height: 3px;
  --r: 0.15;
  opacity: .28;
}

.hero-particles span:nth-child(12) {
  left: 88%;
  top: 72%;
  animation-duration: 18s;
  animation-delay: -9s;
  width: 7px;
  height: 7px;
  --r: 0.75;
  opacity: .12;
}

.hero-particles span:nth-child(13) {
  left: 93%;
  top: 30%;
  animation-duration: 25s;
  animation-delay: -3s;
  width: 2px;
  height: 2px;
  --r: 0.35;
  opacity: .35;
}

.hero-particles span:nth-child(14) {
  left: 8%;
  top: 40%;
  animation-duration: 19s;
  animation-delay: -12s;
  width: 4px;
  height: 4px;
  --r: 0.65;
  opacity: .2;
}

.hero-particles span:nth-child(15) {
  left: 17%;
  top: 88%;
  animation-duration: 21s;
  animation-delay: -7s;
  width: 3px;
  height: 3px;
  --r: 0.25;
  opacity: .3;
}

.hero-particles span:nth-child(16) {
  left: 38%;
  top: 8%;
  animation-duration: 16s;
  animation-delay: -5s;
  width: 5px;
  height: 5px;
  --r: 0.85;
  opacity: .18;
}

.hero-particles span:nth-child(17) {
  left: 52%;
  top: 92%;
  animation-duration: 23s;
  animation-delay: -2s;
  width: 2px;
  height: 2px;
  --r: 0.5;
  opacity: .32;
}

.hero-particles span:nth-child(18) {
  left: 70%;
  top: 5%;
  animation-duration: 17s;
  animation-delay: -13s;
  width: 4px;
  height: 4px;
  --r: 0.95;
  opacity: .22;
}

.hero-particles span:nth-child(19) {
  left: 85%;
  top: 58%;
  animation-duration: 22s;
  animation-delay: -8s;
  width: 3px;
  height: 3px;
  --r: 0.05;
  opacity: .27;
}

.hero-particles span:nth-child(20) {
  left: 47%;
  top: 42%;
  animation-duration: 14s;
  animation-delay: -6s;
  width: 6px;
  height: 6px;
  --r: 0.7;
  opacity: .14;
}

.hero-particles span:nth-child(21) {
  left: 3%;
  top: 30%;
  animation-duration: 19s;
  animation-delay: -14s;
  width: 3px;
  height: 3px;
  --r: 0.33;
  opacity: .24;
}

.hero-particles span:nth-child(22) {
  left: 15%;
  top: 68%;
  animation-duration: 16s;
  animation-delay: -9s;
  width: 4px;
  height: 4px;
  --r: 0.62;
  opacity: .2;
}

.hero-particles span:nth-child(23) {
  left: 24%;
  top: 42%;
  animation-duration: 22s;
  animation-delay: -4s;
  width: 2px;
  height: 2px;
  --r: 0.88;
  opacity: .33;
}

.hero-particles span:nth-child(24) {
  left: 33%;
  top: 85%;
  animation-duration: 18s;
  animation-delay: -11s;
  width: 5px;
  height: 5px;
  --r: 0.18;
  opacity: .16;
}

.hero-particles span:nth-child(25) {
  left: 45%;
  top: 22%;
  animation-duration: 20s;
  animation-delay: -7s;
  width: 3px;
  height: 3px;
  --r: 0.42;
  opacity: .26;
}

.hero-particles span:nth-child(26) {
  left: 56%;
  top: 78%;
  animation-duration: 15s;
  animation-delay: -13s;
  width: 4px;
  height: 4px;
  --r: 0.72;
  opacity: .2;
}

.hero-particles span:nth-child(27) {
  left: 62%;
  top: 3%;
  animation-duration: 21s;
  animation-delay: -2s;
  width: 5px;
  height: 5px;
  --r: 0.28;
  opacity: .18;
}

.hero-particles span:nth-child(28) {
  left: 76%;
  top: 52%;
  animation-duration: 17s;
  animation-delay: -8s;
  width: 2px;
  height: 2px;
  --r: 0.58;
  opacity: .3;
}

.hero-particles span:nth-child(29) {
  left: 91%;
  top: 12%;
  animation-duration: 24s;
  animation-delay: -5s;
  width: 4px;
  height: 4px;
  --r: 0.82;
  opacity: .22;
}

.hero-particles span:nth-child(30) {
  left: 96%;
  top: 90%;
  animation-duration: 13s;
  animation-delay: -10s;
  width: 3px;
  height: 3px;
  --r: 0.48;
  opacity: .25;
}

@keyframes float-particle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: .25;
  }

  90% {
    opacity: .25;
  }

  100% {
    transform: translate(calc(-20px + 40px * var(--r, 0.5)), -100vh) scale(.5);
    opacity: 0;
  }
}

/* ── Smooth scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.reveal .card:nth-child(1),
.reveal .feature-card:nth-child(1) {
  transition-delay: 0s;
}

.reveal .card:nth-child(2),
.reveal .feature-card:nth-child(2) {
  transition-delay: .08s;
}

.reveal .card:nth-child(3),
.reveal .feature-card:nth-child(3) {
  transition-delay: .16s;
}

.reveal .card:nth-child(4),
.reveal .feature-card:nth-child(4) {
  transition-delay: .24s;
}

/* ── Section gradient accent line ── */
.section-header h2 {
  position: relative;
  display: inline-block;
}

/* ── Premium CTA section ── */
.cta-premium {
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(135deg, #0039FF 0%, #007AFF 30%, #01BAF9 60%, #01BAF9 100%);
}

.cta-premium .section-inner {
  position: relative;
  z-index: 1;
}

.cta-premium * {
  color: #fff;
}

.cta-premium .heading-lg {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-premium p {
  color: rgba(255, 255, 255, .9);
  font-size: 1.1875rem;
  max-width: 520px;
  margin: 1.25rem auto 2.5rem;
}

.cta-premium .btn {
  background: #fff;
  color: #007AFF;
  font-weight: 700;
  font-size: 1rem;
  padding: .875rem 2.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
}

.cta-premium .btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

/* ── How it works — timeline style ── */
.how-steps {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  max-width: var(--section-w, 1200px);
  margin: 0 auto;
}

.how-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(0, 122, 255, .3);
}

.how-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.how-step p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.5;
}

/* Connecting line between steps */
.how-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--grad);
  opacity: .3;
  z-index: 0;
}

/* ── Security section ── */
.security-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Gradient text utility ── */
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FAQ premium ── */
.faq-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: .875rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .3s ease;
  overflow: hidden;
}

[data-theme="dark"] .faq-item {
  background: rgba(18, 19, 30, .6);
  border-color: rgba(255, 255, 255, .06);
  border-left-color: rgba(0, 122, 255, .4);
}

.faq-item:hover {
  border-color: rgba(0, 122, 255, .15);
  border-left-color: var(--accent);
  box-shadow: var(--glow);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .2s ease;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s ease;
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ── Testimonial enhancements ── */
.testimonials-grid .card {
  border: 1px solid var(--glass-border);
}

.testimonials-grid .card:hover {
  border-color: rgba(0, 122, 255, .25);
}

/* ── Pricing enhancements ── */
.plan-card.popular {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--glow);
}

.plan-badge {
  background: var(--grad);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  display: inline-block;
}

/* ── Responsive premium overrides ── */
@media (max-width: 768px) {
  .how-steps {
    flex-direction: column;
    gap: 1.5rem;
  }

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

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

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

@media (max-width: 480px) {

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


/* ══════════════════════════════════════════════════════════════
   BLUE DIAMOND HERO — Full-viewport with layered V-shape
   ══════════════════════════════════════════════════════════════ */

/* Force no-scroll on landing page */
#page-landing.diamond-mode {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.diamond-hero {
  position: relative;
  flex: 1;
  width: 100%;
  background: #070B1A;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle dot grid pattern */
.diamond-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 28px 28px;
  z-index: 1;
  pointer-events: none;
}

/* Diamond V-shape container */
.diamond-shape {
  position: absolute;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 160vw;
  height: 80vh;
  pointer-events: none;
  z-index: 2;
}

/* All diamond layers share the V clip-path */
.diamond-layer {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Layer 1: Deep blue base */
.diamond-layer-1 {
  background: linear-gradient(180deg, #0B00FE 22%, #0B00FE 100%);
}

/* Layer 2: Blue-to-white gradient */
.diamond-layer-2 {
  background: linear-gradient(180deg, #007FFE 0%, #5EC4FF 30%, #FFFFFF 76%);
}

/* Layer 3: Overlay blend for depth */
.diamond-layer-3 {
  background: linear-gradient(180deg, #007FFE 0%, #5EC4FF 30%, #FFFFFF 76%);
  mix-blend-mode: overlay;
}

/* Layer 4: Color dodge glow + blur */
.diamond-layer-4 {
  background: linear-gradient(180deg, #0066FF 0%, #5EC4FF 40%, #FFFFFF 80%);
  mix-blend-mode: color-dodge;
  filter: blur(45px);
}

/* ── Diamond hero split layout ── */
.diamond-inner {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: var(--section-w);
  width: 100%;
  padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
}

/* Left: text block */
.diamond-text {
  flex: 1;
  min-width: 0;
  color: #fff;
}

.diamond-badge {
  display: inline-block;
  padding: .45rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
}

.diamond-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -.025em;
  color: #fff;
}

.diamond-sub {
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 480px;
}

.diamond-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-bottom: 1.25rem;
}

.diamond-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background: #fff;
  color: #0A0B14;
  border: none;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.diamond-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.diamond-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
}

.diamond-cta-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.diamond-trust {
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Right: phone mockup in diamond hero */
.diamond-visual {
  flex: 0 0 300px;
  position: relative;
}

.diamond-visual .phone-frame {
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  transition: transform .5s ease;
}

.diamond-visual .phone-frame:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg);
}

/* Small floating glass badges repositioned for diamond hero */
.diamond-hero .glass-float {
  position: absolute;
  z-index: 15;
  padding: .4rem .875rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: .75rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  animation: floatBadge 6s ease-in-out infinite;
}

.diamond-hero .glass-float-1 {
  top: 22%;
  right: 5%;
  animation-delay: 0s;
}

.diamond-hero .glass-float-2 {
  top: 40%;
  left: 3%;
  animation-delay: 1.5s;
}

.diamond-hero .glass-float-3 {
  bottom: 30%;
  right: 8%;
  animation-delay: 3s;
}

.diamond-hero .glass-float-4 {
  bottom: 15%;
  left: 6%;
  animation-delay: 4.5s;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ── Sub-page layout ── */
.subpage {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  padding-top: var(--nav-h);
}

.subpage-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .subpage-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

.subpage-nav .logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.subpage-nav .back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: opacity .2s;
}

.subpage-nav .back-link:hover {
  opacity: .7;
}

.subpage-content {
  max-width: var(--section-w);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* ── Landing nav in diamond mode ── */
.diamond-mode .nav.nav-paddle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.diamond-mode .nav.nav-paddle .nav-link,
.diamond-mode .nav.nav-paddle .logo {
  color: rgba(255, 255, 255, 0.85);
}

.diamond-mode .nav.nav-paddle .nav-link:hover {
  color: #fff;
}

.diamond-mode .mobile-menu {
  background: rgba(10, 11, 20, 0.95);
}

.diamond-mode .mobile-menu .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Responsive diamond hero ── */
@media (max-width: 900px) {
  .diamond-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-top: calc(var(--nav-h) + 1.5rem);
  }

  .diamond-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .diamond-actions {
    justify-content: center;
  }

  .diamond-trust {
    justify-content: center;
  }

  .diamond-visual {
    flex: 0 0 auto;
    order: -1;
  }

  .diamond-visual .phone-frame {
    transform: none;
    max-width: 220px;
    margin: 0 auto;
  }

  .diamond-visual .phone-frame:hover {
    transform: none;
  }

  .diamond-hero .glass-float {
    display: none;
  }
}

@media (max-width: 480px) {
  .diamond-visual .phone-frame {
    max-width: 180px;
  }

  .diamond-title {
    font-size: 1.75rem;
  }

  .diamond-cta,
  .diamond-cta-outline {
    padding: .75rem 1.5rem;
    font-size: .875rem;
  }
}
