/* ==========================================================================
   InspectorData / hvacinspectionsoftware.com — Premium CSS
   Adapted from create_new_pages.md "Site Layout Standard (2026 Refresh)"
   Synco-aligned dark+light theme, Plus Jakarta Sans, WCAG AA, 320–2560px
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root, [data-theme="dark"] {
  --bg-0: #0F0F0F;
  --bg-1: #17161E;
  --bg-2: #1F1E27;
  --bg-3: #25232F;
  --ink-0: #F0F0F0;
  --ink-1: #C9C7D2;
  --ink-2: #999999;
  --ink-3: #6E6C78;
  --accent: #C025FF;
  --accent-soft: #E19AFF;
  --accent-deep: #7732C5;
  --accent-2: #2575FC;
  --accent-3: #FFC332;
  --rule: #2A2933;
  --rule-strong: #3A3947;
  --gradient-1: linear-gradient(135deg, #C025FF 0%, #2575FC 100%);
  --gradient-cta: linear-gradient(135deg, #C025FF 0%, #7732C5 50%, #2575FC 100%);
  --gradient-soft: linear-gradient(135deg, rgba(192,37,255,.18) 0%, rgba(37,117,252,.12) 100%);
  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 24px 50px -28px rgba(0,0,0,.6);
  --shadow-glow: 0 0 80px -10px rgba(192,37,255,.4);
  --shadow-btn: 0 14px 40px -16px rgba(192,37,255,.55);
}

[data-theme="light"] {
  --bg-0: #FFFFFF;
  --bg-1: #F7F4FB;
  --bg-2: #FFFFFF;
  --bg-3: #FBF9FE;
  --ink-0: #17161E;
  --ink-1: #3D3B47;
  --ink-2: #65636E;
  --ink-3: #8E8C97;
  --accent: #A11EE0;
  --accent-soft: #D086FF;
  --accent-deep: #6826B0;
  --accent-2: #1F62D7;
  --accent-3: #B47A12;
  --rule: #E8E4F0;
  --rule-strong: #D2CDDF;
  --gradient-1: linear-gradient(135deg, #A11EE0 0%, #1F62D7 100%);
  --gradient-cta: linear-gradient(135deg, #A11EE0 0%, #6826B0 50%, #1F62D7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(161,30,224,.10) 0%, rgba(31,98,215,.07) 100%);
  --shadow-card: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 50px -32px rgba(23,22,30,.18);
  --shadow-glow: 0 0 80px -10px rgba(161,30,224,.25);
  --shadow-btn: 0 14px 40px -16px rgba(161,30,224,.45);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-1);
  background: var(--bg-0);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, color-mix(in oklab, var(--accent-2) 18%, transparent), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; font-size: 16px; color: inherit; }
h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink-0);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }

/* Touch targets */
a, button, input[type="submit"], input[type="button"], select, [role="button"] {
  min-height: 44px;
}
.no-min, .no-min * { min-height: auto !important; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: -40px; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 12px 18px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- 3. Containers ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------- 4. Two-tier header ---------- */
.top-utility-bar {
  background: #0A0911;
  color: #B8B6C2;
  font-size: 13px;
  border-bottom: 1px solid var(--rule);
}
[data-theme="light"] .top-utility-bar { background: #17161E; color: #D6D4DE; }
.utility-inner {
  max-width: 1240px; margin: 0 auto; padding: 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.utility-cred { display: inline-flex; align-items: center; gap: 6px; }
.utility-cred .star { color: var(--accent-3); }
.utility-cred .short, .utility-cred .tiny { display: none; }
.utility-link { color: #fff; font-weight: 600; transition: opacity .15s; }
.utility-link:hover { opacity: .8; }
@media (max-width: 640px) {
  .utility-inner { padding: 6px 14px; font-size: 12px; }
  .utility-cred .full { display: none; }
  .utility-cred .short { display: inline; }
}
@media (max-width: 419px) {
  .utility-cred .short { display: none; }
  .utility-cred .tiny { display: inline; }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg-0) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-container {
  max-width: 1240px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo-link { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--gradient-1); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-btn); }
.logo-mark svg { width: 22px; height: 22px; color: #fff; }
.logo-title { font-weight: 700; color: var(--ink-0); font-size: 17px; letter-spacing: -.01em; }
.logo-title em { font-style: normal; background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-navigation { display: flex; align-items: center; gap: 28px; }
.nav-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; align-items: center; }
.nav-menu a { color: var(--ink-1); font-weight: 500; font-size: 15px; padding: 8px 4px; transition: color .15s; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--ink-0); }
.nav-menu .has-submenu { position: relative; }
.nav-menu .submenu {
  position: absolute; top: 100%; left: -16px; min-width: 240px;
  background: var(--bg-1); border: 1px solid var(--rule); border-radius: 12px;
  padding: 8px; margin-top: 8px;
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  list-style: none;
}
.nav-menu .has-submenu:hover .submenu, .nav-menu .has-submenu:focus-within .submenu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-menu .submenu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.nav-menu .submenu a:hover { background: var(--bg-2); color: var(--ink-0); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-1); transition: border-color .15s, color .15s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.btn-instant-quote {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  background: var(--gradient-1); color: #fff !important;
  font-weight: 600; font-size: 14px; line-height: 1;
  box-shadow: var(--shadow-btn);
  transition: transform .15s, box-shadow .25s;
}
.btn-instant-quote:hover { transform: translateY(-1px); box-shadow: 0 22px 50px -16px rgba(192,37,255,.7); }

.mobile-menu-toggle, .mobile-menu-toggle--header {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--rule);
  display: none; align-items: center; justify-content: center; gap: 4px;
  flex-direction: column; padding: 12px;
}
.mobile-menu-toggle span, .mobile-menu-toggle--header span {
  display: block; width: 18px; height: 2px; background: var(--ink-0); border-radius: 2px;
  transition: transform .25s, opacity .15s;
}

@media (max-width: 1023px) {
  .nav-menu { display: none; }
  .mobile-menu-toggle--header { display: inline-flex; order: -1; }
  .header-actions { gap: 8px; }
  .btn-instant-quote { padding: 10px 14px; font-size: 13px; }
  .nav-menu.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--rule);
    padding: 12px 20px 24px; align-items: stretch;
  }
  .nav-menu.is-open a { padding: 14px 8px; border-bottom: 1px solid var(--rule); }
  .nav-menu.is-open .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 12px; margin: 0; border: 0; background: transparent; }
}
@media (max-width: 640px) {
  .logo-title { font-size: 15px; }
  .header-container { padding: 10px 14px; gap: 12px; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .15s, box-shadow .25s, background-position .4s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-1); color: #fff; background-size: 200% 200%; box-shadow: var(--shadow-btn); }
.btn-primary:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 22px 50px -16px rgba(192,37,255,.7); }
.btn-ghost { color: var(--ink-0); border: 1px solid var(--rule); background: var(--bg-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-outline { color: var(--accent); border: 1px solid var(--accent); background: transparent; }
.btn-outline:hover { background: color-mix(in oklab, var(--accent) 12%, transparent); }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- 6. Common building blocks ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient { background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-2); }

.card {
  background: var(--bg-1); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: 28px;
  transition: transform .2s, border-color .2s, box-shadow .25s;
}
.card:hover { transform: translateY(-2px); border-color: var(--rule-strong); }
.card-glow { position: relative; overflow: hidden; }
.card-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--gradient-1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

.section { padding: 80px 0; position: relative; }
.section-tight { padding: 56px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } .section-tight { padding: 40px 0; } }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.section-head h2 { margin: 12px 0 14px; }
.section-head p { color: var(--ink-1); font-size: 17px; }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Decorative blobs */
.blob { position: absolute; border-radius: 999px; filter: blur(90px); pointer-events: none; opacity: .55; z-index: 0; }
.blob-purple { background: radial-gradient(circle, #C025FF 0%, transparent 70%); width: 460px; height: 460px; }
.blob-blue { background: radial-gradient(circle, #2575FC 0%, transparent 70%); width: 460px; height: 460px; }
@media (max-width: 768px) { .blob { width: 280px; height: 280px; opacity: .4; } }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; padding: 80px 0 96px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg-1); font-size: 13px; color: var(--ink-1); margin-bottom: 20px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-2) 22%, transparent); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.7rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; }
.hero p.lead { font-size: 18px; color: var(--ink-1); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 40px; max-width: 540px; }
.hero-stat .num { font-size: 26px; font-weight: 700; color: var(--ink-0); letter-spacing: -.02em; }
.hero-stat .lbl { font-size: 13px; color: var(--ink-2); }

.hero-screen {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--bg-1); border: 1px solid var(--rule);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255,255,255,.02) inset;
  isolation: isolate;
}
.hero-screen::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--gradient-soft); z-index: -1; }
.hero-screen img, .hero-screen svg { display: block; width: 100%; height: auto; }
.hero-floating {
  position: absolute; padding: 10px 14px; border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--rule); box-shadow: var(--shadow-card);
  font-size: 13px; color: var(--ink-1); display: inline-flex; align-items: center; gap: 8px;
}
.hero-floating .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent-2); box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent-2) 22%, transparent); }

/* Page hero (subpages) */
.page-hero {
  position: relative; padding: 64px 0 56px; overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { margin-top: 12px; }
.page-hero .lead { font-size: 18px; color: var(--ink-1); max-width: 720px; }

/* Trust strip */
.trust-strip { padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg-1); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.trust-row .lbl { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 22px; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-1); font-size: 14px; }
.trust-badge svg { color: var(--accent-3); width: 16px; height: 16px; }

/* Feature cards */
.feature-card { padding: 28px; }
.feature-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--accent); border: 1px solid var(--rule); }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-1); font-size: 15px; margin: 0; }

/* Showcases (alternating) */
.showcase { display: grid; gap: 40px; align-items: center; padding: 56px 0; }
@media (min-width: 1024px) { .showcase { grid-template-columns: 1fr 1.05fr; gap: 72px; } .showcase.reverse { grid-template-columns: 1.05fr 1fr; } .showcase.reverse .showcase-media { order: 2; } .showcase.reverse .showcase-copy { order: 1; } }
.showcase-copy h2 { margin-bottom: 16px; }
.showcase-copy ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.showcase-copy li { display: flex; gap: 10px; color: var(--ink-1); font-size: 15.5px; }
.showcase-copy li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 999px; background: var(--gradient-1); position: relative; }
.showcase-copy li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.showcase-media { position: relative; }
.showcase-screen {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--rule);
  background: var(--bg-1); box-shadow: var(--shadow-card);
  position: relative;
}
.showcase-screen img, .showcase-screen svg { width: 100%; height: auto; display: block; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--bg-1); }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--rule); }
.compare-table thead th { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; background: var(--bg-2); }
.compare-table thead th.us { color: var(--accent); }
.compare-table tbody tr:hover { background: var(--bg-2); }
.compare-table .col-us { background: color-mix(in oklab, var(--accent) 8%, transparent); color: var(--ink-0); font-weight: 600; }
.compare-table .check { color: var(--accent); }
.compare-table .x { color: var(--ink-3); }

/* Pricing card */
.pricing-card {
  padding: 40px; border-radius: 24px;
  background: var(--bg-1); border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.pricing-card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient-soft); opacity: .8; z-index: 0;
}
.pricing-card > * { position: relative; z-index: 1; }
.pricing-price { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 700; color: var(--ink-0); letter-spacing: -.025em; line-height: 1; }
.pricing-price .small { font-size: 1.75rem; vertical-align: super; }
.pricing-features { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.pricing-features li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-1); }
.pricing-features svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; flex-shrink: 0; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-weight: 600; color: var(--ink-0); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s, border-color .2s, transform .2s; }
.faq details[open] .chev { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.faq .chev svg { width: 14px; height: 14px; }
.faq .answer { margin-top: 12px; color: var(--ink-1); font-size: 15.5px; max-width: 880px; }

/* Closing CTA */
.closing-cta {
  position: relative; border-radius: 28px; overflow: hidden;
  padding: 64px 40px; color: #fff;
  background: var(--gradient-cta);
  isolation: isolate;
}
.closing-cta::before {
  content: ""; position: absolute; inset: 0; background-image:
    linear-gradient(rgba(0,0,0,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.10) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .25; pointer-events: none;
}
.closing-cta h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.closing-cta p { color: rgba(255,255,255,.85); }
.closing-cta-grid { display: grid; gap: 32px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .closing-cta-grid { grid-template-columns: 1.2fr 1fr; } }
.cta-form { background: rgba(15,15,15,.8); padding: 24px; border-radius: 18px; }
.cta-form label { display: block; margin-bottom: 14px; }
.cta-form .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px; display: block; }
.cta-form input, .cta-form select {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.16);
}
.cta-form input::placeholder { color: rgba(255,255,255,.4); }
.cta-form button[type="submit"] {
  width: 100%; padding: 16px; border-radius: 10px; background: #fff; color: #17161E;
  font-weight: 700; transition: transform .15s; margin-top: 8px;
}
.cta-form button[type="submit"]:hover { transform: translateY(-1px); }
.cta-form .fine { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 12px; }

/* ---------- 8. Floating Action Buttons ---------- */
.floating-actions {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
  padding-bottom: env(safe-area-inset-bottom);
}
.fab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-radius: 999px;
  font-weight: 600; color: #fff; font-size: 14px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  transition: transform .15s;
}
.fab svg { width: 18px; height: 18px; }
.fab-primary { background: var(--gradient-1); }
.fab-secondary { background: #17161E; border: 1px solid var(--rule-strong); }
.fab:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
  .fab .lbl { display: none; }
  .fab { padding: 14px; }
}

/* Back to top */
.back-to-top {
  position: fixed; left: 16px; bottom: 16px; z-index: 55;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--bg-1); color: var(--ink-0); border: 1px solid var(--rule);
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); transition: transform .15s;
  padding-bottom: env(safe-area-inset-bottom);
}
.back-to-top.show { display: inline-flex; }
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- 9. Footer ---------- */
.site-footer { padding: 56px 0 24px; border-top: 1px solid var(--rule); margin-top: 60px; background: var(--bg-1); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h4 { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-1); font-size: 14.5px; transition: color .15s; }
.footer-col a:hover { color: var(--ink-0); }
.footer-brand p { color: var(--ink-1); font-size: 14.5px; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 13px; }

/* ---------- 10. Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 11. Responsive escalations ---------- */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero { padding: 56px 0 64px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat .num { font-size: 22px; }
  .closing-cta { padding: 40px 24px; border-radius: 18px; }
  .pricing-card { padding: 28px 24px; }
  .card { padding: 22px; }
  .floating-actions { right: 12px; bottom: 12px; }
}
@media (max-width: 375px) {
  body { font-size: 14.5px; }
  .container { padding-inline: 14px; }
  .hero h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
}

/* ---------- 12. Print ---------- */
@media print {
  .site-header, .top-utility-bar, .floating-actions, .back-to-top, .closing-cta { display: none !important; }
  body { color: #000; background: #fff; }
}

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

/* ---------- 14. Forced colors (Win HC) ---------- */
@media (forced-colors: active) {
  .btn, .card, .pricing-card { border: 1px solid CanvasText; }
}

/* ============= V2 ADDITIONS — Sticky mobile bar, related, testimonials, blog ============= */

/* Sticky mobile CTA bar */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 58;
  display: none; align-items: stretch;
  background: var(--gradient-1);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 30px -10px rgba(0,0,0,.5);
}
.mobile-cta-bar a {
  flex: 1; padding: 16px 12px; color: #fff; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.mobile-cta-bar a:last-child { border-right: 0; }
.mobile-cta-bar a:hover { background: rgba(0,0,0,.08); }
.mobile-cta-bar svg { width: 16px; height: 16px; }
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 64px; }
  .floating-actions { bottom: 80px; }
}

/* Related rail */
.related { margin-top: 80px; }
.related h3 { font-size: 1.5rem; margin-bottom: 28px; }
.related-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  background: var(--bg-1); border: 1px solid var(--rule); border-radius: 14px;
  padding: 22px; text-decoration: none; color: inherit;
  transition: transform .15s, border-color .15s, box-shadow .25s;
  display: block;
}
.related-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 16px 36px -20px rgba(192,37,255,.4); }
.related-card .eyebrow { font-size: 11px; }
.related-card h4 { font-size: 16px; margin: 8px 0 6px; color: var(--ink-0); }
.related-card p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* Real-data dashboard mockup */
.id-dash {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--rule);
  background: #0F172A; color: #E5E7EB; font-size: 11px; line-height: 1.4;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.6);
}
.id-dash * { box-sizing: border-box; }
.id-dash-top {
  background: #0B1220; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid #1E293B;
}
.id-dash-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #F8FAFC; font-size: 13px; }
.id-dash-brand svg { color: #C025FF; }
.id-dash-weather { display: flex; gap: 6px; }
.id-dash-weather .day {
  background: #111827; border-radius: 8px; padding: 4px 8px; font-size: 9px;
  text-align: center; min-width: 50px;
}
.id-dash-weather .day .lbl { color: #94A3B8; display: block; font-size: 8px; }
.id-dash-weather .day .t { color: #F8FAFC; font-weight: 600; }
.id-dash-actions { display: flex; gap: 6px; }
.id-dash-actions span { background: #111827; border-radius: 6px; padding: 4px 10px; font-size: 10px; color: #CBD5E1; }
.id-dash-actions .alert { color: #FFC332; }

.id-dash-body { display: grid; grid-template-columns: 170px 1fr; }
.id-dash-side { background: #111827; padding: 12px 0; min-height: 360px; }
.id-dash-side .greet { padding: 0 14px 14px; border-bottom: 1px solid #1E293B; margin-bottom: 12px; }
.id-dash-side .greet .h { color: #F8FAFC; font-weight: 700; font-size: 12px; }
.id-dash-side .greet .s { color: #64748B; font-size: 9px; margin-top: 2px; }
.id-dash-side .grp { padding: 0 14px; margin-top: 14px; }
.id-dash-side .grp-h { font-size: 9px; letter-spacing: 1.4px; color: #475569; text-transform: uppercase; margin-bottom: 6px; }
.id-dash-side ul { list-style: none; margin: 0; padding: 0; }
.id-dash-side li { padding: 5px 14px; font-size: 11px; color: #CBD5E1; display: flex; align-items: center; gap: 8px; }
.id-dash-side li.active { background: #1E293B; color: #fff; border-left: 2px solid #C025FF; padding-left: 12px; }
.id-dash-side li::before { content: "▪"; color: #475569; font-size: 8px; }
.id-dash-side li.active::before { color: #C025FF; }

.id-dash-main { padding: 14px; }
.id-trial-banner {
  border-radius: 10px; padding: 12px 14px; background: #1E293B;
  border: 1px solid #334155; display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.id-trial-banner .beta { background: #C025FF; color: #fff; padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.id-trial-banner .lbl { color: #94A3B8; font-size: 10px; }
.id-trial-banner .days { color: #F8FAFC; font-weight: 700; font-size: 12px; margin-left: 4px; }
.id-trial-banner .progress { flex: 1; height: 4px; background: #0F172A; border-radius: 999px; overflow: hidden; }
.id-trial-banner .progress span { display: block; height: 100%; background: linear-gradient(90deg,#C025FF,#2575FC); width: 60%; }
.id-trial-banner .price { color: #94A3B8; font-size: 9px; }

.id-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 14px; }
.id-stat { background: #1E293B; border-radius: 10px; padding: 10px 12px; }
.id-stat .num { font-size: 18px; font-weight: 700; color: #F8FAFC; line-height: 1; }
.id-stat .num.alt { color: #FFC332; }
.id-stat .num.green { color: #46C2B5; }
.id-stat .num.red { color: #F87171; }
.id-stat .lbl { font-size: 9px; color: #94A3B8; margin-top: 4px; }
.id-stat .sub { font-size: 8px; color: #46C2B5; margin-top: 1px; }

.id-table-wrap { background: #1E293B; border-radius: 10px; padding: 12px; }
.id-table-wrap h4 { font-size: 12px; color: #F8FAFC; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.id-table { width: 100%; font-size: 10px; border-collapse: collapse; }
.id-table th { font-size: 8.5px; letter-spacing: 1.3px; color: #64748B; text-transform: uppercase; text-align: left; padding-bottom: 6px; }
.id-table td { padding: 8px 4px; border-top: 1px solid #334155; color: #CBD5E1; font-size: 10.5px; }
.id-table .name { color: #F8FAFC; font-weight: 600; }
.id-table .email { color: #64748B; font-size: 9px; }
.id-table .amt { color: #46C2B5; font-weight: 700; font-size: 11px; }
.id-table .badge { display: inline-block; background: #0F172A; color: #FFC332; padding: 2px 6px; border-radius: 999px; font-size: 8px; letter-spacing: 1px; margin-top: 2px; }
.id-table .avatar { width: 22px; height: 22px; border-radius: 999px; background: linear-gradient(135deg,#C025FF,#2575FC); color: #fff; font-weight: 700; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; }

@media (max-width: 768px) {
  .id-dash { font-size: 9.5px; }
  .id-dash-body { grid-template-columns: 1fr; }
  .id-dash-side { display: none; }
  .id-stats { grid-template-columns: 1fr 1fr; }
  .id-dash-weather .day:nth-child(n+4) { display: none; }
}

/* Testimonials with avatar */
.testimonial { display: grid; gap: 16px; }
.testimonial-card { padding: 26px; background: var(--bg-1); border: 1px solid var(--rule); border-radius: 16px; }
.testimonial-card .stars { color: var(--accent-3); margin-bottom: 12px; font-size: 14px; }
.testimonial-card blockquote { margin: 0 0 18px; font-family: 'Plus Jakarta Sans'; font-size: 16px; color: var(--ink-0); font-weight: 500; line-height: 1.45; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
.testimonial-card .avatar { width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg,#C025FF,#2575FC); color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.testimonial-card .who .nm { color: var(--ink-0); font-weight: 600; font-size: 14px; }
.testimonial-card .who .rl { color: var(--ink-2); font-size: 12.5px; }

/* Blog */
.blog-meta { color: var(--ink-2); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-card { padding: 22px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink-0); }
.blog-card p { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.blog-card a.read { color: var(--accent-soft); font-weight: 600; font-size: 13.5px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; color: var(--ink-1); }
.prose p { color: var(--ink-1); font-size: 16.5px; line-height: 1.7; }
.prose a { color: var(--accent-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 16px; color: var(--ink-0); font-style: italic; margin: 1.4em 0; }

/* Resources */
.resource-card { padding: 22px; display: block; text-decoration: none; color: inherit; }
.resource-card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--gradient-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 14px; }
.resource-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.resource-card p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ============= V3 PATCH — Compare table + light theme + mobile polish ============= */

/* 1. Lock SVG icon sizes inside the compare table (this fixes the giant checkmarks) */
.compare-table td svg,
.compare-table th svg {
  width: 18px !important;
  height: 18px !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.compare-table .check,
.compare-table .x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-height: auto;
}
.compare-table .x { color: var(--ink-3); font-size: 18px; line-height: 1; }
.compare-table td { vertical-align: middle; }
.compare-table th.us { white-space: nowrap; }

/* Force mobile horizontal scroll affordance — visible hint */
.compare-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-2);
}
.compare-wrap::-webkit-scrollbar { height: 8px; }
.compare-wrap::-webkit-scrollbar-track { background: var(--bg-2); }
.compare-wrap::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
@media (max-width: 720px) {
  .compare-wrap::after {
    content: "← swipe →";
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--ink-2);
    padding: 10px 0 14px;
    letter-spacing: 0.1em;
  }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
}

/* 2. Global SVG safety net — never let an SVG without explicit dimensions blow up */
svg:not([width]):not([height]) {
  max-width: 100%;
  max-height: 100%;
}
.feature-card .icon svg,
.theme-toggle svg,
.btn svg,
.fab svg,
.utility-link svg,
.related-card svg,
.testimonial-card svg,
.trust-badge svg,
.footer-col svg,
.id-dash-brand svg,
.faq .chev svg {
  width: auto;
  height: auto;
  flex-shrink: 0;
}
/* Inline list-icon SVGs in showcases & pricing must stay small */
.showcase-copy li svg,
.pricing-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 3. Light theme legibility audit */
[data-theme="light"] body {
  background-image:
    radial-gradient(900px 600px at 85% -10%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, color-mix(in oklab, var(--accent-2) 6%, transparent), transparent 65%);
}
[data-theme="light"] .top-utility-bar {
  background: #1A1827;
  color: #E8E4F0;
  border-bottom: 1px solid #2A2933;
}
[data-theme="light"] .top-utility-bar .utility-link { color: #E19AFF; }
[data-theme="light"] .top-utility-bar .utility-cred .star { color: #FFC332; }

/* Closing CTA must keep dark form readable in light theme */
[data-theme="light"] .closing-cta { color: #FFFFFF; }
[data-theme="light"] .closing-cta h2 { color: #FFFFFF; }
[data-theme="light"] .closing-cta p { color: rgba(255,255,255,.92); }

/* Sticky mobile bar always uses gradient with white text */
.mobile-cta-bar a { color: #FFFFFF; }

/* Hero floating chips — backdrop on light */
[data-theme="light"] .hero-floating {
  background: #FFFFFF;
  border-color: var(--rule);
  box-shadow: 0 12px 32px -16px rgba(23,22,30,.18);
}

/* FAQ — better summary contrast on light */
[data-theme="light"] .faq summary { color: var(--ink-0); }
[data-theme="light"] .faq .answer { color: var(--ink-1); }

/* Compare table — light variants */
[data-theme="light"] .compare-table thead th { background: #F0EBF7; color: var(--ink-2); }
[data-theme="light"] .compare-table tbody tr:hover { background: #FBF9FE; }
[data-theme="light"] .compare-table .col-us { background: color-mix(in oklab, var(--accent) 6%, white); color: var(--ink-0); }

/* Real-data dashboard — keep dark always (it's a screenshot of the actual product) */
.id-dash { background: #0F172A; color: #E5E7EB; }
.id-dash * { color: inherit; }
.id-dash .name { color: #F8FAFC; }
.id-dash .amt { color: #46C2B5; }
.id-dash .lbl { color: #94A3B8; }

/* 4. Mobile polish — 320–768 */
@media (max-width: 768px) {
  .header-container { gap: 8px; padding: 10px 14px; }
  .btn-instant-quote { padding: 10px 12px; font-size: 12.5px; }
  .btn-instant-quote svg { display: none; }
  .theme-toggle { width: 38px; height: 38px; }
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.4rem) !important; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stat .num { font-size: 18px; }
  .hero-floating { display: none !important; }
  .closing-cta { padding: 36px 22px; border-radius: 18px; }
  .closing-cta h2 { font-size: 1.6rem !important; }
  .pricing-card { padding: 24px 22px; }
  .pricing-price { font-size: clamp(2.4rem, 10vw, 3.4rem) !important; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .showcase { gap: 28px; padding: 36px 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-card { padding: 20px; }
  .feature-card h3 { font-size: 1rem; }
  .feature-card p { font-size: 13.5px; }
  .testimonial-card { padding: 22px; }
  .testimonial-card blockquote { font-size: 14.5px; }
  .footer-grid { gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 100%; }
  .top-utility-bar .utility-link { display: none; }
}
@media (max-width: 375px) {
  .container { padding-inline: 14px; }
  .header-container { padding: 8px 12px; }
  .logo-title { font-size: 14px; }
}

/* 5. Form inputs — explicit colors per theme so closing CTA + start-trial form look right */
.cta-form input, .cta-form select { font-size: 16px; line-height: 1.4; }
[data-theme="light"] .cta-form { background: #1A1827; }
[data-theme="light"] .cta-form input,
[data-theme="light"] .cta-form select {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,.18);
  color: #FFFFFF;
}

/* 6. Force-correct: SVG inside a flex parent shouldn't auto-stretch */
.btn { line-height: 1; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-lg svg { width: 18px; height: 18px; }

/* 7. Tighten card-glow visibility on light theme */
[data-theme="light"] .card-glow:hover { box-shadow: 0 24px 50px -28px rgba(161,30,224,.4); }

/* 8. Trust badge — fix size and consistency */
.trust-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.trust-row { gap: 22px 32px; }

/* 9. Fix submenu overflow on mobile (was getting cut off) */
@media (max-width: 1023px) {
  .nav-menu.is-open .submenu { padding: 8px 0 8px 12px; }
}

/* ============= V4 PATCH — Dashboard mockup as light laptop screen ============= */

/* Override id-dash to white/light theme */
.id-dash {
  background: #FFFFFF;
  color: #17161E;
  border: 1px solid #E2E2E8;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.4);
}
.id-dash * { color: inherit; }

.id-dash-top {
  background: #F8F7FB;
  border-bottom: 1px solid #E2E2E8;
}
.id-dash-brand { color: #17161E; }
.id-dash-brand svg { color: #C025FF; }
.id-dash-weather .day { background: #F0EBF7; color: #65636E; }
.id-dash-weather .day .lbl { color: #8E8C97; }
.id-dash-weather .day .t { color: #17161E; }
.id-dash-actions span { background: #F0EBF7; color: #4B4A55; }
.id-dash-actions .alert { color: #B47A12; }

.id-dash-side {
  background: #FBF9FE;
  border-right: 1px solid #E8E4F0;
}
.id-dash-side .greet .h { color: #17161E; }
.id-dash-side .greet .s { color: #8E8C97; }
.id-dash-side .grp-h { color: #8E8C97; }
.id-dash-side ul li { color: #4B4A55; }
.id-dash-side ul li.active {
  background: #F0EBF7;
  color: #17161E;
  border-left: 2px solid #C025FF;
}
.id-dash-side ul li.active::before { color: #C025FF; }
.id-dash-side ul li::before { color: #C9C7D2; }

.id-trial-banner {
  background: linear-gradient(135deg, rgba(192,37,255,.10), rgba(37,117,252,.06));
  border: 1px solid #E8E4F0;
}
.id-trial-banner .lbl { color: #65636E; }
.id-trial-banner .days { color: #17161E; }
.id-trial-banner .progress { background: #E8E4F0; }
.id-trial-banner .price { color: #65636E; }

.id-stat {
  background: #FFFFFF;
  border: 1px solid #E8E4F0;
}
.id-stat .num { color: #17161E; }
.id-stat .num.alt { color: #B47A12; }
.id-stat .num.green { color: #1F8E83; }
.id-stat .lbl { color: #65636E; }
.id-stat .sub { color: #1F8E83; }

.id-table-wrap {
  background: #FFFFFF;
  border: 1px solid #E8E4F0;
}
.id-table-wrap h4 { color: #17161E; }
.id-table th { color: #8E8C97; }
.id-table td { border-top: 1px solid #F0EBF7; color: #4B4A55; }
.id-table .name { color: #17161E; }
.id-table .email { color: #8E8C97; }
.id-table .amt { color: #1F8E83; }
.id-table .badge { background: #F8F7FB; color: #B47A12; }

/* Laptop frame wrapper */
.laptop-frame {
  position: relative;
  padding: 14px 14px 18px;
  background: linear-gradient(180deg, #2A2933 0%, #17161E 100%);
  border-radius: 14px 14px 4px 4px;
  box-shadow:
    0 30px 80px -24px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.05),
    inset 0 -1px 0 rgba(0,0,0,.4);
  margin: 0 auto;
  max-width: 100%;
}
.laptop-frame::before {
  content: "";
  display: block;
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #1F1E27 0%, #0F0F0F 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.5);
}
.laptop-frame .id-dash {
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
}
.laptop-frame::after {
  content: "";
  display: block;
  position: absolute;
  left: -28px; right: -28px; bottom: -10px;
  height: 14px;
  background: linear-gradient(180deg, #1F1E27 0%, #0F0F0F 60%, transparent 100%);
  border-radius: 0 0 32px 32px / 0 0 16px 16px;
  z-index: -1;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.5);
}
.laptop-frame .laptop-base {
  position: absolute;
  left: -36px; right: -36px; bottom: -14px;
  height: 12px;
  background: linear-gradient(180deg, #25232F 0%, #0F0F0F 100%);
  border-radius: 0 0 14px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 24px 50px -16px rgba(0,0,0,.55);
}
.laptop-frame .laptop-base::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 90px; height: 6px;
  background: #0F0F0F;
  border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
  .laptop-frame { padding: 8px 8px 12px; border-radius: 10px 10px 4px 4px; }
  .laptop-frame::after { left: -16px; right: -16px; }
  .laptop-frame .laptop-base { left: -24px; right: -24px; }
}

/* ============= V5 PATCH — Real-data dashboard refinements + logo + footer logo ============= */

/* Logo image */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  max-width: 220px;
  filter: brightness(0) invert(1); /* white logo for dark theme */
}
[data-theme="light"] .logo-img { filter: none; }
@media (max-width: 640px) {
  .logo-img { height: 32px; max-width: 160px; }
}
.footer-brand .logo-img { height: 36px; }

/* Real dashboard top bar — badges */
.id-dash-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.id-dash-actions span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.id-dash-actions .badge-amber { background: linear-gradient(135deg,#FBBF24,#F59E0B); color: #fff; }
.id-dash-actions .badge-green { background: linear-gradient(135deg,#22C55E,#16A34A); color: #fff; }
.id-dash-actions .badge-purple { background: linear-gradient(135deg,#8B5CF6,#7C3AED); color: #fff; }
.id-dash-actions .user-pill {
  background: #1E40AF; color: #fff;
  border-radius: 999px;
  width: 26px; height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

/* Sidebar greeting */
.id-dash-side .greet {
  background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
  color: #fff;
  padding: 16px 14px;
  border-radius: 8px;
  margin: 12px;
  border-bottom: 0;
  margin-bottom: 16px;
}
.id-dash-side .greet .h { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.id-dash-side .greet .s { color: rgba(255,255,255,.85); font-size: 9.5px; }
.id-dash-side .greet .db-health {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border-left: 3px solid #94A3B8;
  padding: 6px 8px;
  border-radius: 4px;
  margin-top: 10px;
  font-size: 9px;
  color: rgba(255,255,255,.95);
  font-weight: 500;
}
.id-dash-side .greet .db-health .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34,197,94,.6);
  animation: id-pulse 2s infinite;
}
@keyframes id-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .55; }
}

/* Trial banner — richer */
.id-trial-banner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
}
.id-trial-banner .trial-text { display: flex; flex-direction: column; gap: 2px; }
.id-trial-banner .trial-h { color: #17161E; font-weight: 700; font-size: 12px; }
.id-trial-banner .trial-h .days { color: #C025FF; }
.id-trial-banner .trial-s { color: #65636E; font-size: 10px; }
.id-trial-banner .progress {
  height: 6px;
  min-width: 80px;
  max-width: 140px;
}
.id-trial-banner .trial-cta {
  background: linear-gradient(135deg, #C025FF, #2575FC);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  border: 0;
  white-space: nowrap;
  cursor: pointer;
  min-height: auto;
}

/* Stats row — real-product look */
.id-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.id-stat {
  background: #FFFFFF;
  border: 1px solid #E8E4F0;
  border-left: 4px solid #1E40AF;
  border-radius: 10px;
  padding: 12px 14px;
}
.id-stat:nth-child(2) { border-left-color: #22C55E; }
.id-stat:nth-child(3) { border-left-color: #F59E0B; }
.id-stat:nth-child(4) { border-left-color: #8B5CF6; }
.id-stat:nth-child(5) { border-left-color: #14B8A6; }
.id-stat .num { font-size: 22px; line-height: 1.05; }
.id-stat .lbl { font-size: 10px; font-weight: 600; color: #4B4A55; text-transform: uppercase; letter-spacing: 0.08em; }
.id-stat .sub { font-size: 9px; color: #8E8C97; margin-top: 2px; }

/* Table refinements */
.id-table-wrap h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}
.id-table-wrap h4 .live-dot {
  font-size: 9px;
  color: #22C55E;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.id-table { font-size: 11px; }
.id-table th {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #8E8C97;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 8px;
}
.id-table td { padding: 10px 6px; }
.id-table .avatar {
  display: inline-flex;
  background: linear-gradient(135deg, #C025FF, #7C3AED);
  width: 26px; height: 26px;
  font-size: 10px;
  margin-right: 8px;
  vertical-align: middle;
}
.id-table .avatar-2 { background: linear-gradient(135deg, #2575FC, #1E40AF); }
.id-table .avatar-3 { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.id-table .avatar-4 { background: linear-gradient(135deg, #F59E0B, #D97706); }
.id-table .avatar-5 { background: linear-gradient(135deg, #EC4899, #BE185D); }
.id-table .name { font-size: 12px; vertical-align: middle; }
.id-table .email { margin-left: 34px; }
.id-table .amt {
  display: block;
  text-align: right;
  font-size: 12.5px;
  margin-bottom: 3px;
}
.id-table .badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: #FEF3C7;
  color: #92400E;
  border-radius: 4px;
  float: right;
}

/* Mobile dashboard responsive */
@media (max-width: 768px) {
  .id-dash { font-size: 9.5px; }
  .id-dash-body { grid-template-columns: 1fr; }
  .id-dash-side { display: none; }
  .id-stats { grid-template-columns: repeat(2,1fr); }
  .id-trial-banner { grid-template-columns: auto 1fr; gap: 8px; }
  .id-trial-banner .progress, .id-trial-banner .trial-cta { display: none; }
  .id-dash-actions span { font-size: 8.5px; padding: 3px 6px; }
  .id-dash-actions .badge-amber, .id-dash-actions .badge-green, .id-dash-actions .badge-purple { display: none; }
}

/* Footer logo on light shouldn't invert */
[data-theme="light"] .footer-brand .logo-img { filter: none; }

/* ============= V6 PATCH — Live dot animation, table heading polish ============= */
.id-table-wrap h4 .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #DCFCE7;
  color: #15803D;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.id-table-wrap h4 .live-dot .dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  animation: dot-pulse 1.6s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.65); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ============= V7 PATCH — Trial modal + Login link + remove FAB ============= */

/* Hide the FAB completely (was duplicating the header CTA) */
.floating-actions { display: none !important; }
/* Don't reserve space for it any more on mobile */
@media (max-width: 768px) { .floating-actions { display: none !important; } body { padding-bottom: 64px; } }

/* Header login link */
.header-login {
  color: var(--ink-1);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.header-login:hover { color: var(--accent-soft); background: var(--bg-2); }
@media (max-width: 640px) {
  .header-login { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 480px) {
  .header-login { display: none; }
}

/* Modal */
.trial-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  padding-bottom: env(safe-area-inset-bottom);
}
.trial-modal.is-open { display: flex; }
.trial-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,15,15,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.trial-modal-card {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 30px 28px 26px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.6);
  animation: modal-in .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes modal-in { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform:none; } }
.trial-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  color: var(--ink-1);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.trial-modal-close:hover { color: var(--ink-0); border-color: var(--accent); }
.trial-modal-head { margin-bottom: 18px; }
.trial-modal-form { display: grid; gap: 12px; }
.trial-modal-form label { display: grid; gap: 4px; }
.trial-modal-form .eyebrow { font-size: 10.5px; }
.trial-modal-form input,
.trial-modal-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  color: var(--ink-0);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.trial-modal-form input:focus,
.trial-modal-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}
.trial-modal-form button[type="submit"] { width: 100%; margin-top: 4px; }

body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .trial-modal { padding: 0; align-items: flex-end; }
  .trial-modal-card {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    padding: 24px 22px 22px;
  }
}

/* ============= V8 PATCH — Modal success state ============= */
.trial-modal-success {
  display: none;
  padding: 8px 0 4px;
}
.trial-modal-success.is-shown { display: block; }
.success-check {
  width: 80px; height: 80px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 2px solid rgba(34,197,94,.4);
  animation: success-pop .35s cubic-bezier(.2,.8,.2,1) both;
}
.success-check { display: flex; }
.success-check svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: check-draw .55s ease-out .15s forwards; }
@keyframes success-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.trial-modal-success > div:first-child { display: flex; justify-content: center; }

.trial-modal-error {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.4);
}
.trial-modal-error.is-shown { display: block; }

#trial-submit.is-loading {
  opacity: .7;
  pointer-events: none;
}
#trial-submit.is-loading::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============= V9 PATCH — Logo badge + wordmark ============= */
.logo-badge-img {
  height: 36px;
  width: auto;
  max-width: 40px;
  object-fit: contain;
  display: block;
  /* Source is now a purple-tinted PNG — works on both dark and light themes */
  transition: filter .2s;
}
.logo-link { gap: 10px; }

/* Footer logo */
.footer-brand .logo-badge-img { height: 32px; max-width: 36px; }

/* Mobile sizing */
@media (max-width: 640px) {
  .logo-badge-img { height: 30px; max-width: 34px; }
  .logo-title { font-size: 15px; }
}
@media (max-width: 480px) {
  .logo-badge-img { height: 28px; max-width: 30px; }
}

/* Hide old .logo-img references gracefully if any pages still have them */
.logo-img { height: 36px; width: auto; max-width: 40px; object-fit: contain; filter: brightness(0) invert(1); }
[data-theme="light"] .logo-img { filter: none; }

/* ============= V10 PATCH — Tighten table heading SVG, simplify ============= */
.id-table-wrap h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #17161E;
}
.id-table-wrap h4 .id-table-title {
  font-size: 13px;
  font-weight: 700;
  color: #17161E;
}
.id-table-wrap h4 svg { width: 14px !important; height: 14px !important; flex-shrink: 0; }
