/* ==========================================================================
   StaffPass marketing site
   Brand tokens mirror the app's design system (#164): FrontEnd/tailwind.config.js
   ========================================================================== */

:root {
  /* Brand: indigo, as in the app, the logo and the favicon */
  --brand-50: #EEF2FF;
  --brand-100: #E0E7FF;
  --brand-200: #C7D2FE;
  --brand-300: #A5B4FC;
  --brand-500: #6366F1;
  --brand-600: #4F46E5;
  --brand-700: #4338CA;
  --brand-800: #3730A3;
  --brand-900: #312E81;   /* favicon ground / theme-color */
  --brand-950: #1E1B4B;

  /* Neutrals and surfaces */
  --surface: #FFFFFF;
  --canvas: #F7F8FA;       /* tinted section ground */
  --sunken: #F3F4F6;       /* tracks, wells */
  --ink: #111827;
  --ink-soft: #4B5563;     /* body copy on white: 7.6:1 */
  --ink-muted: #6B7280;    /* secondary copy: 4.8:1 */
  --ink-subtle: #9CA3AF;   /* decoration only, never text */
  --line: #E5E7EB;
  --line-soft: #EEF0F3;
  --line-strong: #D1D5DB;

  /* Status hues, only where a status is shown */
  --success: #15803D;
  --success-bg: #F0FDF4;
  --warning: #B45309;
  --warning-bg: #FFFBEB;
  --danger: #B91C1C;
  --danger-bg: #FEF2F2;

  /* Type scale */
  --font: "Inter", "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.0625rem, 0.5vw + 0.95rem, 1.1875rem);
  --fs-h3: clamp(1.0625rem, 0.3vw + 1rem, 1.125rem);
  --fs-h2: clamp(1.75rem, 1.9vw + 1.15rem, 2.625rem);
  --fs-h1: clamp(2.375rem, 2.6vw + 1.3rem, 3.625rem);

  /* Spacing scale (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* Shape and depth */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --ring: inset 0 0 0 1px var(--line);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 4px 12px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 1px 3px rgba(17, 24, 39, 0.04), 0 12px 32px -6px rgba(30, 27, 75, 0.13);
  --shadow-xl: 0 2px 6px rgba(17, 24, 39, 0.04), 0 36px 72px -18px rgba(30, 27, 75, 0.28);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --head-gap: clamp(40px, 5vw, 64px);
  --header-h: 68px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brand-600); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  white-space: nowrap; cursor: pointer; border: 0;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn .icon { width: 17px; height: 17px; stroke-width: 2; transition: transform .22s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 16px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: var(--fs-base); }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--brand-600); color: #fff;
  box-shadow: 0 1px 2px rgba(30,27,75,.22), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); }
.btn-secondary:hover { background: var(--canvas); }
.btn-light { background: #fff; color: var(--brand-900); }
.btn-light:hover { background: var(--brand-50); }
.btn-ghost-light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }

/* ---------- Badges (app Badge.jsx) ---------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; line-height: 1.55; white-space: nowrap;
}
.badge-warning { background: var(--warning-bg); color: #92400E; box-shadow: inset 0 0 0 1px #FDE68A; }
.badge-danger { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1px #FECACA; }
.badge-brand { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-200); }
.badge-success { background: var(--success-bg); color: var(--success); box-shadow: inset 0 0 0 1px #BBF7D0; }
.badge-neutral { background: #fff; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.84);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(17,24,39,.04); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; min-height: 44px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a:not(.btn) {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft);
  border-radius: var(--radius); transition: color .15s ease, background-color .15s ease;
}
.primary-nav a:not(.btn):hover { color: var(--ink); background: var(--canvas); }
.primary-nav a.is-active { color: var(--ink); }
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--brand-600); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.primary-nav a.is-active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle:hover { background: var(--canvas); }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--canvas); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 44rem; margin: 0 auto var(--head-gap); text-align: center; }
.section-head-left { text-align: left; margin-inline: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.section h2, .cta h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.03em; }
.section-lead { font-size: var(--fs-lg); color: var(--ink-soft); margin-top: 18px; line-height: 1.6; }
.section-lead a { color: var(--brand-700); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-200); }
.section-lead a:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 104px) 0 0; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 80% 30%, rgba(99,102,241,.13), transparent 70%),
    radial-gradient(40% 40% at 5% 0%, rgba(199,210,254,.4), transparent 70%),
    linear-gradient(180deg, #FAFAFF 0%, #fff 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 55% at 75% 35%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(60% 55% at 75% 35%, #000 0%, transparent 72%);
  opacity: .8;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }

.hero h1 { font-size: var(--fs-h1); margin: 20px 0 22px; letter-spacing: -0.04em; font-weight: 700; line-height: 1.04; }
.hero h1 .accent { color: var(--brand-600); }
.lead { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 35rem; line-height: 1.62; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 20px; font-size: var(--fs-xs); color: var(--ink-muted); }

/* "Works with" partner mark (Impro Access Portal logo, assets/impro-access-portal.png) */
.works-with {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 6px 14px 6px 12px; border-radius: 999px; background: #fff;
  box-shadow: var(--ring), var(--shadow-sm);
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted);
  transition: box-shadow .18s ease;
}
a.works-with:hover { box-shadow: inset 0 0 0 1px var(--brand-200), var(--shadow); }
.works-with img { height: 32px; width: auto; }
.works-with-top { margin: 0 0 18px; }

/* Hero visual: phone with two cards that sit beside it, not on it */
.hero-visual { display: flex; justify-content: flex-end; }
.hero-stage { position: relative; width: 100%; max-width: 560px; padding: 16px 40px 16px 0; display: flex; justify-content: flex-end; }
.hero-stage::before {
  content: ""; position: absolute; left: 62%; top: 52%; width: 440px; height: 440px; max-width: 100%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(99,102,241,.16), transparent);
  z-index: -1;
}
.phone {
  position: relative; width: 292px; max-width: 100%;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #262C3A, #0B0F19);
  box-shadow: var(--shadow-xl), inset 0 0 0 1.5px rgba(255,255,255,.09);
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 82px; height: 22px; background: #0B0F19; border-radius: 999px; z-index: 2; }
.phone-screen { background: var(--canvas); border-radius: 36px; padding: 16px 14px 18px; overflow: hidden; }
.phone-status { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 10px; margin-bottom: 14px; font-size: 11px; font-weight: 600; }
.phone-status > span:first-child { min-width: 34px; }
.phone-url { display: none; }
.app-brand { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; margin: 0 2px 12px; }
.app-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--ring), var(--shadow-sm); overflow: hidden; }
.app-card-head { padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.app-h1 { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.app-sub { font-size: 11px; color: var(--ink-muted); margin-top: 4px; line-height: 1.4; }
.app-card-body { padding: 12px 14px 14px; }
.app-h2 { font-size: 11.5px; font-weight: 600; }
.app-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 12px; }
.app-dl dt { font-size: 8.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.app-dl dd { font-size: 12px; font-weight: 500; margin-top: 2px; }
.app-dl .badge { font-size: 10px; padding: 0 6px; }
.app-approving { background: var(--canvas); border-radius: var(--radius-sm); padding: 9px 10px; margin-bottom: 12px; }
.app-label { font-size: 8.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.app-name { font-size: 12.5px; font-weight: 500; margin-top: 1px; }
.app-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; }
.app-btn .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.app-btn-primary { background: var(--brand-600); color: #fff; margin-bottom: 8px; }
.app-btn-secondary { background: #fff; color: var(--danger); box-shadow: var(--ring); }

.float-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(229,231,235,.95);
}
.float-sms { top: 84px; left: 0; width: 240px; padding: 12px 14px; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); animation: floatY 8s ease-in-out infinite; }
.sms-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 11px; font-weight: 600; color: var(--ink); }
.sms-app { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--brand-600); color: #fff; }
.sms-app .icon { width: 11px; height: 11px; stroke-width: 2.25; }
.sms-head .muted { margin-left: auto; font-weight: 400; color: var(--ink-muted); }
.sms-link { color: var(--brand-700); font-weight: 500; }

.float-status { bottom: 64px; left: 24px; width: 232px; padding: 14px 16px; animation: floatY 8s ease-in-out -4s infinite; }
.fs-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.fs-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px #DCFCE7; }
.fs-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.fs-label { width: 100%; font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.fs-old { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.fs-row .icon { width: 12px; height: 12px; color: var(--ink-subtle); }
.fs-new { font-weight: 600; color: var(--ink); }
.fs-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.fs-track li { position: relative; padding-top: 9px; font-size: 10.5px; font-weight: 500; color: var(--ink-soft); }
.fs-track li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--brand-500); }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Spec band: four quiet facts closing the hero */
.spec-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.spec-band > div { padding: 22px 24px 30px 0; }
.spec-band > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.spec-band dt { font-size: var(--fs-2xs); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.spec-band dd { margin-top: 4px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Problem: split with paired comparison ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-head .section-lead { max-width: 30rem; }

.compare { border-radius: var(--radius-lg); background: #fff; box-shadow: var(--ring), var(--shadow); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line-soft); }
.compare-row > span { padding: 16px 22px; font-size: var(--fs-sm); line-height: 1.5; }
.compare-headrow { background: var(--canvas); border-bottom: 1px solid var(--line); }
.compare-headrow > span { display: flex; align-items: center; gap: 8px; padding-block: 12px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.compare-headrow > span + span { color: var(--brand-700); }
.compare .was { color: var(--ink-muted); }
.compare .now { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); background: linear-gradient(90deg, rgba(238,242,255,.55), rgba(238,242,255,0)); border-left: 1px solid var(--line-soft); }
.compare-headrow > span + span { border-left: 1px solid var(--line); }
.compare .now .icon { width: 18px; height: 18px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--brand-600); color: #fff; stroke-width: 3; }

/* ---------- How it works: sticky heading + progressive timeline ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.how-head { position: sticky; top: calc(var(--header-h) + 48px); }
.how-facts { margin-top: 36px; border-top: 1px solid var(--line); }
.how-facts li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-soft); }
.how-facts b { min-width: 1.5ch; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; color: var(--brand-700); font-variant-numeric: tabular-nums; }

.flow { position: relative; --progress: 1; }
.flow::before, .flow::after {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px;
}
.flow::before { background: var(--line); }
.flow::after { background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); transform-origin: top; transform: scaleY(var(--progress)); transition: transform .5s var(--ease); }
.flow-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 28px; padding-bottom: clamp(40px, 5vw, 64px); }
.flow-step:last-child { padding-bottom: 0; }
.flow-step:last-child::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--canvas); }
.flow-node {
  position: relative; z-index: 1; grid-row: span 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-600); color: #fff; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--canvas), 0 4px 12px rgba(79,70,229,.3);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.flow-copy { padding-top: 7px; max-width: 34rem; }
.flow-copy h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.flow-copy p { margin-top: 8px; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.65; }
.flow-art {
  grid-column: 2; margin-top: 20px; max-width: 420px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--ring), var(--shadow);
  padding: 16px 18px; font-size: 13px;
  transition: opacity .5s ease, transform .5s var(--ease);
}
/* Inactive state only exists once JS has wired the timeline */
.js .flow.is-wired .flow-step:not(.is-active) .flow-node { background: #fff; color: var(--ink-muted); box-shadow: 0 0 0 6px var(--canvas), inset 0 0 0 2px var(--line-strong); }
.js .flow.is-wired .flow-step:not(.is-active) .flow-art { opacity: .55; transform: translateY(6px); }

.art-head { display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.art-head .icon { width: 16px; height: 16px; color: var(--brand-600); }
.art-head .badge { margin-left: auto; }
.art-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--ink-muted); }
.art-kv + .art-kv { border-top: 1px solid var(--line-soft); }
.art-kv b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.art-kv s { color: var(--ink-muted); font-weight: 400; margin-right: 6px; text-decoration-color: var(--line-strong); }
.t-warn { color: var(--warning) !important; }
.art-chips { display: flex; gap: 6px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-muted); box-shadow: var(--ring); }
.chip .icon { width: 13px; height: 13px; }
.chip.is-on { color: var(--brand-700); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-200); }
.bubble { background: var(--sunken); border-radius: 14px 14px 14px 4px; padding: 10px 13px; line-height: 1.5; color: var(--ink); }
.bubble span { color: var(--brand-700); font-weight: 500; }
.art-meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--ink-muted); }
.art-meta .icon { width: 13px; height: 13px; color: var(--success); stroke-width: 2.5; }
.art-person { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.art-person b { display: block; font-size: 13.5px; }
.art-person small { display: block; font-size: 12px; color: var(--ink-muted); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 650; box-shadow: inset 0 0 0 1px var(--brand-200); }
.art-approve .app-btn { margin-bottom: 0; height: 40px; font-size: 13px; box-shadow: 0 0 0 4px var(--brand-100); }

/* ---------- Features: product spotlight + quiet list ---------- */
.browser {
  max-width: 1080px; margin: 0 auto; border-radius: var(--radius-xl);
  background: #fff; box-shadow: var(--shadow-xl), var(--ring);
  overflow: hidden; position: relative;
}
.browser-bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; background: #F9FAFB; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; width: 47px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #E5E7EB; }
.bar-spacer { width: 47px; }
.url { flex: 1; max-width: 360px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: 7px; background: #fff; box-shadow: var(--ring); font-size: 12px; color: var(--ink-muted); }
.url .icon { width: 12px; height: 12px; }
.browser figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { display: grid; grid-template-columns: 220px 1fr; font-size: 13px; }
.app-side { border-right: 1px solid var(--line); padding: 16px 12px; }
.side-brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 18px; }
.side-brand b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.side-brand small { display: block; font-size: 10.5px; color: var(--ink-muted); line-height: 1.3; }
.side-group { font-size: 11px; font-weight: 500; color: var(--ink-muted); padding: 12px 10px 4px; }
.side-link { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--ink-muted); font-weight: 500; }
.side-link .icon { width: 16px; height: 16px; }
.side-link em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); padding: 0 7px; border-radius: 999px; }
.side-link.active { background: var(--brand-50); color: var(--brand-700); }

.app-main { background: var(--canvas); min-width: 0; }
.app-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.app-title { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.app-desc { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.app-actions { display: flex; gap: 8px; }
.app-ghost { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--ring); font-size: 12px; font-weight: 500; white-space: nowrap; }
.app-ghost .icon { width: 14px; height: 14px; }
.app-body { padding: 20px 24px 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--ring), var(--shadow-sm); padding: 14px 16px; }
.stat p { display: flex; justify-content: space-between; align-items: center; color: var(--ink-muted); font-size: 12px; font-weight: 500; }
.stat p .icon { width: 14px; height: 14px; color: var(--ink-subtle); }
.stat b { display: block; font-size: 22px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 11px; color: var(--ink-muted); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--ring), var(--shadow-sm); padding: 16px; }
.panel-title { font-weight: 600; font-size: 13.5px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.attn li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.attn li + li { border-top: 1px solid var(--line-soft); }
.bars { padding-top: 6px; }
.bar { display: grid; grid-template-columns: 120px 1fr 28px; gap: 12px; align-items: center; padding: 7px 0; color: var(--ink-soft); font-size: 12px; }
.bar i { height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.bar b { display: block; height: 100%; width: var(--w); border-radius: 99px; }
.bar .b1 { background: var(--brand-200); } .bar .b2 { background: var(--brand-500); } .bar .b4 { background: #22C55E; } .bar .b5 { background: #F87171; }
.bar em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

.feature-list {
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 56px);
  max-width: 1080px; margin: clamp(56px, 7vw, 88px) auto 0;
}
.feature { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.feature .icon { width: 22px; height: 22px; color: var(--brand-600); margin-bottom: 16px; }
.feature h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.feature p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.6; }

/* ---------- Modules ---------- */
.modules .section-head { max-width: 40rem; }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.module {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--ring), var(--shadow);
}
.module-name { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-muted); font-weight: 500; }
.module-name b { color: var(--ink); }
.module-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-600); color: #fff; }
.module-mark .icon { width: 17px; height: 17px; stroke-width: 2; }
.module-mark.mark-alt { background: var(--brand-950); }
.module h3 { font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); letter-spacing: -0.03em; margin: 22px 0 10px; }
.module-top > p:last-child { color: var(--ink-soft); }
.module-visual { margin-top: 28px; display: grid; gap: 12px; }
.mini-card { background: var(--canvas); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--line-soft); padding: 16px 18px; }
.mini-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: 13px; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.shift-row { display: grid; grid-template-columns: 34px 1fr 11.5rem; gap: 12px; align-items: center; font-size: 12.5px; padding: 8px 0; }
.shift-row + .shift-row { border-top: 1px solid var(--line); }
.shift-day { color: var(--ink-muted); font-weight: 500; }
.shift-bar { position: relative; height: 8px; border-radius: 99px; background: #E9EBEF; }
.shift-bar i { position: absolute; top: 0; bottom: 0; left: var(--s); right: calc(100% - var(--e)); border-radius: 99px; background: var(--brand-500); }
.shift-bar.corrected i { background: repeating-linear-gradient(135deg, var(--brand-500) 0 6px, var(--brand-200) 6px 9px); }
.shift-time { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.shift-time em { font-style: normal; font-size: 11px; color: var(--brand-700); background: var(--brand-50); padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.mini-sms { display: flex; gap: 10px; align-items: flex-start; justify-self: end; max-width: 320px; line-height: 1.45; background: var(--brand-600); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 13px; }
.mini-sms .icon { width: 15px; height: 15px; opacity: .85; flex: none; margin-top: 2px; }
.module-points { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.module-points li { position: relative; padding-left: 18px; font-size: var(--fs-sm); color: var(--ink-soft); }
.module-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }

.core-band { display: flex; align-items: center; gap: 24px; margin-top: 24px; padding: 18px 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--ring); }
.core-label { flex-shrink: 0; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); padding-right: 24px; border-right: 1px solid var(--line); }
.core-band ul { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft); }

/* ---------- For residents: My Staff ---------- */
.staff-visual { margin-top: 36px; max-width: 440px; }
.staff-visual .mini-card { background: #fff; box-shadow: var(--ring), var(--shadow); }
.staff-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; font-size: 13px; }
.staff-row + .staff-row { border-top: 1px solid var(--line); }
.staff-row b { display: block; font-size: 13.5px; }
.staff-row small { display: block; font-size: 12px; color: var(--ink-muted); }
.resident-list { border-top: 1px solid var(--line); }
.resident-list li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.resident-list .icon { width: 22px; height: 22px; color: var(--brand-600); margin-top: 1px; }
.resident-list h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.resident-list p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.6; }

/* ---------- Platforms: integration ecosystem ---------- */
.impro-compare { max-width: 1080px; margin: 0 auto var(--head-gap); }
.eco { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); align-items: center; max-width: 1080px; margin: 0 auto; }
.eco-col { display: grid; gap: 14px; }
.eco-label { display: flex; align-items: center; line-height: 20px; height: 20px; gap: 8px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.eco-label span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.eco-item { background: #fff; border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--ring), var(--shadow); }
.eco-item-brand { box-shadow: inset 0 0 0 1px var(--brand-200), var(--shadow-lg); }
.eco-logo { display: flex; line-height: 0; }
.eco-logo img { height: 42px; width: auto; }
.eco-item-muted { background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); border: 1px dashed transparent; }
.eco-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.eco-item-head .badge { margin-left: auto; }
.eco-item h3 { font-size: var(--fs-h3); }
.eco-item p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.55; }
.eco-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-100); }
.eco-icon .icon { width: 18px; height: 18px; }
.eco-item-muted .eco-icon { background: #fff; color: var(--ink-muted); box-shadow: var(--ring); }

.eco-hub { align-self: stretch; position: relative; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; }
.eco-line { position: absolute; top: 50%; height: 2px; width: calc(50% - 64px); background-image: linear-gradient(90deg, var(--brand-300) 50%, transparent 50%); background-size: 8px 2px; }
.eco-line-l { left: 0; }
.eco-line-r { right: 0; }
.eco-line::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.eco-line-l::after { left: -4px; }
.eco-line-r::after { right: -4px; }
.hub {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center;
  width: 136px; padding: 20px 12px; border-radius: 24px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--brand-200), 0 0 0 8px rgba(238,242,255,.8), var(--shadow-lg);
}
.hub b { font-size: 15px; letter-spacing: -0.02em; }
.hub small { font-size: 11px; line-height: 1.35; color: var(--ink-muted); }
.platform-note { text-align: center; font-size: var(--fs-xs); color: var(--ink-muted); margin: 40px auto 0; max-width: 44rem; }

/* ---------- Trust (dark) ---------- */
.trust {
  background:
    radial-gradient(45% 55% at 100% 0%, rgba(99,102,241,.28), transparent 70%),
    radial-gradient(35% 45% at 0% 100%, rgba(79,70,229,.18), transparent 70%),
    var(--brand-950);
  color: var(--brand-100);
}
.trust .kicker { color: var(--brand-300); }
.trust h2 { color: #fff; }
.trust .section-lead { color: var(--brand-200); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.trust-list { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.trust-list li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.trust-list .icon { width: 22px; height: 22px; color: var(--brand-300); margin-top: 1px; }
.trust-list h3 { font-size: var(--fs-h3); color: #fff; margin-bottom: 4px; }
.trust-list p { font-size: var(--fs-sm); color: var(--brand-200); line-height: 1.6; }

.trust-visual { position: sticky; top: calc(var(--header-h) + 48px); display: grid; gap: 16px; }
.console { border-radius: var(--radius-lg); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -20px rgba(0,0,0,.5); overflow: hidden; }
.console-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; font-weight: 600; color: #fff; }
.console-head .icon { width: 16px; height: 16px; color: var(--brand-300); }
.console-tag { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--brand-200); padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(199,210,254,.25); }
.events li { display: grid; grid-template-columns: 44px 1fr 10px; gap: 14px; align-items: start; padding: 13px 18px; font-size: 13px; }
.events li + li { border-top: 1px solid rgba(255,255,255,.06); }
.events time { color: var(--brand-300); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.events b { display: block; color: #fff; font-weight: 500; }
.events span { display: block; color: var(--brand-200); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.ev { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--brand-300); opacity: .7; }
.ev-ok { background: #4ADE80; opacity: 1; }
.ev-warn { background: #FBBF24; opacity: 1; }

.writepath { border-radius: var(--radius-lg); padding: 18px 20px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.writepath-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #fff; }
.writepath-title .icon { width: 16px; height: 16px; color: var(--brand-300); }
.writepath ul { margin: 12px 0; display: grid; gap: 6px; }
.writepath li { position: relative; padding-left: 18px; font-size: 13px; color: var(--brand-100); }
.writepath li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand-500); }
.writepath-foot { font-size: 12px; color: var(--brand-200); padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Rollout band ---------- */
.rollout { padding-block: clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--line-soft); }
.rollout-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.rollout h2 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); font-weight: 700; letter-spacing: -0.03em; }
.rollout-head p { margin-top: 10px; color: var(--ink-soft); }
.rollout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.rollout-steps::before { content: ""; position: absolute; top: 15px; left: 16px; right: calc((100% - 56px) / 3 - 16px); height: 2px; background: linear-gradient(90deg, var(--brand-200), var(--brand-500)); }
.rollout-steps li { position: relative; }
.rs-num { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--brand-700); font-size: 13px; font-weight: 650; box-shadow: inset 0 0 0 2px var(--brand-500), 0 0 0 6px #fff; margin-bottom: 16px; }
.rollout-steps li:last-child .rs-num { background: var(--brand-600); color: #fff; box-shadow: 0 0 0 6px #fff; }
.rollout-steps b { display: block; font-size: var(--fs-base); }
.rollout-steps p { margin-top: 4px; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.55; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1100px; margin: 0 auto; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-xl); padding: 32px 28px;
  box-shadow: var(--ring), var(--shadow-sm);
}
.plan-modules { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.plan-modules span { font-size: 11.5px; font-weight: 500; color: var(--ink-soft); padding: 2px 9px; border-radius: 999px; box-shadow: var(--ring); background: var(--canvas); }
.plan h3 { font-size: 1.25rem; }
.plan-desc { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 8px; min-height: 3.2em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 26px 0 24px; }
.amount { font-size: clamp(2rem, 1.6vw + 1.3rem, 2.5rem); font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.per { font-size: var(--fs-xs); color: var(--ink-muted); }
.plan .btn { margin-bottom: 28px; }
.plan-list { padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.plan-list .icon { width: 18px; height: 18px; color: var(--brand-600); stroke-width: 2.25; margin-top: 2px; }
.plan-list .plan-list-lead { font-weight: 600; color: var(--ink); }
.plan-featured { box-shadow: inset 0 0 0 1px var(--brand-300), var(--shadow-lg); }
.plan-featured .plan-modules span { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-200); }
.plan-flag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; line-height: 1; padding: 6px 12px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 12px -4px rgba(79, 70, 229, .5); }
.sms-from { display: inline-block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.sms-sign { margin-top: 6px; font-size: .92em; color: var(--ink-muted); }
.mini-sms .sms-from { color: #fff; }
.mini-sms .sms-sign { color: rgba(255, 255, 255, .78); }
.bubble p + p { margin-top: 6px; }
.pricing-note { text-align: center; font-size: var(--fs-xs); color: var(--ink-muted); margin: 32px auto 0; max-width: 40rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 48px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 68px; padding: 18px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-base); letter-spacing: -0.01em;
  transition: color .15s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: #fff center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  box-shadow: var(--ring);
  transition: transform .3s var(--ease), background-color .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--brand-50); }
.faq-list summary:hover { color: var(--brand-700); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 48px 24px 0; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.7; max-width: 42rem; }

/* ---------- Final CTA ---------- */
.cta { padding-bottom: var(--section-y); }
.cta-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(99,102,241,.35), transparent 70%),
    var(--brand-950);
  color: var(--brand-100);
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta-copy, .cta-agenda { position: relative; }
.cta .kicker { color: var(--brand-300); }
.cta h2 { color: #fff; max-width: 32rem; }
.cta-copy > p:not(.kicker) { margin-top: 16px; max-width: 34rem; color: var(--brand-200); font-size: var(--fs-lg); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-copy > p.cta-email { margin-top: 18px; font-size: var(--fs-sm); color: var(--brand-200); }
.cta-email a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.cta-email a:hover { text-decoration-color: currentColor; }
.cta-agenda { border-radius: var(--radius-lg); padding: 24px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.cta-agenda-title { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-300); margin-bottom: 8px; }
.cta-agenda ol { counter-reset: agenda; }
.cta-agenda li { counter-increment: agenda; display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 11px 0; font-size: var(--fs-sm); color: #fff; }
.cta-agenda li + li { border-top: 1px solid rgba(255,255,255,.08); }
.cta-agenda li::before { content: counter(agenda, decimal-leading-zero); font-size: 12px; font-weight: 600; color: var(--brand-300); font-variant-numeric: tabular-nums; padding-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--ink-muted); font-size: var(--fs-sm); margin-top: 8px; max-width: 20rem; }
.footer-nav { display: flex; gap: clamp(40px, 7vw, 88px); }
.footer-h { font-size: var(--fs-2xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-sm); color: var(--ink-muted); transition: color .15s ease; }
.footer-nav a:hover { color: var(--brand-700); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-block: 24px; font-size: var(--fs-xs); color: var(--ink-muted); }

/* ---------- Reveal on scroll (only when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .eco { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); }
  .eco-line { width: calc(50% - 56px); }
  .hub { width: 112px; padding: 16px 8px; }
  .hub small { display: none; }
  .rollout-inner { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 20px;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a:not(.btn) { width: 100%; padding: 0 12px; font-size: var(--fs-base); }
  .primary-nav a:not(.btn)::after { display: none; }
  .primary-nav a.is-active { background: var(--canvas); }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 12px; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
  .hero-visual { justify-content: center; }
  .hero-stage { max-width: 600px; padding-right: 0; justify-content: center; }
  .hero-stage::before { left: 50%; }
  .float-sms { left: 0; }
  .float-status { left: auto; right: 0; bottom: 40px; }
  .spec-band { grid-template-columns: 1fr 1fr; }
  .spec-band > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec-band > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .spec-band > div { padding-bottom: 22px; }

  .split, .how-grid, .trust-grid, .faq-wrap { grid-template-columns: 1fr; }
  .how-head, .trust-visual, .faq-head { position: static; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: 1fr; }

  .eco { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .eco-hub { min-height: 0; height: auto; padding: 28px 0; flex-direction: column; }
  .eco-line { position: static; width: 2px; height: 28px; background-image: linear-gradient(180deg, var(--brand-300) 50%, transparent 50%); background-size: 2px 8px; }
  .eco-line::after { display: none; }
  .hub { width: auto; grid-auto-flow: column; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; }
  .hub small { display: block; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; gap: 20px; }
  .plan-desc { min-height: 0; }
  .cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 22px 1fr; column-gap: 16px; padding: 22px 0; }
  .feature .icon { grid-row: span 2; margin: 1px 0 0; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-headrow { display: none; }
  .compare-row > span { padding: 14px 18px; }
  .compare .was { padding-bottom: 0; text-decoration: line-through; text-decoration-color: var(--line-strong); font-size: var(--fs-xs); }
  .compare .now { border-left: 0; background: none; padding-top: 6px; }
  .rollout-steps { grid-template-columns: 1fr; gap: 0; }
  .rollout-steps::before { display: none; }
  .rollout-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--brand-200); }
  .rollout-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding-bottom: 22px; }
  .rollout-steps li:last-child { padding-bottom: 0; }
  .rs-num { margin-bottom: 0; }
  .core-band { flex-direction: column; align-items: flex-start; gap: 12px; }
  .core-label { border-right: 0; padding-right: 0; }
  .core-band ul { gap: 6px 20px; }
}

@media (max-width: 600px) {
  .hero-stage { flex-direction: column; align-items: center; padding: 8px 0 0; }
  .phone { width: 272px; }
  .float-card { position: relative; animation: none; }
  .float-sms { order: -1; top: auto; left: auto; align-self: flex-start; width: min(260px, 82%); margin-bottom: -26px; font-size: 12px; padding: 10px 12px; }
  .float-status { bottom: auto; right: auto; align-self: flex-end; width: min(240px, 78%); margin-top: -30px; padding: 12px 14px; }
  .cta-row .btn, .cta-actions .btn { width: 100%; }
  .spec-band { grid-template-columns: 1fr 1fr; }
  .spec-band > div { padding: 16px 12px 16px 0; }
  .spec-band > div + div { padding-left: 12px; }
  .spec-band > div:nth-child(3) { padding-left: 0; }
  .app-header { flex-direction: column; }
  .app-header, .app-body { padding-inline: 14px; }
  .bar { grid-template-columns: 104px 1fr 24px; gap: 8px; }
  .shift-row { grid-template-columns: 30px 1fr auto; }
  .shift-time em { display: none; }
  .flow-step { grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; }
  .flow::before, .flow::after, .flow-step:last-child::after { left: 15px; }
  .flow-step:last-child::after { top: 32px; }
  .flow-node { width: 32px; height: 32px; font-size: 13px; }
  .flow-copy { padding-top: 3px; }
  .flow-art { grid-column: 1 / -1; margin-left: 48px; }
  .faq-a p { padding-right: 0; }
  .footer-nav { width: 100%; gap: 32px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .events li { grid-template-columns: 40px 1fr 8px; gap: 10px; padding-inline: 14px; }
  .eco-item-head { flex-wrap: wrap; }
  .staff-row { grid-template-columns: 36px minmax(0, 1fr); row-gap: 6px; }
  .staff-row .badge { grid-column: 2; justify-self: start; }
}

@media (max-width: 400px) {
  .phone { width: 256px; }
  .plan { padding: 28px 22px; }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal-hero { padding-block: 56px 8px; }
.legal-hero .kicker { margin-bottom: 10px; }
.legal-hero h1 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.03em; }
.legal-updated { margin-top: 10px; color: var(--ink-muted); font-size: var(--fs-sm); }
.legal-draft {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 10px 14px; border-radius: var(--radius); font-size: var(--fs-sm);
  background: var(--warning-bg); color: #92400E; box-shadow: inset 0 0 0 1px #FDE68A;
}
.legal-body { max-width: 42rem; margin: 0 auto; padding-block: 24px 64px; color: var(--ink-soft); }
.legal-body h2 { font-size: var(--fs-h3); font-weight: 650; color: var(--ink); margin-top: 40px; margin-bottom: 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-top: 12px; line-height: 1.7; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.legal-body li { margin-top: 6px; line-height: 1.7; }
.legal-body li::marker { color: var(--ink-subtle); }
.legal-body a { color: var(--brand-700); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-200); }
.legal-body a:hover { text-decoration-color: currentColor; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .flow.is-wired .flow-step:not(.is-active) .flow-art { opacity: 1; transform: none; }
}
