@font-face {
  font-family: "Stardos Stencil";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/stardos-stencil-700.woff2") format("woff2");
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --surface-muted: #FAFAFA;
  --text: #171717;
  --text-2: #404040;
  --text-3: #525252;
  --border: #E5E5E5;
  --border-strong: #737373;
  --primary: #171717;
  --primary-fg: #FFFFFF;
  --overlay: rgba(23, 23, 23, 0.4);
  --ok: #166534;
  --ok-bg: #F0FDF4;
  --warn: #92400E;
  --warn-bg: #FFFBEB;
  --danger: #991B1B;
  --danger-bg: #FEF2F2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.06);
  --header-h: 72px;
  --logo-mark: 38px;
  --logo-word: 23px;
  --logo-gap: 12px;
  --max: 1120px;
  --gutter: 24px;
  --ease: 160ms ease-out;
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --surface: #171717;
  --surface-muted: #262626;
  --text: #FAFAFA;
  --text-2: #D4D4D4;
  --text-3: #A3A3A3;
  --border: #262626;
  --border-strong: #A3A3A3;
  --primary: #FAFAFA;
  --primary-fg: #171717;
  --overlay: rgba(0, 0, 0, 0.6);
  --ok: #86EFAC;
  --ok-bg: #14532D;
  --warn: #FBBF24;
  --warn-bg: #78350F;
  --danger: #F87171;
  --danger-bg: #7F1D1D;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .loader, html.is-loading .loader { display: none !important; }
  html.is-loading { overflow: auto; }
}
body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

.mono {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

/* Staging banner (remove before production) */
.staging-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  padding: 8px 16px;
}
.staging-banner a { text-decoration: underline; text-underline-offset: 2px; }
body:has(.staging-banner) .header { top: 33px; }
body:has(.staging-banner) .nav-drawer { top: calc(var(--header-h) + 33px); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 245, 245, 0.92);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .header { background: rgba(10, 10, 10, 0.92); }
@supports ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
  @media (prefers-reduced-transparency: no-preference) {
    .header {
      background: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(16px) saturate(1.4);
      -webkit-backdrop-filter: blur(16px) saturate(1.4);
    }
    [data-theme="dark"] .header { background: rgba(10, 10, 10, 0.88); }
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: var(--logo-mark);
}
.logo-set {
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  height: var(--logo-mark);
}
.logo-mark { height: var(--logo-mark); width: auto; display: block; }
.logo-word { height: var(--logo-word); width: auto; display: block; }
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: flex; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.nav a {
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-muted); }
.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity var(--ease);
  white-space: nowrap;
}
.btn { transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; min-height: 48px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.btn-primary:focus-visible { outline-color: var(--primary); }

/* Hero */
.hero {
  padding-block: 72px 32px;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
}
.hero .lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 36rem;
}

/* Product stage */
.stage {
  position: relative;
  min-height: 420px;
  padding: 12px 220px 48px 0;
}
.desktop {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.desktop-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); opacity: 0.45; }
.desktop-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.desktop-body { padding: 16px; }
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 198px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 12px 10px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.phone-notch {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  margin: 0 auto 10px;
}
.ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}
.ui-row + .ui-row { margin-top: 8px; }
.ui-muted { color: var(--text-3); font-size: 12px; }
.ui-strong { font-weight: 500; }
.stack { display: grid; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-muted);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.chip .pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 12px;
}
.section .sub {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.problem, .solution { margin: 0; }
.problem h3, .solution h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.problem p, .solution p, .prose p { color: var(--text-2); margin: 0 0 12px; }
.problem ul, .solution ul, .prose ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
}
.problem li, .solution li, .prose li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
}
.problem li::before, .solution li::before, .prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 1.5px;
  background: var(--text-3);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 0;
}
.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--text);
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 8px;
}
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }
.feature .code {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-3);
}

/* Audiences */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.audience {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 0;
}
.audience h3 { font-size: 18px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.audience p { margin: 0; color: var(--text-2); font-size: 15px; }
.audience .icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--text);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 0;
}
.step .num {
  font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.security {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.security h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.security p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.plan-featured { border-color: var(--text); }
.plan h3 { font-size: 20px; margin: 0 0 4px; }
.plan .price {
  font-size: 15px;
  color: var(--text-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  color: var(--text-2);
  font-size: 15px;
  flex: 1;
}
.plan li { padding: 6px 0; border-top: 1px solid var(--border); }
.plan li:first-child { border-top: 0; }

/* FAQ */
.faq { display: grid; gap: 8px; max-width: 800px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(45deg);
  flex: 0 0 auto;
  margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq .ans { color: var(--text-2); padding: 0 0 20px; margin: 0; }

/* CTA band */
.cta {
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}
.cta h2 { color: inherit; margin: 0 0 12px; }
.cta p { color: inherit; opacity: 0.82; margin: 0 0 28px; }
.cta .btn-primary {
  background: var(--primary-fg);
  color: var(--primary);
  border-color: var(--primary-fg);
}
.cta .btn-secondary {
  background: transparent;
  color: var(--primary-fg);
  border-color: rgba(255,255,255,0.55);
}
[data-theme="dark"] .cta .btn-secondary { border-color: rgba(23,23,23,0.45); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--text-2);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer .logo { margin-bottom: 12px; }
.footer p { margin: 0; max-width: 28rem; }
.footer h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: 0;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 0 0 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13px;
}

/* Auth / legal inner pages */
.page-main {
  padding: 64px 0 96px;
  min-height: calc(100svh - var(--header-h) - 120px);
}
.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.auth-card h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; }
.auth-card .lede { color: var(--text-2); margin: 0 0 24px; font-size: 15px; }
.field { margin: 0 0 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-size: 16px;
}
.field textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.form-note { margin: 16px 0 0; font-size: 14px; color: var(--text-2); }
.form-note[hidden] { display: none !important; }
.auth-links { margin-top: 20px; font-size: 14px; color: var(--text-2); }
.auth-links a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 16px; }
.legal p { color: var(--text-2); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
}

@media (max-width: 1024px) {
  .audience-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 32px; }
}

@media (max-width: 900px) {
  .nav, .header-actions .btn-ghost.login-link,
  .header-actions .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 40px 16px;
    padding-inline: var(--gutter);
    gap: 32px;
  }
  .stage { min-height: 0; padding: 0; }
  .phone {
    position: static;
    width: 100%;
    max-width: 280px;
    margin: 16px auto 0;
  }
  .split,
  .feature-grid,
  .security-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .cta { padding: 48px 24px; }
  .nav-drawer {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: var(--bg);
    z-index: 40;
    padding: 16px 20px 32px;
    overflow: auto;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-drawer { display: block; }
  /* when staging banner is present, drawer still starts below sticky header */
  .nav-drawer a, .nav-drawer button.linkish {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    min-height: 48px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --header-h: 64px;
    --logo-mark: 32px;
    --logo-word: 20px;
    --logo-gap: 10px;
  }
  .audience-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .cta { padding: 40px 20px; }
  .auth-card { padding: 24px; }
  .page-main { padding-block: 40px 64px; }
}

/* Dark-mode chips stay readable (already tokenised) */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
.contact-grid .section-head { margin-bottom: 0; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .auth-card { max-width: none; }
}

.section, .hero, [id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
body:has(.staging-banner) .section,
body:has(.staging-banner) .hero,
body:has(.staging-banner) [id] {
  scroll-margin-top: calc(var(--header-h) + 49px);
}

/* ---------- Motion / interactivity ---------- */
.header {
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
body.is-scrolled .header {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.nav a {
  position: relative;
  transition: color 160ms ease;
}
.nav a[aria-current="location"] { color: var(--text); }
.nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
}

.feature, .audience, .step, .price-card, .security-grid > * {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.feature:hover, .audience:hover, .step:hover, .price-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.icon-btn { transition: background-color 160ms ease; }

/* Loader: overlay only, never hides page content for LCP */
.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  pointer-events: none;
  opacity: 1;
  transition: opacity 140ms ease;
}
html.is-loading .loader { display: flex; }
html.is-loading .loader.is-done { opacity: 0; }
.loader-mark {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-icon { width: 48px; height: 48px; position: relative; z-index: 1; }
.loader-icon-dark { display: none; }
[data-theme="dark"] .loader-icon-light { display: none; }
[data-theme="dark"] .loader-icon-dark { display: block; }
.loader-wave {
  position: absolute;
  inset: 24px;
  border: 1px solid var(--text);
  border-radius: 50%;
  opacity: 0;
  animation: wave-out 600ms ease-out both;
}
.loader-wave:nth-child(2) { animation-delay: 90ms; }
.loader-wave:nth-child(3) { animation-delay: 180ms; }
@keyframes wave-out {
  0% { transform: scale(0.7); opacity: 0.45; }
  70% { opacity: 0.18; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.chip-live { background: var(--surface-muted); color: var(--text); }
.pip-pulse { animation: pip-blink 1.6s ease-in-out infinite; }
@keyframes pip-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.ui-row.is-updating { animation: row-flash 500ms ease; }
@keyframes row-flash {
  0% { background: var(--surface-muted); }
  100% { background: var(--surface); }
}

.geofence {
  position: relative;
  width: 100%;
  height: 88px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-muted);
  overflow: hidden;
  margin-top: 4px;
}
.geofence-dot, .geofence-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.geofence-dot {
  width: 10px;
  height: 10px;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-bg);
  z-index: 1;
}
.geofence-ring {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ok);
  opacity: 0;
  animation: fence-pulse 2.2s ease-out infinite;
}
.geofence-ring:nth-child(2) { animation-delay: 700ms; }
@keyframes fence-pulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(4.2); opacity: 0; }
}
.checkin-btn.is-pulse { animation: checkin-pulse 2.2s ease-in-out infinite; }
@keyframes checkin-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 4px var(--ok-bg); }
}

/* Feature explorer tabs */
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.feature-tab {
  appearance: none;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.feature-tab:hover { color: var(--text); border-color: var(--border-strong); }
.feature-tab[aria-selected="true"] {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.feature-tab:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.feature.is-filtered { display: none; }

/* How-it-works route */
.steps-wrap { position: relative; padding-top: 8px; }
.steps-route {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  height: 10px;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
.steps-route-track {
  stroke: var(--border);
  stroke-width: 1.5;
}
.steps-route-draw {
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.steps-wrap.is-routed .steps-route-draw {
  animation: route-draw 900ms ease forwards;
}
@keyframes route-draw {
  to { stroke-dashoffset: 0; }
}
.step { position: relative; z-index: 1; }
.step .num { transition: color 300ms ease; }
.steps-wrap.is-routed .step .num { color: var(--text); }
@media (min-width: 901px) {
  .steps-route { display: block; }
}

@media (max-width: 600px) {
  .feature-tab { min-height: 44px; }
}

/* Coming-soon rubber stamp on the disabled login form.
   Red is the only exception to the CrewCom Mono palette. */
.login-stage {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.login-form.is-disabled {
  opacity: 0.62;
  filter: grayscale(0.25);
  pointer-events: none;
  user-select: none;
}
.login-form.is-disabled input,
.login-form.is-disabled button {
  cursor: not-allowed;
}
.coming-stamp {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(118%, 460px);
  transform: translate(-50%, -50%) rotate(-12deg);
  transform-origin: center center;
  pointer-events: none;
  z-index: 2;
  opacity: 0.78;
  color: #B3261E;
}
.coming-stamp-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
@keyframes stamp-thump {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1.38); }
  58% { opacity: 0.85; transform: translate(-50%, -50%) rotate(-12deg) scale(0.96); }
  78% { transform: translate(-50%, -50%) rotate(-12deg) scale(1.05); }
  100% { opacity: 0.78; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .coming-stamp { animation: stamp-thump 480ms cubic-bezier(.16,.8,.28,1) both; }
}

.form-address { margin: 12px 0 0; font-size: 14px; color: var(--text-2); text-align: center; }
.form-address a { color: var(--text); text-underline-offset: 2px; }
