/* ClipSense marketing + auth design system
   Shared by landing/*.html and mvp_static/login.html, register.html.
   Served at /assets/site/site.css by api/mvp.py (serve_asset). */

/* ── Fonts (self-hosted, latin subset) ───────────────────────────── */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap;
  src: url('/assets/site/fonts/bricolage-grotesque-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;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/site/fonts/figtree-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;
}
@font-face {
  font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/site/fonts/anton-latin.woff2') format('woff2');
}
/* Metric-matched fallbacks: text keeps the same size while the web fonts load,
   so the hero headline doesn't reflow (CLS). Values measured with fontTools. */
@font-face {
  font-family: 'Bricolage Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial');
  font-weight: 700 800; size-adjust: 92.63%; ascent-override: 100.40%; descent-override: 29.15%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree Fallback'; src: local('Arial'), local('ArialMT');
  size-adjust: 100.92%; ascent-override: 94.13%; descent-override: 24.77%; line-gap-override: 0%;
}

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  --night:   #0E0B1F;
  --dusk:    #17132E;
  --dusk-2:  #1F1A3D;
  --line:    #2A2547;
  --line-2:  #3B3466;
  --paper:   #F4F2FA;
  --mist:    #A9A3C4;
  --error:   #FF8F8F;
  --success: #5BE3A6;

  --pink:    #E91E8C;
  --violet:  #7B2FF7;
  --blue:    #3A7BD5;
  --cyan:    #00C6FF;
  --wa:      #25D366;

  /* Signature gradient, from the logo. Reserved: phone edge, progress, wordmark. */
  --grad: linear-gradient(100deg, #E91E8C 0%, #7B2FF7 36%, #3A7BD5 70%, #00C6FF 100%);
  /* Button variant: drops the cyan end so white text keeps >= 4.5:1. */
  --grad-btn: linear-gradient(100deg, #D4157E 0%, #6A24E0 50%, #2F66C4 100%);

  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', system-ui, sans-serif;
  --font-body: 'Figtree', 'Figtree Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: 1.125rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.55rem + 4.1vw, 4.5rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 6.5vw, 96px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 240ms;

  --z-nav: 50;
  --z-menu: 60;
  color-scheme: dark;
}

/* ── Reset / base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  min-height: 100vh;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; }
p { text-wrap: pretty; }

.lead { font-size: var(--fs-lead); color: var(--mist); max-width: 60ch; }
.muted { color: var(--mist); }

::selection { background: rgba(123, 47, 247, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.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: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--paper); color: var(--night); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head h2 + p { margin-top: 16px; }

/* ── Wordmark ────────────────────────────────────────────────────── */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--paper);
  min-height: 44px;
}
.brand img { width: 38px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.wordmark .sense {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.brand-by { font-size: 0.72rem; color: var(--mist); margin-top: 4px; letter-spacing: 0.01em;  white-space: nowrap; }
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand img { width: 30px; }
  .wordmark { font-size: 1.15rem; }
  .brand-by { font-size: 0.66rem; }
  .nav-actions .btn-sm { padding: 10px 14px; }
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--t-fast) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 28px -10px rgba(123, 47, 247, 0.7);
}
.btn-primary:hover { box-shadow: 0 12px 36px -10px rgba(123, 47, 247, 0.9); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(244, 242, 250, 0.04);
  border-color: var(--line-2);
  color: var(--paper);
}
.btn-ghost:hover { background: rgba(244, 242, 250, 0.08); border-color: var(--mist); }
.btn-ghost .wa-icon { color: var(--wa); }

.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.text-link {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--t-fast);
}
.text-link:hover { text-decoration-color: var(--cyan); }

/* ── Nav ─────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  transition: background-color var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
.site-nav.is-solid,
.site-nav.always-solid {
  background: rgba(14, 11, 31, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
/* backdrop-filter makes the nav the containing block for the fixed menu; drop it while open */
.site-nav.menu-open {
  background: var(--night);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--mist); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border-radius: var(--r-pill);
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--paper); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-login:hover { color: var(--cyan); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line-2);
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--paper); border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast);
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: var(--z-menu);
  background: var(--night);
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--paper); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 20px; }
.mobile-menu .stores { margin-top: 20px; }

@media (max-width: 1000px) {
  .nav-links, .nav-login { display: none; }
  .menu-toggle { display: inline-flex; }
}
/* Without JS the toggle can't work: show links inline instead. */
.no-js .menu-toggle, .no-js .mobile-menu { display: none; }
@media (max-width: 1000px) {
  .no-js .nav-links { display: flex; flex-wrap: wrap; }
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
  color: var(--mist);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
}
.footer-endorse p { max-width: 42ch; margin-top: 16px; }
.footer-endorse a { color: var(--paper); }
.footer-endorse .stores { margin-top: 24px; }
.footer-col h2 {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0;
  color: var(--paper); margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 2px; }
.footer-col a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--mist); text-decoration: none; transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--paper); }
.footer-base {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.875rem;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-endorse { grid-column: 1 / -1; }
}

/* ── App store badges (every page: hero, menu, footer, CTAs) ────── */
/* Official-style black badges; the platform mark is the only colour. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 16px 6px 12px; border-radius: 12px;
  background: #000; border: 1px solid rgba(244, 242, 250, 0.26); color: #fff;
  text-decoration: none; line-height: 1.1; white-space: nowrap;
  transition: border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.store:hover { border-color: rgba(244, 242, 250, 0.6); }
.store:active { transform: scale(0.97); }
.store svg { width: 24px; height: 24px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: 0.68rem; font-weight: 500; color: rgba(255, 255, 255, 0.78); letter-spacing: 0.01em; }
.store b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.stores-label { color: var(--mist); font-size: 0.9rem; margin-right: 4px; }
@media (max-width: 680px) {
  .stores { width: 100%; }
  .stores .store { flex: 1 1 0; justify-content: center; padding-inline: 10px; }
  .stores-label { flex-basis: 100%; }
}

/* ── Phone mockup (hero, features, auth panel) ───────────────────── */
.phone {
  --phone-w: 280px;
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 9 / 19.2;
  border-radius: calc(var(--phone-w) * 0.15);
  padding: calc(var(--phone-w) * 0.035);
  background: #08061A;
  box-shadow:
    0 0 0 1.5px rgba(244, 242, 250, 0.08) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 30px 120px -40px rgba(123, 47, 247, 0.55);
  isolation: isolate;
}
/* Gradient edge: one of the three places the signature gradient lives. */
.phone::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  z-index: -1;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: calc(var(--phone-w) * 0.12);
  overflow: hidden;
  background: var(--dusk);
}
.phone-notch {
  position: absolute; top: calc(var(--phone-w) * 0.035); left: 50%; transform: translateX(-50%);
  width: 30%; height: calc(var(--phone-w) * 0.06); border-radius: 0 0 14px 14px;
  background: #08061A; z-index: 10;
}

/* Scene "footage": a photo per business type. Swap a .scene for a <video> later; overlays sit above either. */
.scene { position: absolute; inset: 0; background-size: cover; background-position: center; }
.scene::after {
  /* soft vignette + legibility scrim for top/bottom text */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 26, 0.55) 0%, transparent 26%, transparent 64%, rgba(8, 6, 26, 0.75) 100%);
}
/* Photo scenes (assets/site/scenes/*.webp) — gradient underneath shows while the photo loads. */
.scene-cafe   { background: url("/assets/site/scenes/cafe.webp") center / cover no-repeat, linear-gradient(170deg, #3B1E14, #7A4126 45%, #2A140D); }
.scene-gym    { background: url("/assets/site/scenes/gym.webp") center / cover no-repeat, linear-gradient(180deg, #161B3A, #0B0E22); }
.scene-salon  { background: url("/assets/site/scenes/salon.webp") center / cover no-repeat, linear-gradient(190deg, #3A1630, #8C4A6E 55%, #22101C); }
.scene-street { background: url("/assets/site/scenes/boutique.webp") center / cover no-repeat, linear-gradient(180deg, #F2A65E, #B5583A 45%, #241425); }
.scene-realestate { background: url("/assets/site/scenes/realestate.webp") center / cover no-repeat, linear-gradient(180deg, #E9DCCB, #8E7558); }

/* Reel overlays — layout rule: hook top, title centre, captions bottom,
   nothing ever covers the phone number on the end card. */
.ov { position: absolute; left: 0; right: 0; z-index: 3; text-align: center; padding-inline: 10%; }
.ov-hook { top: 12%; }
.ov-hook span {
  display: inline-block;
  font-family: 'Anton', 'Bricolage Grotesque', sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: calc(var(--phone-w) * 0.075); line-height: 1.05;
  padding: 0.3em 0.55em; border-radius: 6px;
  background: rgba(8, 6, 26, 0.55);
  border: 2px solid #F0B37A;
  color: #fff;
}
.ov-title {
  top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: calc(var(--phone-w) * 0.1); line-height: 1; color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.ov-cap { bottom: 9%; }
.ov-cap span {
  display: inline-block;
  font-weight: 700; font-size: calc(var(--phone-w) * 0.05); line-height: 1.3;
  padding: 0.25em 0.6em; border-radius: 6px;
  background: rgba(8, 6, 26, 0.72); color: #fff;
}
.ov-logo {
  position: absolute; z-index: 3; top: 4.5%; right: 7%;
  display: flex; align-items: center; gap: 5px;
  font-size: calc(var(--phone-w) * 0.036); font-weight: 700; color: #fff;
  padding: 4px 8px 4px 4px; border-radius: 999px; background: rgba(8, 6, 26, 0.5);
}
.ov-logo i {
  width: calc(var(--phone-w) * 0.06); height: calc(var(--phone-w) * 0.06); border-radius: 50%;
  background: #F0B37A; display: block;
}

/* End card */
.endcard {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
  background: radial-gradient(70% 50% at 50% 40%, #4A2416 0%, #1E0F0A 100%);
  text-align: center; padding: 12%;
}
.endcard-logo {
  width: calc(var(--phone-w) * 0.24); height: calc(var(--phone-w) * 0.24); border-radius: 50%;
  background: #F0B37A; color: #2A140D;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: calc(var(--phone-w) * 0.08);
}
.endcard-name { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: calc(var(--phone-w) * 0.075); line-height: 1.1; }
.endcard-cta { color: #F6D9A8; font-weight: 600; font-size: calc(var(--phone-w) * 0.045); }
.endcard-phone {
  font-weight: 700; color: #fff; font-size: calc(var(--phone-w) * 0.055);
  padding: 0.45em 0.9em; border-radius: 999px; border: 1.5px solid #F0B37A;
  font-variant-numeric: tabular-nums;
}

/* ── Forms (auth pages) ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.95rem; font-weight: 600; color: var(--paper); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute; left: 16px; color: var(--mist);
  display: flex; align-items: center; pointer-events: none;
}
.field input {
  width: 100%; min-height: 52px;
  padding: 0 16px 0 46px;
  background: var(--dusk-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  color: var(--paper);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field input::placeholder { color: #8A84A8; }
.field input:hover { border-color: #4C4480; }
.field input:focus-visible,
.field input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.28);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 0.875rem; color: var(--error); min-height: 1.2em; }
.field-error:empty { min-height: 0; }

.pwd-toggle {
  position: absolute; right: 4px;
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--mist);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.pwd-toggle:hover { color: var(--paper); background: rgba(244, 242, 250, 0.06); }
.field input#password { padding-right: 52px; }

.server-error {
  display: none;
  padding: 12px 14px; margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(255, 143, 143, 0.08);
  border: 1px solid rgba(255, 143, 143, 0.35);
  color: var(--error); font-size: 0.95rem; line-height: 1.5;
}
.server-error.visible { display: block; }

.btn-submit {
  width: 100%; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--r-pill);
  background: var(--grad-btn); color: #fff;
  font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 10px 30px -12px rgba(123, 47, 247, 0.8);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base), opacity var(--t-fast);
}
.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(123, 47, 247, 1); }
.btn-submit:active:not(:disabled) { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: cs-spin 0.7s linear infinite;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-label { display: none; }
@keyframes cs-spin { to { transform: rotate(360deg); } }

/* ── FAQ (landing + use-case pages) ──────────────────────────────── */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding-block: 18px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq summary .pm::before, .faq summary .pm::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: var(--mist); border-radius: 2px; transition: transform var(--t-base) var(--ease-out);
}
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq summary:hover .pm::before, .faq summary:hover .pm::after { background: var(--paper); }
.faq .answer { padding-bottom: 22px; color: var(--mist); max-width: 62ch; }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--paper); }

/* ── Content pages: breadcrumbs, use cases, about ────────────────── */
.crumbs { padding-top: 28px; font-size: 0.9rem; color: var(--mist); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.crumbs [aria-current] { color: var(--paper); }

.uc-hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.uc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.uc-hero h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem); max-width: 18ch; }
.uc-hero .lead { margin-top: 20px; }
.uc-hero .phone { --phone-w: 230px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row + .stores { margin-top: 16px; }

.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.ideas li { padding-block: 22px; border-top: 1px solid var(--line); }
.ideas h3 { font-size: 1.1rem; }
.ideas p { margin-top: 6px; color: var(--mist); font-size: 0.975rem; }

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.example { padding: 24px; border-radius: var(--r-lg); background: var(--dusk); border: 1px solid var(--line); }
.example .tag { font-size: 0.8rem; color: var(--mist); }
.example .hook {
  display: inline-block; margin-top: 12px; font-family: 'Anton', var(--font-display); text-transform: uppercase;
  font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1.1; padding: 0.25em 0.5em; border: 2px solid var(--line-2); border-radius: 6px;
}
.example .cap { margin-top: 12px; font-weight: 600; }
.example .meta { margin-top: 14px; color: var(--mist); font-size: 0.9rem; }

.mini-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: ms; }
.mini-steps li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.mini-steps li::before { counter-increment: ms; content: counter(ms); display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.mini-steps p { color: var(--mist); margin-top: 6px; }

.also { display: flex; flex-wrap: wrap; gap: 10px; }
.also a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--paper); text-decoration: none; font-weight: 500;
}
.also a:hover { border-color: var(--mist); }

.band { border-top: 1px solid var(--line); padding-block: clamp(56px, 6.5vw, 96px); }
.band h2 { max-width: 20ch; }

.prose-block { max-width: 68ch; }
.prose-block h2 { margin-top: 44px; }
.prose-block p, .prose-block ul { margin-top: 16px; color: #D9D5EA; font-size: 1.0625rem; line-height: 1.75; }
.prose-block ul { padding-left: 1.2em; }
.prose-block li + li { margin-top: 8px; }
.prose-block a { color: var(--paper); text-underline-offset: 3px; }

@media (max-width: 900px) {
  .uc-hero-grid { grid-template-columns: 1fr; }
  .uc-hero .phone { justify-self: center; }
  .ideas, .examples, .mini-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ideas, .examples, .mini-steps { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ── Auth layout (login, register) ───────────────────────────────── */
.auth {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.auth-aside {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 32px;
  padding: 32px clamp(24px, 4vw, 56px);
  background: var(--dusk); border-right: 1px solid var(--line);
}
.auth-aside::before {
  content: ''; position: absolute; z-index: 0; width: 640px; height: 640px; right: -320px; bottom: -200px;
  background: radial-gradient(closest-side, rgba(123, 47, 247, 0.25), transparent);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.auth-aside h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; max-width: 14ch; }
.auth-points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; gap: 12px; color: var(--mist); }
.auth-points li strong { color: var(--paper); font-weight: 600; }
.auth-points svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--success); }
.auth-aside .phone { --phone-w: 190px; }
.auth-aside-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; color: var(--mist); }
.auth-aside-foot a { color: var(--mist); }
.auth-aside-foot a:hover { color: var(--paper); }

.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 48px clamp(16px, 5vw, 64px);
}
.auth-box { width: 100%; max-width: 420px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h1 { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); letter-spacing: -0.03em; }
.auth-heading p { margin-top: 8px; color: var(--mist); font-size: 1.05rem; }
.auth-box .form { display: flex; flex-direction: column; gap: 18px; }
.forgot-row { display: flex; justify-content: flex-end; margin-top: -6px; font-size: 0.925rem; color: var(--mist); }
.forgot-row a { color: var(--paper); margin-left: 4px; }

.or { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--mist); font-size: 0.875rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.google-wrap { position: relative; height: 52px; margin-top: 22px; }
.btn-google {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  color: var(--paper); font-weight: 600; font-size: 1rem;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.google-wrap:hover .btn-google { border-color: var(--mist); background: rgba(244, 242, 250, 0.05); }
.google-wrap:focus-within .btn-google { outline: 2px solid var(--cyan); outline-offset: 3px; }
.google-hit { position: absolute; top: 0; left: 0; opacity: 0; transform-origin: 0 0; cursor: pointer; overflow: hidden; }
.switch-text { margin-top: 28px; text-align: center; color: var(--mist); }
.switch-text a { color: var(--paper); font-weight: 600; text-underline-offset: 4px; }
.auth-apps { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.auth-apps p { color: var(--mist); font-size: 0.925rem; margin-bottom: 12px; }
.auth-apps .stores { justify-content: center; }
.prose-block .stores, .contact .stores { margin-top: 24px; }

.pwd-strength { margin-top: 2px; }
.pwd-strength-bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pwd-strength-fill { height: 100%; border-radius: 99px; width: 0%; transition: width 0.3s, background-color 0.3s; }
.pwd-strength-label { font-size: 0.8rem; margin-top: 4px; min-height: 1.1em; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-aside { padding: 16px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-aside::before, .auth-aside-body, .auth-aside-foot { display: none; }
  .auth-panel { align-items: flex-start; padding-top: 40px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .auth-aside-body { grid-template-columns: 1fr; }
  .auth-aside .phone { display: none; }
}

/* ── Motion preferences ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
