/* =========================================================
   ShopMate POS — Landing Page Styles
   Dark theme, matching the admin panel palette.
   ========================================================= */

:root {
  --bg: #070b14;
  --bg-alt: #0f172a;
  --panel: #0f172a;
  --panel-2: #16203a;
  --dark: #0f172a;
  --dark-2: #16203a;
  --ink: #e2e8f0;
  --muted: #8ea0bf;
  --line: #26334f;
  --blue: #60a5fa;
  --blue-2: #3b82f6;
  --purple: #a78bfa;
  --purple-2: #c4b5fd;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --rose: #fb7185;
  --sky: #38bdf8;
  --grad: linear-gradient(135deg, #2563eb 0%, #6552d0 55%, #8b5cf6 100%);
  --radius: 20px;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); }

::selection { background: var(--purple); color: var(--bg); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #26334f; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(38, 51, 79, 0.8);
}
.nav.nav-static {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); text-decoration: none; }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  line-height: 1.2;
}
.brand-accent { color: var(--purple); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  transition: color .25s ease;
  padding: 4px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2.5px;
  background: var(--grad);
  border-radius: 4px;
  transition: right .3s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem !important;
  box-shadow: 0 10px 22px -10px rgba(101, 82, 208, 0.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(101, 82, 208, 0.7); }

/* Live download tally, sits beside the version pill in the hero */
.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  padding: 7px 15px;
  white-space: nowrap;
}
.hero-count[hidden] { display: none; }
.hero-count svg { width: 14px; height: 14px; color: var(--purple); }
.hero-count b { color: var(--ink); font-variant-numeric: tabular-nums; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 4px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 150px 0 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(800px 460px at 95% 5%, rgba(37, 99, 235, 0.2), transparent 60%),
    linear-gradient(180deg, #0a1020 0%, #070b14 100%);
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  animation: blobDrift 16s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; top: -120px; left: -100px; background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%); }
.blob-2 { width: 380px; height: 380px; top: 120px; right: -140px; background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%); animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; bottom: -100px; left: 32%; background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%); animation-delay: -11s; }
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -30px) scale(1.12); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 70px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 30px;
}
.hero-sub em { color: var(--purple); font-style: italic; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Equal-width hero CTAs.
   --cta-min is the single knob both layouts key off. It is deliberately
   wider than the longest label ("Download the App", ~226px in Plus Jakarta
   Sans) so the floor wins over the text and both buttons always resolve to
   the same width — including while the webfont is still loading, whose
   fallback metrics run a few percent wider. */
.hero-cta { --cta-min: 15rem; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-cta .btn { min-width: var(--cta-min); }

/* Above 1020px the hero has room for a real grid. auto-fit means that when
   the column is too narrow for two buttons they stack full-width instead —
   still exactly equal, never overflowing, and the label never wraps. A
   plain 1fr 1fr grid squeezed them to 220px at ~1020px and pushed
   "Download the App" onto a second line. */
@media (min-width: 1021px) {
  .hero-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--cta-min), 1fr)); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .28s cubic-bezier(.2,.8,.3,1.2), box-shadow .28s ease, background .3s ease;
}
.btn svg { width: 19px; height: 19px; }

.btn-download {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 18px 34px -14px rgba(101, 82, 208, 0.65);
  position: relative;
  overflow: hidden;
}
.btn-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .75s ease;
}
.btn-download:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 24px 44px -16px rgba(101, 82, 208, 0.75); }
.btn-download:hover::before { transform: translateX(120%); }

.btn-ghost {
  background: var(--panel-2);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.hero-trust { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.hero-trust svg { width: 17px; height: 17px; color: #4ade80; }

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  width: 292px;
  aspect-ratio: 9 / 19;
  background: linear-gradient(180deg, #1c2942, #0f172a);
  border-radius: 42px;
  padding: 13px;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    inset 0 0 0 2px rgba(255,255,255,0.08);
  position: relative;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #0f172a;
  border-radius: 14px;
  z-index: 3;
}
/* The mockup is a screenshot of the app, so it stays on the app's own light
   palette regardless of the site's dark theme — hence the literal colours
   here instead of the page tokens. */
.phone-screen {
  --ink: #0f172a; --muted: #5b6b83; --line: #e6ebf3;
  background: #f8fafc;
  border-radius: 32px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 34px 14px 14px;
  gap: 10px;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; }
.screen-store strong { display: block; font-size: 0.82rem; color: var(--ink); }
.screen-store span { font-size: 0.62rem; color: var(--muted); }
.screen-avatar {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: grid; place-items: center;
}
.screen-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 11px;
}
.screen-search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.screen-search input {
  border: none; outline: none;
  font-size: 0.66rem;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  width: 100%;
}
.screen-items { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.s-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.72rem;
  color: #fff; flex: none;
}
.s-ic-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.s-ic-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.s-ic-blue { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.s-item div { flex: 1; min-width: 0; }
.s-item b { font-size: 0.68rem; display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-item small { font-size: 0.58rem; color: var(--muted); }
.s-price { font-size: 0.7rem; font-weight: 800; color: var(--ink); }
.screen-total {
  background: var(--dark);
  border-radius: 14px;
  padding: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.screen-total div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.screen-total div:first-child span { font-size: 0.62rem; color: #94a3b8; }
.screen-total div:first-child b { font-size: 1rem; }
.method { font-size: 0.62rem; color: #cbd5e1; }
.screen-total button {
  margin-top: 3px;
  background: var(--grad);
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 9px;
}

.float-card {
  position: absolute;
  background: rgba(22, 32, 58, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(38, 51, 79, 0.9);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
  z-index: 2;
}
.float-card svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; }
.float-card b { display: block; font-size: 0.82rem; color: var(--ink); }
.float-card span { font-size: 0.68rem; color: var(--muted); }
.float-card-1 { top: 58px; left: -14px; animation-delay: -1.5s; }
.float-card-1 svg { background: rgba(5, 150, 105, 0.2); color: #34d399; }
.float-card-2 { bottom: 74px; right: -22px; animation-delay: -3s; }
.float-card-2 svg { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }

/* ---------- Hero stats ---------- */
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 28px;
  margin-bottom: -1px;
  transform: translateY(50%);
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  white-space: nowrap;
}
.stat-num .slash { opacity: 0.35; }
.stat-label { font-size: 0.8rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.stat-label small { display: block; font-weight: 500; color: var(--muted); font-size: 0.74rem; }

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { padding: 130px 0 110px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.eyebrow {
  display: inline-block;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.f-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  transition: transform .35s ease;
}
.feature-card:hover .f-icon { transform: scale(1.1) rotate(-6deg); }
.f-icon svg { width: 27px; height: 27px; }
.f-icon-blue   { background: rgba(37, 99, 235, 0.18); color: var(--blue); }
.f-icon-purple { background: rgba(139, 92, 246, 0.18); color: var(--purple); }
.f-icon-amber  { background: rgba(217, 119, 6, 0.18); color: var(--amber); }
.f-icon-teal   { background: rgba(13, 148, 136, 0.18); color: var(--teal); }
.f-icon-sky    { background: rgba(2, 132, 199, 0.18); color: var(--sky); }
.f-icon-rose   { background: rgba(225, 29, 72, 0.18); color: var(--rose); }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 9px; letter-spacing: -0.01em; }
.feature-card p { color: var(--muted); font-size: 0.94rem; }
.feature-card p em { color: var(--purple); font-style: italic; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--purple);
  margin-bottom: 14px;
  transition: color .35s ease;
}
.step:hover .step-num { color: var(--purple); -webkit-text-stroke-color: transparent; }
.step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Tech ---------- */
.tech {
  position: relative;
  background: var(--panel-2);
  color: #fff;
  overflow: hidden;
}
.tech .container { position: relative; z-index: 1; }
.blob-4 {
  width: 500px; height: 500px;
  top: -180px; right: -160px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
  filter: blur(80px);
  z-index: 0;
}
.section-head-light .eyebrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: #a5b4fc;
}
.section-head-light h2 { color: #fff; }
.section-head-light p { color: #94a3b8; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.tech-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(6px);
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
}
.tech-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); border-color: rgba(139,92,246,0.5); }
.tech-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tech-card p { font-size: 0.94rem; color: #b6c2d6; }
.tech-card code {
  background: rgba(255,255,255,0.1);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.84em;
  color: #c4b5fd;
}

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download { position: relative; overflow: hidden; }
.download-card {
  position: relative;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 54px 40px 46px;
  background-image:
    radial-gradient(500px 240px at 15% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(500px 240px at 85% 0%, rgba(37, 99, 235, 0.2), transparent 60%);
}
.blob-5 {
  width: 340px; height: 340px;
  bottom: -120px; right: -80px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.d-logo {
  width: 82px; height: 82px;
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.download-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.download-sub { color: var(--muted); max-width: 520px; margin: 0 auto 30px; font-size: 1.02rem; }

.btn-big {
  font-size: 1.0rem;
  padding: 10px 22px;
  animation: glowPulse 2.6s ease-in-out infinite;
}
.btn-big svg { width: 22px; height: 22px; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 18px 40px -14px rgba(101,82,208,0.7); }
  50% { box-shadow: 0 22px 52px -10px rgba(37,99,235,0.8); }
}

/* Live download tally, sits between the button and the meta chips */
.dl-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.dl-count[hidden] { display: none; }
.dl-count svg { width: 16px; height: 16px; color: var(--purple); }
.dl-count b {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.download-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 8px;
}
.download-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.download-meta svg { width: 15px; height: 15px; color: #4ade80; }

.install-steps {
  margin-top: 34px;
  text-align: left;
  background: var(--panel-2);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 26px 30px;
}
.install-steps h3 { font-size: 1rem; margin-bottom: 14px; }
/* minmax(0, 1fr) rather than a bare auto track: an auto track takes its
   min-content floor from the items, which overflowed the card on phones. */
.install-steps ol {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  counter-reset: install;
}
.install-steps li {
  counter-increment: install;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  font-size: 0.93rem;
  color: var(--muted);
}
/* The copy lives in its own box. Without it the <strong>/<em>/text runs
   each become a separate nowrap flex item, so the row cannot wrap and
   pushes past the card edge on narrow screens. */
.install-steps li > span { min-width: 0; }
.install-steps li::before {
  content: counter(install);
  flex: none;
  width: 26px; height: 26px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  display: grid; place-items: center;
  margin-top: 1px;
}
.install-steps li strong { color: var(--ink); }
.install-steps li em { color: var(--purple); font-style: italic; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { display: grid; gap: 13px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.faq-item.open { border-color: rgba(101,82,208,0.5); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  padding: 20px 24px;
  transition: color .25s ease;
}
.faq-q:hover { color: var(--purple); }
.faq-chev {
  flex: none;
  width: 22px; height: 22px;
  color: var(--purple);
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-a p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 64px 0 30px;
}
.brand-name-dark { color: #fff; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-tag { margin-top: 14px; font-size: 0.9rem; color: #94a3b8; line-height: 1.65; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: color .25s ease;
  position: relative;
}
.footer-links a:hover { color: #a5b4fc; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  font-size: 0.82rem;
  color: #7c8aa0;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

.features-grid .reveal:nth-child(2) { transition-delay: .08s; }
.features-grid .reveal:nth-child(3) { transition-delay: .16s; }
.features-grid .reveal:nth-child(4) { transition-delay: .06s; }
.features-grid .reveal:nth-child(5) { transition-delay: .14s; }
.features-grid .reveal:nth-child(6) { transition-delay: .22s; }
.steps .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(4) { transition-delay: .3s; }
.tech-grid .reveal:nth-child(2) { transition-delay: .1s; }
.tech-grid .reveal:nth-child(3) { transition-delay: .2s; }
.tech-grid .reveal:nth-child(4) { transition-delay: .3s; }
.faq-list .reveal:nth-child(2) { transition-delay: .05s; }
.faq-list .reveal:nth-child(3) { transition-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .brand-sub { font-size: 0.6rem; letter-spacing: 0.06em; }
}

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 70px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { margin-top: 10px; }
  .float-card-1 { left: 6%; }
  .float-card-2 { right: 6%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; transform: translateY(0); margin-top: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .brand { gap: 10px; }
  .brand-logo { width: 36px; height: 36px; border-radius: 10px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.05em; margin-top: 1px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(14px);
    padding: 18px 8%;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { font-size: 1.02rem; padding: 10px 0; width: 100%; }
  .nav-cta { text-align: center; margin-top: 6px; }

  .hero { padding-top: 130px; }
  .features-grid, .steps, .tech-grid { grid-template-columns: 1fr; }
  .hero-stats { padding: 22px 18px; }
  .float-card-1 { top: 6%; }
  .download-card { padding: 44px 22px 36px; }
  .install-steps { padding: 22px 20px; border-radius: 16px; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 1.0rem; }
  .brand-sub { font-size: 0.54rem; letter-spacing: 0.03em; }

  .phone { width: 250px; }
  .float-card { padding: 9px 12px; }
  .float-card b { font-size: 0.74rem; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}

/* =========================================================
   Trust / transparency blocks on the download card
   ========================================================= */

.checksum-box {
  margin: 1.4rem 0 1.1rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(37, 99, 235, 0.12); text-align: left;
}
.checksum-head {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.55rem;
}
.checksum-head svg { width: 16px; height: 16px; flex: none; }
.checksum-hash {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem; line-height: 1.65; word-break: break-all;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.6rem 0.7rem; user-select: all;
}
.checksum-hint { font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0; line-height: 1.6; }
.checksum-hint a, .verify-note a, .safety-link { color: var(--blue); }

/* ---------- Release notes (fed live by /api/app-info) ---------- */
.release-notes {
  margin: 1.2rem 0 1.4rem; padding: 1.1rem 1.2rem;
  border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 12px; background: var(--panel-2); text-align: left;
}
.release-notes h3 { font-size: 0.95rem; margin-bottom: 0.45rem; color: var(--ink); }
.release-notes p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin: 0; white-space: pre-line; }

/* ---------- Navigation "Update" pill (returning visitors) ---------- */
.nav-update {
  margin-left: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #0d9488;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 10px 22px -10px rgba(13, 148, 136, 0.7);
  animation: ub-pulse 2.2s ease-in-out infinite;
}
.nav-update:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(13, 148, 136, 0.8); }
@keyframes ub-pulse {
  0%, 100% { box-shadow: 0 10px 22px -10px rgba(13, 148, 136, 0.7); }
  50% { box-shadow: 0 10px 22px -6px rgba(13, 148, 136, 0.95); }
}

/* ---------- Update banner (fixed, top) ---------- */
.update-banner {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex; align-items: center; gap: 14px;
  width: min(660px, calc(100vw - 28px));
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.97);
  color: #fff;
  box-shadow: 0 24px 50px -18px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
}
.update-banner[hidden] { display: none; }
.update-banner.is-required { border-color: var(--amber); }
.update-banner.is-required .ub-title { color: var(--amber); }
.update-banner.is-required .ub-icon {
  background: rgba(217, 119, 6, 0.18);
  color: var(--amber);
}
.ub-icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.18);
  color: #7ea6ff;
}
.ub-icon svg { width: 22px; height: 22px; }
.ub-body { flex: 1; min-width: 0; }
.ub-title { font-weight: 700; font-size: 0.95rem; }
.ub-text { font-size: 0.82rem; color: rgba(255,255,255,0.78); margin-top: 1px; }
.ub-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.ub-actions .btn-sm { padding: 9px 18px; font-size: 0.82rem; border-radius: 999px; }
.ub-later {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 6px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ub-later:hover { color: #fff; }
.ub-close {
  margin-left: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.ub-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

@media (max-width: 720px) {
  .nav-update { display: none; }
  .update-banner { flex-wrap: wrap; gap: 10px; top: 10px; padding: 12px 14px; }
  .ub-actions { width: 100%; justify-content: flex-end; }
}

.install-note {
  font-size: 0.9rem; color: var(--muted); line-height: 1.68;
  margin: 0 0 1rem; text-align: left;
}
.verify-note {
  font-size: 0.86rem; color: var(--muted); line-height: 1.65;
  margin: 1rem 0 0.9rem; padding: 0.8rem 0.95rem; text-align: left;
  border-left: 3px solid var(--teal); background: rgba(13, 148, 136, 0.14); border-radius: 0 8px 8px 0;
}
.verify-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem; background: rgba(255, 255, 255, 0.09);
  padding: 0.12rem 0.34rem; border-radius: 5px; color: var(--ink);
}
.safety-link { font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.safety-link:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .checksum-hash { font-size: 0.64rem; }
}

/* =========================================================
   Legal / transparency page (privacy.html)
   ========================================================= */
.legal { padding-top: 104px; }
.legal h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin: 0.35rem 0 1rem; letter-spacing: -0.02em; }
.legal h2 { font-size: clamp(1.16rem, 2.3vw, 1.42rem); margin: 2.6rem 0 0.75rem; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.04rem; margin: 1.5rem 0 0.5rem; }
.legal p { color: var(--muted); line-height: 1.72; margin: 0 0 0.9rem; }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-lede { font-size: 1.04rem; }

.legal-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin: 2rem 0 0.5rem;
}
.legal-meta > div { background: var(--panel); padding: 0.9rem 1.05rem; }
.legal-meta span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 0.28rem; }
.legal-meta strong { font-size: 0.92rem; word-break: break-word; }

.legal-list { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.72; }
.legal-list li { margin-bottom: 0.42rem; }

.legal-code {
  background: var(--panel-2); color: #e2e8f0; padding: 0.95rem 1.1rem; border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.83rem; overflow-x: auto; margin: 0 0 1rem; line-height: 1.6;
}

/* Same treatment, but inline in a sentence (e.g. the certificate fingerprint). */
.legal-code-inline {
  background: var(--panel-2); color: #e2e8f0; padding: 0.2rem 0.45rem; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem; word-break: break-all; display: inline-block; margin-top: 0.3rem;
}

.perm-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: 0.88rem; }
.perm-table th, .perm-table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.perm-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.perm-table td { color: var(--muted); }
.perm-table td:first-child { width: 34%; }
.perm-table code { font-size: 0.8rem; color: var(--ink); }

@media (max-width: 620px) {
  .legal { padding-top: 76px; }
  .perm-table, .perm-table tbody, .perm-table tr, .perm-table td { display: block; width: auto; }
  .perm-table thead { display: none; }
  .perm-table tr { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
  .perm-table td { border: 0; padding: 0.2rem 0; }
  .perm-table td:first-child { font-weight: 600; color: var(--ink); }
}