/* ==========================================================================
   SceneSync — marketing site stylesheet
   Plain CSS. No build step, no dependencies.
   Mobile-first: base styles target phones, then enhance upward.
   ========================================================================== */

/* Inter, self-hosted. Two variable-font files cover weights 400–800.

   Why not the Google Fonts CDN: linking it cost a DNS lookup plus TLS to
   fonts.googleapis.com (0.7s measured on this device), then a second DNS+TLS
   handshake to fonts.gstatic.com, then a reflow when the webfont swapped in —
   on every cold navigation. These are two same-origin files instead.

   Inter is SIL OFL 1.1, which permits self-hosting. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Latin-ext is not optional here: the Naira sign (U+20A6) lives in this range. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand violet ramp */
  --violet-50:  #F5F3FF;
  --violet-100: #EDE9FE;
  --violet-200: #DDD6FE;
  --violet-300: #C4B5FD;
  --violet-400: #A78BFA;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --violet-700: #6D28D9;

  /* Magenta end of the brand gradient */
  --fuchsia-400: #E879F9;
  --fuchsia-500: #D946EF;
  --fuchsia-600: #C026D3;

  /* Surfaces */
  --ink:        #121212;
  --ink-soft:   #1A1A22;
  --app-bg:     #FAFAFF;
  --surface:    #FFFFFF;

  /* Text */
  --text:       #1E1B2E;
  --text-muted: #5B5578;
  --text-on-dark:      #F4F2FF;
  --text-on-dark-muted:#A9A3C4;

  --border: #E9E5F8;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;

  /* The single brand gradient axis */
  --grad:      linear-gradient(135deg, #7C3AED 0%, #C026D3 100%);
  --grad-soft: linear-gradient(135deg, #EDE9FE 0%, #FCE7F3 100%);
  --grad-dark: linear-gradient(180deg, rgba(124,58,237,.55) 0%, rgba(18,18,18,0) 78%);

  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(30,27,46,.06), 0 2px 8px rgba(124,58,237,.06);
  --shadow-md: 0 4px 14px rgba(30,27,46,.08), 0 14px 40px rgba(124,58,237,.12);
  --shadow-lg: 0 8px 28px rgba(30,27,46,.12), 0 28px 70px rgba(124,58,237,.18);

  --maxw: 1120px;
  --gutter: 20px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 1024px) {
  :root {
    --maxw: 1240px;
    --gutter: 32px;
  }
}

@media (min-width: 1400px) {
  :root {
    --maxw: 1320px;
    --gutter: 40px;
  }
}

/* --------------------------------------------------------------- reset --- */

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

/* No `scroll-behavior: smooth` here on purpose. The browser's smooth scroll
   animates for longer the further it has to travel, so on a long page a nav
   click spends a second crawling to the section — which reads as the section
   being slow to load. An instant jump to an already-revealed section is what
   actually feels fast. Add `scroll-behavior: smooth` back here to revert. */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  background: var(--ink);
}

/* The nav is 64px and sticky, so an anchor jump parks the section heading
   underneath it — the section looks like it never arrived. */
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--app-bg);
  -webkit-font-smoothing: antialiased;
}

#main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p { margin: 0 0 1em; }

a { color: var(--violet-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible focus for keyboard users — never remove. */
:focus-visible {
  outline: 3px solid var(--violet-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader-only text */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--violet-600); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ------------------------------------------------------------- layout --- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 52px 0; }
.section-lg { padding: 68px 0; }

@media (min-width: 960px) {
  .section { padding: 48px 0; }
  .section-lg { padding: 60px 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--violet-600);
  background: var(--violet-50); border: 1px solid var(--violet-100);
  padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 18px;
}

.section-title { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 62ch; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  min-height: 48px;                       /* comfortable touch target */
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-outline {
  background: var(--surface); color: var(--violet-700);
  border-color: var(--violet-200); box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--violet-400); background: var(--violet-50); }

/* On the dark hero / CTA band */
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.btn-ghost-dark {
  background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }

.btn-block { width: 100%; }

.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

@media (min-width: 520px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-block { width: auto; }
}

/* ---------------------------------------------------------------- nav --- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,18,18,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }

.nav-links {
  display: none;
  gap: 26px; margin-left: 12px;
  font-size: .94rem; font-weight: 500;
}
.nav-links a { color: var(--text-on-dark-muted); }
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 20px; min-height: 42px; font-size: .92rem; }
.nav-login { display: none; color: var(--text-on-dark-muted); font-weight: 600; font-size: .94rem; }
.nav-login:hover { color: #fff; text-decoration: none; }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-login { display: inline-flex; }
}

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--text-on-dark);
  padding: 56px 0 64px;
}
@media (min-width: 960px) {
  .hero {
    padding: 64px 0 72px;
  }
}
.hero::before {                     /* the brand glow */
  content: ""; position: absolute; inset: -40% -20% auto -20%;
  height: 130%; background: var(--grad-dark); pointer-events: none;
}
.hero::after {                      /* subtle dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 85%);
          mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.1rem, 8.5vw, 3.9rem);
  letter-spacing: -0.03em; margin-bottom: 18px; max-width: 17ch;
}
@media (min-width: 960px) {
  .hero h1 {
    max-width: 24ch;
  }
}
.hero-sub {
  color: var(--text-on-dark-muted); font-size: 1.08rem;
  max-width: 54ch; margin-bottom: 4px;
}
@media (min-width: 960px) {
  .hero-sub {
    max-width: 68ch;
    font-size: 1.15rem;
  }
}
.hero-note {
  font-size: .88rem; color: var(--text-on-dark-muted);
  margin-top: 20px; display: flex; align-items: center; gap: 8px;
}

/* --------------------------------------------------------------- card --- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Pastel icon tile — the container carries the brand, not the glyph. */
.tile {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 16px;
  border: 1px solid rgba(124,58,237,.10);
}
.tile svg { width: 25px; height: 25px; color: var(--violet-700); }
.tile-purple { background: linear-gradient(135deg,#EDE9FE,#DDD6FE); }
.tile-pink   { background: linear-gradient(135deg,#FCE7F3,#FBCFE8); }
.tile-blue   { background: linear-gradient(135deg,#E0E7FF,#C7D2FE); }
.tile-amber  { background: linear-gradient(135deg,#FEF3C7,#FDE68A); }
.tile-teal   { background: linear-gradient(135deg,#CCFBF1,#99F6E4); }
.tile-rose   { background: linear-gradient(135deg,#FFE4E6,#FECDD3); }

/* -------------------------------------------------------- scroll stack --- */

/* -------------------------------------------------------- scroll stack & shuffle deck --- */

.scroll-stack-section {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 48px 0 44px;
  background: linear-gradient(180deg, rgba(245,243,255,0.4) 0%, rgba(255,255,255,0) 100%), var(--app-bg);
  border-top: 1px solid var(--border);
}

@media (min-width: 960px) {
  .scroll-stack-section {
    padding: 68px 0 80px;
  }
}

/* Stage container: natural flow, no scroll trapping */
.scroll-stack-sticky-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.scroll-stack-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 20px;
}

.scroll-stack-wrap {
  position: relative;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 700px) {
  .scroll-stack-wrap {
    max-width: 680px;
  }
}

/* Ambient radial glow behind the stack */
.scroll-stack-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  max-width: 700px;
  height: 380px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(124, 58, 237, 0.28) 0%,
    rgba(217, 70, 239, 0.18) 38%,
    rgba(99, 102, 241, 0.06) 64%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius-pill);
}

/* Unified card deck (mobile/tablet interactive stack) */
.scroll-deck {
  position: relative;
  width: 100%;
  height: 240px;
  margin: 10px auto 26px;
  perspective: 1000px;
  z-index: 1;
}

@media (min-width: 700px) {
  .scroll-deck {
    height: 230px;
    margin: 12px auto 28px;
  }
}

/* Desktop layout optimization: converts deck into a stunning, balanced 3-column x 2-row feature grid */
@media (min-width: 960px) {
  .scroll-stack-sticky-stage {
    display: block;
  }

  .scroll-stack-head {
    max-width: 780px;
    margin: 0 auto 36px;
  }

  .scroll-stack-wrap {
    max-width: 100%;
    width: 100%;
    display: block;
  }

  .scroll-stack-glow {
    display: none;
  }

  .scroll-deck {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    height: auto !important;
    margin: 0 auto !important;
    perspective: none !important;
  }

  .scroll-deck .card.deck-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    border-radius: 20px !important;
    padding: 28px 24px !important;
    border: 1px solid var(--border) !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-sm) !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    cursor: default !important;
  }

  .scroll-deck .card.deck-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 30px -8px rgba(124, 58, 237, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
    border-color: var(--violet-300) !important;
  }

  .scroll-deck .card.deck-card p {
    margin-top: auto;
  }

  .deck-controls {
    display: none !important;
  }
}

.scroll-deck .card.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 24px 22px;
  user-select: none;
  box-sizing: border-box;
  transform-origin: center bottom;
  box-shadow: 0 10px 30px -6px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 480ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    background 480ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 480ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}

@media (min-width: 700px) {
  .scroll-deck .card.deck-card {
    padding: 28px 32px;
    border-radius: 24px;
  }
}

.scroll-deck .card.deck-card:focus-visible {
  outline: 3px solid var(--violet-500);
  outline-offset: 3px;
}

/* Card header top row with tile icon and step badge */
.deck-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.deck-card-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-600);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  white-space: nowrap;
}

.scroll-deck .card.deck-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.scroll-deck .card.deck-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------ Stack Depth Layering --- */
/* Level 0: Topmost active card in stack */
.scroll-deck .card.deck-card.is-active,
.scroll-deck .card.deck-card[data-rel-pos="0"] {
  z-index: 20;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  opacity: 1;
  filter: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 24px 50px -12px rgba(124, 58, 237, 0.18), 0 8px 22px -4px rgba(15, 23, 42, 0.08);
  pointer-events: auto;
  cursor: default;
}

/* Level 1: Peeking immediately underneath */
.scroll-deck .card.deck-card[data-rel-pos="1"] {
  z-index: 15;
  transform: translate3d(0, 14px, 0) scale(0.965);
  opacity: 0.82;
  filter: blur(1.5px) saturate(0.92);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(226, 232, 240, 0.75);
  box-shadow: 0 14px 30px -8px rgba(15, 23, 42, 0.06);
  pointer-events: auto;
  cursor: pointer;
}

/* Level 2: 2nd card down in stack */
.scroll-deck .card.deck-card[data-rel-pos="2"] {
  z-index: 10;
  transform: translate3d(0, 26px, 0) scale(0.93);
  opacity: 0.62;
  filter: blur(3.5px) saturate(0.85);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(226, 232, 240, 0.6);
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.05);
  pointer-events: auto;
  cursor: pointer;
}

/* Level 3: 3rd card down in stack */
.scroll-deck .card.deck-card[data-rel-pos="3"] {
  z-index: 7;
  transform: translate3d(0, 36px, 0) scale(0.895);
  opacity: 0.42;
  filter: blur(5.5px) saturate(0.8);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(226, 232, 240, 0.45);
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.04);
  pointer-events: auto;
  cursor: pointer;
}

/* Deeper cards in the deck waiting to emerge */
.scroll-deck .card.deck-card[data-rel-pos="4"],
.scroll-deck .card.deck-card[data-rel-pos="5"],
.scroll-deck .card.deck-card[data-rel-pos="deep"] {
  z-index: 4;
  transform: translate3d(0, 44px, 0) scale(0.86);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

/* Hovering a stacked peeking card */
.scroll-deck .card.deck-card[data-rel-pos="1"]:hover,
.scroll-deck .card.deck-card[data-rel-pos="2"]:hover,
.scroll-deck .card.deck-card[data-rel-pos="3"]:hover {
  opacity: 0.92;
  filter: blur(0.5px);
  border-color: var(--violet-300);
}

/* ------------------------------------------- Shuffle Animation from Bottom --- */
/* The card emerges from bottom of stack, pulls out with elevation, and stacks on top */
@keyframes deckShuffleFromBottom {
  0% {
    z-index: 8;
    transform: translate3d(0, 38px, 0) scale(0.89);
    opacity: 0.55;
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.06);
  }
  38% {
    z-index: 35;
    transform: translate3d(24px, 68px, 0) rotate(3.5deg) scale(1.02);
    opacity: 1;
    filter: none;
    box-shadow: 0 32px 65px -12px rgba(124, 58, 237, 0.35), 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  }
  100% {
    z-index: 20;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
    filter: none;
    box-shadow: 0 24px 50px -12px rgba(124, 58, 237, 0.18), 0 8px 22px -4px rgba(15, 23, 42, 0.08);
  }
}

/* Reverse shuffle: top card glides back down to bottom of stack when scrolling backwards */
@keyframes deckShuffleToBottom {
  0% {
    z-index: 35;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
    filter: none;
  }
  45% {
    z-index: 35;
    transform: translate3d(24px, 68px, 0) rotate(3.5deg) scale(1.02);
    opacity: 1;
    box-shadow: 0 32px 65px -12px rgba(124, 58, 237, 0.35);
  }
  100% {
    z-index: 6;
    transform: translate3d(0, 38px, 0) scale(0.89);
    opacity: 0.42;
  }
}

.scroll-deck .card.deck-card.is-shuffling-in {
  animation: deckShuffleFromBottom 520ms cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}

.scroll-deck .card.deck-card.is-shuffling-out {
  animation: deckShuffleToBottom 500ms cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}

/* ------------------------------------------------ Deck Stepper & Controls --- */
.deck-controls {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.deck-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
}

.deck-dot {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deck-dot:hover {
  color: var(--text);
  background: rgba(124, 58, 237, 0.08);
}

.deck-dot.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-700));
  box-shadow: 0 4px 14px -2px rgba(124, 58, 237, 0.4);
}

.deck-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

.deck-status-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--violet-600);
}

.deck-status-sep {
  opacity: 0.4;
}

.deck-status-hint {
  font-size: 0.82rem;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-deck .card.deck-card {
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------- grid --- */

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid { gap: 22px; }
}
@media (min-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* -------------------------------------------------------------- steps --- */

.steps { counter-reset: step; }
.steps h3 { font-size: 1.05rem; }

.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(124,58,237,.30);
}

/* ------------------------------------------------------------- split --- */

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md);
}
.panel-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.panel-row:last-child { border-bottom: 0; }
.panel-key { font-size: .85rem; color: var(--text-muted); }
.panel-val { font-weight: 700; }
.panel-check {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: var(--success); display: grid; place-items: center; color: #fff;
  font-size: 12px; font-weight: 800;
}

/* ---------------------------------------------------------------- cta --- */

.cta-band {
  background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 44px 26px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%;
  height: 90%; background: var(--grad-dark); transform: rotate(180deg);
  pointer-events: none; opacity: .9;
}
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.cta-band p { color: var(--text-on-dark-muted); max-width: 46ch; margin: 0 auto 4px; }

/* --------------------------------------------------------------- hero-cta / trust --- */

.trust {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--text-on-dark-muted); font-size: .9rem;
}
.trust strong { color: #fff; }

/* ----------------------------------------------------------- pricing --- */

.currency-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 32px;
}
.currency-pill-wrap {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 4px;
}
.currency-btn {
  background: transparent; border: 0; padding: 7px 16px;
  border-radius: var(--radius-pill); font-size: .84rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer; transition: all .15s ease;
  font-family: inherit;
}
.currency-btn.active {
  background: var(--grad); color: #fff; box-shadow: var(--shadow-xs);
}
.free-banner {
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(192,38,211,.06));
  border: 1px solid rgba(124,58,237,.25); border-radius: var(--radius-lg);
  padding: 16px 22px; margin-bottom: 28px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 14px;
}

.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured {
  border-color: var(--violet-300);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-badge-subtle {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 2px; }
.price-amount small { font-size: .95rem; font-weight: 600; color: var(--text-muted); }
.price-rate { font-size: .84rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.price-desc { color: var(--text-muted); font-size: .94rem; min-height: 44px; }
.price-note { font-size: .8rem; color: var(--text-muted); font-style: italic; }

.meter-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
}
.meter-card-val { font-size: 1.15rem; font-weight: 800; color: var(--violet-700); margin-top: 4px; }

/* Lifetime Pass & Comparison Table Styles */
.lifetime-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(217, 70, 239, 0.06));
  border: 2px solid var(--violet-400);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.18);
  margin-top: 40px;
}
.lifetime-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 24px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 620px;
}
.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table .highlight-col {
  background: rgba(124, 58, 237, 0.04);
  font-weight: 700;
  color: var(--violet-700);
  border-left: 2px solid rgba(124, 58, 237, 0.2);
  border-right: 2px solid rgba(124, 58, 237, 0.2);
}
.comparison-table th.highlight-col {
  background: rgba(124, 58, 237, 0.1);
  color: var(--violet-900);
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.audience-card h4 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
}
.audience-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.feature-list { list-style: none; padding: 0; margin: 20px 0 24px; }
.feature-list li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 7px 0; font-size: .95rem;
}
.feature-list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------- table (legal) --- */

.legal { max-width: 72ch; opacity: 1 !important; transform: none !important; }
.legal * { opacity: 1 !important; }
.legal h2 { margin-top: 2em; font-size: 1.3rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: .5em; }
.legal .updated {
  color: var(--text-muted); font-size: .9rem;
  padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}

/* ------------------------------------------------------------ footer --- */

.footer {
  background: var(--ink); color: var(--text-on-dark-muted);
  padding: 56px 0 34px; margin-top: 40px;
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: var(--text-on-dark-muted); font-size: .93rem; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer .brand { margin-bottom: 14px; }
.footer-blurb { font-size: .92rem; max-width: 34ch; }

.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-direction: column; gap: 10px;
  font-size: .86rem;
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* --------------------------------------------------------- page header --- */

.page-head {
  background: var(--ink); color: var(--text-on-dark);
  padding: 56px 0 60px; position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: -60% -20% auto -20%;
  height: 150%; background: var(--grad-dark); pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.9rem, 6.5vw, 2.9rem); margin-bottom: 10px; }
.page-head p { color: var(--text-on-dark-muted); max-width: 56ch; margin: 0; }

/* --------------------------------------------------------------- auth ---

   Login and sign-up get a deliberately quieter shell than the marketing
   pages: the nav keeps only its brand and one alternative action, so there
   is a single obvious thing to do on the page.
*/

.auth {
  min-height: 70vh;
  display: grid; place-items: center;
  padding: 40px 0 72px;
  background:
    radial-gradient(760px 340px at 50% -8%, rgba(124,58,237,.11), transparent 72%),
    var(--app-bg);
}
/* Centred inside .wrap, which is itself full-width up to the page max. */
.auth-wrap { width: 100%; max-width: 440px; margin: 0 auto; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
}

.auth-mark { display: grid; place-items: center; margin-bottom: 18px; }
.auth-mark svg { width: 50px; height: 50px; border-radius: 15px; }

.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-card .lede {
  text-align: center; color: var(--text-muted);
  font-size: .95rem; margin-bottom: 26px;
}

/* Embedded in the marketing nav bar, this card needs no page-level padding. */
.auth .btn-block { width: 100%; }

/* --- fields --- */

.field { margin-bottom: 18px; }

.field > label {
  display: block; font-size: .88rem; font-weight: 600;
  margin-bottom: 7px; color: var(--text);
}

.input {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 13px 15px; min-height: 50px;   /* comfortable touch target */
  color: var(--text); background: var(--app-bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #9A94B4; }
.input:hover { border-color: var(--violet-200); }
.input:focus {
  background: var(--surface);
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px rgba(124,58,237,.14);
}
/* The global focus ring has a 4px radius meant for buttons; match the field. */
.input:focus-visible { border-radius: var(--radius-sm); }

.field-hint { font-size: .82rem; color: var(--text-muted); margin: 7px 0 0; }

/* Password field with its show/hide control */
.pw { position: relative; }
.pw .input { padding-right: 72px; }
.pw-toggle {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: .82rem; font-weight: 700;
  color: var(--violet-600); background: transparent;
  border: 0; border-radius: var(--radius-sm);
  padding: 9px 11px; cursor: pointer;
}
.pw-toggle:hover { background: var(--violet-50); }

/* Consent checkbox — aligned to the first line of its label text. */
.check {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .9rem; color: var(--text-muted);
  margin: 0 0 22px; line-height: 1.5;
}
.check input {
  width: 20px; height: 20px; flex: 0 0 auto;
  margin: 2px 0 0; accent-color: var(--violet-600);
}
.check a { font-weight: 600; }

/* --- provider / divider --- */

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0; font-size: .82rem; color: var(--text-muted);
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.btn-provider {
  width: 100%; font-weight: 600;
  background: var(--surface); color: var(--text);
  border-color: var(--border); box-shadow: var(--shadow-sm);
}
.btn-provider:hover { border-color: var(--violet-200); background: var(--violet-50); }
.btn-provider svg { width: 19px; height: 19px; flex: 0 0 auto; }

/* --- foot of the card --- */

.auth-foot {
  text-align: center; margin: 22px 0 0;
  font-size: .94rem; color: var(--text-muted);
}
.auth-foot a { font-weight: 700; }

.auth-note {
  text-align: center; font-size: .82rem; color: var(--text-muted);
  margin: 20px 0 0; padding-top: 18px;
  border-top: 1px solid var(--border);
}


/* ------------------------------------------------------------- motion ---

   Two independent systems, because they answer different questions:

   1. On load    — the hero and page headers are already on screen, so they
                   animate immediately, staggered by position. See `.hero .wrap > *`.
   2. On scroll  — everything below the fold waits until it is actually seen.
                   `[data-reveal]` is hidden by CSS only under `.js`, so with
                   JS off the page is fully readable.
*/

@keyframes ss-rise     { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ss-fade     { from { opacity: 0; } to { opacity: 1; } }
@keyframes ss-pop      { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
@keyframes ss-nav      { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes ss-glow     { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 2.5%, 0); } }

/* 1 — on load ------------------------------------------------------------ */

/* Timings here are deliberately short. Every internal link is a full page
   load, so these replay on each navigation — anything slower than ~0.5s stops
   reading as polish and starts reading as the page being slow. */

.nav { animation: ss-nav .3s cubic-bezier(.16, 1, .3, 1) both; }

.hero .wrap > *,
.page-head .wrap > * {
  animation: ss-rise .5s cubic-bezier(.16, 1, .3, 1) both;
}
.hero .wrap > *:nth-child(1), .page-head .wrap > *:nth-child(1) { animation-delay: .03s; }
.hero .wrap > *:nth-child(2), .page-head .wrap > *:nth-child(2) { animation-delay: .07s; }
.hero .wrap > *:nth-child(3), .page-head .wrap > *:nth-child(3) { animation-delay: .11s; }
.hero .wrap > *:nth-child(4) { animation-delay: .15s; }
.hero .wrap > *:nth-child(5) { animation-delay: .19s; }
.hero .wrap > *:nth-child(6) { animation-delay: .23s; }

/* The brand glow breathes rather than sits still. One element, cheap. */
.hero::before { animation: ss-glow 14s ease-in-out infinite alternate; }

/* Utility classes, for the rare element that wants its own timing. */
.anim-up   { animation: ss-rise .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--d, 0ms); }
.anim-fade { animation: ss-fade .8s ease both;                       animation-delay: var(--d, 0ms); }
.anim-pop  { animation: ss-pop .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--d, 0ms); }

/* 2 — on scroll ---------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .42s cubic-bezier(.16, 1, .3, 1),
    transform .42s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0ms);
}

/* Sideways travel only where the layout is actually side-by-side. On a phone
   the two halves are stacked, so a sideways slide would push past the viewport
   edge and flash a horizontal scrollbar — they rise instead. */
.js [data-reveal="left"],
.js [data-reveal="right"] { transform: translateY(14px); }

@media (min-width: 900px) {
  .js [data-reveal="left"]  { transform: translateX(-20px); }
  .js [data-reveal="right"] { transform: translateX(20px); }
}

.js [data-reveal="pop"] { transform: scale(.96) translateY(8px); }

.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Pointer devices get a lift; touch devices never see a stuck hover. */
@media (hover: hover) and (pointer: fine) {
  .card {
    transition:
      transform .28s cubic-bezier(.16, 1, .3, 1),
      box-shadow .28s ease,
      border-color .28s ease;
  }
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--violet-200);
  }
  .price-card.featured:hover { box-shadow: var(--shadow-lg); }

  .tile { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
  .card:hover .tile { transform: scale(1.07) rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  /* Belt and braces: nothing should be waiting on a transition to become visible. */
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
