/* =====================================================
   Speed Camera Radar - One-Page Website
   Theme colors pulled from the app's in-product palette
   ===================================================== */

:root {
  --primary: #1A67E0;
  --primary-dark: #0F4FC2;
  --primary-light: #E8F1FF;
  --primary-soft: #F2F7FF;
  --accent-red: #EF4444;
  --accent-yellow: #FBBF24;
  --accent-green: #22C55E;
  --accent-purple: #8B5CF6;

  --ink: #0A1A3A;
  --ink-2: #1E2A4A;
  --muted: #5A6785;
  --muted-2: #8792AD;
  --line: #E4EAF5;
  --surface: #FFFFFF;
  --bg: #F7FAFF;
  --shadow-sm: 0 4px 14px rgba(15, 79, 194, 0.08);
  --shadow-md: 0 12px 28px rgba(15, 79, 194, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 79, 194, 0.18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', var(--font-body);

  --container: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.accent { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-full { width: 100%; padding: 14px 22px; font-size: 1rem; }

.store-badge img { height: 54px; width: auto; }
.store-badge.sm img { height: 44px; }
.store-badge { display: inline-block; transition: transform .18s; }
.store-badge:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 14px rgba(15,79,194,.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.brand-logo { width: 40px; height: 40px; }
.brand-name span { color: var(--primary); }
.brand-light { color: #fff; }
.brand-light .brand-name span { color: #8EB7F5; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: .96rem;
  position: relative;
  padding: 6px 0;
}
.nav ul a:hover { color: var(--primary); }
.nav-cta { padding: 10px 18px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(26,103,224,.18), transparent 60%),
    linear-gradient(180deg, #EAF2FF 0%, var(--bg) 100%);
  padding: 70px 0 110px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 110px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}
.blob-a {
  width: 320px; height: 320px;
  background: rgba(26,103,224,.35);
  top: -80px; right: 10%;
}
.blob-b {
  width: 260px; height: 260px;
  background: rgba(239,68,68,.18);
  bottom: -60px; left: -40px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy h1 span.accent { color: var(--primary); }
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 520px;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 26px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-green { background: var(--accent-green); }
.dot-blue  { background: var(--primary); }
.dot-red   { background: var(--accent-red); }

/* Hero phone visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-frame {
  position: relative;
  width: 320px;
  max-width: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0A1A3A;
  padding: 0;
  box-shadow:
    0 50px 100px -30px rgba(10, 26, 58, 0.45),
    0 30px 60px -20px rgba(15, 79, 194, 0.35);
  aspect-ratio: 9/18;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-floating {
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%,100% { transform: translateY(0) }
  50%     { transform: translateY(-12px) }
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: .92rem;
}
.card-speed {
  top: 12%;
  left: -10px;
  padding: 10px 16px;
  text-align: center;
  flex-direction: column;
  gap: 0;
  animation: floaty 7s ease-in-out infinite;
}
.card-speed .speed-num {
  color: var(--accent-red);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.card-speed .speed-unit {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
}
.card-limit {
  top: 55%;
  right: -12px;
  padding: 10px 14px;
  flex-direction: column;
  gap: 2px;
  animation: floaty 6.5s ease-in-out infinite reverse;
}
.card-limit .limit-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-red);
  color: var(--ink);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.card-limit span {
  font-size: .7rem;
  color: var(--muted);
  font-weight: 500;
}
.card-alert {
  bottom: 6%;
  left: -24px;
  max-width: 220px;
  animation: floaty 8s ease-in-out infinite;
}
.card-alert .alert-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FEF2F2;
  color: var(--accent-red);
  display: grid;
  place-items: center;
}
.card-alert .alert-icon svg { width: 22px; height: 22px; }
.card-alert strong { display: block; font-size: .92rem; color: var(--ink); }
.card-alert small  { font-size: .78rem; color: var(--muted); font-weight: 500; }

/* ---------- Strip ---------- */
.strip {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.strip-grid > div { display: flex; flex-direction: column; gap: 2px; }
.strip-grid strong {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
}
.strip-grid span {
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tint { background: var(--primary-soft); }
.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head p { font-size: 1.05rem; }

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.bg-blue      { background: #E8F1FF; color: var(--primary); }
.bg-red       { background: #FEE9E9; color: var(--accent-red); }
.bg-yellow    { background: #FEF5D6; color: #B48014; }
.bg-purple    { background: #F0ECFE; color: var(--accent-purple); }
.bg-green     { background: #DFF7E7; color: #15803D; }
.bg-blue-soft { background: #EEF5FF; color: var(--primary-dark); }

.feature-card h3 { margin-bottom: 8px; color: var(--ink); }
.feature-card p  { margin: 0; font-size: .96rem; }

/* ---------- Showcase ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 80px;
}
.showcase-row:first-of-type { margin-top: 0; }
.showcase-row.reverse { direction: rtl; }
.showcase-row.reverse > * { direction: ltr; }
.showcase-media { display: flex; justify-content: center; }
.showcase-media .phone-frame { width: 300px; }
.step-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.tick-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.tick-list li {
  padding: 6px 0 6px 30px;
  position: relative;
  color: var(--ink-2);
  font-size: .98rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-light) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A67E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* ---------- Gallery ---------- */
.tab-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  margin: -20px auto 40px;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tab {
  border: none;
  background: transparent;
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-size: .92rem;
  transition: background .2s, color .2s;
  font-family: inherit;
}
.tab.active {
  background: var(--primary);
  color: #fff;
}

.gallery-wrap {
  position: relative;
}
.gallery-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 6px 40px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 999px; }
.shot {
  flex: 0 0 auto;
  width: 260px;
  margin: 0;
  scroll-snap-align: center;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0A1A3A;
  transition: transform .25s;
}
.shot img { width: 100%; height: auto; display: block; }
.shot:hover { transform: translateY(-6px); }
.shot.hide { display: none; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 3;
  display: grid;
  place-items: center;
}
.gallery-nav.prev { left: -8px; }
.gallery-nav.next { right: -8px; }
.gallery-nav:hover { background: var(--primary); color: #fff; }

/* ---------- Why Cards ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.why-card p  { margin: 0; font-size: .94rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}
.cta-banner::before {
  width: 380px; height: 380px;
  background: #8EB7F5;
  top: -140px; left: -80px;
}
.cta-banner::after {
  width: 320px; height: 320px;
  background: #4C8FEF;
  bottom: -120px; right: -60px;
}
.cta-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 { color: #fff; margin-bottom: 10px; }
.cta-text p { color: rgba(255,255,255,.88); max-width: 520px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 4px;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  gap: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  position: relative;
  flex-shrink: 0;
  transition: background .25s, transform .25s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; transition: transform .25s; }
.faq-item[open] .faq-icon { background: var(--primary); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after  { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item p {
  padding: 0 22px 22px;
  margin: 0;
  color: var(--muted);
  font-size: .97rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .98rem;
  color: var(--muted);
  min-width: 0;
}
/* Let the long support email wrap instead of forcing horizontal overflow
   on narrow phones. */
.contact-list a { overflow-wrap: anywhere; }
.contact-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.contact-ico svg { width: 20px; height: 20px; }

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: .88rem;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .98rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,103,224,.1);
}
.form-row input.invalid,
.form-row textarea.invalid {
  border-color: var(--accent-red);
}
.form-status {
  margin: 12px 0 0;
  font-size: .92rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--accent-green); }
.form-status.error   { color: var(--accent-red); }

/* Honeypot - hidden from real users, kept in DOM for bots. */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer {
  background: #07132E;
  color: #B8C3DC;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 50px;
}
.footer-col h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: #B8C3DC;
  font-size: .95rem;
}
.footer-col a:hover { color: #fff; }
.footer-tag {
  color: #9BA7C4;
  max-width: 320px;
  font-size: .95rem;
  margin-top: 12px;
}
.footer-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer-contact a { color: #B8C3DC; word-break: break-all; }
.footer-contact a:hover { color: #fff; }
.socials {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  transition: background .25s, color .25s;
}
.socials svg { width: 16px; height: 16px; color: #B8C3DC; }
.socials a:hover { background: var(--primary); }
.socials a:hover svg { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .88rem;
  color: #7E8BAA;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 60;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--primary-dark); color: #fff; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 992px) {
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy .lead, .hero-copy .eyebrow { margin-left: auto; margin-right: auto; }
  .cta-row, .trust-row { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-frame { width: 280px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
    text-align: center;
  }
  .showcase-media .phone-frame { width: 280px; }
  .tick-list { display: inline-block; text-align: left; }

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

  /* Switch to the hamburger menu as soon as the horizontal nav stops
     fitting (it needs ~650px on its own), not just below 720px. */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav ul {
    flex-direction: column;
    gap: 6px;
  }
  .nav ul a {
    display: block;
    padding: 10px 6px;
    border-bottom: 1px solid var(--line);
  }
  .nav ul li:last-child a { border-bottom: none; }
  .nav-cta { width: 100%; }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .cta-text p { margin-left: auto; margin-right: auto; }

  .floating-card { transform: scale(.9); }
  .card-speed { left: -4px; }
  .card-limit { right: -4px; }
  .card-alert { left: -10px; }

  .phone-frame { width: 240px; }
  .showcase-media .phone-frame { width: 240px; }
  .store-badge img { height: 48px; }

  .footer-bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .why-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .card-speed, .card-limit, .card-alert { display: none; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
