/* ShopConnect , shared stylesheet
   Stripe-inspired polish; white base, teal-green accent, geometric sans
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f6f9f8;
  --bg-tint: #eef5f2;
  --ink: #0a1f1a;
  --ink-2: #2a3d37;
  --ink-3: #5b6b66;
  --ink-4: #8a958f;
  --line: #e6ece9;
  --line-2: #d8e1dd;

  /* accent , teal-green; tweakable via --accent-h / --accent-c */
  --accent-h: 168;
  --accent-c: 0.10;
  --accent: oklch(58% var(--accent-c) var(--accent-h));
  --accent-deep: oklch(42% calc(var(--accent-c) * 1.0) var(--accent-h));
  --accent-soft: oklch(94% calc(var(--accent-c) * 0.4) var(--accent-h));
  --accent-glow: oklch(75% calc(var(--accent-c) * 0.9) var(--accent-h));

  --shadow-sm: 0 1px 2px rgba(10, 31, 26, 0.04), 0 1px 3px rgba(10, 31, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 31, 26, 0.06), 0 2px 6px rgba(10, 31, 26, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(10, 31, 26, 0.12), 0 8px 24px -8px rgba(10, 31, 26, 0.08);
  --shadow-xl: 0 40px 80px -20px rgba(10, 31, 26, 0.16), 0 16px 40px -12px rgba(10, 31, 26, 0.10);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --pad-x: clamp(20px, 4vw, 56px);
  --container: 1200px;
  --section-y: clamp(56px, 7vw, 96px);

  --font-sans: "Inter", "Inter Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-density="compact"] {
  --section-y: clamp(48px, 6vw, 80px);
  --pad-x: clamp(16px, 3vw, 40px);
}

[data-hero-theme="dark"] .hero {
  --hero-bg: #06120e;
  --hero-ink: #ecf3f0;
  --hero-ink-2: #aebbb6;
  --hero-line: rgba(255, 255, 255, 0.08);
  background: var(--hero-bg);
  color: var(--hero-ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11", "tnum";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }

/* ====== TYPE ====== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-deep);
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 600; }
h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.15; }
h4 { font-size: 17px; font-weight: 600; line-height: 1.3; }

p { margin: 0; color: var(--ink-2); }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 60ch; }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 160ms cubic-bezier(.2,.8,.2,1), background 160ms, color 160ms, box-shadow 160ms;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 6px 16px -6px rgba(10,31,26,0.4);
}
.btn-primary:hover { transform: translateY(-1px); background: #102a23; }
.btn-accent {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 18px -6px oklch(50% var(--accent-c) var(--accent-h) / 0.45);
}
.btn-accent:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-3); }
.btn .arrow { transition: transform 160ms cubic-bezier(.2,.8,.2,1); }
.btn:hover .arrow { transform: translateX(3px); }

/* ====== NAV ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px var(--pad-x);
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  background: var(--ink) url('assets/logo-white.png') center / 78% 78% no-repeat;
  border-radius: 8px;
  flex-shrink: 0;
  /* keep legacy gradient fallback unused */
  background-blend-mode: normal;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px -2px oklch(60% var(--accent-c) var(--accent-h) / 0.5);
  position: relative;
}
.brand-mark::before { content: none; display: none;
  position: absolute; inset: 6px;
  border-radius: 3px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), transparent 60%),
    linear-gradient(135deg, transparent, rgba(255,255,255,0.25));
  mask:
    linear-gradient(#000, #000) padding-box,
    conic-gradient(from 90deg at 50% 50%, #000 0 25%, transparent 0) border-box;
}
.brand-mark::after { content: none; display: none;
  position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background 120ms, color 120ms;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-cta .btn { padding: 9px 16px; font-size: 14px; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
}

/* ====== MOBILE NAV — hamburger + drawer ====== */
/* Hidden on desktop (>1024px), revealed at <=1024px. Uses existing design
   tokens (no new colors). Drawer slides under the sticky header. */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--bg-soft); border-color: var(--line-2); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle-bars { display: inline-block; width: 20px; height: 14px; position: relative; }
.nav-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 1px;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height, 75px);
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 8px 16px 16px;
  z-index: 49;
  max-height: calc(100vh - var(--nav-height, 75px));
  overflow-y: auto;
}
.nav-drawer[data-open="true"] { display: flex; flex-direction: column; gap: 2px; }
.nav-drawer a {
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer a:hover, .nav-drawer a:focus-visible { background: var(--bg-soft); color: var(--ink); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { position: relative; }
  /* Push hamburger + CTA cluster to the right; brand on the left */
  .brand { margin-right: auto; }
  /* Tight, consistent gap between hamburger and CTA */
  .nav-toggle { margin-left: 0; }
  .nav-cta { margin-left: 4px; }
}
/* Shrink brand text + CTA at narrow widths so the nav cluster fits comfortably */
@media (max-width: 540px) {
  .brand span:last-child { font-size: 15px; }
  .nav-cta .btn-primary { padding: 9px 14px !important; font-size: 13.5px; }
}
@media (max-width: 400px) {
  .brand span:last-child { font-size: 14px; }
  .nav-cta .btn-primary { padding: 8px 12px !important; font-size: 12.5px; }
}
@media (max-width: 340px) {
  .brand span:last-child { display: none; }
  /* Maintain 44px tap target even when only the icon is visible */
  .brand { min-width: 44px; min-height: 44px; padding-right: 14px; }
}

/* More vertical breathing room between sections on phone so the hero/demo,
   marquee, calculator, integrations etc. don't feel mashed together. */
@media (max-width: 540px) {
  :root { --section-y: 72px; }
}

/* ====== SECTIONS ====== */
section { padding-block: var(--section-y); }
.section-head { max-width: 740px; margin-bottom: 56px; }
.section-head .lead { margin-top: 16px; }
[data-density="compact"] .section-head { margin-bottom: 36px; }

/* Section-head centered variant */
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }

/* Section background variants */
.section--soft { background: var(--bg-soft); }
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

/* Narrow content container */
.narrow { max-width: 760px; margin-inline: auto; }
.narrow--sm { max-width: 620px; margin-inline: auto; }

/* Body text styles */
.body-lg { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.body-md { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.body-sm { font-size: 13px; color: var(--ink-3); }
.text-center { text-align: center; }

/* Label / eyebrow-like uppercase small text */
.label-xs {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px;
}
.label-xs--accent { color: var(--accent-deep); }
.label-xs--muted { color: var(--ink-3); }

/* Stat number */
.stat-lg { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 4px; }

/* Button row — flex, centered, wrapping */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
@media (max-width: 540px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

/* Blockquote styled */
.quote {
  margin: 40px auto 0; max-width: 620px; padding: 28px 32px;
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0; text-align: left;
}
@media (max-width: 540px) { .quote { padding: 20px 22px; } }

/* Narrow card */
.card--narrow { margin: 32px auto 0; max-width: 620px; padding: 24px 28px; }
@media (max-width: 540px) { .card--narrow { padding: 18px 20px; } }

/* Tier grid */
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.tier-card {
  padding: 22px; border-radius: var(--radius-lg);
}
.tier-card--t1 { border: 1px solid var(--accent); background: var(--accent-soft); }
.tier-card--t2 { border: 1px solid var(--line-2); background: #fff; }
.tier-card--t3 { border: 1px solid var(--line); background: var(--bg-soft); }
@media (max-width: 540px) { .tier-cards { grid-template-columns: 1fr; } }

/* Calculator savings tiles */
.calc-savings-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; position: relative; z-index: 1; }
.savings-tile {
  padding: 16px 18px; border-radius: 12px;
}
.savings-tile--std { background: rgba(134,239,172,0.16); border: 1px solid rgba(134,239,172,0.32); }
.savings-tile--dual { background: rgba(134,239,172,0.24); border: 1px solid rgba(134,239,172,0.42); }
@media (max-width: 540px) { .calc-savings-tiles { grid-template-columns: 1fr; } }

/* Calc output card elements */
.calc-current-box {
  position: relative; z-index: 1; margin-top: 14px; padding: 14px 16px;
  background: rgba(248,113,113,0.18); border: 1px solid rgba(248,113,113,0.35); border-radius: 10px;
}
.calc-lead-form {
  margin-top: 20px; padding: 18px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; position: relative; z-index: 1;
}

/* Integrations marquee section */
.integrations-peek { padding-block: 64px; }
.integrations-peek .container { text-align: center; }

/* FAQ content spacing */
.faq-body p + p { margin-top: 12px; }
.faq-body ul { margin-top: 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }

/* Chrome badge in footer */
.chrome-badge-footer {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 10px 14px; background: var(--ink); color: #fff;
  border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 600;
}
.chrome-badge-footer__text { display: flex; flex-direction: column; line-height: 1.1; }

/* Star rating */
.stars { color: #f5a623; }

/* Status dot link */
.status-link { color: var(--ink-3); text-decoration: none; }
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #9ca3af; margin-right: 6px; vertical-align: middle;
}

/* Stat card (centered metric + label) */
.stat-card { text-align: center; }
.stat-number { font-size: 42px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-deep); }
.stat-label { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* Grid gap variant */
.grid-gap-lg { gap: 64px; }
@media (max-width: 540px) { .grid-gap-lg { gap: 32px; } }

/* About page photo frame */
.photo-frame { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #0f1a16; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Founder card */
.founder-card { margin-top: 64px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
@media (max-width: 540px) { .founder-card { padding: 20px; margin-top: 40px; } }

/* Body text with top margin */
.body-lg + .body-lg { margin-top: 16px; }

/* h2 with top margin (used after eyebrow/section-head) */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }

/* ====== CARDS ====== */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 64px 32px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}
.footer-col h5 {
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px;
}
.footer-col a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ====== UTIL ====== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.text-accent { color: var(--accent-deep); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* Subtle bg patterns */
.bg-grid {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000 30%, transparent 80%);
}

/* Reveal on scroll — hidden until JS adds .in */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
/* Fallback: if JS hasn't loaded after 2s, show everything */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 72px);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 400px at 80% -10%, oklch(80% calc(var(--accent-c) * 1.2) var(--accent-h) / 0.18), transparent 60%),
    radial-gradient(ellipse 600px 350px at 10% 0%, oklch(85% calc(var(--accent-c) * 0.6) calc(var(--accent-h) - 20)) / 0.12, transparent 60%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
[data-hero-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 700px 400px at 80% -10%, oklch(60% calc(var(--accent-c) * 1.2) var(--accent-h) / 0.45), transparent 60%),
    radial-gradient(ellipse 600px 350px at 10% 10%, oklch(45% calc(var(--accent-c) * 0.8) calc(var(--accent-h) + 30)) / 0.35, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 80px 80px;
  color: oklch(80% 0.02 var(--accent-h) / 0.18);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
[data-hero-theme="dark"] .hero-grid { color: rgba(255,255,255,0.05); }

.hero-inner { position: relative; z-index: 2; }
.hero h1 { max-width: 18ch; }
[data-hero-theme="dark"] .hero h1,
[data-hero-theme="dark"] .hero h2,
[data-hero-theme="dark"] .hero h3 { color: var(--hero-ink); }
[data-hero-theme="dark"] .hero p { color: var(--hero-ink-2); }
[data-hero-theme="dark"] .hero .btn-ghost { color: var(--hero-ink); border-color: rgba(255,255,255,0.15); }
[data-hero-theme="dark"] .hero .btn-ghost:hover { background: rgba(255,255,255,0.06); }
[data-hero-theme="dark"] .hero .eyebrow { background: rgba(255,255,255,0.08); color: var(--accent-glow); }

.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 28px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
[data-hero-theme="dark"] .hero-meta { color: var(--hero-ink-2); }

.hero-visual {
  margin-top: 56px;
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
}
.hero-visual.reveal { opacity: 1; transform: none; }

/* Browser-frame hero: stylized Chrome window showing extension popup */
.browser-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.bm-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.bm-dots { display: flex; gap: 6px; flex-shrink: 0; }
.bm-dots span { width: 12px; height: 12px; border-radius: 50%; background: #e6ece9; }
.bm-dots span:nth-child(1) { background: #ff5f56; }
.bm-dots span:nth-child(2) { background: #ffbd2e; }
.bm-dots span:nth-child(3) { background: #27c93f; }
.bm-url {
  flex: 1; min-width: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.bm-url svg { width: 11px; height: 11px; flex-shrink: 0; color: var(--ink-4); }
.bm-ext {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.bm-ext-btn {
  width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  position: relative;
  animation: extPulse 2.4s ease-in-out infinite;
}
.bm-ext-btn img { width: 16px; height: 16px; }
.bm-ext-btn::after {
  content: ""; position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(60% 0.18 25);
  border: 1.5px solid #fff;
}
@keyframes extPulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(60% 0.10 168 / 0.6); }
  50% { box-shadow: 0 0 0 6px oklch(60% 0.10 168 / 0); }
}

.bm-body {
  position: relative;
  display: grid; grid-template-columns: 1.2fr 0.9fr;
  min-height: 360px;
}
@media (max-width: 760px) { .bm-body { grid-template-columns: 1fr; min-height: auto; } }

.bm-software {
  padding: 28px 28px 36px;
  background: #fafbfa;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
@media (max-width: 760px) { .bm-software { border-right: none; border-bottom: 1px solid var(--line); } }
.bm-soft-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.bm-soft-logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: #2cb673; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.bm-soft-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.bm-soft-name .crumb { color: var(--ink-4); font-weight: 500; margin-left: 6px; }

.bm-invoice-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); margin-top: 18px; font-weight: 600; }
.bm-invoice-amt { font-size: 36px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); font-feature-settings: "tnum"; margin-top: 4px; }
.bm-invoice-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; font-family: var(--font-mono); }

.bm-pay-btn {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  position: relative;
}
.bm-pay-btn .dim { color: var(--ink-3); font-weight: 500; text-decoration: line-through; }

/* Animated arrow from invoice to extension */
.bm-arrow {
  position: absolute; z-index: 3;
  top: 50%; left: 58%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 4px;
}
.bm-arrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: arrowFlow 1.4s ease-in-out infinite;
}
.bm-arrow .pulse.d2 { animation-delay: 0.2s; }
.bm-arrow .pulse.d3 { animation-delay: 0.4s; }
@keyframes arrowFlow {
  0%, 100% { opacity: 0.2; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.bm-popup {
  background: #fff;
  padding: 24px 22px;
  display: flex; flex-direction: column;
  position: relative;
}
.bm-popup::before {
  content: ""; position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: none; border-right: none;
  transform: translateX(-50%) rotate(45deg);
  display: none;
}
.bm-popup-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.bm-popup-head img { width: 22px; height: 22px; }
.bm-popup-title { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.bm-popup-status {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: auto;
  font-size: 11px; font-weight: 600; color: var(--accent-deep);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.bm-popup-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }

.bm-rate-row {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  position: relative;
}
.bm-rate-row.old { background: #fdf6f4; border-color: oklch(90% 0.05 25); }
.bm-rate-row.new { background: oklch(96% 0.04 168); border-color: var(--accent); margin-top: 10px; }
.bm-rate-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--ink-3); }
.bm-rate-row.new .bm-rate-label { color: var(--accent-deep); }
.bm-rate-val {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  font-family: var(--font-mono); font-feature-settings: "tnum";
  color: var(--ink); margin-top: 2px;
  display: flex; align-items: baseline; gap: 6px;
}
.bm-rate-row.old .bm-rate-val { color: oklch(45% 0.15 25); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.bm-rate-fee { font-size: 12px; color: var(--ink-3); margin-top: 2px; font-family: var(--font-mono); }
.bm-rate-row.old .bm-rate-fee .strike { text-decoration: line-through; }
.bm-rate-row.new .bm-rate-fee { color: var(--accent-deep); font-weight: 600; }

.bm-saved {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--ink); color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px;
}
.bm-saved .label { color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; font-size: 10.5px; }
.bm-saved .amt { font-weight: 700; color: var(--accent-glow); font-family: var(--font-mono); font-size: 14px; }

/* Footer strip on the browser mock */
.bm-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fafbfa;
  flex-wrap: wrap;
}
.bm-foot-stat { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--ink-3); }
.bm-foot-stat strong { color: var(--ink); font-weight: 600; font-size: 13px; }

/* Hero visual: clean before/after savings card */
.hero-savings {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hs-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  flex-wrap: wrap;
}
.hs-meta { display: flex; flex-direction: column; gap: 2px; }
.hs-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 600; }
.hs-volume { font-size: 14px; color: var(--ink-2); font-weight: 500; font-family: var(--font-mono); font-feature-settings: "tnum"; }
.hs-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--accent-deep);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }

.hs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
@media (max-width: 720px) {
  .hs-grid { grid-template-columns: 1fr; }
  .hs-arrow { transform: rotate(90deg); padding: 8px 0 !important; }
}
.hs-side { padding: 32px 28px; display: flex; flex-direction: column; gap: 8px; }
.hs-old { background: #fff; }
.hs-new { background: oklch(97% 0.025 168); border-left: 1px solid var(--line); }
@media (max-width: 720px) { .hs-new { border-left: none; border-top: 1px solid var(--line); } }
.hs-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--ink-4); }
.hs-new .hs-label { color: var(--accent-deep); }
.hs-rate { font-size: 14px; color: var(--ink-3); font-family: var(--font-mono); font-feature-settings: "tnum"; }
.hs-old .hs-rate { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.hs-amount {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-feature-settings: "tnum";
  margin-top: 2px;
  line-height: 1;
}
.hs-old .hs-amount { color: oklch(50% 0.10 25); }
.hs-new .hs-amount { color: var(--accent-deep); }
.hs-bar { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-top: 6px; }
.hs-bar span { display: block; height: 100%; border-radius: inherit; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.hs-old .hs-bar span { background: oklch(60% 0.14 25); }
.hs-new .hs-bar span { background: var(--accent); }
.hs-foot { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.hs-arrow {
  display: grid; place-items: center;
  padding: 0 8px;
  color: var(--accent);
}
.hs-arrow svg { width: 56px; height: 22px; }

.hs-saved {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 28px;
  background: var(--ink); color: #fff;
  flex-wrap: wrap;
}
.hs-saved-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); font-weight: 600; }
.hs-saved-amt { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: #fff; font-feature-settings: "tnum"; margin-top: 2px; }
.hs-saved-annual { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hs-saved-annual-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); font-weight: 600; }
.hs-saved-annual-amt { font-size: 18px; font-weight: 600; color: var(--accent-glow); font-family: var(--font-mono); font-feature-settings: "tnum"; }

.hs-foot-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}
.hs-foot-strip strong { color: var(--ink); font-weight: 600; font-size: 13.5px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ====== Hero SCP Demo (Jobber-style + side panel) ====== */
/* Mono spans that should use Inter instead of monospace */
.mono--sans { font-family: var(--font-sans); }

.scp-demo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 30px 80px -30px oklch(20% 0.05 180 / 0.25), 0 4px 12px -4px oklch(20% 0.05 180 / 0.06);
  max-width: 980px;
  margin-inline: auto;
}
/* Desktop: 2-col grid with panel column */
@media (min-width: 821px) {
  .scp-demo { grid-template-columns: 1fr 320px; }
  .scp-demo.panel-incoming .scp-app { grid-column: 1 / 2; }
}
/* Mobile: stacked column layout, panel slides open below invoice */
@media (max-width: 820px) {
  .scp-demo { display: flex; flex-direction: column; gap: 0; }
  .scp-app { min-height: 360px; }
  .scp-panel {
    display: flex; flex-direction: column;
    max-height: 0; overflow: hidden; opacity: 0;
    transform: none;
    grid-column: auto; grid-row: auto;
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 12px 12px;
    transition: max-height .5s ease, opacity .35s ease;
  }
  .scp-demo.panel-incoming .scp-panel {
    max-height: 500px; opacity: 1;
  }
  .scp-panel.open { opacity: 1; transform: none; }
}

.scp-app {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 480px;
  grid-column: 1 / -1;
  position: relative;
  transition: grid-column 0s linear .35s;
}
.scp-app-chrome {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) {
  .scp-app-chrome {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .scp-app-chrome::-webkit-scrollbar { display: none; }
}
.scp-extbtn {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: box-shadow .18s ease, border-color .18s ease, color .18s ease;
  flex-shrink: 0;
}
.scp-extbtn .scp-puzzle {
  width: 18px; height: 18px;
  display: block;
  transition: opacity .25s ease;
}
.scp-extbtn-mark {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%) scale(.6);
  background-color: var(--accent);
  -webkit-mask-image: url('assets/sc-icon-mark.png');
          mask-image: url('assets/sc-icon-mark.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  opacity: 0;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.scp-extbtn.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent-deep); }
.scp-extbtn.pulse { animation: extPulse 1.2s ease-in-out 2; }
@keyframes extPulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 6px transparent; } }
.scp-tabs { display: flex; gap: 22px; }
.scp-tab { font-size: 13px; color: var(--ink-3); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.scp-tab.active { color: var(--ink); border-bottom-color: var(--accent); }

.scp-invoice { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.scp-inv-row { display: flex; justify-content: space-between; font-size: 13px; }
.scp-inv-label { color: var(--ink-4); font-weight: 500; }
.scp-inv-val { color: var(--ink); font-weight: 500; }
.scp-inv-line { height: 1px; background: var(--line); margin: 6px 0; }
.scp-inv-items { display: flex; flex-direction: column; gap: 8px; }
.scp-li { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.scp-inv-total {
  display: flex; justify-content: space-between;
  padding-top: 12px; margin-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 16px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
}
.scp-inv-status { margin-top: auto; padding-top: 14px; }
.scp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  font-size: 12px; font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: background .3s ease, color .3s ease;
}
.scp-pill.outstanding { background: oklch(95% 0.04 60); color: oklch(45% 0.12 60); }
.scp-pill.outstanding::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: oklch(60% 0.16 60); }
.scp-pill.paid { background: var(--accent-soft); color: var(--accent-deep); }
.scp-pill.paid::before { content: "✓"; font-size: 10px; line-height: 1; width: auto; height: auto; background: transparent; }

.scp-panel {
  background: linear-gradient(180deg, #fff 0%, oklch(98.5% 0.012 168) 100%);
  border: 1px solid var(--accent);
  border-radius: 12px;
  flex-direction: column;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
  position: relative;
}
/* Desktop: panel hidden by default, shown via grid when panel-incoming fires */
@media (min-width: 821px) {
  .scp-panel {
    display: none;
    grid-column: 2 / 3;
    grid-row: 1;
  }
  .scp-demo.panel-incoming .scp-panel { display: flex; }
}
.scp-panel.open { opacity: 1; transform: translateX(0); }
.scp-panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--accent-soft);
  background: #fff;
}
.scp-panel-logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  border: 1px solid var(--line);
}
.scp-panel-mark {
  width: 30px; height: 30px;
  background: var(--ink) url('assets/logo-white.png') center / 78% 78% no-repeat;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px oklch(60% var(--accent-c) var(--accent-h) / 0.5);
  position: relative;
}
.scp-panel-mark::after { content: none; }

.scp-channels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 4px;
}
.scp-channel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 500;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.scp-channel svg { width: 18px; height: 18px; color: var(--ink-3); }
.scp-channel:hover { border-color: var(--accent); color: var(--accent-deep); }
.scp-channel:hover svg { color: var(--accent); }

.scp-panel-mark--orig {
  width: 28px; height: 28px;
  border-radius: 7px;
  position: relative; flex-shrink: 0;
}
.scp-panel-title { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.scp-panel-sub { font-size: 11.5px; color: var(--ink-4); margin-top: 1px; }
.scp-panel-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; transition: opacity .3s ease; }
.scp-panel-body.hidden { opacity: 0; pointer-events: none; height: 0; padding: 0; flex: 0; overflow: hidden; }

.scp-success-full {
  position: absolute;
  inset: 60px 0 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
  padding: 24px;
  text-align: center;
}
.scp-success-full.shown { opacity: 1; pointer-events: auto; }
.scp-success-check {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  animation: scpCheckPop .5s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 8px 24px -8px var(--accent);
}
.scp-success-check svg { width: 48px; height: 48px; }
@keyframes scpCheckPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.scp-success-title {
  font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}
.scp-success-meta {
  font-size: 12.5px; color: var(--ink-3);
}

/* Receipt modal in Jobber panel */
.scp-receipt-modal {
  position: absolute; inset: 0;
  background: rgba(15, 25, 35, 0.42);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  z-index: 5;
  padding: 20px;
}
.scp-receipt-modal.shown { opacity: 1; pointer-events: auto; }
.scp-receipt-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px 20px;
  width: 100%; max-width: 280px;
  box-shadow: 0 24px 48px -12px rgba(15,25,35,0.35), 0 0 0 1px var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform: scale(.92);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.scp-receipt-modal.shown .scp-receipt-card { transform: scale(1); }
.scp-receipt-check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.scp-receipt-check svg { width: 28px; height: 28px; }
.scp-receipt-title { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.scp-receipt-amt { font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.025em; margin: 2px 0 10px; }
.scp-receipt-row {
  display: flex; justify-content: space-between; width: 100%;
  font-size: 12px; color: var(--ink-3);
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.scp-receipt-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.scp-receipt-actions { display: flex; gap: 8px; width: 100%; }
.scp-receipt-btn {
  flex: 1;
  font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 9px 12px; border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.scp-receipt-btn.primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.scp-receipt-btn.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); }

/* Mobile receipt overlay — scale down card, check, text */
@media (max-width: 820px) {
  .scp-receipt-card { max-width: 240px; padding: 16px 14px 14px; }
  .scp-receipt-amt { font-size: clamp(18px, 5vw, 22px); }
  .scp-receipt-check { width: 40px; height: 40px; }
  .scp-receipt-check svg { width: 22px; height: 22px; }
  .scp-receipt-title { font-size: 12px; }
  .scp-receipt-row { font-size: 11px; }
  .scp-receipt-btn { font-size: 11px; padding: 8px 10px; }
}

.scp-read { display: flex; flex-direction: column; gap: 8px; }
.scp-read-row {
  display: flex; justify-content: space-between;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
}
.scp-read-row.shown { opacity: 1; transform: translateY(0); }
.scp-read-row.shown { border-color: var(--accent); background: #fff; }

.scp-send {
  margin-top: auto;
  padding: 11px 14px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.scp-send.shown { opacity: 1; transform: translateY(0); }
.scp-send.clicked { background: var(--accent-deep); }
.scp-send.processing { color: transparent; }
.scp-send.processing::after {
  content: ""; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'><circle cx='12' cy='12' r='9' opacity='.25'/><path d='M21 12a9 9 0 0 0-9-9'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/></path></svg>") center / 18px no-repeat;
}

.scp-success {
  display: none;
  align-items: flex-start; gap: 10px;
  padding: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--accent-deep);
}
.scp-success.shown { display: flex; animation: scpFadeIn .35s ease; }
.scp-success svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.scp-success-t { font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.scp-success-s { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
@keyframes scpFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.scp-rate-strip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px;
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ink-4);
}
.scp-rate { font-size: 12px; color: var(--accent-deep); font-weight: 600; }

.scp-cursor {
  position: absolute;
  width: 22px; height: 22px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  transition: opacity .25s ease, transform .9s cubic-bezier(.45,.05,.2,1);
}
.scp-cursor.shown { opacity: 1; }
.scp-cursor svg { width: 100%; height: 100%; }
.scp-inv-status .scp-pill.paid { animation: scpPaidPop .4s ease; }
@keyframes scpPaidPop { 0% { transform: scale(.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

@media (max-width: 820px) { .scp-cursor { display: none; } }
[data-hero-theme="dark"] .visual-bridge { background: #0d1c17; border-color: rgba(255,255,255,0.08); color: var(--hero-ink); }
.visual-bridge::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, var(--accent-soft), transparent 70%);
  opacity: 0.6; pointer-events: none;
}
[data-hero-theme="dark"] .visual-bridge::before { background: radial-gradient(ellipse 80% 50% at 50% 50%, oklch(35% var(--accent-c) var(--accent-h) / 0.4), transparent 70%); opacity: 1; }

.bridge-row {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: center;
}
/* Orbit composition: 4 software tiles arrayed on left, single curve into core, output on right */
.bridge-orbit {
  position: relative;
  width: 100%; aspect-ratio: 4 / 3;
  min-height: 320px;
}
.bridge-orbit .orbit-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.orbit-tile {
  position: absolute;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px 10px 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  z-index: 2;
  animation: orbitDrift 6s ease-in-out infinite;
}
[data-hero-theme="dark"] .orbit-tile { background: #11241e; border-color: rgba(255,255,255,0.08); color: var(--hero-ink); }
.orbit-tile .glyph {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
@keyframes orbitDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -3px); }
}
.orbit-tile.t1 { top: 4%;  left: 0;     animation-delay: 0s; }
.orbit-tile.t2 { top: 30%; left: 4%;    animation-delay: 0.6s; }
.orbit-tile.t3 { top: 56%; left: 4%;    animation-delay: 1.2s; }
.orbit-tile.t4 { top: 82%; left: 0;     animation-delay: 1.8s; }
.orbit-core {
  position: absolute;
  top: 50%; right: 6%;
  transform: translateY(-50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, oklch(72% var(--accent-c) var(--accent-h)) 0%, transparent 60%),
    linear-gradient(160deg, var(--accent), var(--accent-deep));
  box-shadow:
    0 24px 48px -8px oklch(40% var(--accent-c) var(--accent-h) / 0.5),
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 0 80px oklch(60% var(--accent-c) var(--accent-h) / 0.4);
  animation: corePulse 3s ease-in-out infinite;
  z-index: 2;
  isolation: isolate;
}
.orbit-core::before {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.4;
  animation: ringPulse 2.4s ease-out infinite;
  z-index: -1;
}
.orbit-core::after {
  content: ""; position: absolute; inset: -22px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.2;
  animation: ringPulse 2.4s ease-out infinite 0.8s;
  z-index: -1;
}
.orbit-core img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.orbit-svg .orbit-line {
  fill: none; stroke: url(#orbitGrad); stroke-width: 1.6;
  opacity: 0.55;
}
.orbit-svg .orbit-flow {
  fill: none; stroke: var(--accent-glow); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 10 130;
  filter: drop-shadow(0 0 5px var(--accent));
  animation: orbitFlow 2s linear infinite;
}
.orbit-svg .orbit-flow.f2 { animation-delay: -0.5s; }
.orbit-svg .orbit-flow.f3 { animation-delay: -1s; }
.orbit-svg .orbit-flow.f4 { animation-delay: -1.5s; }
@keyframes orbitFlow { to { stroke-dashoffset: -140; } }
@media (max-width: 820px) {
  .bridge-row { grid-template-columns: 1fr; }
  .bridge-orbit { aspect-ratio: 3 / 4; }
  .orbit-core { right: 50%; top: auto; bottom: 4%; transform: translateX(50%); width: 110px; height: 110px; }
}
.bridge-stack {
  display: flex; flex-direction: column; gap: 10px;
}
.bridge-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transform: translateX(0);
  animation: drift 7s ease-in-out infinite;
}
[data-hero-theme="dark"] .bridge-tile { background: #11241e; border-color: rgba(255,255,255,0.08); color: var(--hero-ink); }
.bridge-tile:nth-child(2) { animation-delay: 0.6s; margin-left: 18px; }
.bridge-tile:nth-child(3) { animation-delay: 1.2s; margin-left: 6px; }
.bridge-tile:nth-child(4) { animation-delay: 1.8s; margin-left: 22px; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.bridge-tile .ico {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
[data-hero-theme="dark"] .bridge-tile .ico { background: rgba(255,255,255,0.06); color: var(--hero-ink); }
.bridge-tile .ico.c1 { background: oklch(94% 0.08 145); color: oklch(35% 0.10 145); }
.bridge-tile .ico.c2 { background: oklch(94% 0.08 250); color: oklch(35% 0.10 250); }
.bridge-tile .ico.c3 { background: oklch(94% 0.08 30); color: oklch(40% 0.10 30); }
.bridge-tile .ico.c4 { background: oklch(94% 0.08 300); color: oklch(38% 0.10 300); }
.bridge-tile .meta { font-size: 11.5px; color: var(--ink-4); font-weight: 500; margin-left: auto; font-family: var(--font-mono); }

.bridge-pipe {
  position: relative;
  width: clamp(120px, 18vw, 180px);
  height: 220px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.bridge-pipe svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bridge-pipe .pipe-line {
  fill: none; stroke: url(#pipeGrad); stroke-width: 2.5;
  stroke-linecap: round; opacity: 0.95;
  filter: drop-shadow(0 0 8px oklch(70% var(--accent-c) var(--accent-h) / 0.6));
  animation: dashflow 3s linear infinite;
}
@keyframes dashflow { to { stroke-dashoffset: -100; } }
.bridge-pipe .pipe-flow {
  fill: none; stroke: var(--accent-glow); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 14 110; stroke-dashoffset: 0;
  animation: dashflow 1.6s linear infinite;
  filter: drop-shadow(0 0 6px var(--accent));
}
.bridge-pipe .pipe-flow.d2 { animation-delay: -0.4s; }
.bridge-pipe .pipe-flow.d3 { animation-delay: -0.8s; }
.bridge-pipe .pipe-flow.d4 { animation-delay: -1.2s; }
.bridge-pipe .pipe-flow.d5 { animation-delay: -0.2s; }
.bridge-pipe .pipe-dot {
  fill: var(--accent-deep);
  filter: drop-shadow(0 0 6px var(--accent));
}

.bridge-core {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, oklch(70% var(--accent-c) var(--accent-h)) 0%, transparent 60%),
    linear-gradient(160deg, var(--accent), var(--accent-deep));
  position: relative;
  isolation: isolate;
  box-shadow:
    0 24px 48px -8px oklch(40% var(--accent-c) var(--accent-h) / 0.5),
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 0 80px oklch(60% var(--accent-c) var(--accent-h) / 0.4);
  animation: corePulse 3s ease-in-out infinite;
}
.bridge-core::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.4;
  animation: ringPulse 2.4s ease-out infinite;
  z-index: -1;
}
.bridge-core::after {
  content: ""; position: absolute; inset: -16px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.2;
  animation: ringPulse 2.4s ease-out infinite 0.8s;
  z-index: -1;
}
.bridge-core img { width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
@keyframes corePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes ringPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.bridge-core-OLD-OFF {
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  border-radius: 22px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-xl), 0 0 0 6px var(--accent-soft);
  position: relative; z-index: 2;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
}
[data-hero-theme="dark"] .bridge-core { box-shadow: var(--shadow-xl), 0 0 0 6px oklch(30% var(--accent-c) var(--accent-h) / 0.4); }

.bridge-end {
  background: var(--ink); color: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-xl);
}
[data-hero-theme="dark"] .bridge-end { background: #050d0a; }
.bridge-end .end-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); font-weight: 600; }
.bridge-end .end-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.bridge-end .end-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.7);
  padding-top: 10px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
}
.bridge-end .end-row .ok { color: var(--accent-glow); font-weight: 600; }

/* Combined output card with two stacked rows */
.bridge-output {
  background: var(--ink); color: #fff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.bridge-output .out-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0;
}
.bridge-output .out-row + .out-row {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}
.bridge-output .out-icon {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: oklch(30% var(--accent-c) var(--accent-h) / 0.5);
  color: var(--accent-glow);
}
.bridge-output .out-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bridge-output .out-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5); font-weight: 600;
}
.bridge-output .out-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.bridge-output .out-meta { font-size: 12px; color: rgba(255,255,255,0.55); font-family: var(--font-mono); }

/* Logo marquee */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-logo {
  height: 44px; padding: 0 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; color: var(--ink-3);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 200ms;
}
.marquee-logo:hover { color: var(--ink); }
.marquee-logo svg { flex-shrink: 0; }
.marquee-logo .glyph {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

/* Security: animated lock */
.lock-stage {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1; max-width: 420px;
  margin: 0 auto;
  display: grid; place-items: center;
}
.lock-stage::before {
  content: ""; position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(50% var(--accent-c) var(--accent-h) / 0.25), transparent 65%);
  animation: lockGlow 4s ease-in-out infinite;
}
@keyframes lockGlow { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.lock-rings {
  position: absolute; inset: 0;
  pointer-events: none;
}
.lock-rings::before, .lock-rings::after {
  content: ""; position: absolute;
  left: 50%; top: 66%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: lockRing 3.6s ease-out infinite;
}
.lock-rings::before { width: 90px; height: 90px; }
.lock-rings::after { width: 90px; height: 90px; animation-delay: 1.2s; }
@keyframes lockRing {
  0% { width: 80px; height: 80px; opacity: 0.5; }
  100% { width: 280px; height: 280px; opacity: 0; }
}
.lock-icon {
  position: relative; z-index: 2;
  width: 200px; height: 220px;
  display: grid; place-items: center;
}
.lock-icon svg { width: 100%; height: 100%; overflow: visible; }
.lock-shackle-group {
  animation: shacklePop 4.2s ease-in-out infinite;
}
.lock-shackle {
  fill: none; stroke: #fff; stroke-width: 14;
  stroke-linecap: round;
}
.lock-body {
  fill: #fff;
}
@keyframes shacklePop {
  /* Closed: shackle seated. Open: lifts STRAIGHT UP. Right leg is the J-foot — stays seated inside the body. Left leg is shorter — rises out, leaving a visible gap. */
  0%, 18%   { transform: translateY(-22px); }
  30%, 70%  { transform: translateY(0); }
  82%, 100% { transform: translateY(-22px); }
}
.lock-body-inner {
  fill: oklch(40% var(--accent-c) var(--accent-h));
}
.lock-keyhole {
  fill: oklch(40% var(--accent-c) var(--accent-h));
}
.lock-status {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-glow);
  font-weight: 600;
  position: relative; z-index: 2;
  animation: statusFlip 4.8s ease-in-out infinite;
}
.lock-status::before {
  content: "Card data exposed";
  display: inline-block;
}
@keyframes statusFlip {
  0%, 18% { color: oklch(70% 0.18 25); }
  30%, 70% { color: var(--accent-glow); }
  82%, 100% { color: oklch(70% 0.18 25); }
}
.lock-status .swap-text-locked,
.lock-status .swap-text-unlocked {
  display: none;
}
.sec-list-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 28px; position: relative; z-index: 2;
}
.sec-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.sec-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-glow); flex-shrink: 0; }

.sec-visual {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #fff;
  position: relative; overflow: hidden;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: center;
}
.sec-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, oklch(35% var(--accent-c) var(--accent-h) / 0.4), transparent 60%);
}
.sec-flow {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
  align-items: center;
}
.sec-node {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}
.sec-node .ico {
  width: 44px; height: 44px; border-radius: 11px;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  color: var(--accent-glow);
}
.sec-node .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); font-weight: 600; }
.sec-node .ttl { font-size: 14px; font-weight: 600; margin-top: 4px; }
.sec-arrow {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent-glow);
  text-align: center;
  letter-spacing: 0.1em;
}
.sec-token {
  margin-top: 32px; padding: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  position: relative; z-index: 1;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.sec-token .strike { color: var(--ink-4); text-decoration: line-through; }
.sec-token .tok { color: var(--accent-glow); }
.sec-badges {
  position: relative; z-index: 1;
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.sec-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}
.sec-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-glow); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (max-width: 600px) {
  .sec-flow { grid-template-columns: 1fr; }
}

.bridge-footer {
  position: relative; z-index: 1;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
[data-hero-theme="dark"] .bridge-footer { border-top-color: rgba(255,255,255,0.1); }
.bridge-footer .stat {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; color: var(--ink-3);
}
[data-hero-theme="dark"] .bridge-footer .stat { color: var(--hero-ink-2); }
.bridge-footer .stat strong { color: var(--ink); font-weight: 600; font-size: 14.5px; }
[data-hero-theme="dark"] .bridge-footer .stat strong { color: var(--hero-ink); }

@media (max-width: 820px) {
  .bridge-row { grid-template-columns: 1fr; }
  .bridge-pipe { transform: rotate(90deg); height: 100px; }
  .bridge-stack:nth-child(3) { display: none; }
}

/* Legacy switch , keep for variant compatibility */
.visual-switch {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
}
[data-hero-theme="dark"] .visual-switch { background: #0d1c17; border-color: rgba(255,255,255,0.08); color: var(--hero-ink); }

.proc-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: var(--bg-soft);
  position: relative;
}
[data-hero-theme="dark"] .proc-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
.proc-card.old { color: var(--ink-3); }
.proc-card.new { background: linear-gradient(180deg, var(--accent-soft), #fff); border-color: var(--accent); }
[data-hero-theme="dark"] .proc-card.new { background: linear-gradient(180deg, oklch(35% var(--accent-c) var(--accent-h) / 0.4), oklch(20% var(--accent-c) var(--accent-h) / 0.3)); border-color: var(--accent); color: var(--hero-ink); }

.proc-label { font-size: 12px; font-weight: 600; color: var(--ink-4); letter-spacing: 0.06em; text-transform: uppercase; }
.proc-rate { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; font-feature-settings: "tnum"; }
.proc-rate.strike { text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.3); }
.proc-rate.savings { color: var(--accent-deep); }
.proc-meta { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.proc-card.new .proc-meta { color: var(--accent-deep); font-weight: 500; }

.switch-arrow {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  position: relative;
  animation: float 4s ease-in-out infinite;
}
.switch-arrow::after {
  content: ""; position: absolute; inset: -8px;
  border: 1px solid var(--line-2); border-radius: 50%;
  animation: pulse 2.5s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.savings-bar {
  margin-top: 24px; padding: 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
[data-hero-theme="dark"] .savings-bar { background: linear-gradient(90deg, oklch(40% var(--accent-c) var(--accent-h) / 0.3), transparent); }
.savings-num { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: var(--accent-deep); font-feature-settings: "tnum"; letter-spacing: -0.02em; }
.savings-label { font-size: 13.5px; color: var(--ink-2); }
[data-hero-theme="dark"] .savings-label { color: var(--hero-ink-2); }

/* Visual B: dashboard preview */
.visual-dashboard {
  background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  position: relative;
}
.dash-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.dash-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dash-grid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.dash-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 320px; }
.dash-side-row { padding: 8px 10px; font-size: 13px; color: var(--ink-2); border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.dash-side-row.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.dash-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-height: 320px; }
.dash-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dash-stat { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.dash-stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); font-weight: 600; }
.dash-stat .val { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-feature-settings: "tnum"; }
.dash-stat .delta { font-size: 12px; color: var(--accent-deep); margin-top: 2px; font-weight: 500; }
.dash-chart { height: 180px; position: relative; }

[data-hero-theme="dark"] .visual-dashboard,
[data-hero-theme="dark"] .dash-side,
[data-hero-theme="dark"] .dash-main,
[data-hero-theme="dark"] .dash-stat { background: #0d1c17; border-color: rgba(255,255,255,0.08); color: var(--hero-ink); }
[data-hero-theme="dark"] .dash-side-row { color: var(--hero-ink-2); }

/* Visual C: code/checkout */
.visual-code {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch;
}
.code-block, .checkout-block {
  background: #0d1c17; color: #ecf3f0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  position: relative; overflow: hidden;
}
.code-block .ln { color: rgba(255,255,255,0.25); padding-right: 14px; user-select: none; }
.code-block .kw { color: oklch(78% 0.12 var(--accent-h)); }
.code-block .str { color: #f5d685; }
.code-block .com { color: rgba(255,255,255,0.4); font-style: italic; }
.checkout-block { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.checkout-block .field { margin-bottom: 14px; }
.checkout-block .field label { font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 6px; }
.checkout-block .field .input {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff;
}
.checkout-block .pay-btn {
  width: 100%; padding: 12px; border-radius: 8px;
  background: var(--accent-deep); color: #fff; border: 0; font-weight: 600; font-size: 14px;
}
.checkout-fee {
  margin-top: 12px; font-size: 12.5px; color: var(--ink-3);
  display: flex; justify-content: space-between;
}
.checkout-fee .save { color: var(--accent-deep); font-weight: 600; }
@media (max-width: 820px) {
  .visual-code { grid-template-columns: 1fr; }
  .visual-switch { grid-template-columns: 1fr; }
  .switch-arrow { transform: rotate(90deg); justify-self: center; }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ===== CALCULATOR ===== */
.calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  overflow: hidden;
}
.calc-input { padding: 40px; }
.calc-output {
  padding: 40px;
  background: linear-gradient(135deg, oklch(20% var(--accent-c) var(--accent-h)) 0%, oklch(30% var(--accent-c) calc(var(--accent-h) - 10)) 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.calc-output::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, oklch(70% calc(var(--accent-c)* 1.2) var(--accent-h) / 0.4), transparent 60%);
  pointer-events: none;
}
.calc-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.calc-row .lbl { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.calc-row .val { font-feature-settings: "tnum"; font-weight: 600; font-size: 18px; }
.calc-slider {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: 6px; background: var(--line); border-radius: 999px; margin: 14px 0 28px;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent-deep);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: grab;
}
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent-deep);
  cursor: grab;
}
.calc-output h3 { color: #fff; font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.calc-savings {
  font-family: "Inter", ui-sans-serif, system-ui;
  font-size: clamp(56px, 7vw, 84px); font-weight: 500;
  letter-spacing: -0.045em; line-height: 1; margin: 8px 0 4px;
  font-feature-settings: "tnum", "ss01";
  color: #fff;
  position: relative; z-index: 1;
}
.calc-savings .currency { font-size: 0.55em; font-weight: 400; color: rgba(255,255,255,0.55); margin-right: 4px; vertical-align: 0.2em; }
.calc-vs { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.calc-vs > div { flex: 1; min-width: 130px; }
.calc-vs .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); }
.calc-vs .num { font-size: 22px; font-weight: 500; margin-top: 4px; font-feature-settings: "tnum"; letter-spacing: -0.015em; position: relative; z-index: 1; }
.calc-vs .num.sm { color: rgba(255,255,255,0.5); text-decoration: line-through; }

/* Platform typeahead search */
.calc-search { position: relative; margin-top: 4px; }
.calc-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); pointer-events: none; display: grid; place-items: center;
}
.calc-search-input {
  width: 100%;
  font: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px 44px 14px 42px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.calc-search-input:hover { border-color: var(--ink-4); }
.calc-search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-search-input::placeholder { color: var(--ink-4); font-weight: 400; }
.calc-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-3);
  font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.calc-search-clear:hover { background: var(--line); color: var(--ink); }
.calc-search-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 10;
  margin: 0; padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 20px 50px -20px oklch(20% 0.05 180 / 0.25), 0 4px 12px -4px oklch(20% 0.05 180 / 0.08);
  max-height: 320px; overflow-y: auto;
}
.calc-search-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.calc-search-item.active, .calc-search-item:hover { background: var(--accent-soft); }
.calc-search-name { font-weight: 600; color: var(--ink); }
.calc-search-vert { font-size: 12.5px; color: var(--ink-4); }
.calc-search-rate { font-feature-settings: "tnum"; font-size: 13px; color: var(--ink-3); font-weight: 500; min-width: 48px; text-align: right; }
.calc-search-empty { padding: 14px 12px; font-size: 13px; color: var(--ink-3); }
.calc-tier-badge {
  display: inline-grid; place-items: center;
  width: 26px; height: 22px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.calc-tier-badge.t1 { background: var(--accent-soft); color: var(--accent-deep); }
.calc-tier-badge.t2 { background: oklch(94% 0.04 250); color: oklch(38% 0.12 250); }
.calc-tier-badge.t3 { background: var(--bg-soft); color: var(--ink-3); border: 1px solid var(--line); }
.calc-breakdown { display: flex; flex-direction: column; gap: 12px; }
.calc-bd-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.calc-bd-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.calc-bd-lbl { font-size: 13px; color: var(--ink-3); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calc-bd-val { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; font-feature-settings: "tnum"; font-family: Inter; }
.calc-bd-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
}
@media (max-width: 820px) {
  .calc { grid-template-columns: 1fr; }
}

/* ===== INTEGRATIONS ===== */
.integ-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.integ-cell {
  aspect-ratio: 1.3 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: #fff;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  color: var(--ink-2);
  position: relative;
  overflow: hidden;
}
.integ-cell:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.integ-cell .logo { font-size: 17px; font-weight: 600; }
.integ-cell::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--accent-soft));
  opacity: 0; transition: opacity 200ms;
}
.integ-cell:hover::after { opacity: 1; }
@media (max-width: 900px) { .integ-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== PRICING TOGGLE + MERCHANT/ISO ===== */
.pricing-toggle {
  display: inline-flex; gap: 4px;
  padding: 4px;
  margin-top: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pt-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 14px; font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 180ms, color 180ms, box-shadow 180ms;
}
.pt-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.pt-btn:hover:not(.active) { color: var(--ink); }

.merchant-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  max-width: 1000px; margin-inline: auto;
}
@media (max-width: 820px) { .merchant-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .decoy-grid { grid-template-columns: 1fr !important; } }

/* "How we calculate this" — info button + modal popup */
.calc-info-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 6px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-3); font-family: inherit; font-size: 11.5px; font-weight: 500;
  cursor: pointer; flex-shrink: 0; line-height: 1.2;
  transition: color 140ms, border-color 140ms, background 140ms;
}
.calc-info-btn:hover { color: var(--accent-deep); border-color: var(--accent); background: var(--accent-soft); }
.calc-info-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }

.calc-info-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.calc-info-modal[hidden] { display: none !important; }
.calc-info-overlay { position: absolute; inset: 0; background: rgba(11, 13, 16, 0.55); backdrop-filter: blur(4px); }
.calc-info-dialog {
  position: relative; max-width: 560px; width: 100%;
  background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.35);
  max-height: 85vh; overflow-y: auto;
  animation: calcInfoIn 180ms ease-out;
}
@keyframes calcInfoIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.calc-info-close-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 8px;
  background: transparent; border: none; color: var(--ink-3); cursor: pointer;
  transition: background 140ms, color 140ms;
}
.calc-info-close-x:hover { background: var(--bg-soft); color: var(--ink); }
.calc-info-close-x:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-info-body p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; }
.calc-info-body p:last-child { margin-bottom: 0; }
.calc-info-body strong { color: var(--ink); font-weight: 600; }
.calc-info-body a { color: var(--accent-deep); font-weight: 500; text-decoration: underline; }

.m-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column;
  position: relative;
}
.m-card.featured {
  background: linear-gradient(160deg, oklch(98% 0.02 168), #fff);
  border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.m-card-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.m-card-title { font-size: 14px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.m-card-price {
  margin-top: 14px;
  font-size: 56px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink); line-height: 1;
  font-feature-settings: "tnum";
}
.m-card-price .suf { font-size: 18px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.m-card-sub { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.m-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 10px;
}
.m-list li {
  position: relative; padding-left: 28px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.4;
}
.m-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23145a47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
}
.m-list .m-tag {
  display: inline-block; margin-left: 6px;
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-tint); color: var(--accent-deep);
  letter-spacing: 0.02em;
}
.m-savings {
  margin-top: 18px; padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: 14.5px; color: var(--ink);
}
.m-savings strong { font-weight: 700; color: var(--accent-deep); }
.m-foot {
  margin-top: 18px; font-size: 13px; color: var(--ink-3); line-height: 1.5;
}
.m-card .btn { margin-top: auto !important; }

.iso-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 48px;
}
@media (max-width: 1080px) { .iso-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .iso-grid { grid-template-columns: 1fr; } }
.iso-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.iso-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.iso-card.featured {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}
.iso-card.featured .iso-list li { color: rgba(255,255,255,0.85); }
.iso-card.featured .iso-list li::before {
  background: rgba(255,255,255,0.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
}
.iso-card.featured .iso-name { color: #fff; }
.iso-card.featured .iso-range { color: rgba(255,255,255,0.7); }
.iso-card.featured .iso-glyph { background: rgba(255,255,255,0.1); color: var(--accent-glow); border-color: rgba(255,255,255,0.15); }
.iso-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--accent); color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.iso-glyph {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.iso-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.iso-range { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.iso-list {
  list-style: none; padding: 0; margin: 20px 0 24px;
  display: grid; gap: 10px;
  flex-grow: 1;
}
.iso-list li {
  position: relative; padding-left: 24px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.4;
}
.iso-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23145a47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 10px no-repeat;
}

/* ===== END PRICING ===== */
.sec-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.sec-list { display: grid; gap: 14px; }
.sec-item {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; transition: border-color 200ms;
}
.sec-item:hover { border-color: var(--line-2); }
.sec-item .icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
}
.sec-item h4 { margin-bottom: 4px; }
.sec-item p { font-size: 14px; color: var(--ink-3); }

.sec-shield {
  position: relative;
  aspect-ratio: 1; max-width: 420px; margin-inline: auto;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  display: grid; place-items: center;
}
.sec-shield-core {
  width: 60%; aspect-ratio: 1;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  border-radius: 30% 30% 35% 35% / 30% 30% 50% 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.sec-shield-core::before, .sec-shield-core::after {
  content: ""; position: absolute; inset: -10%; border-radius: inherit;
  border: 1px solid var(--accent); opacity: 0.3;
  animation: ringspin 12s linear infinite;
}
.sec-shield-core::after { inset: -22%; border-color: var(--accent); animation-direction: reverse; animation-duration: 18s; }
@keyframes ringspin { to { transform: rotate(360deg); } }

@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: transform 240ms, background 200ms;
  flex-shrink: 0;
  color: var(--ink-3);
}
.faq-item[open] .plus { transform: rotate(45deg); background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.faq-item p { padding-top: 16px; max-width: 70ch; color: var(--ink-2); }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, oklch(15% var(--accent-c) var(--accent-h)) 0%, oklch(25% var(--accent-c) calc(var(--accent-h) - 15)) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, oklch(70% calc(var(--accent-c) * 1.4) var(--accent-h) / 0.35), transparent 70%),
    radial-gradient(ellipse 400px 200px at 90% 100%, oklch(60% var(--accent-c) calc(var(--accent-h) + 30) / 0.3), transparent 70%);
  pointer-events: none;
}
.cta h2 { color: #fff; max-width: 18ch; margin: 0 auto; }
.cta p { color: rgba(255,255,255,0.7); margin: 16px auto 0; max-width: 50ch; position: relative; }
.cta-actions { margin-top: 32px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: oklch(95% var(--accent-c) var(--accent-h)); }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.cta .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

/* ===== PRICING ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; background: #fff;
  display: flex; flex-direction: column; gap: 24px;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.price-card:hover { border-color: var(--line-2); }
.price-card.featured {
  background: linear-gradient(180deg, oklch(15% var(--accent-c) var(--accent-h)), oklch(8% var(--accent-c) var(--accent-h)));
  color: #fff; border-color: transparent;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.price-card.featured h3, .price-card.featured .price-num { color: #fff; }
.price-card.featured .price-feat { color: rgba(255,255,255,0.85); }
.price-card.featured .price-feat svg { color: var(--accent-glow); }
.price-card.featured .badge {
  position: absolute; top: -10px; right: 24px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.price-name { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.price-card.featured .price-name { color: var(--accent-glow); }
.price-num { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-feature-settings: "tnum"; }
.price-num small { font-size: 16px; font-weight: 500; color: var(--ink-3); }
.price-card.featured .price-num small { color: rgba(255,255,255,0.6); }
.price-feat { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.price-feat svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-deep); }
.price-feat-list { display: grid; gap: 12px; flex: 1; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

/* ===== Generic page hero ===== */
.page-hero {
  padding-block: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero .eyebrow { display: none; }
.page-hero h1 { max-width: 18ch; margin: 0 auto; font-size: clamp(36px, 5vw, 64px); }
.page-hero p { margin: 20px auto 0; }

/* Step cards (product page) */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; background: #fff;
  position: relative;
  transition: border-color 200ms, transform 200ms;
}
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step .num {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600; color: var(--accent-deep);
  letter-spacing: 0.06em;
}
.step h3 { margin: 14px 0 8px; font-size: 22px; }
.step p { font-size: 15px; color: var(--ink-3); }
@media (max-width: 900px) { .step-grid { grid-template-columns: 1fr; } }

/* Feature blocks */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feat {
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; transition: border-color 200ms;
  display: grid; gap: 14px;
}
.feat:hover { border-color: var(--line-2); }
.feat .icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
}
.feat h3 { font-size: 20px; }
.feat p { font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }

/* Team / about */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  margin-bottom: 14px;
  position: relative;
}
.team-avatar::after {
  content: ""; position: absolute; inset: 8px;
  background: rgba(255,255,255,0.25); border-radius: 50%;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.field-group { display: grid; gap: 6px; margin-bottom: 18px; }
.field-group label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field-group input, .field-group textarea, .field-group select {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: #fff; color: var(--ink);
  transition: border-color 160ms, box-shadow 160ms;
}
.field-group input:focus, .field-group textarea:focus, .field-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-group textarea { min-height: 120px; resize: vertical; }
.field-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b66' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field-group input[type="file"] {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
.field-group input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  margin-right: 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms;
}
.field-group input[type="file"]::file-selector-button:hover {
  background: var(--bg-tint);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  /* On mobile, surface the "What happens next" trust panel ABOVE the form */
  .contact-grid > form { order: 2; }
  .contact-grid > .reveal { order: 1; }
}

/* ===== INTEGRATION TIERS ===== */
.tier-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.tier-head h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 0; }
.tier-head .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  align-self: flex-start;
  padding: 5px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid var(--accent);
}
.tier-head .pill.t2 { background: oklch(96% 0.03 250); color: oklch(35% 0.10 250); border-color: oklch(70% 0.08 250); }
.tier-head .pill.t3 { background: var(--bg-soft); color: var(--ink-3); border-color: var(--line-2); }
.tier-head .blurb { color: var(--ink-3); font-size: 14px; max-width: 50ch; }

.tier-block { padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.tier-block:last-child { border-bottom: 0; }
.tier-block.featured { background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 60%); border-radius: var(--radius-xl); padding: clamp(36px, 4vw, 56px); border: 1px solid var(--accent); margin-bottom: 24px; }

.int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.int-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 160ms, transform 160ms, box-shadow 160ms;
  position: relative;
}
.int-row:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.int-row .mono-ico {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink);
  font-weight: 700; font-size: 13px; letter-spacing: -0.01em;
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.int-row .info { display: flex; flex-direction: column; min-width: 0; }
.int-row .name { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-row .vert { font-size: 11.5px; color: var(--ink-4); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-row .new-tag {
  position: absolute; top: -7px; right: 10px;
  background: var(--accent); color: #fff;
  font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.06em;
}
.tier-block.featured .int-row { background: #fff; }
.tier-block.featured .int-row .mono-ico { background: var(--accent-soft); color: var(--accent-deep); }

/* === Vertical-based tints === */
/* Tier 1: mint/accent base, with a faint vertical-tinted left border */
/* Tier 2: icy blue base */
#tier2 .int-row {
  background: oklch(98% 0.018 230);
  border-color: oklch(88% 0.04 230);
}
#tier2 .int-row .mono-ico {
  background: oklch(94% 0.04 230);
  color: oklch(38% 0.12 230);
}
#tier2 .int-subhead { color: oklch(38% 0.10 230); }

/* Tier 3: gray monogram icons; vertical-colored top accent on each subhead */
#tier3 .int-row .mono-ico {
  background: var(--bg-soft);
  color: var(--ink-3);
}
#tier3 .int-row {
  position: relative;
  border-color: var(--line);
}

/* Vertical color groups (via data-vert-group on parent grid) */
.int-grid[data-v="salon"] .int-row { box-shadow: inset 3px 0 0 oklch(72% 0.14 340); }
.int-grid[data-v="salon"] .int-subhead-bar { background: oklch(72% 0.14 340); }

.int-grid[data-v="auto"] .int-row { box-shadow: inset 3px 0 0 oklch(58% 0.14 30); }
.int-grid[data-v="marine"] .int-row { box-shadow: inset 3px 0 0 oklch(55% 0.14 230); }
.int-grid[data-v="field"] .int-row { box-shadow: inset 3px 0 0 oklch(60% 0.14 80); }
.int-grid[data-v="pest"] .int-row { box-shadow: inset 3px 0 0 oklch(65% 0.16 140); }
.int-grid[data-v="construction"] .int-row { box-shadow: inset 3px 0 0 oklch(60% 0.12 60); }
.int-grid[data-v="medical"] .int-row { box-shadow: inset 3px 0 0 oklch(60% 0.13 200); }
.int-grid[data-v="hospitality"] .int-row { box-shadow: inset 3px 0 0 oklch(60% 0.14 280); }
.int-grid[data-v="dental"] .int-row { box-shadow: inset 3px 0 0 oklch(62% 0.12 200); }
.int-grid[data-v="fitness"] .int-row { box-shadow: inset 3px 0 0 oklch(60% 0.16 250); }
.int-grid[data-v="legal"] .int-row { box-shadow: inset 3px 0 0 oklch(45% 0.10 280); }
.int-grid[data-v="florist"] .int-row { box-shadow: inset 3px 0 0 oklch(72% 0.14 340); }
.int-grid[data-v="golf"] .int-row { box-shadow: inset 3px 0 0 oklch(45% 0.12 140); }
.int-grid[data-v="retail"] .int-row { box-shadow: inset 3px 0 0 oklch(65% 0.13 30); }
.int-grid[data-v="moving"] .int-row { box-shadow: inset 3px 0 0 oklch(55% 0.10 60); }
.int-grid[data-v="cleaning"] .int-row { box-shadow: inset 3px 0 0 oklch(70% 0.10 180); }

/* Tier 1 still uses accent (mint) on bordered rows */
#tier1 .int-row,
.tier-block.featured .int-row.clickable { box-shadow: inset 3px 0 0 var(--accent); }

/* Tier 1 clickable rows */
.tier-block.featured .int-row.clickable {
  cursor: pointer;
  border: 1px solid var(--line);
  text-align: left;
  font-family: inherit;
  width: 100%;
  padding: 12px 14px;
  padding-right: 32px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tier-block.featured .int-row.clickable::after {
  content: "→";
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); font-size: 14px; opacity: 0; transition: opacity .18s ease, transform .18s ease, color .18s ease;
}
.tier-block.featured .int-row.clickable:hover { border-color: var(--accent); box-shadow: 0 4px 14px -8px var(--accent); }
.tier-block.featured .int-row.clickable:hover::after { opacity: 1; transform: translateY(-50%) translateX(2px); color: var(--accent-deep); }

/* Integration detail modal */
.int-modal-backdrop {
  position: fixed; inset: 0;
  background: oklch(20% 0.03 180 / 0.45);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  transition: opacity .22s ease;
}
.int-modal-backdrop.open { display: flex; opacity: 1; }
.int-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%; max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px -20px oklch(20% 0.05 180 / 0.4);
  border: 1px solid var(--line);
  transform: translateY(8px) scale(.98);
  transition: transform .22s ease;
}
.int-modal-backdrop.open .int-modal { transform: translateY(0) scale(1); }
.int-modal-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: #fff;
  display: flex; align-items: center; gap: 16px;
  z-index: 1;
}
.int-modal-head .mono-ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 600;
  flex-shrink: 0;
}
.int-modal-head .name { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.2; }
.int-modal-head .vert { font-size: 12.5px; color: var(--ink-4); font-weight: 500; margin-top: 2px; }
.int-modal-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 18px;
  transition: background .15s ease, color .15s ease;
}
.int-modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.int-modal-body { padding: 24px 32px 32px; }
.int-modal-body h4 {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin: 0 0 10px;
}
.int-modal-body h4:not(:first-child) { margin-top: 28px; }
.int-modal-body p {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.65;
  margin: 0 0 12px;
}
.int-modal-body p:last-child { margin-bottom: 0; }
.int-modal-body .pill-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.int-modal-body .pill-row .pill {
  font-size: 11.5px; padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  font-weight: 500;
}
.int-modal-foot {
  padding: 18px 32px 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center;
  background: var(--bg-soft);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.int-modal-foot .save-line { font-size: 13px; color: var(--ink-3); }
.int-modal-foot .save-line strong { color: var(--accent-deep); font-weight: 600; }
@media (max-width: 600px) {
  .int-modal-head, .int-modal-body, .int-modal-foot { padding-left: 22px; padding-right: 22px; }
  .int-modal-foot { flex-direction: column; align-items: stretch; }
}

.int-subhead {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin: 28px 0 12px;
  padding-top: 18px; border-top: 1px dashed var(--line-2);
}
.int-subhead:first-child { padding-top: 0; border-top: 0; margin-top: 0; }

/* Free callout banner */
.free-banner {
  background: linear-gradient(135deg, oklch(96% calc(var(--accent-c) * 0.6) var(--accent-h)), #fff);
  border: 1px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.free-banner::before {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}
.free-mark {
  width: 88px; height: 88px; border-radius: 22px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
  box-shadow: 0 8px 24px -10px var(--accent-deep);
}
.free-mark svg { width: 44px; height: 44px; stroke: #fff; fill: none; stroke-width: 1.6; }
.free-banner h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 6px; position: relative; z-index: 1; }
.free-banner p { font-size: 15px; color: var(--ink-2); max-width: 60ch; position: relative; z-index: 1; }
.free-banner .btn { position: relative; z-index: 1; }
@media (max-width: 820px) { .free-banner { grid-template-columns: 1fr; text-align: left; } }

/* Misc */
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }

/* Calculator quick-chips */
.calc-quick {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 4px;
}
.calc-quick-chip {
  padding: 5px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.calc-quick-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.calc-quick-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* Calculator savings tiles */
.calc-savings-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.calc-savings-tile {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.calc-savings-tile .tile-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-4);
}
.calc-savings-tile .tile-amount {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  color: var(--accent-deep); line-height: 1.1;
}
.calc-savings-tile .tile-annual {
  font-size: 12px; color: var(--ink-3);
}
@media (max-width: 480px) {
  .calc-savings-tiles { grid-template-columns: 1fr; }
}

/* ========= Exit-intent / scroll-triggered popup ========= */
.cro-popup-root {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center; padding: 20px;
}
.cro-popup-root[hidden] { display: none !important; }
.cro-popup-overlay {
  position: absolute; inset: 0;
  background: rgba(11, 13, 16, 0.55);
  backdrop-filter: blur(4px);
  animation: croFadeIn 200ms ease-out;
}
.cro-popup-card {
  position: relative; max-width: 480px; width: 100%;
  background: #fff; border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.4);
  animation: croPopIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes croFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes croPopIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.cro-popup-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px; background: transparent; border: none;
  color: var(--ink-3); cursor: pointer;
  transition: background 140ms, color 140ms;
}
.cro-popup-close:hover { background: var(--bg-soft); color: var(--ink); }
.cro-popup-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.cro-popup-eyebrow {
  display: inline-block;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; margin-bottom: 12px;
}
.cro-popup-card h3 {
  margin: 0 0 8px;
  font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em;
}
.cro-popup-card .cro-sub {
  margin: 0 0 20px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.cro-popup-form {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cro-popup-form input[type=email] {
  flex: 1 1 200px; min-width: 0;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 14.5px;
  transition: border-color 140ms, box-shadow 140ms;
}
.cro-popup-form input[type=email]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cro-popup-form button[type=submit] {
  flex: 0 0 auto;
  padding: 12px 18px; border: none; border-radius: 10px;
  background: var(--accent-deep); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 140ms, transform 100ms;
}
.cro-popup-form button[type=submit]:hover { background: var(--accent); }
.cro-popup-form button[type=submit]:active { transform: translateY(1px); }
.cro-popup-form button[type=submit]:disabled { opacity: 0.55; cursor: progress; }
.cro-popup-fineprint {
  font-size: 11.5px; color: var(--ink-3);
  margin-top: 10px; line-height: 1.5;
}
.cro-popup-fineprint button {
  background: none; border: none; padding: 0; color: var(--ink-3);
  text-decoration: underline; cursor: pointer; font-family: inherit; font-size: inherit;
}
.cro-popup-fineprint button:hover { color: var(--ink); }
.cro-popup-success {
  display: none; margin-top: 14px; padding: 12px 14px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep);
  font-size: 13.5px; font-weight: 500;
}
.cro-popup-error {
  display: none; margin-top: 14px; padding: 12px 14px;
  border-radius: 10px; background: #fef2f2; color: #991b1b;
  font-size: 13.5px; font-weight: 500;
}
@media (max-width: 480px) {
  .cro-popup-card { padding: 24px 20px; }
  .cro-popup-card h3 { font-size: 20px; }
  .cro-popup-form { flex-direction: column; }
  .cro-popup-form button[type=submit] { width: 100%; }
}


/* ============================================================
   MOBILE RESPONSIVE — added 2026-05-25 audit fixes
   Goals: zero horizontal overflow, 44px+ tap targets,
   14px+ readable text, all grids stack on phone.
   ============================================================ */

/* Safety net — never allow horizontal scroll on phone */
@media (max-width: 820px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Anything that's a fixed-width content block should max-width to viewport */
  img, video, iframe, picture, svg {
    max-width: 100%;
    height: auto;
  }
}

/* Phone breakpoint — biggest changes happen here (≤ 540px) */
@media (max-width: 540px) {

  /* === NAV === */
  /* Hide the "Add to Chrome" CTA on phones (icon button is too small + competes with primary CTA).
     Keep "Get a quote →" as the single mobile CTA. */
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { padding: 11px 16px; font-size: 14.5px; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-inner { gap: 12px; padding: 12px var(--pad-x); }

  /* === GLOBAL TAP TARGETS — bump all interactive elements to 44px min === */
  .btn,
  a.btn,
  button.btn,
  .pricing-toggle button,
  .filter-pill,
  .pill-button,
  .nav-cta a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-block: 11px;
  }

  /* Footer + secondary nav links — broaden hit area */
  footer a,
  .nav a,
  .nav-links a {
    padding-block: 10px;
    display: inline-block;
  }

  /* Pill/chip buttons (Jobber, Clio, Odoo, etc.) — were 75x29, bump to 32px+ tall */
  .platform-pill,
  .demo-tab,
  [class*="pill"] button,
  [class*="chip"] {
    min-height: 36px;
    padding: 8px 14px;
  }

  /* === TEXT — bump anything under 14px to 14px === */
  body { font-size: 16px; }
  small, .small, [class*="fineprint"], [class*="micro"] { font-size: 12px; }
  /* Anything that the audit caught at 10.5-11.5px — push to 13px */
  .badge-subtitle, .available-on, button.calc-toggle {
    font-size: 13px !important;
  }

  /* === HERO H1 — was 84px on desktop, scale down properly === */
  h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.1; }
  h2 { font-size: clamp(28px, 7vw, 40px); line-height: 1.15; }
  h3 { font-size: clamp(20px, 5vw, 24px); }

  /* === SECTIONS — reduce vertical padding on phone === */
  section { padding-block: 48px; }
  .section-head { margin-bottom: 32px; }

  /* === GRID STACKING — force all multi-col grids to 1 col on phone === */
  .integ-grid,
  .tier-grid,
  .feat-grid,
  .merchant-grid,
  .price-grid,
  .step-grid,
  .sec-grid,
  .iso-grid,
  .team-grid,
  .decoy-grid,
  .hero-grid,
  .pricing-grid,
  .product-grid,
  .feature-grid,
  .three-col,
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Equal-height cards within remaining grids */
  .integ-grid > *,
  .tier-grid > *,
  .feat-grid > * {
    align-self: stretch;
  }

  /* === MARQUEE — already has overflow:hidden, just ensure parent contains it === */
  .marquee { width: 100%; max-width: 100%; }
  .marquee-track { gap: clamp(20px, 6vw, 56px); }
  .marquee-track { animation-duration: 90s; }

  /* === CONTAINERS — ensure all bounded === */
  .container,
  .wrap,
  main {
    max-width: 100%;
    padding-inline: 20px;
    box-sizing: border-box;
  }

  /* === FORMS — full-width inputs/buttons on phone === */
  input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
    width: 100%;
    min-height: 44px;
    font-size: 16px !important; /* prevents iOS auto-zoom on focus (overrides inline styles on careers.html / others) */
    box-sizing: border-box;
  }
  form button[type=submit] { width: 100%; min-height: 48px; }

  /* === FAQ details/summary — better tap targets === */
  details summary {
    min-height: 44px;
    padding: 12px 14px;
    display: flex; align-items: center;
  }

  /* === Tables — let them scroll horizontally inside a wrapper if needed === */
  table { display: block; overflow-x: auto; max-width: 100%; }

  /* === Code blocks / pre — prevent overflow === */
  pre, code { max-width: 100%; overflow-x: auto; word-break: break-word; }

  /* === Long unbreakable text (URLs, IDs) — break === */
  p, li, td { overflow-wrap: anywhere; }

  /* === Careers form: stack First/Last name on phone (overrides inline grid) === */
  #careers-form > div[style*="grid-template-columns:1fr 1fr"],
  #careers-form > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* === Hide decorative scroll cursors / overflowing illustrations on phone === */
  .decorative-marker, .hero-decor { display: none; }
}

/* Tablet/small-laptop breakpoint (541-820px) === */
@media (max-width: 820px) and (min-width: 541px) {
  /* Most grids drop to 2 columns */
  .integ-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .feat-grid, .tier-grid, .step-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .iso-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Nav CTAs still visible but compact */
  .nav-cta .btn { padding: 8px 14px; font-size: 13.5px; }
}

/* === MOBILE NAV CTA — ensure no overflow at extreme small widths === */
@media (max-width: 380px) {
  .nav-cta { gap: 0; }
  .nav-cta .btn-primary { padding: 11px 12px; font-size: 13px; }
  .nav-cta .btn-primary .arrow { display: none; } /* hide the → on tiniest screens */
}

/* === ACCESSIBILITY — alt text fallback styling for images missing alt === */
img[alt=""], img:not([alt]) {
  /* No visual change, but the audit flagged these. Adding alt text is the real fix in HTML. */
}


/* ============================================================
   ROUND 2 — 2026-05-25 — patches for inline styles + actual class names
   ============================================================ */

@media (max-width: 540px) {
  /* Override inline `style="display:inline-flex"` on Add-to-Chrome nav button */
  .nav-cta a.btn-ghost,
  .nav-cta a.btn-ghost.btn-sm {
    display: none !important;
  }

  /* "Already have an account? Log in" hero link — bump tap target */
  .hero-login-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 12px;
  }

  /* Hero subtitle / "See all 300+ integrations →" type links */
  a.text-link,
  .subtle-link,
  .see-all-link {
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    padding-block: 12px;
  }

  /* Calculator panel — actual class names from DOM inspection */
  .scp-panel-sub { font-size: 13px; }
  .calc-info-btn,
  .calc-info-btn span,
  .calc-info-btn button { font-size: 13px !important; }
  .calc-output,
  .calc-output div,
  .calc-input,
  .calc-input div { font-size: 13px !important; }

  /* "How we calculate this" button — was 159x24, bump */
  .calc-info-btn,
  button.calc-info-btn {
    min-height: 44px !important;
    padding: 10px 14px !important;
    display: inline-flex !important;
    align-items: center;
  }

  /* Platform pills (Jobber/Clio/Odoo/Roofr/HoneyBook) — 36px now, bump to 44 */
  .demo-tab,
  button.demo-tab,
  [data-platform],
  button[data-platform] {
    min-height: 44px !important;
    padding: 10px 16px !important;
  }

  /* Stack the "Estimate only..." caveat + "How we calculate this" button vertically
     on phone — the inline flex row squeezed the paragraph to 1-letter wide. */
  .calc-card div:has(> .calc-info-btn),
  div:has(> .calc-info-btn[data-calc-info-toggle]) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .calc-info-btn,
  button.calc-info-btn {
    justify-content: center;
    align-self: flex-start;
  }

  /* Tier 3 Expansion grid — the parent has class="reveal" with no other class,
     so target ANY grid that has 2+ columns on phone */
  [style*="grid-template-columns"],
  div[style*="display:grid"],
  div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Generic — any 3-col tier/integration grid that escaped our specific selectors */
  .reveal[style*="grid"],
  .tier-3-grid,
  .tiers-grid,
  .integration-tiers {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Close button (×) — was 26x26, bump to 44 */
  button.close,
  button[aria-label="Close"],
  button[aria-label="close"],
  [class*="close-btn"],
  .modal-close {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* "How it works" type top-of-page links — was 108x34 */
  .nav-links a,
  .top-link,
  .nav a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
  }

  /* Ensure no element gets stuck below 14px on phone except for explicit decorative cases */
  body, p, li, td, th, button, a, span, div, label {
    font-size: max(13px, 1em);
  }
  /* Restore explicit small-text overrides */
  .badge-subtitle, small, .footer-fineprint, .fineprint {
    font-size: 12px;
  }
}

/* === GLOBAL — ensure the nav doesn't overflow at the actual breakpoint where it starts to get crowded === */
@media (max-width: 640px) {
  .nav-cta { gap: 4px !important; }
  .nav-cta .btn-primary { padding: 10px 12px !important; }
  .nav-inner { gap: 8px !important; }
}


/* ============================================================
   ROUND 3 — 2026-05-25 — final fix-ups for specific class names
   ============================================================ */

@media (max-width: 540px) {
  /* Calculator quick-chip buttons (Jobber/Clio/Odoo) — actual class is .calc-quick-chip */
  .calc-quick-chip,
  button.calc-quick-chip {
    min-height: 44px !important;
    padding: 11px 16px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Search clear × button — was 26x26 */
  .calc-search-clear,
  button.calc-search-clear,
  .search-clear,
  button[aria-label="Clear search"],
  button[aria-label="Clear"] {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* "See all 300+ integrations →" — anchor without a class, sits in section. Target by text-link patterns */
  a[href*="integrations"]:not(.btn),
  .integ-see-all,
  a.see-all {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-block: 12px !important;
  }

  /* Top-nav links (How it works, Pricing, Integrations) — these are inside .nav but the rule wasn't hiding them
     The original rule was `.nav-links { display: none }` at 820px. If audit shows them visible at 375, then
     the issue is either the selector doesn't match OR they're in a different container. Force-hide via .nav nav links: */
  .nav nav a,
  .nav-menu a,
  .nav .nav-links a {
    /* These should be hidden on phone — make sure */
  }
  /* Actually: only hide if they're horizontal-nav links; show them in a stacked drawer if present */
  /* Per the existing CSS, .nav-links { display: none } at <=820, but the audit caught a "Pricing"/"How it works"/"Integrations" — these may be hero-section CTAs, not nav. Bump their height: */
  .hero a:not(.btn),
  .hero-row a:not(.btn),
  .feature-row a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-block: 11px !important;
  }

  /* Tier labels (Tier 1 · Full / Tier 2 · Supported / Tier 3 · Expansion) — were 11px */
  .tier-label,
  .tier-name,
  [class*="tier"] {
    font-size: 13px !important;
  }
  /* Even more general — anything in a tier card */
  .tier-card *,
  .tier-block *,
  .tiers-row * {
    font-size: max(13px, 1em);
  }

  /* "Available on the" — Chrome Web Store badge subtitle, was 10.5px.
     Likely inside an .available-badge or similar. Force-target by text content via :has() if browser supports */
  .badge .subtitle,
  .cws-badge .small,
  [class*="badge"] span,
  [class*="chrome-badge"] * {
    font-size: 12px !important;
  }

  /* ROUND 4 — override INLINE STYLES via attribute selectors */
  /* Inline 10-11px tier labels + Chrome badge subtitle — bump to 13px on phone */
  [style*="font-size: 11px"],
  [style*="font-size:11px"],
  [style*="font-size: 10.5px"],
  [style*="font-size:10.5px"],
  [style*="font-size: 10px"],
  [style*="font-size:10px"] {
    font-size: 13px !important;
  }

  /* Footer — compact links with adequate tap targets */
  .footer-col a {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding-block: 4px;
    line-height: 1.5;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .footer-col h5 { margin-bottom: 6px; font-size: 12px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    margin-top: 32px;
  }

  /* Nav — fit button text on phone */
  .nav-cta .btn-primary { padding: 9px 12px; font-size: 12.5px; white-space: nowrap; }
  .nav-inner { padding-inline: 12px; gap: 6px; }

  /* Hero — tighter spacing */
  .hero { padding-top: 24px; }
  .hero h1 { margin-top: 12px; }
  .hero .lead { font-size: 15px; line-height: 1.55; }
  .hero .btn-primary,
  .hero .btn-accent { display: flex; width: 100%; justify-content: center; padding: 14px 24px; font-size: 16px; border-radius: var(--radius); }

  /* Calculator — reduce padding */
  .calc-input, .calc-output { padding: 20px; }
  .calc-output h3 { font-size: 15px; }

  /* Sections — tighter vertical rhythm */
  section { padding-block: clamp(40px, 6vw, 56px); }
  .section-head { margin-bottom: 28px; }

  /* CTA — left-align body, stack buttons */
  .cta { padding: 32px 24px; text-align: left; }
  .cta h2 { text-align: center; }
  .cta p { text-align: left; font-size: 15px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn, .cta .btn { width: 100%; justify-content: center; }

  /* Page hero */
  .page-hero { padding-block: 40px 32px; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 38px); }
  .page-hero .lead { font-size: 15px; line-height: 1.5; }

  /* About page */
  .practice-callout { padding: 20px; margin: 28px 0; }

  /* Careers form — stack name fields */
  #careers-form [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr; }
}

/* Tablet — tighten spacing */
@media (min-width: 541px) and (max-width: 820px) {
  .cta { padding: 40px 32px; }
  .footer-col a { padding-block: 8px; }
}




