/*


 */

/* ========================================================================
   DESIGN SYSTEM — PumpDocket
   Premium SaaS: dark hero, elevated cards, gradient accents, glow CTAs
   ======================================================================== */

:root {
  /* Core palette */
  --bg: #f4f5f2;
  --ink: #0f1d24;
  --ink-soft: #1e3340;
  --muted: #4d6472;
  --card: #ffffff;
  --card-soft: #f8f9f7;
  --line: #d0ddd8;
  --line-soft: rgba(208, 221, 216, 0.5);

  /* Brand greens — deep forest */
  --brand: #0d7a5f;
  --brand-strong: #065c47;
  --brand-soft: #daf2e9;
  --brand-dim: rgba(13, 122, 95, 0.08);

  /* Accent — emerald pop */
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --danger: #b85042;

  /* Dark surface (hero, footer) */
  --dark: #0b1a22;
  --dark-card: rgba(255, 255, 255, 0.05);
  --dark-line: rgba(255, 255, 255, 0.08);
  --dark-text: #e2ecf0;
  --dark-muted: #8fa3af;

  /* Radius & elevation */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --control-h: 44px;
  --shadow: 0 20px 50px rgba(8, 22, 28, 0.10), 0 8px 20px rgba(8, 22, 28, 0.06);
  --shadow-soft: 0 4px 16px rgba(8, 22, 28, 0.05), 0 1px 4px rgba(8, 22, 28, 0.03);
  --shadow-lg: 0 32px 72px rgba(8, 22, 28, 0.14), 0 12px 28px rgba(8, 22, 28, 0.08);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.18), 0 0 64px rgba(16, 185, 129, 0.08);

  /* Spacing tokens */
  --section-gap: 4rem;

  /* Transition tokens */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 200ms;

  /* Status colors */
  --color-success-bg: #d4edda;
  --color-success-text: #155724;
  --color-warning-bg: #fff3cd;
  --color-warning-text: #856404;
  --color-danger-bg: #f8d7da;
  --color-danger-text: #721c24;
  --color-info-bg: #e3f2fd;
  --color-info-text: #1565c0;
}


/* ── RESET & BASE ────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ── TYPOGRAPHY ──────────────────────────────────────────────────────── */

h1, h2, h3 {
  margin: 0 0 0.6rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.06rem, 2.2vw, 1.3rem); }

p { margin: 0.1rem 0 0.8rem; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover { color: var(--brand-strong); }


/* ── LAYOUT ──────────────────────────────────────────────────────────── */

.container,
.page-shell,
.flash-wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.page-shell { margin: 2.1rem auto 2.8rem; }
.page-shell > section { margin-bottom: 1.5rem; }


/* ── SHELL BACKGROUNDS ───────────────────────────────────────────────── */

.marketing-shell {
  background:
    radial-gradient(ellipse 80% 50% at 50% -12%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #f5f7f4 0%, #eef2ef 100%);
}

.product-shell {
  background:
    linear-gradient(180deg, rgba(17, 121, 95, 0.05) 0, rgba(17, 121, 95, 0.01) 180px, transparent 260px),
    #f4f6f6;
}

.product-shell .top-nav {
  background: linear-gradient(180deg, rgba(20, 36, 44, 0.96) 0%, rgba(20, 36, 44, 0.92) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.product-shell .top-nav .brand,
.product-shell .top-nav nav a {
  color: #eaf3f0;
}

.product-shell .top-nav nav a:hover {
  color: #ffffff;
}


/* ── NAVIGATION — premium sticky blur ────────────────────────────────── */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(208, 221, 216, 0.45);
  background: rgba(255, 255, 255, 0.72);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0;
  gap: 1.2rem;
}

.brand {
  color: var(--ink);
  font-size: 1.18rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 160ms ease;
}

.brand:hover {
  opacity: 0.75;
  color: var(--ink);
}

.brand-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 1.3rem;
  height: 1.3rem;
  display: inline-block;
  flex: 0 0 auto;
}

.top-nav nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex: 1 1 auto;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.top-nav nav a,
.top-nav nav .btn,
.top-nav nav .nav-link {
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.top-nav nav .btn {
  min-height: 42px;
  min-width: 84px;
  padding: 0.55rem 0.9rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.48rem 0.78rem;
  min-height: 40px;
  min-width: 44px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.1;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--brand-dim);
}

.nav-link.is-active {
  color: var(--brand-strong);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(13, 122, 95, 0.12);
}

.hide-on-mobile {
  display: inline-flex;
}
.show-on-mobile-only {
  display: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #b0c4bc;
  color: var(--ink);
}

.top-nav-product {
  background: rgba(246, 250, 248, 0.92);
}

.top-nav-product nav {
  width: 100%;
}

.top-nav-product .nav-link {
  color: #eaf3f0;
}

.top-nav-product .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.top-nav-product .nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(202, 230, 220, 0.4);
}

.top-nav-product .btn-ghost {
  background: #f7fbfa;
  border-color: #9fb8b1;
  color: #1b3a43;
  box-shadow: inset 0 -1px 0 rgba(14, 53, 50, 0.06);
}

.top-nav-product .btn-ghost:hover {
  border-color: #7ea29a;
  background: #fff;
  color: #15333c;
}

.nav-more {
  position: relative;
}

.nav-more > summary {
  list-style: none;
  cursor: pointer;
}

.nav-more > summary::-webkit-details-marker {
  display: none;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  padding: 0.42rem;
  background: #10252f;
  border: 1px solid rgba(223, 236, 231, 0.2);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 30;
  display: grid;
  gap: 0.15rem;
}

.nav-more:not([open]) .nav-more-menu {
  display: none;
}

.top-nav-product .nav-more-menu .nav-link {
  justify-content: flex-start;
  width: 100%;
}

.product-secondary-nav {
  display: none;
  width: 100%;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.product-secondary-nav .nav-link {
  font-size: 0.84rem;
  padding: 0.26rem 0.46rem;
}

.top-nav-product .nav-secondary-separator {
  color: rgba(234, 243, 240, 0.48);
  font-size: 0.86rem;
  padding: 0 0.08rem;
}

.top-nav-product nav form {
  flex: 0 0 auto;
}


/* ── HAMBURGER MENU ────────────────────────────────────────────────────── */

.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background 160ms ease;
}

.hamburger-toggle:hover {
  background: rgba(13, 122, 95, 0.08);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.product-shell .hamburger-bar {
  background: #eaf3f0;
}

@media (max-width: 740px) {
  .hamburger-toggle {
    display: flex;
  }

  .top-nav .nav-shell {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.75rem 4vw 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    z-index: 25;
  }

  .product-shell .top-nav .nav-shell {
    background: #14242c;
    border-bottom-color: rgba(255,255,255,0.1);
  }

  .top-nav .nav-shell.is-open {
    display: flex;
  }

  .nav-primary {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-primary .nav-link {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-actions {
    margin-left: 0;
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .btn,
  .nav-actions form {
    width: 100%;
  }

  .nav-actions form .btn {
    width: 100%;
  }

  .hide-on-mobile {
    display: none;
  }

  .show-on-mobile-only {
    display: inline-flex;
  }
}


/* ── BUTTONS — premium with glow ─────────────────────────────────────── */

.btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.62rem 1.15rem;
  min-height: var(--control-h);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-spring),
              border-color var(--duration-normal) var(--ease-spring),
              background var(--duration-normal) var(--ease-spring);
  position: relative;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #b0c4bc;
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  border: none;
  background: linear-gradient(180deg, #14a87e 0%, var(--brand) 50%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 122, 95, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #17c08e 0%, #0ea070 50%, var(--brand) 100%);
  box-shadow: var(--shadow-glow), 0 4px 16px rgba(13, 122, 95, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 6px rgba(13, 122, 95, 0.2);
}

.btn-danger {
  border: none;
  background: var(--danger);
  color: #fff;
  font-weight: 600;
}
.btn-danger:hover {
  background: #a0443a;
  color: #fff;
}

/* Outline button */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

/* Skip-nav for accessibility */
.skip-nav {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.skip-nav:focus {
  left: 10px;
  top: 10px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Small button */
.btn-sm {
  min-height: 36px;
  padding: 0.38rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
}

/* Large CTA */
.btn-lg {
  min-height: 52px;
  padding: 0.82rem 1.8rem;
  font-size: 1rem;
  border-radius: var(--radius);
  letter-spacing: -0.01em;
}

/* Secondary (outline on dark bg) */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}


/* ── CARDS — hero, panel, stat ───────────────────────────────────────── */

.hero,
.panel,
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero,
.panel {
  padding: 1.7rem 1.75rem;
  margin-bottom: 1.35rem;
  overflow-x: auto;
}

.hero {
  background:
    radial-gradient(circle at 8% -34%, rgba(160, 221, 198, 0.28) 0%, transparent 48%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
  box-shadow: var(--shadow);
  animation: rise-fade 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stat {
  padding: 1.3rem 1.2rem;
  min-height: 146px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfa 100%);
  transition: transform 240ms var(--ease-spring),
              box-shadow 240ms var(--ease-spring),
              border-color 240ms var(--ease-spring);
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #b8cfc6;
}

.stat p:last-child { margin-bottom: 0; }


/* ── PAGE HEAD & UTILITIES ───────────────────────────────────────────── */

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.span-all-columns { grid-column: 1 / -1; }
.mt-sm { margin-top: 0.8rem; }
.mt-md { margin-top: 1.2rem; }
.ml-sm { margin-left: 0.6rem; }

.price-unit {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--muted);
}

.page-head h1 { margin-bottom: 0.3rem; }

.page-head .actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.muted { color: var(--muted); }


/* ── GRID ────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


/* ── BADGE, KICKER, LIST ─────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.36rem 0.88rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.kicker {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.13em;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

.list {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  list-style: none;
}

.list li {
  margin: 0.24rem 0;
  position: relative;
  padding-left: 0.85rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.compact-list li { margin: 0.18rem 0; }


/* ── HERO SPOTLIGHT ──────────────────────────────────────────────────── */

.hero-spotlight {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
}

.hero-spotlight > * { min-width: 0; }

.hero-copy .kicker { margin-bottom: 0.7rem; }

.hero-copy h1 {
  font-size: clamp(2.05rem, 3.8vw, 3.25rem);
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-copy p.muted {
  max-width: 50ch;
  font-size: 1.03rem;
  color: #51636d;
}

.hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.text-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 0.62rem 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: #1f5f4d;
  background: rgba(235, 245, 241, 0.92);
  border: 1px solid #cddfd8;
  border-radius: 11px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.text-cta-link:hover {
  color: #124938;
  border-color: #b6cec5;
  background: #e3f1eb;
}

.hero-media {
  position: relative;
  min-height: 370px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #c6d8d3;
  background: linear-gradient(180deg, #dfe7e4 0%, #d7e1dd 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.56) 0%, rgba(251, 252, 251, 0.14) 24%, rgba(251, 252, 251, 0) 48%),
    linear-gradient(0deg, rgba(10, 22, 26, 0.16) 0%, rgba(10, 22, 26, 0) 42%);
  pointer-events: none;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.section-cta {
  margin-top: 0.95rem;
  margin-bottom: 0;
}

.process-section .section-cta .btn {
  min-height: 46px;
  padding: 0.74rem 1.12rem;
  white-space: nowrap;
}

.closing-cta {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.closing-cta h2 { color: var(--heading); }
.closing-cta .closing-cta-sub { color: var(--muted); max-width: 52ch; margin: 0 auto 1rem; }
.closing-cta .closing-alt-cta { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }
.closing-cta .closing-alt-cta a { color: var(--accent); }

.closing-cta .hero-actions {
  margin-bottom: 0.7rem;
  justify-content: center;
}

.closing-cta .btn-secondary {
  color: var(--brand);
  border-color: var(--brand);
}
.closing-cta .btn-secondary:hover {
  background: var(--brand);
  color: #fff;
}

.cta-band {
  background: linear-gradient(180deg, #0e2430 0%, #091119 100%);
  color: #fff;
  border: none;
  box-shadow: none;
  text-align: center;
}
.cta-band h2 { color: var(--dark-text); }
.cta-band .muted { color: var(--dark-muted); }
.cta-band .hero-actions { justify-content: center; }
.cta-band a:not(.btn) { color: var(--accent); }


/* ── DARK HERO — dramatic homepage hero ──────────────────────────────── */

.dark-hero {
  background:
    radial-gradient(ellipse 70% 60% at 70% -10%, rgba(16, 185, 129, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 5% 90%, rgba(13, 122, 95, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #091119 0%, #0b1a22 45%, #0e2430 100%);
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.dark-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.035) 0%, transparent 45%);
  pointer-events: none;
}

.dark-hero-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 5rem 0 4.5rem;
  position: relative;
  z-index: 1;
}

.dark-hero .kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.dark-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 18ch;
  margin-bottom: 1.2rem;
}

.dark-hero .hero-sub {
  color: var(--dark-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 50ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.dark-hero .hero-actions {
  margin-top: 0;
  margin-bottom: 1.6rem;
  gap: 0.85rem;
}

.dark-hero .hero-actions .btn-primary {
  min-height: 54px;
  padding: 0.85rem 2rem;
  font-size: 1.02rem;
  border-radius: var(--radius);
}

.dark-hero .hero-actions .btn-secondary {
  min-height: 54px;
  padding: 0.85rem 1.6rem;
  font-size: 1.02rem;
  border-radius: var(--radius);
}

.dark-hero .hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  color: var(--dark-muted);
  font-size: 0.88rem;
}

.dark-hero .hero-social-proof .proof-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(143, 163, 175, 0.4);
  flex-shrink: 0;
}

.dark-hero .hero-note {
  color: var(--dark-muted);
  font-size: 0.84rem;
  margin-top: 0.75rem;
}

.dark-hero .hero-dare {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
}

/* Hero grid layout with screenshot */
.dark-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.dark-hero-media {
  transform: perspective(1200px) rotateY(-8deg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(0,0,0,0.3);
}

.browser-chrome {
  background: #1a2a33;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.browser-chrome-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #0f1d24;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.hero-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 920px) {
  .dark-hero-grid { grid-template-columns: 1fr; }
  .dark-hero-media { display: none; }
}

/* Social proof banner */
.social-proof-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0 0;
  background: linear-gradient(135deg, #f0f7f3, #e8f3ed);
  border: 1px solid rgba(13, 122, 95, 0.2);
  border-radius: var(--radius-sm);
}

.social-proof-counter {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
}

.proof-count {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.proof-label {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.92rem;
  white-space: nowrap;
}

.social-proof-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .social-proof-banner { flex-direction: column; gap: 0.5rem; text-align: center; }
}


/* ── HOMEPAGE SECTIONS ───────────────────────────────────────────────── */

.home-section {
  padding: 3.5rem 0 2.8rem;
  margin-bottom: 0;
}

.home-flow {
  padding: 2.4rem 0 1.8rem;
}

.home-section .kicker {
  margin-bottom: 0.5rem;
}

.home-section .muted {
  color: var(--muted);
}

/* Section divider */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 20%, var(--line) 80%, transparent 100%);
  margin: 2.5rem 0;
}

/* Pain section */
.home-pain h2,
.home-flow h2,
.home-proof h2 {
  margin-bottom: 0.6rem;
}

.pain-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pain-grid h3 {
  margin-bottom: 0.3rem;
}

/* Pain cards — premium bordered cards */
.pain-card {
  padding: 2rem 1.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 240ms var(--ease-spring),
              box-shadow 240ms var(--ease-spring),
              border-color 240ms var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 240ms ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #b8cfc6;
}

.pain-card:hover::before {
  opacity: 1;
}

.pain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  color: var(--brand);
}

.pain-icon svg {
  width: 28px;
  height: 28px;
}

.pain-card h3 {
  margin-bottom: 0.5rem;
}

.pain-card p {
  margin-bottom: 0;
  line-height: 1.55;
}


/* Cost callout — bridge between pain and how-it-works */
.cost-callout {
  text-align: center;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #fef8f0, #fdf3e7);
  border: 1px solid #e8d5c0;
  border-radius: var(--radius-sm);
}

.cost-callout p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.cost-callout-figure {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  color: var(--danger);
}

.cost-callout a {
  font-weight: 600;
  white-space: nowrap;
}


/* Founding Operator callout */
.founding-operator {
  text-align: center;
  padding: 2rem 1.6rem;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #f0f7f3, #e6f2eb);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
}

.founding-operator h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.founding-operator .muted {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.founding-operator .list {
  text-align: left;
  display: inline-block;
  max-width: 540px;
}

.founding-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  text-align: left;
  max-width: 680px;
  margin: 1rem auto;
}

.founding-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.founding-benefit svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .founding-benefits-grid { grid-template-columns: 1fr; }
}


/* Flow / daily loop */
.flow-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0;
}

.flow-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.flow-item:last-child {
  border-bottom: 0;
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(13, 122, 95, 0.15);
  background: linear-gradient(180deg, var(--brand-soft) 0%, #ecf6f2 100%);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 0 2px 6px rgba(13, 122, 95, 0.07);
}

.flow-badge-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 42px;
  padding: 0 12px;
  white-space: nowrap;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, #ecf6f2 100%);
  border: 1px solid rgba(13, 122, 95, 0.15);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.82rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(13, 122, 95, 0.12);
}

.flow-item h3 {
  margin-bottom: 0.24rem;
}


/* Proof / outcome sections */
.proof-grid {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid article {
  padding: 0.4rem 0.2rem;
}



/* Hero proof strip */
.home-hero .hero-note {
  margin-top: 0.15rem;
  margin-bottom: 0.3rem;
}

.hero-proof-strip {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-proof-strip span {
  display: block;
  padding: 0.58rem 0.64rem;
  border-radius: 10px;
  border: 1px solid #cde0d9;
  background: linear-gradient(180deg, #f8fcfa 0%, #f1f8f5 100%);
  font-size: 0.84rem;
  line-height: 1.35;
  color: #22403a;
  font-weight: 600;
}


/* Soft surface sections */
.home-soft-surface {
  position: relative;
  padding: 1.8rem 1.6rem;
  background: linear-gradient(180deg, #f6fbf9 0%, #f0f6f3 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.home-soft-surface::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}


/* Fit section */
.home-fit .fit-grid {
  margin-top: 1rem;
  margin-bottom: 0.6rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-fit .fit-grid article {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  padding-left: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 240ms var(--ease-spring),
              box-shadow 240ms var(--ease-spring),
              border-color 240ms var(--ease-spring);
}

.home-fit .fit-grid article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}


/* Rollout / timeline */
.home-rollout {
  margin-top: 0.25rem;
}

.rollout-timeline {
  margin: 1rem 0 0.5rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.rollout-timeline li {
  color: #223841;
  padding: 0.85rem 0 0.85rem 3.2rem;
  position: relative;
  border-left: 2px solid var(--line);
  margin-left: 0.75rem;
}

.rollout-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.05rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 122, 95, 0.1);
}

.rollout-timeline li:last-child {
  border-left-color: transparent;
}

.rollout-timeline li:last-child::before {
  background: var(--brand);
  border-color: var(--brand);
}



/* Closing CTA panel */
.closing-cta {
  background: linear-gradient(180deg, #f6fbf9 0%, #f0f7f3 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.closing-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.closing-alt-cta {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.closing-alt-cta a {
  color: var(--brand);
  font-weight: 500;
}


/* ── TABLES ──────────────────────────────────────────────────────────── */

.desktop-only-table { display: table; }
.mobile-record-list { display: none; }

.mobile-record-card {
  border: 1px solid #d5e3de;
  border-radius: 12px;
  padding: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #f8fcfa 100%);
  box-shadow: var(--shadow-soft);
}

.mobile-record-card + .mobile-record-card {
  margin-top: 0.72rem;
}

.mobile-record-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.62rem;
}

.mobile-record-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.2;
}

.mobile-record-card dl {
  margin: 0;
  display: grid;
  gap: 0.38rem;
}

.mobile-record-card dl div {
  display: grid;
  grid-template-columns: minmax(88px, 0.34fr) 1fr;
  gap: 0.5rem;
}

.mobile-record-card dt {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.1;
  color: #5a6f79;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mobile-record-card dd {
  margin: 0;
  font-size: 0.92rem;
  color: #233944;
}

.mobile-record-card p {
  margin: 0.74rem 0 0;
}

.integration-panel .provider-fields {
  margin-top: 1rem;
  padding-top: 0.3rem;
}

.integration-panel .provider-fields h3 {
  margin-bottom: 0.5rem;
}

.hero-tag {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.44rem 0.66rem;
  border-radius: 8px;
  background: rgba(12, 30, 36, 0.82);
  color: #f4f8f7;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.hero-inset {
  position: absolute;
  right: 0.72rem;
  bottom: 0.72rem;
  width: clamp(170px, 44%, 255px);
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(209, 226, 219, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(9, 26, 31, 0.22);
  z-index: 2;
}

.hero-inset img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-inset figcaption {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.2;
  color: #23414b;
  padding: 0.36rem 0.45rem;
  border-top: 1px solid #d9e7e1;
}


/* ── DATA TABLES ─────────────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

th, td {
  text-align: left;
  padding: 0.68rem 0.62rem;
  border-bottom: 1px solid #e8efec;
  vertical-align: top;
}

th {
  background: #f5faf7;
  font-size: 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

td { font-size: 0.94rem; }

tbody tr:nth-child(even) { background: #f8fcfa; }
tbody tr:hover { background: #f0f7f4; }


/* ── FORMS ───────────────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid + p,
.form-grid + .form-actions { margin-top: 1rem; }

label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  border: 1px solid #c9d7d3;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  min-height: var(--control-h);
  font: inherit;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

textarea { min-height: 100px; }


/* ── DETAIL PAGE COMPONENTS ─────────────────────────────────────────── */

/* Detail grid — two-column key/value pairs for show pages */
.detail-grid {
  margin: 0;
}
.detail-grid > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.detail-grid > div:last-child { border-bottom: none; }
.detail-grid dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.detail-grid dd {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  word-break: break-word;
}
.detail-grid dd a { color: var(--brand); text-decoration: none; }
.detail-grid dd a:hover { text-decoration: underline; }

/* Action bar — groups primary/secondary/destructive buttons */
.action-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}
.action-bar .action-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.action-bar .action-spacer { flex: 1; }
.action-bar .action-group--danger {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

/* Line-item table — for options, payments, materials */
.line-item-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.line-item-table thead th {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.line-item-table th.col-price,
.line-item-table td.col-price { text-align: right; }
.line-item-table tbody td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  vertical-align: top;
}
.line-item-table tbody tr:last-child td { border-bottom: none; }
.line-item-table .item-name { font-weight: 600; color: var(--ink); }
.line-item-table .item-desc { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }
.line-item-table .currency { font-variant-numeric: tabular-nums; }

/* Meta badges — inline row in page header */
.meta-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.meta-badges .meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

/* Pill variants */
.pill-success { background: var(--color-success-bg); color: var(--color-success-text); border-color: transparent; }
.pill-warning { background: var(--color-warning-bg); color: var(--color-warning-text); border-color: transparent; }
.pill-info    { background: var(--color-info-bg);    color: var(--color-info-text);    border-color: transparent; }
.pill-danger  { background: var(--color-danger-bg);  color: var(--color-danger-text);  border-color: transparent; }

/* Small select — compact inline dropdown */
.select-sm {
  min-height: 36px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
  border: 1px solid #c9d7d3;
  background: #fff;
  width: auto;
}

/* Fieldset polish — remove browser defaults */
fieldset {
  border: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
  margin: 1rem 0 0;
}
legend {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0 0.5rem 0 0;
}

/* Form actions bar */
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* Inline form for action bar dropdowns */
.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Responsive: detail grid stacks on mobile */
@media (max-width: 740px) {
  .detail-grid > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .action-bar .action-group--danger {
    padding-left: 0;
    border-left: none;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line-soft);
    width: 100%;
  }
}


.stripe-card-element {
  width: 100%;
  border: 1px solid #c9d7d3;
  border-radius: 10px;
  padding: 0.72rem;
  min-height: var(--control-h);
  background: #fff;
}

pre {
  margin: 0;
  font-size: 0.83rem;
  border-radius: 10px;
  padding: 0.78rem 0.8rem;
  background: #111a1f;
  color: #dce8e4;
  overflow: auto;
}

.flash-wrap { margin: 1rem auto 0; }

.flash {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.flash-icon { flex-shrink: 0; width: 18px; height: 18px; }
.flash-dismiss { position: absolute; top: 0.5rem; right: 0.5rem; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 0.2rem; }
.flash-dismiss:hover { color: var(--ink); }

.flash-enter { animation: flash-slide-in 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.flash-exit { animation: flash-fade-out 300ms ease forwards; }
@keyframes flash-slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flash-fade-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-4px); } }

.flash.notice {
  border-color: #a6dcca;
  background: #f0faf6;
}

.flash.alert {
  border-color: #e5b4aa;
  background: #fff3ef;
}

.inline-form { display: inline; }


/* ── METRICS BAND ────────────────────────────────────────────────────── */

.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.metric-box {
  padding: 0.86rem;
  border-radius: 12px;
  border: 1px solid #d2e2dc;
  background: linear-gradient(180deg, #f7fcf9 0%, #f3f8f6 100%);
}

.metric-box strong {
  display: block;
  font-size: 1.36rem;
  font-family: "Space Grotesk", sans-serif;
}


/* ── TRUST STRIP ─────────────────────────────────────────────────────── */

.trust-strip {
  padding: 0.95rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(237, 247, 242, 0.92) 0%, rgba(244, 250, 247, 0.94) 100%);
}

.trust-strip-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.trust-item {
  border: 1px solid #d7e7e1;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 11px;
  padding: 0.65rem 0.75rem;
}

.trust-item strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.trust-item span {
  color: #5a6f79;
  font-size: 0.86rem;
}


/* ── FEATURE / PRICING / FAQ ─────────────────────────────────────────── */

.feature-grid .stat h3 { margin-top: 0.2rem; }
.pricing-grid .btn { margin-top: 0.7rem; }
.pricing-policy .grid { margin-top: 0.2rem; }
.pricing-policy-note { margin-top: 0.7rem; }
.faq-grid .stat { min-height: 0; }
.guarantee-panel .btn { margin-top: 0.35rem; }


/* ── LOOP / CONVERSION PROOF ─────────────────────────────────────────── */

.loop-panel {
  background: linear-gradient(180deg, #f8fcfa 0%, #f3f9f6 100%);
}

.conversion-proof h2 { margin-bottom: 0.7rem; }

.conversion-proof-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-band {
  background: linear-gradient(180deg, #f9fcfb 0%, #f4faf7 100%);
}


/* ── PRODUCT PAGES ───────────────────────────────────────────────────── */

.product-hero {
  background:
    radial-gradient(circle at 7% -35%, rgba(153, 217, 194, 0.26) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
}

.product-hero-signals {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.product-hero-signals span {
  border: 1px solid #cfe1db;
  border-radius: 10px;
  background: linear-gradient(180deg, #f9fcfb 0%, #f2f8f5 100%);
  padding: 0.5rem 0.62rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #24433e;
}

.product-journey-nav {
  margin: 0.35rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.journey-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.4rem 0.74rem;
  border-radius: 999px;
  border: 1px solid #c9dcd5;
  background: #f6fbf9;
  color: #20403a;
  font-size: 0.88rem;
  font-weight: 600;
}

.journey-chip:hover {
  border-color: #b4cec5;
  background: #ebf5f1;
}

.product-intro-band {
  margin-bottom: 1.05rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.product-intro-band article {
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #d6e5df;
  background: linear-gradient(180deg, #fff 0%, #f9fcfb 100%);
}

.product-intro-band h3 { margin-bottom: 0.3rem; }

.product-step {
  margin-bottom: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid #d4e4de;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: var(--shadow-soft);
}

.step-head h2 { margin-bottom: 0.35rem; }

.step-layout {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
}

.step-outcomes {
  border: 1px solid #d6e5df;
  border-radius: 12px;
  background: #f7fbf9;
  padding: 0.8rem 0.85rem;
}

.step-outcomes h3 { margin-bottom: 0.24rem; }

.pain-before { color: var(--danger); font-weight: 600; }
.gain-after { color: var(--brand); font-weight: 600; }

.compliance-preview {
  margin-top: 0.9rem;
  border: 1px solid #d4e5df;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fcfb 0%, #f3f9f6 100%);
  padding: 0.85rem 0.92rem;
}

.compliance-preview h3 { margin-bottom: 0.36rem; }

.compliance-preview-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.compliance-sheet {
  border: 1px solid #d3e3dd;
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem 0.75rem;
}

.compliance-sheet header {
  margin-bottom: 0.35rem;
  display: grid;
  gap: 0.15rem;
}

.compliance-sheet span {
  color: #56717c;
  font-size: 0.82rem;
}

.compliance-note {
  margin-top: 0.62rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.product-proof-band {
  padding: 2.5rem 0.1rem 2rem;
  margin-bottom: 0.8rem;
  border-top: 1px solid #d8e5e0;
}

.product-proof-band h2 { margin-bottom: 1.5rem; }

.proof-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proof-metric-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.proof-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1rem;
}

.proof-metric-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.proof-metric-card .muted {
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 28ch;
  margin: 0 auto;
}

@media (max-width: 740px) {
  .proof-metrics-grid { grid-template-columns: 1fr; gap: 1rem; }
  .proof-metric-card { padding: 1.5rem 1rem; }
}

.product-rollout-band {
  padding: 0.85rem 0.1rem 1.2rem;
  margin-bottom: 0.85rem;
  border-top: 1px solid #d8e5e0;
}

.product-rollout-band h2 { margin-bottom: 0.32rem; }

.walkthrough-video .video-shell {
  margin-top: 0.75rem;
  margin-bottom: 0.65rem;
  border: 1px solid #d5e4de;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1b21;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.walkthrough-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #0f1b21;
}

.walkthrough-video video::cue {
  background: rgba(15, 27, 33, 0.82);
  color: #fff;
  font-size: 1.05rem;
  font-family: inherit;
  line-height: 1.5;
  border-radius: 4px;
  padding: 0.2em 0.5em;
}

.proof-faq h2 { margin-bottom: 0.58rem; }
.flow-step h2 { margin-bottom: 0.4rem; }

/* Time-beat step header (your-day page) */
.time-beat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.time-beat-kicker .beat-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.01em;
}

.time-beat-kicker .beat-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
}

.flow-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.flow-summary { margin-top: 0.1rem; }

.cta-band {
  background: linear-gradient(180deg, #f7fcfa 0%, #f2f8f5 100%);
}
.cta-band h2 { color: var(--ink); }
.cta-band .muted { color: var(--muted); }

.content-cta {
  background: linear-gradient(180deg, #f8fcfa 0%, #f3f9f6 100%);
}

.plan-picker {
  background: linear-gradient(180deg, #f9fcfb 0%, #f4faf7 100%);
}

.flow-hero h1 { max-width: 24ch; }


/* ── SCREEN CARDS ────────────────────────────────────────────────────── */

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.screen-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.screen-card {
  margin: 0;
  border: 1px solid #d5e3de;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.screen-card img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 460px;
  object-fit: contain;
  background: #f7faf9;
}

.screen-card figcaption {
  padding: 0.7rem 0.8rem 0.85rem;
  border-top: 1px solid #e3eeea;
}

.screen-card figcaption strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.18rem;
}

.screen-card figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
}


/* ── WORKFLOW STRIPS ─────────────────────────────────────────────────── */

.workflow-strip h2 { margin-bottom: 0.5rem; }

.product-workflow-strip {
  margin-top: 0.25rem;
  margin-bottom: 0.9rem;
  background: linear-gradient(180deg, #f8fcfa 0%, #f2f8f5 100%);
}

.product-workflow-strip .workflow-cards { margin-top: 0.3rem; }

.workflow-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: stretch;
}

.workflow-card {
  border: 1px solid #d5e3de;
  border-radius: 12px;
  padding: 0.55rem;
  background: linear-gradient(180deg, #fff 0%, #f9fcfb 100%);
  display: grid;
  gap: 0.32rem;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-spring), border-color 240ms var(--ease-spring);
}

.workflow-card:hover {
  transform: translateY(-2px);
  border-color: #b7d2c8;
  box-shadow: var(--shadow);
}

.workflow-card figure {
  margin: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #d5e3de;
}

.workflow-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

.workflow-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  line-height: 1.1;
}

.workflow-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.workflow-arrow { display: none; }


/* ── RESOURCES ───────────────────────────────────────────────────────── */

.resource-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.resource-proof {
  background: linear-gradient(180deg, #f9fcfb 0%, #f3f9f6 100%);
}

.resource-pillar-link { color: inherit; }

.resource-pillar-link .stat {
  min-height: 100%;
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-spring), border-color 240ms var(--ease-spring);
}

.resource-pillar-link:hover .stat,
.resource-pillar-link:focus-visible .stat {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #bfd6cd;
}

.resource-grid .resource-card { min-height: 280px; }
.resource-card-link { display: block; color: inherit; }

.resource-card-link:hover .resource-card,
.resource-card-link:focus-visible .resource-card {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #bfd6cd;
}

.resource-card-link:focus-visible { outline: 0; }

.resources-page {
  max-width: 980px;
  margin: 0 auto;
}

.resources-header { margin-bottom: 1rem; }

.resources-toolbar {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #dbe7e3;
}

.resources-toolbar h2 { margin-bottom: 0.45rem; }

.workflow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.42rem 0.76rem;
  border: 1px solid #cadbd5;
  border-radius: 999px;
  background: #f6fbf9;
  color: #22413b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.chip:hover {
  background: #ecf6f2;
  border-color: #b8cfc6;
}

.chip-active {
  background: #dfefe8;
  border-color: #9cc1b3;
  color: #1c3c34;
}


/* ── ARTICLES ────────────────────────────────────────────────────────── */

.article-content {
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.66;
}

.article-content h2 { margin-top: 0.8rem; margin-bottom: 0.45rem; }
.article-content h3 { margin-top: 0.7rem; margin-bottom: 0.4rem; }

.article-content p,
.article-content li {
  color: #243740;
  font-size: 1.02rem;
}

.article-content .list { margin-bottom: 0.9rem; }

.article-page {
  max-width: 920px;
  margin: 0 auto;
}

.article-header { margin-bottom: 1.15rem; }

.article-header h1 {
  font-size: clamp(2.05rem, 5.2vw, 3.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.article-header p.muted {
  font-size: 1.08rem;
  max-width: 62ch;
}

.article-body {
  max-width: 860px;
  margin: 0;
  padding-top: 0.95rem;
  border-top: 1px solid #dbe7e3;
}

.article-inline-cta {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid #dbe7e3;
}

.article-inline-cta h2 { margin-bottom: 0.45rem; }

.article-related {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid #dbe7e3;
}


/* ── TRIAL / LOGIN / AUTH ────────────────────────────────────────────── */

.trial-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
  align-items: start;
}

.auth-links {
  border-top: 1px solid #dde7e3;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
}

.login-layout {
  max-width: 420px;
  margin: 2rem auto;
}

.login-form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
}

.login-form-grid .full-row { grid-column: 1 / -1; }

.login-submit-btn {
  width: 100%;
  font-size: 1rem;
}

.forgot-password {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
}

.forgot-password-link {
  color: var(--muted);
  font-weight: 500;
}

.forgot-password-link:hover {
  color: var(--brand);
}

/* Selected plan confirmation card */
.selected-plan-card {
  border-left: 4px solid var(--brand);
  padding: 1rem 1.2rem;
  background: var(--brand-dim);
  border-radius: var(--radius-xs);
  margin-bottom: 1rem;
}

.selected-plan-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.selected-plan-price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand-strong);
  margin: 0.15rem 0;
}

.selected-plan-billing {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.selected-plan-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.change-plan-link {
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.3rem;
  display: inline-block;
}

.trial-form h2,
.trial-sidebar h2 { margin-bottom: 0.55rem; }

.trial-form .form-grid .muted {
  margin-top: 0.3rem;
  margin-bottom: 0;
  font-size: 0.84rem;
}

.trial-mode-fieldset {
  margin: 0.9rem 0 0.8rem;
  border: 1px solid #d5e2dd;
  border-radius: 14px;
  background: linear-gradient(180deg, #fdfefd 0%, #f6faf8 100%);
  padding: 0.8rem;
}

.trial-mode-fieldset legend {
  padding: 0 0.4rem;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 700;
  color: #1d333c;
}

.trial-mode-option {
  margin: 0;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #d6e3de;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  margin-bottom: 0.65rem;
}

.trial-mode-option:last-child { margin-bottom: 0; }

.trial-mode-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0.2rem 0 0;
  min-height: 18px;
  flex: 0 0 auto;
}

.trial-mode-copy {
  display: grid;
  gap: 0.12rem;
}

.trial-mode-copy strong {
  font-size: 1rem;
  line-height: 1.25;
  color: #1c333c;
}

.trial-mode-copy small {
  font-size: 0.9rem;
  color: #4c6571;
  line-height: 1.35;
}

.trial-mode-option:has(input:checked) {
  border-color: #88c7b2;
  box-shadow: 0 0 0 3px rgba(25, 143, 113, 0.12);
  background: #f4fbf8;
}

.trial-sidebar h3 { margin-top: 1rem; }

.onboarding-list {
  display: grid;
  gap: 0.75rem;
}

.onboarding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d8e5e0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfefe 0%, #f7fbf9 100%);
}

.onboarding-item h3 { margin-bottom: 0.2rem; }

.card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.52rem;
  font-weight: 600;
}


/* ── MISC PANELS ─────────────────────────────────────────────────────── */

.outcomes-panel .grid { margin-top: 0.2rem; }
.outcomes-panel .stat { min-height: 122px; }

.product-topbar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  font-size: 0.76rem;
  border: 1px solid #d2e2dc;
  background: #f3faf7;
  color: #1f6e57;
  font-weight: 700;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tile {
  border: 1px solid #d4e5df;
  border-radius: 12px;
  padding: 0.8rem;
  background: linear-gradient(180deg, #f9fcfb 0%, #f2f8f5 100%);
}

.tile strong {
  font-size: 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  display: block;
}

.tile span {
  color: var(--muted);
  font-size: 0.86rem;
}


/* ── FOOTER — premium dark ───────────────────────────────────────────── */

footer {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  background: var(--dark);
  padding: 3.5rem 0 2rem;
  margin: 0;
  color: var(--dark-muted);
}

.site-footer .container {
  border-top: none;
  padding-top: 0;
}

.site-footer a {
  color: var(--dark-text);
  transition: color 160ms ease;
}

.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.2rem;
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--dark-text);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand .brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  filter: brightness(0) invert(1) opacity(0.75);
}

.footer-tagline {
  color: var(--dark-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.8rem;
  max-width: 34ch;
}

.footer-email { margin: 0; }

.footer-col h4 {
  color: var(--dark-text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.8rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  font-size: 0.9rem;
  color: var(--dark-muted);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--dark-muted);
}

.footer-legal {
  display: flex;
  gap: 1.2rem;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--dark-muted);
}


/* ── PROSE ───────────────────────────────────────────────────────────── */

.prose h2 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}


/* ── ANIMATIONS ──────────────────────────────────────────────────────── */

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: rise-fade 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-up-d1 { animation-delay: 100ms; }
.fade-up-d2 { animation-delay: 200ms; }
.fade-up-d3 { animation-delay: 300ms; }


/* ── RESPONSIVE — 920px ──────────────────────────────────────────────── */

@media (max-width: 920px) {
  .hero-spotlight {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .hero-media { min-height: 260px; }
  .metrics-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-strip-items { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .screen-grid { grid-template-columns: 1fr; }
  .trial-layout { grid-template-columns: 1fr; display: flex; flex-direction: column-reverse; }
  .login-form-grid { grid-template-columns: 1fr; }
  .resource-pillars { grid-template-columns: 1fr; }

  .product-hero-signals,
  .product-intro-band,
  .step-layout {
    grid-template-columns: 1fr;
  }

  .step-layout { gap: 0.75rem; }

  .conversion-proof-grid,
  .hero-proof-strip,
  .proof-grid,
  .pain-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .compliance-preview-grid { grid-template-columns: 1fr; }
  .flow-item { grid-template-columns: 64px 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .dark-hero-inner { padding: 3.5rem 0 3rem; }

  .dark-hero h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    max-width: none;
  }
}

@media (max-width: 1180px) {
  .hero-copy .metrics-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ── RESPONSIVE — 740px (mobile) ─────────────────────────────────────── */

@media (max-width: 740px) {
  .top-nav .container {
    flex-wrap: wrap;
    gap: 0;
  }

  /* Nav shell hidden by hamburger controller — do NOT override display here */

  .top-nav .nav-shell.is-open {
    width: 100%;
  }

  .top-nav .nav-shell.is-open .nav-primary {
    justify-content: flex-start;
    gap: 0.3rem;
    flex-wrap: wrap;
  }

  .hide-on-mobile { display: none; }
  .show-on-mobile-only { display: block; }

  .top-nav .nav-actions {
    margin-left: 0;
    justify-content: flex-start;
    gap: 0.42rem;
    flex-wrap: nowrap;
  }

  .top-nav-product .nav-more { display: inline-block; }
  .product-secondary-nav { display: none; }

  .top-nav-product .nav-link,
  .top-nav-product .btn {
    font-size: 0.82rem;
    padding: 0.36rem 0.5rem;
    min-height: 34px;
    white-space: normal;
  }

  .page-shell { margin-top: 1.4rem; }

  .hero, .panel, .stat { border-radius: 12px; }
  .hero, .panel { padding: 1.15rem; }
  .stat { padding: 0.95rem; }

  .hero-copy h1 {
    font-size: clamp(1.72rem, 7.4vw, 2.15rem);
  }

  .hero-media { min-height: 240px; }
  .metrics-band { grid-template-columns: 1fr; }
  .hero-proof-strip { grid-template-columns: 1fr; }

  .home-soft-surface {
    padding: 1.2rem 1rem;
    border-radius: 12px;
  }

  .flow-item { padding: 0.65rem 0; }
  .workflow-cards { grid-template-columns: 1fr; }
  .workflow-card img { height: 128px; }
  .workflow-card strong { font-size: 1rem; }
  .workflow-card span { font-size: 0.88rem; line-height: 1.4; }

  .flow-hero h1 {
    max-width: none;
    font-size: clamp(1.56rem, 7vw, 2rem);
  }

  .product-step { padding: 0.95rem 0.9rem; }
  .product-journey-nav { gap: 0.42rem; }

  .journey-chip {
    min-height: 36px;
    font-size: 0.84rem;
    padding: 0.34rem 0.62rem;
  }

  .flow-step .screen-card img { max-height: 235px; }
  .process-section .section-cta .btn { width: 100%; }

  .jobs-table thead,
  .invoices-table thead { display: none; }

  .jobs-table tbody tr,
  .invoices-table tbody tr {
    display: block;
    border-bottom: 1px solid #e2ece8;
    padding: 0.55rem 0.22rem;
  }

  .jobs-table td,
  .invoices-table td {
    border-bottom: 0;
    padding: 0.18rem 0.22rem;
    font-size: 0.83rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .jobs-table td::before,
  .invoices-table td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 42%;
    color: #5a6f79;
    font-size: 0.72rem;
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .jobs-table td:nth-child(4),
  .jobs-table td:nth-child(7) { display: none; }
  .desktop-only-table { display: none; }
  .mobile-record-list { display: block; }


  .dark-hero-inner { padding: 2.5rem 0 2rem; }

  .dark-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .dark-hero .hero-sub { font-size: 1rem; }

  .dark-hero .hero-actions .btn-primary,
  .dark-hero .hero-actions .btn-secondary {
    min-height: 48px;
    padding: 0.72rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .dark-hero .hero-social-proof {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }

  .dark-hero .hero-social-proof .proof-dot { display: none; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .rollout-timeline li { padding-left: 2.2rem; }
}




/* ── STATUS BADGES ──────────────────────────────────────────────────── */

.status-badge { display: inline-block; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.78rem; font-weight: 600; }
.status-scheduled { background: var(--brand-soft); color: var(--brand-strong); }
.status-in_progress { background: var(--color-warning-bg); color: var(--color-warning-text); position: relative; }
.status-in_progress::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid rgba(133, 100, 4, 0.2); animation: status-pulse 2s ease-in-out infinite; pointer-events: none; }
@keyframes status-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.status-completed { background: var(--color-success-bg); color: var(--color-success-text); }
.status-canceled { background: var(--color-danger-bg); color: var(--color-danger-text); }
.status-unable_to_service { background: var(--color-warning-bg); color: var(--color-warning-text); border: 1px solid #ffc107; }
.status-sent { background: var(--color-info-bg); color: var(--color-info-text); }
.status-approved { background: var(--color-success-bg); color: var(--color-success-text); }
.status-active { background: var(--brand-soft); color: var(--brand-strong); }
.status-draft { background: var(--card-soft); color: var(--muted); border: 1px solid var(--line); }
.status-overdue { background: var(--color-danger-bg); color: var(--color-danger-text); }
.status-paid { background: var(--color-success-bg); color: var(--color-success-text); }


/* ── JOB ACTION BUTTONS ─────────────────────────────────────────────── */

.job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.complete-job-form { display: contents; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.inline-fields input { max-width: 160px; }
.badge-success { background: #d4edda; color: #155724; padding: 0.3rem 0.8rem; border-radius: var(--radius-xs); font-weight: 600; }
.badge-danger { background: #f8d7da; color: #721c24; padding: 0.3rem 0.8rem; border-radius: var(--radius-xs); font-weight: 600; }
.badge-warning { background: #fff3cd; color: #856404; padding: 0.3rem 0.8rem; border-radius: var(--radius-xs); font-weight: 600; }


/* ── SITE INFO ON JOB DETAIL ────────────────────────────────────────── */

.site-info .address-link { color: var(--brand); text-decoration: underline; }
.access-notes { background: #fffbe6; border-left: 3px solid #ffc107; padding: 0.5rem 0.75rem; border-radius: var(--radius-xs); margin: 0.5rem 0; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 0.3rem 0; }


/* ── COLLAPSIBLE SECTIONS ───────────────────────────────────────────── */

details > summary.panel-summary { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem; padding: 0.75rem 1rem; cursor: pointer; user-select: none; background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
details[open] > summary.panel-summary { border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-bottom: 0; }
details[open] > .panel { border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-top: 0; }


/* ── JOB NAVIGATION ─────────────────────────────────────────────────── */

.job-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }

/* ── OFFLINE SYNC NOTICE ───────────────────────────────────────────── */

.offline-sync-notice { padding: 0.75rem 1rem; border-radius: var(--radius-xs); font-size: 0.92rem; font-weight: 600; margin-bottom: 1rem; }
.offline-sync-notice--pending { background: #fff8e1; color: #8d6e00; border: 1px solid #ffe082; }
.offline-sync-notice--syncing { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.offline-sync-notice--success { background: var(--brand-soft); color: var(--brand-strong); border: 1px solid var(--brand); }
.offline-sync-notice--error { background: #fde8e8; color: #c62828; border: 1px solid #ef9a9a; }

/* ── OFFLINE QUEUE BANNER ──────────────────────────────────────────── */

.offline-banner {
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: #fff8e1;
  color: #8d6e00;
  border-bottom: 1px solid #ffe082;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}
.offline-banner:not([hidden]) { display: flex; }
.offline-banner--offline { background: #fde8e8; color: #c62828; border-bottom-color: #ef9a9a; }
.offline-photo-warning { font-size: 0.88rem; margin-top: 0.5rem; }


/* ── NOTES PREVIEW ──────────────────────────────────────────────────── */

.notes-preview { color: var(--muted); font-size: 0.85rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ── OWNER SUMMARY ──────────────────────────────────────────────────── */

.owner-summary .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.owner-summary .tile strong { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; display: block; color: var(--brand-strong); }
.owner-summary .tile span { font-size: 0.85rem; color: var(--muted); }


/* ── KPI DASHBOARD ─────────────────────────────────────────────────── */

.kpi-section h2 { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.kpi-delta { font-size: 0.78rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; }
.kpi-delta--up { background: #d4edda; color: #155724; }
.kpi-delta--down { background: #f8d7da; color: #721c24; }

.kpi-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }

.kpi-tile { display: block; border: 1px solid #c2d9cf; border-radius: 12px; padding: 0.85rem; background: linear-gradient(180deg, #ffffff 0%, #eef5f1 100%); color: var(--ink); text-decoration: none; transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-spring); }
.kpi-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #b8cfc6; color: var(--ink); }
a.kpi-tile:hover { color: var(--ink); }
.kpi-tile strong { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; display: block; color: var(--brand-strong); }
.kpi-tile span { font-size: 0.85rem; color: var(--muted); }
.kpi-tile--warning { border-color: #ffc107; background: linear-gradient(180deg, #fffde7 0%, #fff8e1 100%); }
.kpi-tile--warning strong { color: #856404; }

.kpi-breakdown h3 { font-size: 0.92rem; margin-bottom: 0.5rem; }

.kpi-bar-list { display: grid; gap: 0.4rem; }
.kpi-bar-item { display: grid; grid-template-columns: 140px 1fr 40px; gap: 0.5rem; align-items: center; }
.kpi-bar-label { font-size: 0.84rem; color: var(--ink-soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-bar-track { height: 8px; background: #e8efec; border-radius: 4px; overflow: hidden; }
.kpi-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 4px; min-width: 2px; }
.kpi-bar-value { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); text-align: right; }

.kpi-aging-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.6rem; }
.kpi-aging-bucket { border: 1px solid #d4e5df; border-radius: 10px; padding: 0.65rem; background: #f9fcfb; }
.kpi-aging-bucket strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; color: var(--brand-strong); }
.kpi-aging-bucket span { font-size: 0.78rem; color: var(--muted); }
.kpi-aging-bucket--alert { border-color: #e5b4aa; background: #fff3ef; }
.kpi-aging-bucket--alert strong { color: #c62828; }

.kpi-forecast { font-size: 0.92rem; }
.kpi-forecast strong { color: var(--brand-strong); font-family: "Space Grotesk", sans-serif; }

@media (max-width: 740px) {
  .kpi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-aging-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-bar-item { grid-template-columns: 100px 1fr 36px; }
}


/* ── FILTER BAR ─────────────────────────────────────────────────────── */

.inline-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.inline-filters > div { display: flex; flex-direction: column; gap: 0.2rem; }
.inline-filters label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }


/* ── PHOTO GRID ────────────────────────────────────────────────────── */

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; margin-bottom: 0.75rem; }
.photo-thumb { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #f8fcfa; }
.photo-thumb img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo-thumb figcaption { font-size: 0.72rem; color: var(--muted); padding: 0.25rem 0.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-upload-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem; }
.photo-upload-form input[type="file"] { max-width: 320px; }


/* ── SIGNATURE PAD ─────────────────────────────────────────────────── */

.signature-section { margin-bottom: 1rem; }
.signature-section label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.signature-canvas-wrapper { position: relative; }
.signature-canvas { width: 100%; height: 160px; border: 1px solid var(--line); border-radius: var(--radius-sm); touch-action: none; cursor: crosshair; background: #fff; }
.signature-placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; margin: 0; }
.signature-display { max-width: 320px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.5rem; background: #fff; }


/* ── TRUCK FILL GAUGE ──────────────────────────────────────────────── */

.truck-fill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.truck-fill-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem; background: #fff; }
.truck-fill-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.truck-fill-gauge { height: 12px; background: var(--bg-offset, #f0f4f1); border-radius: 6px; overflow: hidden; }
.truck-fill-bar { height: 100%; background: var(--brand); border-radius: 6px; transition: width 300ms ease; min-width: 2px; }
.truck-fill-bar--warning { background: #e6a817; }
.truck-fill-bar--full { background: #d94f4f; }
.truck-fill-footer { display: flex; justify-content: space-between; font-size: 0.78rem; margin-top: 0.3rem; }


/* ── PAGY PAGINATION ───────────────────────────────────────────────── */

.pagy nav.pagy { display: flex; justify-content: center; gap: 0.25rem; margin-top: 1rem; flex-wrap: wrap; }
.pagy nav.pagy a, .pagy nav.pagy span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius-xs); font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); background: #fff; text-decoration: none; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.pagy nav.pagy a:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.pagy nav.pagy a[aria-disabled] { opacity: 0.4; pointer-events: none; }
.pagy nav.pagy span.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }


/* ── DUE SOON PANEL ────────────────────────────────────────────── */

.due-soon-panel { margin-bottom: 0.5rem; }
.due-soon-header { list-style: none; cursor: pointer; }
.due-soon-header::-webkit-details-marker { display: none; }
.due-soon-header::marker { display: none; content: ""; }
.due-soon-header h3 { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ── DISPATCH BOARD ─────────────────────────────────────────────── */

.dispatch-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--line);
}

.tab {
  padding: 0.6rem 1.1rem;
  border: none;
  background: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.tab:hover { color: var(--ink-soft); }

.tab--active {
  color: var(--brand-strong);
  border-bottom-color: var(--brand);
}

.dispatch-columns {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  min-height: 400px;
}

.dispatch-column {
  flex: 0 0 280px;
  min-width: 280px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.dispatch-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}

.dispatch-column-header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.dispatch-column-count {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.dispatch-column-count--alert {
  background: #fef3cd;
  color: #856404;
}

.dispatch-column-body {
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
}

.dispatch-column-empty {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 2rem 0.5rem;
  margin: 0;
  font-style: italic;
}

.dispatch-card {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  cursor: grab;
  transition: box-shadow 32ms ease, border-color 32ms ease;
}

.dispatch-card:hover {
  box-shadow: var(--shadow);
  border-color: #b8cfc6;
}

.dispatch-card--ghost {
  opacity: 0.4;
  background: var(--brand-soft);
  border-color: var(--brand);
}

.dispatch-card--chosen {
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.dispatch-card--drag {
  opacity: 0.9;
}

.dispatch-card-handle {
  color: var(--muted);
  cursor: grab;
  font-size: 1rem;
  line-height: 1;
  padding: 0.1rem;
  flex-shrink: 0;
}

.dispatch-card-content {
  flex: 1;
  min-width: 0;
}

.dispatch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.dispatch-card-seq {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand);
}

.dispatch-card-customer {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.dispatch-card-site,
.dispatch-card-service {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.dispatch-card-notes {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.dispatch-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
}

.dispatch-card-time {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.dispatch-card-link {
  font-size: 0.78rem;
  font-weight: 600;
}

/* Toast notification */
.dispatch-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: toast-in 200ms ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Empty states & badges */
.dispatch-column-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
  padding: 2rem 0.5rem;
  margin: 0;
}

.dispatch-column-count--alert {
  background: var(--danger);
  color: #fff;
}

/* Calendar overrides */
.dispatch-calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dispatch-calendar-container {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.fc {
  --fc-border-color: var(--line);
  --fc-button-bg-color: var(--brand);
  --fc-button-hover-bg-color: var(--brand-strong);
  --fc-button-active-bg-color: var(--brand-strong);
  --fc-today-bg-color: var(--brand-dim);
  --fc-now-indicator-color: var(--accent);
  --fc-event-border-color: transparent;
  font-family: "Instrument Sans", system-ui, sans-serif;
}

.fc .fc-toolbar-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.fc .fc-button {
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.85rem;
}

.fc-event {
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Mobile responsive dispatch */
@media (max-width: 767px) {
  .dispatch-columns {
    flex-direction: column;
    overflow-x: visible;
  }
  .dispatch-column {
    flex: none;
    min-width: 100%;
  }
  .dispatch-card-handle { display: none; }
  .dispatch-card { cursor: default; }
}

/* ── Hint Tooltips ── */
.hint-tooltip {
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0.5rem 0;
  position: relative;
  cursor: pointer;
  animation: hint-fade-in 0.25s ease-out;
}
.hint-tooltip::after {
  content: "Click anywhere to dismiss";
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.55;
}
@keyframes hint-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
  .hint-tooltip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    z-index: 1000;
    padding: 1rem 1.25rem;
  }
}

/* ── Guided Job Hints ── */
.guided-hint {
  border-left: 3px solid var(--brand);
  background: var(--brand-dim);
  padding: 0.4rem 0.75rem;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.guided-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-dim);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-xs);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.guided-banner .btn-link {
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 0;
}


/* ── PRODUCT INTERIOR UI POLISH ────────────────────────────────────── */

.product-shell .panel {
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.product-shell .panel:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(16, 185, 129, 0.06);
}

.kpi-section h2 .section-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}

.kpi-tile { position: relative; }

.kpi-tile--positive { border-left: 3px solid var(--accent); }
.kpi-tile--negative { border-left: 3px solid var(--danger); }
.kpi-tile--neutral  { border-left: 3px solid var(--line); }


/* ── EMPTY STATES ──────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  opacity: 0.35;
}

.empty-state h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.empty-state p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}


/* ── SPARKLINES + TRENDS ───────────────────────────────────────────── */

.sparkline {
  display: block;
  overflow: visible;
  margin-top: 4px;
}

.trend {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  vertical-align: middle;
}

.trend-up { background: #d4edda; color: #155724; }
.trend-down { background: #f8d7da; color: #721c24; }


/* ── CHART CONTAINERS ──────────────────────────────────────────────── */

.chart-container {
  min-height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 0.75rem;
}

.chart-container .frappe-chart .title,
.chart-container .frappe-chart .sub-title {
  fill: var(--ink-soft);
}

.chart-container svg { font-family: "Instrument Sans", system-ui, sans-serif; }


/* ── SCROLL REVEAL ANIMATIONS ──────────────────────────────────────── */

[data-controller="reveal"] [data-reveal-target="item"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-controller="reveal"] [data-reveal-target="item"].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-controller="reveal"] [data-reveal-target="item"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ── TRUST BAR ─────────────────────────────────────────────────────── */

.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: var(--card-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.35rem;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.trust-bar-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

@media (max-width: 740px) {
  .trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
    padding: 0.85rem 1.25rem;
  }
  .trust-bar-item {
    white-space: normal;
    font-size: 0.78rem;
  }
}


/* ── LOADING SPINNER ───────────────────────────────────────────────── */

.btn-spinner {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.btn-spinner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 600ms linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}


/* ── PRODUCT TYPOGRAPHY ────────────────────────────────────────────── */

.product-shell h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.product-shell h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: -0.02em;
}

.product-shell h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: -0.015em;
}


/* ── ONBOARDING WIZARD ─────────────────────────────────────────────── */

.onboarding-wizard {
  max-width: 640px;
  margin: 0 auto;
}

.onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
}

.onboarding-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 300ms ease, box-shadow 300ms ease, opacity 300ms ease;
}

.onboarding-step-done {
  background: var(--accent);
  color: #fff;
}

.onboarding-step-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(13, 122, 95, 0.15);
  animation: onboarding-pulse 2s ease-in-out infinite;
}

.onboarding-step-pending {
  background: #e8efec;
  color: var(--muted);
}

.onboarding-step-line {
  width: 40px;
  height: 2px;
  background: #e8efec;
  flex-shrink: 0;
}

.onboarding-step-line-done {
  background: var(--accent);
}

@keyframes onboarding-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(13, 122, 95, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(13, 122, 95, 0.08); }
}

.onboarding-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.onboarding-step-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: capitalize;
  white-space: nowrap;
}

.onboarding-step-active .onboarding-step-label,
.onboarding-step-item:has(.onboarding-step-active) .onboarding-step-label {
  color: var(--brand);
}

.onboarding-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.onboarding-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.onboarding-card p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.onboarding-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.onboarding-skip {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.onboarding-skip a { color: var(--muted); text-decoration: underline; }
.onboarding-skip a:hover { color: var(--ink); }


/* ── CONFETTI ──────────────────────────────────────────────────────── */

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  animation: confetti-fall 3.5s ease-in forwards,
             confetti-sway 2s ease-in-out infinite alternate;
}

.confetti-piece:nth-child(1)  { left:  5%; background: #10b981; animation-delay: 0.0s; }
.confetti-piece:nth-child(2)  { left: 12%; background: #4ecdc4; animation-delay: 0.2s; width: 8px; height: 14px; }
.confetti-piece:nth-child(3)  { left: 22%; background: #ffe66d; animation-delay: 0.5s; }
.confetti-piece:nth-child(4)  { left: 30%; background: #a29bfe; animation-delay: 0.3s; width: 12px; height: 6px; }
.confetti-piece:nth-child(5)  { left: 40%; background: #fd79a8; animation-delay: 0.7s; }
.confetti-piece:nth-child(6)  { left: 50%; background: #065c47; animation-delay: 0.1s; width: 6px; height: 12px; }
.confetti-piece:nth-child(7)  { left: 60%; background: #e17055; animation-delay: 0.6s; }
.confetti-piece:nth-child(8)  { left: 68%; background: #0984e3; animation-delay: 0.4s; width: 14px; height: 8px; }
.confetti-piece:nth-child(9)  { left: 78%; background: #6c5ce7; animation-delay: 0.8s; }
.confetti-piece:nth-child(10) { left: 88%; background: #fdcb6e; animation-delay: 0.15s; }
.confetti-piece:nth-child(11) { left: 95%; background: #e84393; animation-delay: 0.55s; width: 8px; height: 8px; }
.confetti-piece:nth-child(12) { left: 35%; background: #00cec9; animation-delay: 0.9s; }

.confetti-piece:nth-child(odd)  { border-radius: 50%; }
.confetti-piece:nth-child(3n)   { border-radius: 2px; }
.confetti-piece:nth-child(4n+1) { transform: rotate(45deg); }

@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes confetti-sway {
  0%   { margin-left: -15px; }
  100% { margin-left:  15px; }
}

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


/* ── CONTINUE SETUP BANNER ─────────────────────────────────────────── */

.continue-setup-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--brand-dim) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1px solid rgba(13, 122, 95, 0.15);
  border-radius: var(--radius);
  margin-bottom: 1.35rem;
}

.continue-setup-banner h3 { margin: 0; font-size: 1rem; }
.continue-setup-banner p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.continue-setup-banner .btn { flex-shrink: 0; }

.continue-setup-banner--prominent {
  background: linear-gradient(135deg, #e6f5ef 0%, #d4edda 100%);
  border: 1px solid rgba(13, 122, 95, 0.3);
  border-left: 4px solid var(--brand);
}

/* Dashboard 2-column grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr 380px;
    gap: 1.25rem;
  }
}

.dashboard-main { min-width: 0; overflow: hidden; }
.dashboard-sidebar { min-width: 0; overflow: hidden; }
.dashboard-main > .panel { margin-bottom: 1.35rem; }
.dashboard-sidebar > .panel { margin-bottom: 1.35rem; }
.dashboard-sidebar .tiles { margin-bottom: 1.35rem; }

.kpi-tiles--compact { grid-template-columns: repeat(2, 1fr); }

.kpi-empty-hint {
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  font-style: italic;
}

/* A/R Summary Strip */
.ar-summary-strip {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 1.35rem;
}

.ar-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ar-summary-item strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  color: var(--ink);
}

.ar-summary-item span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.ar-summary-item--warning strong {
  color: var(--danger);
}


/* ── PRICING PAGE (extracted from inline) ──────────────────────────── */

.pricing-hero { text-align: center; }
.pricing-hero h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.pricing-hero .muted { max-width: 52ch; margin-left: auto; margin-right: auto; }

.trust-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-top: 0.9rem; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--card-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.32rem 0.75rem;
  white-space: nowrap;
}
.trust-chip svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; }

/* Billing Toggle */
.billing-toggle-wrap { display: flex; justify-content: center; margin-bottom: 0.6rem; }
.billing-toggle {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--card-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.2rem; font-family: "Space Grotesk", sans-serif;
}
.billing-toggle button {
  border: none; background: transparent; padding: 0.45rem 1.1rem;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
  border-radius: 999px; cursor: pointer; transition: background 150ms ease, color 150ms ease;
  font-family: inherit; line-height: 1.2;
}
.billing-toggle button.active {
  background: var(--brand); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.billing-toggle-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-strong);
  padding: 0.15rem 0.5rem; border-radius: 999px; margin-left: 0.35rem;
}

/* Pricing Cards — Grid */
.pricing-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.2rem;
  align-items: start;
}

/* ── Base Card ────────────────────────────────────────────────── */
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 240ms var(--ease-spring),
              box-shadow 240ms var(--ease-spring),
              border-color 240ms var(--ease-spring);
  overflow: hidden;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #b8cfc6;
}

/* Card internal zones */
.pricing-card-head {
  padding: 1.5rem 1.4rem 0;
}
.pricing-card-foot {
  padding: 0 1.4rem 1.5rem;
  margin-top: auto;
}

/* ── Recommended / Team — the visual anchor ──────────────────── */
.pricing-card.recommended {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow),
              0 0 0 1px rgba(13, 122, 95, 0.06);
  position: relative;
  background:
    linear-gradient(180deg, rgba(218, 242, 233, 0.22) 0%, #fff 40%, #f7fcfa 100%);
  /* Scale up slightly so Team physically dominates the row */
  transform: scale(1.03);
  z-index: 1;
}
.pricing-card.recommended:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow: var(--shadow-lg),
              var(--shadow-glow);
}

/* "Most Popular" pill badge */
.pricing-card.recommended::before {
  content: "Most Popular";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.38rem 0;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
}
/* Push head content down to clear the banner */
.pricing-card.recommended .pricing-card-head {
  padding-top: 2.6rem;
}

/* Recommended card CTA — bigger, glowing */
.pricing-card.recommended .btn {
  font-size: 1rem;
  padding: 0.8rem 2rem;
  box-shadow: var(--shadow-glow), 0 4px 16px rgba(13, 122, 95, 0.3);
}
.pricing-card.recommended .btn:hover {
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.3),
              0 0 72px rgba(16, 185, 129, 0.12),
              0 6px 20px rgba(13, 122, 95, 0.35);
}

/* ── Card Head Typography ────────────────────────────────────── */
.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}
.pricing-card .offer-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 0.1rem;
}
.pricing-card .price {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0.2rem 0 0.1rem;
  line-height: 1.1;
}
.pricing-card .price-was {
  font-size: 0.86rem;
  color: var(--muted);
}
.pricing-card .price-was s {
  opacity: 0.85;
  color: var(--ink-soft);
}
.pricing-card .price-anchor {
  font-size: 0.86rem;
  color: var(--brand-strong);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-style: italic;
}
.pricing-card .best-for {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.55rem 0 0;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}

/* ── Feature Bullet List ─────────────────────────────────────── */
/*
 * Design rationale:
 * - Left-aligned text (bullet lists read LTR, even in a centered card).
 * - Custom brand-green check SVG icon replaces disc — signals "included"
 *   without relying on unicode chars that render differently cross-platform.
 * - Tinted background strip separates features from the pricing head,
 *   creating a visual "shelf" that grounds the list.
 * - Consistent padding-bottom on the list regardless of item count means
 *   Starter (5 items) and Fleet (3 items) don't look hollow — the foot
 *   with the CTA is pushed down via margin-top: auto on .pricing-card-foot.
 * - The "Everything in X, plus:" line uses a different treatment (italic,
 *   no icon) to read as a qualifier, not a feature.
 */
.pricing-features {
  list-style: none;
  margin: 0;
  padding: 1rem 1.4rem 1.1rem;
  text-align: left;
  flex: 1;
  background: var(--card-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.pricing-features li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.55rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
/* Green check icon — inline SVG as background, avoids extra markup */
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230d7a5f'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
/* "Everything in X, plus:" — qualifier line, not a feature */
.pricing-features li.pricing-features-inherit {
  padding-left: 0;
  font-style: italic;
  font-weight: 600;
  color: var(--brand-strong);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.5rem;
  margin-bottom: 0.2rem;
}
.pricing-features li.pricing-features-inherit::before {
  display: none;
}

/* Recommended card features — slightly warmer background */
.pricing-card.recommended .pricing-features {
  background: linear-gradient(180deg, rgba(218, 242, 233, 0.18) 0%, var(--card-soft) 100%);
  border-top-color: rgba(13, 122, 95, 0.1);
  border-bottom-color: rgba(13, 122, 95, 0.1);
}
/* Give inherit line on recommended card a branded underline */
.pricing-card.recommended .pricing-features li.pricing-features-inherit {
  border-bottom-color: rgba(13, 122, 95, 0.15);
}

/* ── CTA in Card Foot ────────────────────────────────────────── */
.pricing-card .btn {
  margin-top: 0.6rem;
  width: 100%;
  justify-content: center;
}

/* Comparison Table */
.compare-section { text-align: center; }
.compare-table {
  width: 100%; max-width: 780px; margin: 0.8rem auto 0;
  border-collapse: collapse; font-size: 0.92rem;
}
.compare-table th {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  padding: 0.6rem 0.8rem; text-align: center; border-bottom: 2px solid var(--ink);
}
.compare-table th:first-child { text-align: left; }
.compare-table th.col-team { color: var(--brand-strong); }
.compare-table td {
  padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line-soft);
  text-align: center; color: var(--ink-soft);
}
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.compare-table td:nth-child(3) { background: var(--brand-dim); }
.compare-table .check { color: var(--brand); font-weight: 700; }
.compare-table .dash { color: var(--muted); opacity: 0.5; }

/* Value Stack */
.value-stack { max-width: 600px; margin: 0 auto; text-align: left; }
.value-stack-heading { text-align: center; margin-bottom: 0.6rem; }
.value-stack-heading h2 { margin-bottom: 0.1rem; }
.value-stack-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem; color: var(--ink-soft);
}
.value-stack-row:last-child { border-bottom: none; }
.value-stack-row .vs-label { flex: 1; }
.value-stack-row .vs-value {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  color: var(--ink-soft); text-decoration: line-through; opacity: 0.85;
  white-space: nowrap; margin-left: 1rem;
}
.value-stack-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.7rem 0 0.3rem; border-top: 2px solid var(--ink);
  margin-top: 0.3rem;
}
.value-stack-total .vs-label {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}
.value-stack-total .vs-value {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--ink-soft); text-decoration: line-through; opacity: 0.85;
}
.value-stack-founding { text-align: center; margin-top: 0.8rem; }
.value-stack-founding .founding-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--brand-strong);
}
.value-stack-founding .founding-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.1rem; }

/* Compliance Strip */
.compliance-strip {
  display: grid; grid-template-columns: auto 1fr; gap: 0 1rem;
  align-items: start; max-width: 720px; margin: 0 auto;
}
.compliance-strip-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
  grid-row: 1 / 3;
}
.compliance-strip-icon svg { width: 20px; height: 20px; color: var(--brand-strong); }
.compliance-strip h3 { margin-bottom: 0.15rem; font-size: 1rem; }
.compliance-strip p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* Stakeholder Grid */
.stakeholder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 0.5rem; }
.stakeholder-card { display: flex; align-items: flex-start; gap: 0.75rem; }
.stakeholder-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
}
.stakeholder-icon svg { width: 20px; height: 20px; color: var(--brand-strong); }
.stakeholder-card h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.stakeholder-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* FAQ Accordion */
.faq-accordion { max-width: 720px; margin: 0.6rem auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  padding: 0.85rem 0; cursor: pointer; font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 0.98rem; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--muted);
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer {
  padding: 0 0 0.85rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55;
}

/* ROI Calculator */
.roi-calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; max-width: 720px; margin: 0 auto; }
.roi-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.6rem; }
.roi-field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.4rem; font-family: "Space Grotesk", sans-serif; }
.roi-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-xs); overflow: hidden; height: var(--control-h); }
.roi-stepper button { width: 44px; height: 100%; border: none; background: var(--card-soft); color: var(--ink); font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: background 120ms; font-family: "Space Grotesk", sans-serif; }
.roi-stepper button:hover { background: var(--brand-soft); }
.roi-stepper button:active { background: var(--brand-dim); }
.roi-stepper .roi-stepper-value { flex: 1; text-align: center; font-size: 1.1rem; font-weight: 700; font-family: "Space Grotesk", sans-serif; color: var(--ink); }
.roi-field input[type="number"] { width: 100%; height: var(--control-h); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 0 0.8rem; font-size: 1rem; font-family: "Instrument Sans", sans-serif; color: var(--ink); }
.roi-field input[type="number"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.roi-field select { width: 100%; height: var(--control-h); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 0 0.8rem; font-size: 1rem; font-family: "Instrument Sans", sans-serif; color: var(--ink); background: #fff; }
.roi-toggle { font-size: 0.88rem; color: var(--brand); cursor: pointer; font-weight: 500; margin-bottom: 1rem; display: inline-block; }
.roi-toggle:hover { color: var(--brand-strong); text-decoration: underline; }
.roi-results { background: linear-gradient(135deg, #fef2f2, #fff5f5); border: 1px solid #e8c4c0; border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.roi-total-loss { font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--danger); line-height: 1.1; margin: 0.4rem 0; }
.roi-total-label { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.roi-breakdown { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; margin: 1.2rem 0; text-align: center; }
.roi-breakdown-item { font-size: 0.84rem; color: var(--ink-soft); }
.roi-breakdown-item strong { display: block; font-size: 1.05rem; color: var(--ink); font-family: "Space Grotesk", sans-serif; }
.roi-net { display: flex; justify-content: center; gap: 2rem; margin: 1.2rem 0; padding-top: 1rem; border-top: 1px solid #e8c4c0; flex-wrap: wrap; }
.roi-net-item { text-align: center; }
.roi-net-item .roi-net-value { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--brand-strong); }
.roi-net-item .roi-net-label { font-size: 0.8rem; color: var(--muted); }
.roi-plan-note { font-size: 0.84rem; color: var(--muted); margin-top: 0.8rem; }

/* Pricing Responsive */
@media (max-width: 820px) {
  .pricing-grid-v2 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
  }
  /*
   * On mobile stack, remove the scale-up on Team —
   * it already leads visually via border/shadow/banner.
   * Scale on a single-column layout causes horizontal overflow.
   */
  .pricing-card.recommended {
    transform: none;
  }
  .pricing-card.recommended:hover {
    transform: translateY(-3px);
  }
  /* Reorder: put recommended card first on mobile so the
     conversion target is above the fold */
  .pricing-card.recommended {
    order: -1;
  }
  .compare-table { font-size: 0.84rem; }
  .compare-table th, .compare-table td { padding: 0.45rem 0.5rem; }
}
@media (max-width: 600px) {
  .stakeholder-grid { grid-template-columns: 1fr; }
  .roi-inputs { grid-template-columns: 1fr; }
  .roi-breakdown { grid-template-columns: 1fr; gap: 0.5rem; }
  .roi-net { flex-direction: column; gap: 0.8rem; }
}
/* Mobile hint for hidden pricing columns */
.compare-mobile-hint {
  display: none;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.6rem 1rem;
  margin-top: 0.5rem;
  background: var(--bg-alt, #f7f8f6);
  border-radius: var(--radius-xs);
}
@media (max-width: 480px) {
  .compare-table th:nth-child(2), .compare-table td:nth-child(2),
  .compare-table th:nth-child(4), .compare-table td:nth-child(4) {
    display: none;
  }
  .compare-mobile-hint {
    display: block;
  }
}

/* Mobile action buttons full-width */
@media (max-width: 480px) {
  .dispatch-actions .btn,
  .invoice-actions .btn,
  .form-actions .btn-primary,
  .trial-form .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* Table action links */
.table-action-link {
  font-weight: 600;
  color: var(--brand);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
}
.table-action-link:hover { background: var(--brand-dim); }

/* KPI bar chart mobile fix */
@media (max-width: 740px) {
  .kpi-bar-item { grid-template-columns: 1fr; }
  .kpi-bar-label { white-space: normal; }
}

/* ========================================================================
   WALKTHROUGH OVERLAY
   ======================================================================== */
.walkthrough-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.walkthrough-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 36, 0.6);
  backdrop-filter: blur(4px);
}
.walkthrough-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2.5rem;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}
.walkthrough-card h2 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.walkthrough-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: left;
}
.walkthrough-step {
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius, 8px);
  padding: 1.25rem;
}
.walkthrough-step-icon {
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.walkthrough-step h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.walkthrough-step p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 540px) {
  .walkthrough-card { padding: 1.5rem; }
  .walkthrough-grid { grid-template-columns: 1fr; }
}

/* Disabled field style (for invitation email display) */
.field-disabled {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius, 6px);
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  width: 100%;
  cursor: not-allowed;
}


/* ========================================================================
   PRODUCT PAGE OVERHAUL — Feature Showcase Components
   ======================================================================== */

/* ── SCROLL TARGETS ─────────────────────────────────────────────────── */

[id^="step-"] {
  scroll-margin-top: 80px;
}

/* ── FEATURE BADGE STRIP (homepage) ─────────────────────────────────── */

.feature-badge-strip {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--card-soft);
  border-bottom: 1px solid var(--line-soft);
}

.badge-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.25rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-normal) var(--ease-spring), color var(--duration-normal) var(--ease-spring);
}

.feature-pill:hover {
  background: var(--brand);
  color: white;
}

@media (max-width: 740px) {
  .feature-badge-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    mask-image: linear-gradient(to right, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent);
  }
}


/* ── 6-STEP WORKFLOW CARDS ──────────────────────────────────────────── */

.workflow-cards-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: stretch;
}

.workflow-card-v2 {
  border: 1px solid #d5e3de;
  border-radius: 12px;
  padding: 1rem 0.75rem;
  background: linear-gradient(180deg, #fff 0%, #f9fcfb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-spring), border-color 240ms var(--ease-spring);
}

.workflow-card-v2:hover {
  transform: translateY(-2px);
  border-color: #b7d2c8;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  flex-shrink: 0;
}

.workflow-card-v2 strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  line-height: 1.15;
}

.workflow-card-v2 span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .workflow-cards-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .workflow-cards-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .workflow-cards-6 {
    grid-template-columns: 1fr;
  }
}


/* ── DRIVER SECTION (dark surface) ──────────────────────────────────── */

.driver-section {
  background: linear-gradient(180deg, #0e2430 0%, #091119 100%);
  color: var(--dark-text);
  border: none;
  box-shadow: none;
}

.driver-section .kicker { color: var(--accent); }
.driver-section h2 { color: var(--dark-text); }

.driver-challenge {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  font-style: italic;
  color: var(--dark-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.driver-answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.driver-answer-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--dark-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.driver-answer-grid li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}

.driver-closing {
  margin-top: 1.5rem;
  color: var(--dark-muted);
  font-size: 0.95rem;
}

@media (max-width: 740px) {
  .driver-answer-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}


/* ── CUSTOMER FEATURES (portal + proposal split) ────────────────────── */

.customer-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.customer-feature-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.customer-feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.customer-feature-card .tagline {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.customer-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.customer-feature-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.customer-feature-list li:last-child { border-bottom: none; }

.customer-feature-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 0.15rem;
}

@media (max-width: 740px) {
  .customer-features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}


/* ── COMPLIANCE DEEP-DIVE (dark surface) ────────────────────────────── */

.compliance-deep-dive {
  background: linear-gradient(180deg, #0e2430 0%, #091119 100%);
  color: var(--dark-text);
  border: none;
  box-shadow: none;
}

.compliance-deep-dive .container {
  width: 100%;
}

.compliance-deep-dive .kicker { color: var(--accent); }
.compliance-deep-dive h2 { color: var(--dark-text); }

.compliance-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

.compliance-split > div {
  min-width: 0;
}

.compliance-copy {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--dark-text);
}

.compliance-copy strong {
  color: #fff;
}

.compliance-competitor-line {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dark-line);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.compliance-state-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.compliance-state-pills span {
  background: var(--accent);
  color: var(--dark);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: "Space Grotesk", monospace;
  letter-spacing: 0.02em;
}

.compliance-state-pills span.enhanced {
  background: #fff;
  color: var(--dark);
}

.fear-frame {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.fear-frame .penalty {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fca5a5;
  font-family: "Space Grotesk", sans-serif;
  display: block;
  margin-bottom: 0.25rem;
}

.fear-frame cite {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
  display: block;
  margin-bottom: 0.5rem;
}

.fear-frame .payoff {
  font-size: 0.92rem;
  color: var(--dark-text);
  margin-top: 0.75rem;
}

.compliance-bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.compliance-bullets li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--dark-text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.compliance-bullets li span {
  min-width: 0;
}

.compliance-bullets li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}

.compliance-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--dark-muted);
  line-height: 1.5;
}

.compliance-tier-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--dark-muted);
}

@media (max-width: 740px) {
  .compliance-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* ── COMPARISON TABLE ───────────────────────────────────────────────── */

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.comparison-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  border-bottom: 2px solid var(--line);
  font-size: 0.9rem;
}

.comparison-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.comparison-table .col-us {
  background: var(--brand-soft);
}

.comparison-table .col-us th {
  color: var(--brand-strong);
}

.cmp-yes {
  color: var(--brand);
  font-weight: 600;
}

.cmp-no {
  color: var(--muted);
}

.cmp-partial {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 740px) {
  .comparison-table {
    min-width: 520px;
  }
}


/* ── VALUE STACK (product page variant) ─────────────────────────────── */

.product-value-stack {
  max-width: 640px;
  margin: 0 auto;
}

.product-value-stack-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.product-value-stack-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}

.product-value-stack-item:last-child { border-bottom: none; }

.product-value-stack-item .feature-name {
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}

.product-value-stack-item .feature-value {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  margin-left: 1rem;
  text-decoration: line-through;
  font-family: "Space Grotesk", sans-serif;
}

.product-value-stack-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0 0.3rem;
  border-top: 2px solid var(--ink);
  margin-top: 0.25rem;
}

.product-value-stack-total .total-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

.product-value-stack-total .total-old {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--muted);
  text-decoration: line-through;
}

.product-value-stack-price {
  text-align: center;
  margin-top: 1rem;
}

.product-value-stack-price .actual-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--brand-strong);
}

.product-value-stack-price .price-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.1rem;
}


/* ── GUARANTEE CTA BAND ─────────────────────────────────────────────── */

.guarantee-cta-band {
  background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 100%);
  color: white;
  border: none;
  box-shadow: none;
  text-align: center;
}

.guarantee-cta-band h2 {
  color: white;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  margin-bottom: 1rem;
}

.guarantee-cta-band .guarantee-copy {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.guarantee-cta-band .hero-actions { justify-content: center; }

.guarantee-cta-band .btn-primary {
  background: white;
  color: var(--brand-strong);
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.25);
}

.guarantee-cta-band .btn-primary:hover {
  background: #f0f0f0;
}

.guarantee-cta-band .btn:not(.btn-primary) {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.guarantee-cta-band .btn:not(.btn-primary):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}


/* ── DASHBOARD SHOWCASE ─────────────────────────────────────────────── */

.dashboard-showcase-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.dashboard-metric {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.dashboard-metric .metric-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-strong);
  display: block;
}

.dashboard-metric .metric-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

@media (max-width: 740px) {
  .dashboard-showcase-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dashboard-showcase-metrics {
    grid-template-columns: 1fr;
  }
}


/* ── DEVICE FRAMES + ROLE SWITCHER ──────────────────────────────────── */

/* Browser/laptop frame */
.device-browser {
  position: relative;
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
  box-shadow: 0 2.75rem 3.5rem -2rem rgb(45 55 75 / 20%), 0 0 5rem -2rem rgb(45 55 75 / 15%);
  max-width: 680px;
  width: 100%;
}

.device-browser__chrome {
  display: flex;
  align-items: center;
  height: 2.5rem;
  background: #1e1e1e;
  padding: 0 1rem;
}

/* Traffic-light dots: single pseudo-element + box-shadow */
.device-browser__chrome::before {
  content: '';
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 0.875rem 0 0 #febc2e, 1.75rem 0 0 #28c840;
  flex-shrink: 0;
}

/* URL bar */
.device-browser__chrome::after {
  content: attr(data-url);
  margin-left: 1.5rem;
  flex: 1;
  height: 1.4rem;
  background: #2a2a2a;
  border-radius: 0.25rem;
  color: #888;
  font-size: 0.65rem;
  font-family: system-ui, sans-serif;
  line-height: 1.4rem;
  padding: 0 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-browser__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card-soft);
}

.device-browser__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* Phone frame */
.device-phone {
  position: absolute;
  bottom: -1rem;
  right: -1.5rem;
  z-index: 2;
  width: 180px;
  border: 8px solid #1e1e1e;
  border-radius: 2.25rem;
  background: #1e1e1e;
  box-shadow: 0 2.75rem 5.5rem -3.5rem rgb(45 55 75 / 20%), 0 2rem 4rem -2rem rgb(45 55 75 / 30%);
}

/* Dynamic Island notch */
.device-phone::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1.1rem;
  background: #000;
  border-radius: 1rem;
  z-index: 10;
}

.device-phone__screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--card-soft);
}

.device-phone__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Combined showcase layout */
.device-showcase {
  position: relative;
  max-width: 780px;
  margin: 0 auto 1.5rem;
  padding-bottom: 3rem; /* room for phone overlap */
}

/* Role section */
.home-roles {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Role tab pills */
.role-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 1.25rem auto 2rem;
}

.role-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-spring),
              color var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-spring);
}

.role-tab:hover {
  background: var(--brand-dim);
}

.role-tab--active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 122, 95, 0.25);
}

.role-tab--active:hover {
  background: var(--brand);
}

.role-tab svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Panels */
.role-panel { text-align: center; }
.role-panel[hidden] { display: none; }

.role-caption {
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}
.role-caption h3 { margin-bottom: 0.5rem; }

.role-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.role-bullets li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.role-bullets li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}


/* ── INTERACTIVE TIMELINE ENHANCEMENTS ──────────────────────────────── */

/* Clickable flow items */
.home-flow .flow-item {
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-spring),
              padding var(--duration-normal) var(--ease-spring);
  border-radius: var(--radius-xs);
}

.home-flow .flow-item:hover {
  background: var(--card-soft);
}

.flow-item--active {
  background: var(--brand-dim) !important;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.flow-item--active .flow-badge-time {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(13, 122, 95, 0.25);
}

/* Focus ring for article-as-tab */
.flow-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Screenshot reveal area */
.flow-screenshot-area {
  margin-top: 1.5rem;
}

.flow-screenshot[hidden] { display: none; }

.flow-screenshot .screen-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.flow-screenshot .screen-card img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: top left;
  background: var(--card-soft);
}

.flow-screenshot .screen-card figcaption {
  padding: 0.75rem 1rem;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}


/* ── DEVICE FRAMES + ROLE SWITCHER — RESPONSIVE ─────────────────────── */

@media (max-width: 740px) {
  .role-tabs {
    flex-wrap: wrap;
    border-radius: var(--radius);
    justify-content: center;
  }

  .device-showcase { padding-bottom: 1rem; }

  .device-browser { max-width: 100%; }
  .device-browser__chrome::after { display: none; }

  .device-phone {
    position: relative;
    right: auto; bottom: auto;
    margin: -2rem auto 0;
    width: 140px;
    border-width: 6px;
    border-radius: 1.5rem;
  }

  .device-phone::before { top: 4px; height: 0.8rem; }
  .device-phone__screen { border-radius: 1rem; }

  .role-caption { text-align: left; }

  .flow-screenshot .screen-card img {
    max-height: 300px;
  }
}


/* ── ACCESSIBILITY: REDUCED MOTION ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .role-tab,
  .flow-item,
  .device-phone,
  .device-browser {
    animation: none !important;
    transition: none !important;
  }
}
