/* هاتلي — marketing site. Mobile-first, RTL, light default + remembered
   dark theme via [data-theme="dark"]. */

@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #f7931e;
  --primary-soft: #fbb03b;
  --navy: #0b1a26;
  --navy-deep: #061621;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fff8ef;
  --text: #101828;
  --muted: #667085;
  --border: #eaecf0;
  --green-bg: #e6f6ec;
  --green-text: #067647;
  --chip-bg: #eef2f6;
  --chip-text: #344054;
  --header-bg: rgba(255, 255, 255, 0.88);
  --hero-glow-a: #fff3e2;
  --hero-glow-b: #ffe4bd;
  --shadow: 0 18px 50px -18px rgba(11, 26, 38, 0.28);
  --radius: 1.1rem;
  --max: 1120px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #061621;
    --surface: #0b1a26;
    --surface-2: #0e2233;
    --text: #f2f4f7;
    --muted: #98a2b3;
    --border: #1e2f40;
    --green-bg: rgba(20, 160, 90, 0.16);
    --green-text: #6ce9a6;
    --chip-bg: #16293a;
    --chip-text: #d0d5dd;
    --header-bg: rgba(6, 22, 33, 0.85);
    --hero-glow-a: #0e2a3f;
    --hero-glow-b: #3a2408;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
  /* page bg on <html> too: overscroll/rubber-band areas (and the
     canvas behind body) follow the chosen theme, not white */
  background: var(--bg);
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 1.02rem;
}

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0.35rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.45; margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.9rem, 4.6vw + 1rem, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw + 0.9rem, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw + 0.9rem, 1.3rem); }

.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head .kicker { margin-bottom: 0.4rem; }

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #b25e09;
  background: #fdf0dd;
  border: 1px solid #f5c87e;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  padding: 0.15rem 0.9rem;
  border-radius: 999px;
}
:root[data-theme="dark"] .kicker { color: var(--primary-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: block; }

.site-nav { display: flex; align-items: center; gap: 1.1rem; margin-inline-start: auto; }
.site-nav a.nav-link { text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
.site-nav a.nav-link:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}
.nav-toggle svg { display: block; width: 1.5rem; height: 1.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.9rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-soft), var(--primary)); color: #1a1206; box-shadow: 0 10px 26px -10px rgba(247, 147, 30, 0.65); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }

.store-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 0.9rem;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}
.store-btn svg { width: 1.5rem; height: 1.5rem; }
.store-btn small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); line-height: 1.3; }
.store-btn .soon {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}
.store-btn:disabled { cursor: not-allowed; opacity: 0.75; }
a.store-btn { text-decoration: none; transition: border-color .15s, transform .15s; }
a.store-btn:hover { border-color: var(--accent, #F7931E); transform: translateY(-1px); }
a.store-btn:focus-visible { outline: 2px solid var(--accent, #F7931E); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(42rem 22rem at 85% -5%, var(--hero-glow-b), transparent 65%),
    radial-gradient(36rem 20rem at 10% 10%, var(--hero-glow-a), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  padding-block: clamp(2.2rem, 5vw, 4.5rem);
}
.hero-copy p:last-of-type { margin-bottom: 1.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.hero-badges li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- device frame (CSS-only modern iPhone) ---------- */
.device {
  --device-w: 15rem;
  position: relative;
  width: var(--device-w);
  flex: none;
  margin: 0;
  border-radius: calc(var(--device-w) * 0.13);
  background: linear-gradient(150deg, #4a4f57, #14161a 55%, #33373d);
  padding: calc(var(--device-w) * 0.028);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(16, 24, 40, 0.25),
    0 16px 40px -16px rgba(16, 24, 40, 0.42),
    0 40px 80px -32px rgba(16, 24, 40, 0.32);
}
.device::before,
.device::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, #5b6068, #22252a);
  border-radius: 999px;
}
.device::before {
  /* mute + volume keys, left edge */
  left: calc(var(--device-w) * -0.008);
  top: 21%;
  width: 3px;
  height: 15%;
}
.device::after {
  /* power key, right edge */
  right: calc(var(--device-w) * -0.008);
  top: 26%;
  width: 3px;
  height: 10%;
}
.device-screen {
  position: relative;
  aspect-ratio: 506 / 1100;
  overflow: hidden;
  border-radius: calc(var(--device-w) * 0.102);
  background: linear-gradient(100deg, var(--surface) 40%, var(--border) 50%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
}
.device-screen::before {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  aspect-ratio: 3.8;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.device-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- hero composition ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 31rem;
  padding-block: 1rem;
}
.hero-glow {
  position: absolute;
  inset: 4% -4%;
  background: radial-gradient(closest-side, rgba(247, 147, 30, 0.32), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}
:root[data-theme="dark"] .hero-glow {
  background: radial-gradient(closest-side, rgba(247, 147, 30, 0.42), transparent 72%);
}
.hero-visual .device-front { --device-w: 13rem; z-index: 2; }
.hero-visual .device-back {
  --device-w: 11.5rem;
  position: absolute;
  left: 0;
  top: 9%;
  z-index: 1;
  transform: rotate(-6deg) scale(0.9);
  opacity: 0.96;
}
.float-card {
  position: absolute;
  z-index: 3;
  /* solid surface: the card itself animates (translate), and a
     backdrop-filter on an animated element repaints every frame —
     keep it cheap and smooth with an opaque fill instead. */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 0.55rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.55;
  max-width: 12.5rem;
  will-change: translate;
  animation: floaty 6.5s ease-in-out infinite;
}
.float-card small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}
.float-toast { top: 3%; right: 0; }
/* anchored to the front phone's top outer edge */
.device-front > .float-chip {
  top: -0.9rem;
  inset-inline-end: -1.75rem;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green-text);
  border-color: transparent;
  animation-delay: -1.8s;
}
.float-low { bottom: 0; left: 4%; animation-delay: -3.6s; }
.float-low .spark {
  display: block;
  line-height: 0;
  margin: 0.15rem 0;
  color: var(--green-text);
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* ---------- live deals ---------- */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1rem;
  min-height: 12rem;
}
.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.deal-media { position: relative; aspect-ratio: 1; flex: none; overflow: hidden; background: #fff; }
.deal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.deal-off {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  background: var(--green-bg);
  color: var(--green-text);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}
.deal-body { padding: 0.7rem 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.deal-title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.deal-price { font-weight: 800; font-size: 1.05rem; }
.deal-old { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; }
.deal-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.3rem; }
.store-chip {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 0.45rem;
  padding: 0.05rem 0.55rem;
}
.deal-buy {
  margin-inline-start: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.deal-buy:hover { text-decoration: underline; }

/* skeleton */
.skeleton {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--surface) 40%, var(--border) 50%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  min-height: 15rem;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.deals-fallback { color: var(--muted); }

/* ---------- features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
}
.feature .icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  margin-bottom: 0.8rem;
}
.feature .icon svg { width: 1.4rem; height: 1.4rem; color: #1a1206; }
.feature h3 { margin-bottom: 0.3rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- tabbed screenshot showcase ---------- */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.show-tab {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.6;
}
.show-tab:hover { color: var(--primary); border-color: var(--primary); }
.show-tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
:root[data-theme="dark"] .show-tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #1a1206;
}
.showcase-panels { display: grid; gap: 2.5rem; }
.tabpanel {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  margin: 0;
}
.tabpanel-text { max-width: 32rem; }
.tabpanel-text h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.tabpanel-text p { color: var(--muted); margin-bottom: 0.6rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ticks li {
  position: relative;
  padding-inline-start: 1.7rem;
  color: var(--muted);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--green-text);
  font-weight: 800;
}
.tabpanel .device { --device-w: min(15rem, 68vw); }
/* live tab behaviour (JS adds data-live): panels share one grid cell so
   the container keeps the tallest panel's height and tabs crossfade
   instead of collapsing */
.showcase[data-live] .showcase-panels { display: grid; gap: 0; }
.showcase[data-live] .tabpanel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.showcase[data-live] .tabpanel.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
@media (min-width: 900px) {
  .tabpanel {
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    justify-items: start;
  }
  .tabpanel .device {
    /* capped so heading + tabs + phone fit one laptop viewport:
       ≈ min(520px, 68vh) total height, width from aspect ratio */
    --device-w: min(14.5rem, 30.5vh);
  }
}

/* ---------- steps ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.2rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
:root[data-theme="dark"] .step::before { background: var(--primary); color: #1a1206; }
.step h3 { margin-bottom: 0.25rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- radar band ---------- */
.band {
  background: linear-gradient(135deg, #0b1a26, #12365a 60%, #7a4a08);
  color: #fff;
  border-radius: 1.4rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  display: grid;
  gap: 1.4rem;
  align-items: center;
  overflow: clip;
  position: relative;
}
.band h2 { color: #fff; }
.band p { color: #e4e7ec; }
.band .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.band .btn-ghost:hover { border-color: #fff; color: #fff; }
.band ul { margin: 0 0 1.2rem; padding-inline-start: 1.2rem; color: #e4e7ec; }
.band-visual { display: flex; justify-content: center; }
.band-visual .device { --device-w: min(12.5rem, 58vw); }

/* ---------- faq ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  margin-bottom: 0.7rem;
  padding: 0.9rem 1.1rem;
}
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 0.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fdf0dd;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
}
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 0.6rem 0 0.2rem; color: var(--muted); }

/* ---------- cta + footer ---------- */
.final-cta { text-align: center; }
.final-cta .lead { max-width: 36rem; margin-inline: auto; }
.final-cta .hero-cta { justify-content: center; }
.final-cta .store-row { justify-content: center; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 1rem; }
.footer-grid { display: grid; gap: 1.6rem; padding-block: 2.4rem 1.4rem; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 26rem; }
.footer-nav h3, .footer-contact h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-nav a { text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: var(--primary); }
.footer-contact a.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
}
.footer-contact a.tg-link svg { width: 1.3rem; height: 1.3rem; }
.disclosure {
  border-top: 1px solid var(--border);
  padding-block: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.disclosure p { margin: 0 0 0.4rem; }
.copyright { color: var(--muted); font-size: 0.9rem; padding-bottom: 1.6rem; }

/* ---------- article pages (privacy/terms/support) ---------- */
.page-hero { padding-block: clamp(2rem, 5vw, 3.5rem) 0.5rem; }
.page-hero h1 { margin-bottom: 0.4rem; }
.page-meta { color: var(--muted); font-size: 0.95rem; }
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: clamp(1.3rem, 3.5vw, 2.6rem);
  margin-block: 1.4rem 3rem;
}
.prose h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .muted { color: var(--muted); }
.prose a { color: var(--primary); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.notfound .code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- reveal animation (subtle, optional) ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(247, 147, 30, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  /* kill every infinite loop outright (float, shimmer, …): a 0.01ms
     infinite animation restarts thousands of times per second and
     shakes/jitters instead of resting. */
  .float-card,
  .device-screen,
  .skeleton { animation: none !important; }
  .float-card { translate: 0 0; }
}

/* ---------- mobile hero polish (≤600px): full-width CTAs, 2-col
   store grid, centered chips. Desktop and larger tablets unchanged. */
@media (max-width: 600px) {
  .hero .hero-cta { flex-direction: column; align-items: stretch; }
  .hero .hero-cta .btn { width: 100%; min-height: 3.25rem; }
  .hero .store-row { display: grid; grid-template-columns: 1fr 1fr; }
  .hero .store-row .store-btn {
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
  .hero-badges { justify-content: center; text-align: center; }
  /* one phone + one floating card on small screens, nothing overflows */
  .hero-visual { min-height: 0; padding-bottom: 1.75rem; }
  .hero-visual .device-front { --device-w: min(15rem, 66vw); }
  .hero-visual .device-back,
  .hero-visual .float-chip,
  .hero-visual .float-low { display: none; }
  .float-toast {
    top: auto;
    bottom: -0.5rem;
    right: 0;
    left: 0;
    margin-inline: auto;
    width: max-content;
    max-width: 94%;
    text-align: center;
    font-size: 0.78rem;
  }
  /* tablist: one scrollable row with edge fade, never 3 wrapped rows */
  .showcase-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
    mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
  }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .showcase-tabs .show-tab { flex: none; scroll-snap-align: center; }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 1.35rem; height: 1.35rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- theme color transition (motion-safe only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  body, .site-header, .site-footer, .feature, .step,
  .faq details, .prose, .store-btn, .theme-toggle,
  .hero-badges li, .kicker, .store-chip,
  .site-nav a.nav-link, .footer-nav a {
    transition: background-color 0.25s ease, border-color 0.25s ease,
      color 0.25s ease;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    z-index: 60;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 0.6rem 0.8rem; border-radius: 0.6rem; }
  .site-nav a.nav-link:hover { background: var(--bg); }
  .site-nav .btn { margin-top: 0.4rem; }
  .header-cta { display: none; }
}

@media (min-width: 720px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .band { grid-template-columns: 1.2fr 0.8fr; }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deals-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
