/* ============================================================
   SitePulse — marketing site
   ============================================================ */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text: #172033;
  --text-2: #475569;
  --text-muted: #64748b;
  --text-on-brand: #ffffff;

  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-soft: #eef2ff;
  --brand-soft-border: #c7d2fe;
  /* Same in both themes, as in the product and the brochure: solid fills and the deep brand surface. */
  --brand-fill: #4f46e5;
  --brand-fill-hover: #4338ca;
  --brand-deep: #312e81;

  --teal: #0f766e;
  --teal-soft: #f0fdfa;
  --teal-soft-border: #99f6e4;

  --success: #15803d;
  --success-soft: #f0fdf4;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --info: #1d4ed8;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14), 0 8px 20px rgba(15, 23, 42, .08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --dur: 220ms;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --container: 1180px;
  color-scheme: light;
}

/* Dark greys match the portal's dark theme (frontend globals.css). */
:root[data-theme="dark"] {
  --bg: #080c12;
  --surface: #191f2b;
  --surface-2: #232d3b;
  --surface-3: #2e3948;
  --border: #4a5872;
  --border-strong: #65758c;

  --text: #f3f6fb;
  --text-2: #c5cfde;
  --text-muted: #98a6ba;

  --brand: #a5b4fc;
  --brand-hover: #c7d2fe;
  --brand-soft: #262859;
  --brand-soft-border: #4f46e5;

  --teal: #7fe3d8;
  --teal-soft: #0f2d2b;
  --teal-soft-border: #1f6b63;

  --success: #34d399;
  --success-soft: #0c2b22;
  --warning: #fbbf24;
  --warning-soft: #2e220a;
  --info: #60a5fa;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080c12;
    --surface: #191f2b;
    --surface-2: #232d3b;
    --surface-3: #2e3948;
    --border: #4a5872;
    --border-strong: #65758c;

    --text: #f3f6fb;
    --text-2: #c5cfde;
    --text-muted: #98a6ba;

    --brand: #a5b4fc;
    --brand-hover: #c7d2fe;
    --brand-soft: #262859;
    --brand-soft-border: #4f46e5;

    --teal: #7fe3d8;
    --teal-soft: #0f2d2b;
    --teal-soft-border: #1f6b63;

    --success: #34d399;
    --success-soft: #0c2b22;
    --warning: #fbbf24;
    --warning-soft: #2e220a;
    --info: #60a5fa;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

main section[id] { scroll-margin-top: 88px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-primary {
  background: var(--brand-fill);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-fill-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-ghost .arrow { transition: transform var(--dur) var(--ease); }
.btn-ghost:hover .arrow { transform: translateY(2px); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.cta-short { display: none; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo-mark {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-fill);
  color: #fff;
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-text .accent { color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width var(--dur) var(--ease);
  border-radius: 2px;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); transform: rotate(10deg); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); margin: 0 auto; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 120px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob {
  position: absolute;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  animation: drift 18s ease-in-out infinite;
}
.blob-a { background: var(--brand); top: -14%; right: -10%; }
.blob-b { background: var(--teal); bottom: -18%; left: -8%; animation-delay: -9s; }
.grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent);
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-4%, 6%) scale(1.08); }
  66% { transform: translate(4%, -4%) scale(.96); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero-content h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-content h1 .highlight { color: var(--brand); }
.lead { font-size: 18px; color: var(--text-2); max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

/* hero visual: real portal + app screenshots in frames */
.hero-visual { position: relative; min-height: 420px; padding-bottom: 56px; }
.hero-browser { max-width: 580px; animation: float-slow 7s ease-in-out infinite; }
/* Two classes: .phone-frame below sets position: relative and would win otherwise. */
.hero-visual .hero-phone {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 172px;
  animation: float-fast 5.5s ease-in-out infinite;
}

/* frames */
.browser-frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; }
.browser-bar span:nth-child(1) { background: #f87171; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar i {
  margin-left: 10px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-frame img { display: block; width: 100%; height: auto; }

.phone-frame {
  position: relative;
  margin: 0;
  padding: 9px;
  background: #111827;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease);
}
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 28px; }
.phone-frame::before { content: ""; position: absolute; top: 3.2%; left: 50%; width: 24%; height: 2.5%; transform: translateX(-50%); background: #111827; border-radius: 999px; }
.phone-frame::after { content: ""; position: absolute; bottom: 2.7%; left: 50%; width: 32%; height: 4px; transform: translateX(-50%); background: #111827; border-radius: 4px; opacity: .8; }

/* product tour */
.tour-office { display: grid; grid-template-columns: 1.55fr 1fr; gap: 44px; align-items: center; margin-bottom: 28px; }
.tour-copy h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.tour-copy > p { color: var(--text-2); font-size: 15.5px; margin-bottom: 18px; }
.tour-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 80px; }
.tour-site { display: grid; grid-template-columns: 1fr 2.4fr; gap: 44px; align-items: center; }
.phone-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.phone-card { margin: 0; text-align: center; }
.phone-card:hover .phone-frame { transform: translateY(-6px); }
.phone-card figcaption { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }

@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-fast { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1.2deg); } }

.float-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  animation: float-fast 6s ease-in-out infinite;
}
.badge-1 { top: 6%; left: -4%; animation-delay: -1.5s; }
.badge-2 { bottom: 22%; left: 6%; animation-delay: -3s; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text-muted);
  animation: bob 2.2s ease-in-out infinite;
  z-index: 1;
}
.scroll-cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section-tint { background: var(--surface-2); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.015em; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 16.5px; }

/* before / after */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  max-width: 980px;
  margin: 0 auto;
}
.compare-row { display: contents; }
.compare-head { padding: 0 4px 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.compare-head.compare-old { color: var(--text-muted); }
.compare-head.compare-new { color: var(--brand); }
.compare-row > div {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
}
.compare-row > .compare-old { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.compare-row > .compare-new { background: var(--brand-soft); border: 1px solid var(--brand-soft-border); color: var(--text); font-weight: 500; }
.compare-row svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.compare-row > .compare-old svg { stroke: var(--text-muted); }
.compare-row > .compare-new svg { stroke: var(--brand); }

/* who sees what */
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.view-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.view-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.view-who { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.view-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; flex-shrink: 0; }
.view-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-brand { background: var(--brand-soft); color: var(--brand); }
.icon-secondary { background: var(--teal-soft); color: var(--teal); }
.icon-teal { background: var(--brand-soft); color: var(--teal); }
.view-who h3 { font-size: 19px; font-weight: 800; }
.view-roles { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.view-list { display: flex; flex-direction: column; gap: 10px; }
.view-list li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.view-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* credibility strip */
.section-strip { padding: 0 0 80px; margin-top: -24px; }
.cred {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cred-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-fill); color: #fff; flex-shrink: 0; }
.cred-mark svg { width: 26px; height: 26px; }
.cred p { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.cred strong { color: var(--text); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--brand-soft-border); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
  transition: transform var(--dur) var(--ease);
}
.feature-card:hover .feature-icon { transform: rotate(8deg) scale(1.06); }
.feature-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; }
.step::before,
.step::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 38px;
  right: -28px;
  height: 2px;
  border-radius: 2px;
}
.step::before { background: var(--border); }
.step::after {
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 600ms var(--ease);
  transition-delay: var(--seg-delay, 0ms);
}
.step:nth-child(2)::after { --seg-delay: 500ms; background: linear-gradient(90deg, var(--brand), var(--teal)); }
.step:nth-child(3)::after { --seg-delay: 1000ms; background: var(--teal); }
.step:last-child::before,
.step:last-child::after { display: none; }
.steps.run .step::after { transform: scaleX(1); }
.step-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-2); }

/* demo grid */
.demo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.demo-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.demo-legend { display: flex; gap: 18px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.demo-legend span { display: flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-pending { background: var(--border-strong); }
.dot-working { background: var(--warning); }
.dot-done { background: var(--success); }
.demo-pct { font-size: 15px; font-weight: 800; color: var(--brand); }
.demo-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
.demo-cell {
  aspect-ratio: 1;
  border-radius: 7px;
  background: var(--surface-3);
  transition: background 500ms var(--ease), transform 300ms var(--ease);
}
.demo-cell.working { background: var(--warning); }
.demo-cell.done { background: var(--success); }
.demo-cell.pop { transform: scale(1.14); }

/* trust */
.trust-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.trust-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.015em; margin: 10px 0 14px; }
.trust-copy > p { color: var(--text-2); font-size: 16px; margin-bottom: 22px; max-width: 480px; }
.trust-list { display: flex; flex-direction: column; gap: 12px; }
.trust-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.trust-list svg { width: 18px; height: 18px; fill: none; stroke: var(--success); stroke-width: 2.4; flex-shrink: 0; }

.trust-visual { display: grid; place-items: center; }
.lock-card {
  position: relative;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  text-align: center;
  animation: float-slow 6.5s ease-in-out infinite;
}
.lock-icon { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--brand); stroke: currentColor; stroke-width: 1.6; fill: var(--brand-soft); }
.lock-rows { display: flex; flex-direction: column; gap: 10px; }
.lock-row {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-3);
  animation: shimmer 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * .25s);
}
.lock-row:nth-child(1) { width: 92%; margin: 0 auto; }
.lock-row:nth-child(2) { width: 70%; margin: 0 auto; }
.lock-row:nth-child(3) { width: 82%; margin: 0 auto; }
@keyframes shimmer { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* accordion */
.accordion { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.acc-item:has(.acc-trigger[aria-expanded="true"]) { border-color: var(--brand-soft-border); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
}
.acc-icon { width: 18px; height: 18px; fill: none; stroke: var(--text-muted); stroke-width: 2; transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(180deg); stroke: var(--brand); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.acc-trigger[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-panel-inner p { padding: 0 20px 18px; color: var(--text-2); font-size: 14.5px; }

/* cta / demo form */
.section-cta { background: var(--surface-2); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 14px; }
.cta-copy > p:not(.cta-alt) { color: var(--text-2); font-size: 16px; margin-bottom: 20px; max-width: 420px; }
.cta-list { margin-bottom: 20px; }
.cta-alt { font-size: 14px; color: var(--text-muted); }
.cta-alt a { color: var(--brand); font-weight: 600; }

.cta-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.form-consent { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: -4px; }
.form-consent a { color: var(--brand); font-weight: 600; }
.form-note { font-size: 13.5px; font-weight: 600; min-height: 18px; color: var(--success); }
.form-note.error { color: #dc2626; }

/* legal pages */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 6px; }
.legal-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal a { color: var(--brand); font-weight: 600; }
/* Details the site owner must fill in before launch; the tint makes a missed one obvious. */
.todo { background: var(--warning-soft); color: var(--warning); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; background: var(--surface-2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text-2); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 24px; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 20px; min-height: 420px; }
  .views { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::before, .step::after { display: none; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-visual { order: -1; }
  .tour-office, .tour-site { grid-template-columns: 1fr; gap: 28px; }
  .tour-pair { margin-bottom: 56px; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* The full nav needs ~1020px; below that it folds into the menu button. */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open a { padding: 10px 0; width: 100%; }
}

@media (max-width: 720px) {
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 6px; }
  /* One card per pair: the problem, a down arrow, then the answer. The two
     heads become a one-line key above the cards. */
  .compare { grid-template-columns: auto auto 1fr; gap: 14px 10px; }
  .compare-head { padding: 0 0 2px; font-size: 11.5px; }
  .compare-head.compare-new::before { content: "\2192"; margin-right: 10px; color: var(--text-muted); }
  .compare-row {
    display: grid;
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .compare-row > div { border-radius: 0; }
  .compare-row > .compare-old { border: 0; background: none; padding: 14px 16px 18px; font-size: 14.5px; }
  .compare-row > .compare-new { position: relative; border: 0; border-top: 1px solid var(--brand-soft-border); padding: 18px 16px 14px; overflow: visible; }
  .compare-row > .compare-new::before {
    content: "\2193";
    position: absolute;
    top: -12px;
    left: 13px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--brand-soft-border);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
  }
  .cred { flex-direction: column; align-items: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .demo-grid { grid-template-columns: repeat(6, 1fr); }
  .hero-visual .hero-phone { width: 128px; right: 0; }
  .badge-2 { display: none; }
  .tour-pair { grid-template-columns: 1fr; }
  .phone-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scrollbar-width: none;
  }
  .phone-row::-webkit-scrollbar { display: none; }
  .phone-card { flex: 0 0 64%; scroll-snap-align: center; }
  .float-badge { font-size: 11px; padding: 6px 10px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 90px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .icon-btn, .nav-toggle { width: 34px; height: 34px; }
  .btn-sm { padding: 8px 12px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
