/* ==========================================================================
   DDBoost — main theme design tokens & base styles
   Design direction: premium SaaS/fintech (Stripe / Linear / Vercel / Framer
   territory) — refined grotesk type, restrained aurora glow, glass surfaces,
   elevated interactive cards. Accent stays the real brand red (#ff0604).
   Light mode is default; dark mode is toggled via the shared `theme-light` /
   `theme-dark` body classes (see assets/pwa/scripts/custom.js `darkMode()`
   — same mechanism the login/register pages already use, so a visitor's
   choice carries across both).
   ========================================================================== */

:root {
  --accent: #ff0604;
  --accent-hover: #e20503;
  --accent-soft: #ffe8e7;
  --accent-contrast: #ffffff;
  --accent-2: #ff8a3d; /* warm secondary stop for the aurora glow only */

  --surface-0: #ffffff;
  --surface-1: #f6f6f8;
  --surface-2: #edeef2;
  --ink: #0a0a0c;
  --border-subtle: #e6e7eb;
  --border-strong: #d7d9df;

  --text-primary: #0a0a0c;
  --text-secondary: #565962;
  /* Was #8b8e97 — only 3.27:1 against --surface-0, below WCAG AA's 4.5:1 for
     normal-size text (every real use of this token is small: mono labels,
     card metadata, timestamps). #6a6d75 clears both --surface-0 (5.18:1) and
     --surface-1 (4.8:1) while staying visually "muted" next to
     --text-secondary. */
  --text-muted: #6a6d75;

  --focus-ring: #ff0604;
  --shadow-color: 220 25% 8%;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;
  --space-10: 144px;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --container-w: 1360px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.75rem + 1.6vw, 2.9rem);
  --step-4: clamp(2.8rem, 2.15rem + 2.8vw, 4.2rem);
  --step-5: clamp(2.8rem, 2rem + 4vw, 5rem);

  --ease-premium: cubic-bezier(.16, 1, .3, 1);
}

body.theme-dark {
  --surface-0: #08090b;
  --surface-1: #101114;
  --surface-2: #17181c;
  --ink: #f5f5f4;
  --border-subtle: #212226;
  --border-strong: #2c2d32;

  --text-primary: #f5f5f4;
  --text-secondary: #a9abb3;
  /* Was #75777f — 4.46:1 against --surface-0-dark, just under WCAG AA's
     4.5:1. #82848c clears it comfortably (5.34:1). */
  --text-muted: #82848c;

  --accent-soft: #2c1210;
}

*, *::before, *::after { box-sizing: border-box; }

#mainThemeBody {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease-premium), color .3s var(--ease-premium);
}

#mainThemeBody.no-ani, #mainThemeBody.no-ani * { transition: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-3);
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

.mono-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--text-muted);
}

/* Container: intentionally decoupled from vertical section spacing so a
   shorthand `padding` on .section can never zero out this horizontal gutter
   (that exact conflict was the "hits the walls on mobile" bug). */
.container-main {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* ---------- Aurora glow (restrained, brand-toned — not a centered blob) ----
   Used as a background decoration behind the hero and CTA band only. Kept
   low-opacity, heavily blurred, and off-center per the "no giant glowing
   gradient blob" brief — this is the Linear/Stripe technique done subtly,
   not the generic-AI-site version. */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 60vw;
  max-width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
}
.aurora::before {
  background: var(--accent);
  top: -18%;
  right: -10%;
}
.aurora::after {
  background: var(--accent-2);
  bottom: -30%;
  left: -14%;
  opacity: .10;
}
body.theme-dark .aurora::before,
body.theme-dark .aurora::after { opacity: .22; }

/* ---------- Offline / online banners (injected by custom.js site-wide;
   without this, they're never positioned off-screen and just sit inline). --*/
.offline-message, .online-message {
  position: fixed;
  transform: translateY(300%);
  font-weight: 700;
  font-family: var(--font-body);
  transition: all 350ms var(--ease-premium);
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 950;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  line-height: 1.3;
  max-width: 420px;
  margin: 0 auto;
}
.offline-message { background: var(--ink); color: var(--surface-0); }
.online-message { background: #17803d; color: #fff; }
.offline-message-active, .online-message-active { transform: translateY(-12px); }

/* ---------- Scroll progress (thin accent bar tracking read/scroll depth) --
   Animates via `transform: scaleX()` rather than `width` — width changes on
   every scroll tick trigger layout+paint (Lighthouse's "non-composited
   animations" flag); scaleX is GPU-composited, no layout cost. --*/
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  z-index: 600;
  transition: transform .1s linear;
}

/* ---------- Nav (glass) ---------- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: color-mix(in srgb, var(--surface-0) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.main-nav.is-scrolled {
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 8px 24px -16px hsl(var(--shadow-color) / .25);
}

.main-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 16px;
  transition: padding .3s var(--ease-premium);
}
.main-nav.is-scrolled .main-nav__bar { padding-block: 11px; }

.main-nav__brand img { height: 28px; width: auto; }

/* Dual-logo swap (logo.png for light backgrounds, footer-logo.png for dark)
   — applies wherever a .logo-light/.logo-dark pair appears, currently the
   nav brand and the footer mark. */
.logo-dark { display: none; }
body.theme-dark .logo-light { display: none; }
body.theme-dark .logo-dark { display: block; }

.main-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__links a {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding-bottom: 3px;
  transition: color .2s var(--ease-premium);
}
.main-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: right .3s var(--ease-premium);
}
.main-nav__links a.is-active,
.main-nav__links a:hover { color: var(--text-primary); }
.main-nav__links a.is-active::after,
.main-nav__links a:hover::after { right: 0; }

.main-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.main-nav__auth { display: flex; align-items: center; gap: var(--space-3); }
.main-nav__mobile-auth { display: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform .3s var(--ease-premium), border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(-14deg) scale(1.05); }

.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
body.theme-dark .theme-toggle .icon-sun { display: none; }
body.theme-dark .theme-toggle .icon-moon { display: inline-block; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: .93rem;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease-premium), box-shadow .3s var(--ease-premium), background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent), 0 12px 24px -10px color-mix(in srgb, var(--accent) 65%, transparent);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, #fff 35%, transparent) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease-premium);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 8px color-mix(in srgb, var(--ink) 12%, transparent), 0 18px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }

.btn-ghost {
  background: color-mix(in srgb, var(--surface-0) 60%, transparent);
  border-color: var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.main-nav__toggler {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav__links { display: none; }
  .main-nav__toggler { display: inline-flex; }
  /* Hidden from the compact top bar (this is what was squeezing the logo
     down) but still reachable — see .main-nav__mobile-auth below, which
     surfaces the same login/signup/dashboard/logout inside the open
     dropdown instead. */
  .main-nav__auth { display: none; }

  .main-nav.is-open .main-nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-5) var(--gutter) var(--space-6);
    background: var(--surface-0);
    border-bottom: 1px solid var(--border-subtle);
  }
  .main-nav__links a::after { display: none; }

  .main-nav__mobile-auth {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
  }
  /* .main-nav__links a's color rule (higher specificity than .btn-primary
     alone) was winning and turning the Logout button ash instead of white
     — restore the intended button colors explicitly here. */
  .main-nav__mobile-auth .btn { flex: 1; }
  .main-nav__mobile-auth .btn-primary { color: var(--accent-contrast); }
  .main-nav__mobile-auth .btn-ghost { color: var(--text-primary); }
}

/* ---------- Footer ---------- */
.main-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-1);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
}

.main-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
}

.main-footer h5 {
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.main-footer ul { list-style: none; margin: 0; padding: 0; }
.main-footer li { margin-bottom: var(--space-2); }
.main-footer a { color: var(--text-secondary); transition: color .2s ease; }
.main-footer a:hover { color: var(--accent); }

.main-footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.main-footer__social a {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-primary);
  transition: background-color .2s ease, transform .3s var(--ease-premium);
}
.main-footer__social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.main-footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
}

@media (max-width: 900px) {
  .main-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Section scaffolding ----------
   Vertical rhythm uses padding-block (never padding shorthand) so it can
   never clobber .container-main's horizontal padding when both classes
   land on the same element. */
.section { padding-block: var(--space-9); }
.section-tight { padding-block: var(--space-7); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: 100%;
  margin-bottom: var(--space-8);
}
.section-head__text { max-width: 640px; }
.section-head p { color: var(--text-secondary); font-size: var(--step-1); margin: var(--space-3) 0 0; }
.section-head.is-centered { flex-direction: column; align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.section-eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); display: inline-block; }

.btn-lg { padding: 15px 28px; font-size: 1rem; }

@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-6) var(--space-8);
}

/* Named areas instead of two plain grid children — lets .hero__art sit
   between the heading and the CTA buttons on mobile (see the max-width:900px
   override below) instead of always trailing after the CTAs/app-store
   badges in plain source order. */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "intro art" "cta art";
  column-gap: var(--space-8);
  row-gap: var(--space-6);
  align-items: center;
}
.hero__intro { grid-area: intro; }
.hero__art { grid-area: art; }
.hero__cta { grid-area: cta; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface-0) 70%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-size: var(--step-5);
  letter-spacing: -0.03em;
  max-width: 13ch;
  font-weight: 650;
}
.hero__lede { font-size: var(--step-1); color: var(--text-secondary); max-width: 44ch; margin: var(--space-5) 0 0; }
.hero__actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

.hero__stores { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.hero__stores img { height: 44px; width: auto; }

/* Deliberately no box/background/border here — this is a transparent PNG
   cutout, not a photo that needs cropping into a frame. A drop-shadow (which
   follows the actual alpha silhouette, unlike box-shadow) plus a slow float
   is what gives it the "premium floating subject" read instead of looking
   like a placeholder card. */
.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px hsl(var(--shadow-color) / .3));
  animation: hero-float 4.5s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__art img { animation: none; }
}
.hero__ring {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  z-index: 0;
}

.hero__badge-card {
  position: absolute;
  left: -20px;
  bottom: 32px;
  background: color-mix(in srgb, var(--surface-0) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 20px 40px -16px hsl(var(--shadow-color) / .3);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__badge-card .dot-accent { width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; font-size: 1.05rem; }

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "art" "cta";
    row-gap: var(--space-6);
  }
  .hero h1 { max-width: none; }
  .hero__badge-card { display: none; }
  .hero__ring { display: none; }
  .hero__art img { max-width: 320px; margin: 0 auto; }
}

/* ---------- Trust marquee (logos ribbon) ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-9);
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 26px; width: auto; opacity: .5; filter: grayscale(1); transition: opacity .2s ease, filter .2s ease; }
.marquee__track img:hover { opacity: 1; filter: none; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Pro cards (spotlight-on-hover — Stripe/Linear feature-card
   pattern). --mx/--my are set by a small mousemove listener in main.js. --*/
.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.pro-card {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-m);
  border: 1px solid var(--border-subtle);
  background: var(--surface-0);
  overflow: hidden;
  transition: transform .35s var(--ease-premium), border-color .3s ease, box-shadow .35s var(--ease-premium);
}
.pro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.pro-card:hover::before { opacity: 1; }
.pro-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -24px hsl(var(--shadow-color) / .35);
}
.pro-card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: var(--space-5);
  position: relative; z-index: 1;
}
.pro-card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); position: relative; z-index: 1; }
.pro-card p { color: var(--text-secondary); margin: 0 0 var(--space-5); font-size: .93rem; position: relative; z-index: 1; }
.pro-card__link {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-primary);
  transition: gap .25s var(--ease-premium), color .2s ease;
}
.pro-card:hover .pro-card__link { gap: var(--space-3); color: var(--accent); }

@media (max-width: 900px) { .pro-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-9); align-items: center; }
/* No box/border/background on the frame itself — same "no container" call
   as .hero__art: the image carries its own rounded corners + a
   silhouette-following drop-shadow filter instead of a boxed card look. */
.about-split__frame {
  position: relative;
}
.about-split__frame img {
  width: 100%;
  display: block;
  border-radius: var(--radius-l);
  filter: drop-shadow(0 24px 40px hsl(var(--shadow-color) / .25));
}
.about-split__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-split__play span {
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .3s var(--ease-premium);
}
.about-split__play:hover span { transform: scale(1.1); }
.about-split__body p { color: var(--text-secondary); margin-bottom: var(--space-4); font-size: var(--step-1); }

@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.step {
  position: relative;
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-m);
  border: 1px solid var(--border-subtle);
  background: var(--surface-0);
  transition: border-color .3s ease, transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: 0 20px 40px -24px hsl(var(--shadow-color) / .3); }
.step__num {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.step p { color: var(--text-secondary); margin: 0; font-size: .93rem; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Counter (contained dark card, matching the other boxed
   sections' rounded/bordered treatment instead of a jarring full-bleed
   rectangle) ---------- */
.stat-band-wrap {
  position: relative;
  /* Pure --ink reads as a deliberate "inverted" card against a light page,
     but in dark mode the page background is already near-black, so the
     same color made this section invisible as a distinct card — one shade
     lighter in dark mode keeps it looking intentional in both modes. */
  background: var(--ink);
  overflow: hidden;
  border-radius: var(--radius-l);
  padding: var(--space-8);
}
body.theme-dark .stat-band-wrap { background: var(--surface-2); }
.stat-band-wrap .section-head { position: relative; z-index: 1; margin-bottom: var(--space-6); }
.stat-band {
  position: relative; z-index: 1;
  color: var(--surface-0);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.stat-band__item { border-left: 1px solid color-mix(in srgb, var(--surface-0) 14%, transparent); padding-left: var(--space-5); }
.stat-band__item:first-child { border-left: none; padding-left: 0; }
.stat-band__item h4 { font-family: var(--font-display); font-size: var(--step-4); color: #fff; margin-bottom: var(--space-2); line-height: 1; letter-spacing: -.03em; }
.stat-band__item p { color: color-mix(in srgb, var(--surface-0) 58%, transparent); margin: 0; font-size: .88rem; font-family: var(--font-mono); }
.stat-band__item .accent-num { color: var(--accent); }

@media (max-width: 900px) {
  .stat-band-wrap { padding: var(--space-6); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band__item:nth-child(2) { border-left: none; padding-left: 0; }
  .stat-band__item:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 560px) {
  /* One stat per row on true mobile widths — two-up still felt clustered. */
  .stat-band { grid-template-columns: 1fr; gap: var(--space-4); }
  .stat-band__item {
    border-left: none;
    padding-left: 0;
    padding-top: var(--space-4);
    border-top: 1px solid color-mix(in srgb, var(--surface-0) 14%, transparent);
  }
  .stat-band__item:first-child { border-top: none; padding-top: 0; }
}

/* ---------- Call to action ---------- */
.cta-split {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: var(--space-8);
  background: var(--surface-1);
}
.cta-split img { border-radius: var(--radius-m); width: 100%; position: relative; z-index: 1; }
.cta-split h3 { font-size: var(--step-3); }
.cta-split p { color: var(--text-secondary); }
.cta-split > div:not(.aurora) { position: relative; z-index: 1; }

@media (max-width: 900px) { .cta-split { grid-template-columns: 1fr; padding: var(--space-6); } }

/* ---------- Testimonials (auto-scrolling marquee, pauses on hover) ---------- */
.testi-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
.testi-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
}
.testi-marquee:hover .testi-track { animation-play-state: paused; }
.testi-card {
  flex: none;
  width: min(400px, 82vw);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  padding: var(--space-7);
  background: var(--surface-1);
  transition: border-color .3s ease;
}
.testi-card:hover { border-color: var(--border-strong); }
.testi-card__quote { font-size: 1.08rem; color: var(--text-primary); margin-bottom: var(--space-6); letter-spacing: -.01em; }
.testi-card__person { display: flex; align-items: center; gap: var(--space-3); }
.testi-card__person img { width: 46px; height: 46px; border-radius: 999px; object-fit: cover; }
.testi-card__person strong { display: block; font-size: .9rem; }
.testi-card__person span { color: var(--text-muted); font-size: .8rem; }

@media (prefers-reduced-motion: reduce) { .testi-track { animation: none; overflow-x: auto; } }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.blog-card { border-radius: var(--radius-m); overflow: hidden; transition: transform .35s var(--ease-premium); }
.blog-card:hover { transform: translateY(-5px); }
.blog-card__img { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-m); }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-premium); }
.blog-card:hover .blog-card__img img { transform: scale(1.06); }
.blog-card__body { padding: var(--space-5) 0 0; }
.blog-card__meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .76rem; color: var(--text-muted); margin-bottom: var(--space-3); }
.blog-card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card__excerpt { color: var(--text-secondary); font-size: .92rem; overflow: hidden; }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter (slim integrated glass bar) ---------- */
.news-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: var(--space-7) var(--space-8);
  flex-wrap: wrap;
  overflow: hidden;
}
.news-bar h3 { font-size: var(--step-2); margin: 0 0 var(--space-1); }
.news-bar p { color: var(--text-secondary); margin: 0; }
.news-bar form { display: flex; gap: var(--space-2); position: relative; z-index: 1; }
.news-bar input {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 13px 20px;
  background: var(--surface-0);
  color: var(--text-primary);
  min-width: 260px;
}
.news-bar input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.news-bar > div:first-child { position: relative; z-index: 1; }

@media (max-width: 700px) {
  .news-bar { padding: var(--space-6) var(--space-5); flex-direction: column; align-items: stretch; text-align: center; }
  .news-bar form { flex-direction: column; width: 100%; }
  .news-bar input { min-width: 0; width: 100%; }
  .news-bar button { width: 100%; }
}

/* ---------- Trustpilot (static fallback card; official widget replaces
   this automatically once TRUSTPILOT_BUSINESS_UNIT_ID is set — see
   sections/trustpilot.blade.php) ---------- */
.trust-card {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  background: var(--surface-1);
}
.trust-card__mark { font-size: 2rem; color: #00b67a; margin-bottom: var(--space-4); }
.trust-card h3 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.trust-card p { color: var(--text-secondary); margin-bottom: var(--space-6); }

/* ---------- Page header (compact hero for every non-home page) ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-8) var(--space-7);
  border-bottom: 1px solid var(--border-subtle);
}
.page-header .hero__eyebrow { position: relative; z-index: 1; }
.page-header .hero__eyebrow a { color: var(--text-secondary); }
.page-header .hero__eyebrow a:hover { color: var(--accent); }
.page-header .hero__eyebrow i { font-size: .7rem; }
.page-header h1 { position: relative; z-index: 1; font-size: var(--step-3); margin-top: var(--space-4); max-width: 20ch; }
.page-header__lede { position: relative; z-index: 1; color: var(--text-secondary); font-size: var(--step-1); max-width: 56ch; margin-top: var(--space-3); }

/* ---------- FAQ accordion (vanilla JS toggle, see main.js) ---------- */
.faq-search {
  max-width: 560px;
  margin: 0 auto var(--space-8);
  position: relative;
}
.faq-search input {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 14px 20px 14px 46px;
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: 1rem;
}
.faq-search input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.faq-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border-subtle); }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.faq-item__q i { flex: none; color: var(--accent); transition: transform .3s var(--ease-premium); }
.faq-item.is-open .faq-item__q i { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-premium);
  color: var(--text-secondary);
}
.faq-item__a-inner { padding-bottom: var(--space-5); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.contact-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: var(--space-7);
  background: var(--surface-1);
}
.contact-row { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) 0; border-top: 1px solid var(--border-subtle); }
.contact-row:first-of-type { border-top: none; }
.contact-row__icon {
  flex: none; width: 42px; height: 42px; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.05rem;
}
.contact-row strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 2px; }
.contact-row span { color: var(--text-primary); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Article (blog details) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article__img { border-radius: var(--radius-l); overflow: hidden; margin-bottom: var(--space-7); }
.article__img img { width: 100%; display: block; }
.article__meta { display: flex; gap: var(--space-4); font-family: var(--font-mono); font-size: .82rem; color: var(--text-muted); margin-bottom: var(--space-4); }
.article h1 { font-size: var(--step-3); margin-bottom: var(--space-6); }
.article__body { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; }
.article__body p { margin-bottom: var(--space-5); }

.related-posts { max-width: 900px; margin: var(--space-9) auto 0; }

/* ---------- Prose (generic content pages: getLink / T&C / privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; color: var(--text-secondary); line-height: 1.75; }
.prose p { margin-bottom: var(--space-5); }

/* ---------- Scroll reveal (AOS-driven; see layout <script> include) ---------- */
[data-aos] { will-change: transform, opacity; }

/* ---------- Preloader (visitor pages only — see partials/preloader.blade.php) ---------- */
#mainPreloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-0);
  transition: opacity .35s ease, visibility .35s ease;
}
#mainPreloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.main-preloader__inner {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-preloader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: main-preloader-spin .85s linear infinite;
}

.main-preloader__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--accent-soft));
  animation: main-preloader-pulse 1.6s ease-in-out infinite;
}

.main-preloader__pct {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-muted);
  min-width: 3ch;
  text-align: center;
}

.main-preloader__refresh {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
}
.main-preloader__refresh a {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
}
.main-preloader__refresh a:hover { color: var(--accent); border-color: var(--accent); }

@keyframes main-preloader-spin { to { transform: rotate(360deg); } }
@keyframes main-preloader-pulse {
  0%, 100% { transform: scale(1); opacity: .92; }
  50% { transform: scale(1.07); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .main-preloader__ring, .main-preloader__logo { animation: none; }
}

/* ---------- Error pages (403/404/405/419/500) ---------- */
.error-page {
  min-height: calc(100vh - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-9);
}
.error-page__inner { max-width: 480px; }
.error-page__logo {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 0 12px var(--accent-soft));
}
.error-page__code {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.error-page h1 {
  font-size: var(--step-2);
  margin-bottom: var(--space-4);
}
.error-page p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
