/*
Theme Name: NEMT Marketing
Theme URI: https://nemtmarketing.com/
Author: NEMT Marketing
Author URI: https://nemtmarketing.com/
Description: Custom premium theme for NEMT Marketing. A modern agency experience for NEMT growth: Google and local SEO, review engine, call tracking, web design, and free operator tools. No page builder required. Mobile first, accessible, performance budgeted.
Version: 3.0.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nemt-marketing
Tags: custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ============ 1. Tokens ============ */
:root {
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --surface-2: #F2F5F9;
  --ink: #0A1628;
  --ink-2: #33475F;
  --ink-3: #64748B;
  --primary: #1450B7;
  --primary-deep: #0D3A87;
  --electric: #2E6BFF;
  --cyan: #22D3EE;
  --violet: #7C5CFF;
  --accent: #F59E0B;
  --accent-deep: #B45309;
  --success: #15803D;
  --border: #E8EEF5;
  --border-soft: #EEF2F7;

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --fs-hero: clamp(2.6rem, 1.5rem + 5vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.4vw, 2.9rem);
  --fs-h3: 1.3rem;
  --fs-lead: 1.16rem;
  --fs-small: .875rem;
  --fs-tiny: .75rem;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --container: min(1200px, 92vw);
  --container-narrow: min(820px, 92vw);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-xs: 0 1px 2px rgba(10, 22, 40, .05);
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, .06), 0 4px 16px rgba(10, 22, 40, .06);
  --shadow-md: 0 2px 4px rgba(10, 22, 40, .06), 0 12px 32px rgba(10, 22, 40, .10);
  --shadow-lg: 0 4px 8px rgba(10, 22, 40, .06), 0 24px 64px rgba(20, 80, 183, .14);
  --shadow-glow: 0 0 0 1px rgba(46, 107, 255, .12), 0 12px 40px rgba(46, 107, 255, .16);
}

/* ============ 2. Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Generic hide utility. The NEMT Suite lead form toggles this class for its
   success state, so it must exist for the confirmation flow to render. */
.hidden { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: var(--space-4); color: #fff; }

/* ============ 3. Utilities ============ */
.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }

.section { padding: var(--space-20) 0; }
.section-tight { padding: var(--space-12) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-tiny); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow-centered { justify-content: center; }
.eyebrow-centered::after { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.7; }

.serif-accent, em.serif-accent {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; font-size: 1.06em; color: var(--primary);
}

.grad-text {
  background: linear-gradient(100deg, var(--electric) 0%, var(--primary) 75%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  padding: .9rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-accent:hover { color: var(--ink); box-shadow: var(--shadow-md); background: #FBBF24; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; background: var(--primary-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { color: var(--ink); border-color: var(--primary); }
.btn-light { background: #fff; color: var(--primary-deep); }
.btn-light:hover { color: var(--primary-deep); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { color: #fff; border-color: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.mt-8 { margin-top: var(--space-8); }
.text-center { text-align: center; }

.prose { font-size: 1.06rem; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin: var(--space-8) 0 var(--space-4); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-2); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--ink-2); font-size: .98rem; }
/* ============ 4. Header: sticky glass nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 251, 252, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); padding-top: var(--space-4); padding-bottom: var(--space-4);
}
.site-brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.site-brand span:last-child, .site-brand .brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.brand-mark { flex: none; }

.main-nav ul { display: flex; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block; padding: var(--space-2) var(--space-4);
  color: var(--ink-2); font-weight: 500; font-size: .96rem; text-decoration: none;
  border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav .has-children { position: relative; }
.main-nav .sub-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: var(--space-2); flex-direction: column; align-items: stretch; gap: 0;
}
.main-nav .has-children:hover > .sub-menu, .main-nav .has-children:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { display: block; border-radius: 8px; font-size: .92rem; }
.main-nav .sub-menu a:hover { background: var(--surface-2); }

.header-cta { display: flex; align-items: center; gap: var(--space-3); }
.header-cta .btn { padding: .7rem 1.35rem; font-size: .94rem; }
.menu-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); cursor: pointer; color: var(--ink);
}

/* ============ 5. Hero: centered, product-led ============ */
.hero { position: relative; overflow: hidden; padding: var(--space-20) 0 var(--space-16); }
.hero-mesh { position: absolute; inset: 0; pointer-events: none; }
.hero-mesh .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero-mesh .orb-1 { width: 560px; height: 560px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(46,107,255,.28), transparent 65%); }
.hero-mesh .orb-2 { width: 520px; height: 520px; right: -120px; top: 4%; background: radial-gradient(circle, rgba(124,92,255,.22), transparent 65%); }
.hero-mesh .grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.hero-center { position: relative; max-width: 920px; margin-inline: auto; text-align: center; }

.kicker-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: var(--space-2) var(--space-4); font-size: var(--fs-tiny); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  box-shadow: var(--shadow-xs); margin-bottom: var(--space-5);
}
.kicker-pill .pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(21,128,61,.14); }

.hero h1 { font-size: clamp(3rem, 1.7rem + 6.5vw, 5.25rem); margin-bottom: var(--space-5); }
.hero .lead { max-width: 640px; margin-inline: auto; margin-bottom: var(--space-2); }
.hero-center .btn-row { justify-content: center; }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-6); list-style: none; padding: 0; }
.hero-proof li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: .94rem; font-weight: 500; color: var(--ink-2); }
.hero-proof svg { flex: none; }

/* Browser-framed product mockup */
.hero-browser-wrap { position: relative; max-width: 940px; margin: var(--space-12) auto 0; }
.hero-glow {
  position: absolute; inset: -70px -30px; pointer-events: none;
  background: radial-gradient(ellipse 62% 55% at 50% 38%, rgba(46,107,255,.22), transparent 70%);
  filter: blur(30px);
}
.browser-frame {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.browser-bar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #F8FAFD, #fff);
}
.browser-url {
  flex: 1; max-width: 400px; margin-inline: auto;
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 6px 18px; font-size: .82rem; color: var(--ink-3); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { padding: var(--space-6); }

/* ============ 6. Capabilities marquee ============ */
.marquee-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; padding: var(--space-4) 0; }
.marquee-label { text-align: center; font-size: var(--fs-tiny); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-3); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--space-10); width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: var(--space-10);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--ink-2); white-space: nowrap;
}
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }


.card-link { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 600; margin-top: var(--space-4); text-decoration: none; }
.card-link::after { content: "→"; transition: transform .18s ease; }
.card-link:hover::after { transform: translateX(4px); }

/* ============ 7. CSS product UI mockups ============ */
.mock {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: .9rem;
}
.mock-bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #F8FAFD, #fff);
}
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #D7E0EC; }
.mock-dots i:first-child { background: #FF5F57; } .mock-dots i:nth-child(2) { background: #FEBC2E; } .mock-dots i:nth-child(3) { background: #28C840; }
.mock-title { font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--ink); margin-left: var(--space-2); }
.mock-body { padding: var(--space-4); }
.tag-illustrative {
  margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--border);
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}

.rank-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); }
.rank-row:last-child { border-bottom: 0; }
.rank-pos {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--electric), var(--primary));
}
.rank-key { flex: 1; min-width: 0; }
.rank-key strong { display: block; font-size: .9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-key small { color: var(--ink-3); font-size: .76rem; }
.trend { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .82rem; color: var(--success); background: rgba(21,128,61,.1); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border-soft); background: #F8FAFD; font-size: .8rem; color: var(--ink-3); }
.mock-foot strong { color: var(--success); font-size: .92rem; }

.mock-call { display: flex; gap: var(--space-4); align-items: flex-start; }
.mock-call-icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--electric), var(--violet));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
}
.mock-call strong { display: block; color: var(--ink); font-size: .94rem; }
.mock-call p { color: var(--ink-2); font-size: .86rem; margin: var(--space-1) 0 var(--space-3); }
.mock-call .mini-btn {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--primary-deep);
  background: rgba(46,107,255,.1); border-radius: 999px; padding: 6px 14px; text-decoration: none;
}

.mock-stars-top { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
.mock-score { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; letter-spacing: -0.03em; color: var(--ink); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.1rem; }
.mock-reviews-sub { color: var(--ink-3); font-size: .84rem; margin-bottom: var(--space-3); }
.review-bar { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); font-size: .78rem; color: var(--ink-3); }
.review-bar .track { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.review-bar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #FBBF24); }

.dispatch-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); font-size: .86rem; }
.dispatch-row:last-child { border-bottom: 0; }
.dispatch-time { flex: none; font-family: var(--font-display); font-weight: 600; color: var(--ink); width: 64px; }
.dispatch-trip { flex: 1; min-width: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.status-assigned { background: rgba(46,107,255,.12); color: var(--primary-deep); }
.status-enroute { background: rgba(245,158,11,.16); color: var(--accent-deep); }
.status-done { background: rgba(21,128,61,.12); color: var(--success); }

/* ============ 8. Homepage sections ============ */
.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head h2 .serif-accent { color: var(--electric); }
.section-head .lead { margin-top: var(--space-4); }

/* Problem cards */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.pain-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-8); box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain-card .pain-quote {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: var(--space-3); line-height: 1.35;
}
.pain-card .pain-quote::before { content: "\201C"; color: var(--accent); margin-right: 2px; }
.pain-card p { color: var(--ink-2); font-size: .97rem; }
.pain-tag {
  display: inline-block; font-size: var(--fs-tiny); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-deep); background: rgba(245,158,11,.14); border-radius: 999px;
  padding: 4px 12px; margin-bottom: var(--space-4);
}

/* System: Audit, Tools, Implementation */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.step-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 4.6rem; line-height: 1;
  letter-spacing: -0.04em; color: transparent;
  -webkit-text-stroke: 1.5px #D5DEEA;
  position: absolute; top: var(--space-4); right: var(--space-6); user-select: none;
}
.step-card h3 { font-size: 1.45rem; margin: var(--space-5) 0 var(--space-3); }
.step-card p { color: var(--ink-2); font-size: .97rem; }
.step-outcome {
  margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px dashed var(--border);
  font-size: .92rem; color: var(--ink-2);
}
.step-outcome strong { color: var(--success); }
.step-vignette { margin-top: auto; padding-top: var(--space-5); }
.step-vignette .mock { box-shadow: var(--shadow-sm); border-radius: var(--radius-sm); font-size: .82rem; }

/* Bento: mastery grid (3-column concept layout) */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.bcell {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 64px var(--space-8) var(--space-8); box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px;
}
.bcell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bcell .btag {
  position: absolute; top: 24px; left: 32px; z-index: 2;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary);
}
.bcell h3 { font-size: 1.35rem; letter-spacing: -0.01em; margin-bottom: var(--space-2); position: relative; z-index: 2; }
.bcell p { color: var(--ink-3); font-size: .95rem; line-height: 1.6; position: relative; z-index: 2; }
.bcell.tall { grid-row: span 2; }
.bcell.wide { grid-column: span 2; }
.bcell .bgimg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.bcell .bgimg img { width: 100%; height: 118%; object-fit: cover; }
.bcell .bgveil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,12,24,.05) 30%, rgba(6,12,24,.82) 100%); }
.bcell.dark h3 { color: #fff; }
.bcell.dark p { color: rgba(255,255,255,.78); }
.bcell.dark .btag { color: var(--accent); }
.rank-mini {
  background: rgba(255,255,255,.96); border-radius: 14px; padding: var(--space-4);
  margin-top: var(--space-4); position: relative; z-index: 2; box-shadow: var(--shadow-sm);
}
.rank-mini .rank-row { font-size: .82rem; }
.rank-mini-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: var(--space-2);
}
.rank-mini-head .tag-illustrative { margin-left: 0; }
.rank-badge {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; white-space: nowrap;
  background: rgba(21,128,61,.12); color: var(--success);
  border-radius: 8px; padding: 3px 10px;
}
.trend-plain { color: var(--success); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-4); position: relative; z-index: 2; }
.chip {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: .82rem; font-weight: 600; color: var(--ink-2);
}

/* Authority band */
.authority-band {
  background: linear-gradient(180deg, #EFF4FB 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: var(--ink); overflow: hidden; position: relative;
}
.authority-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); padding: var(--space-16) var(--space-12); align-items: center; }
.authority-band .eyebrow { color: var(--primary); }
.authority-band h2 { color: var(--ink); margin-bottom: var(--space-4); }
.authority-band h2 .serif-accent { color: var(--electric); }
.authority-band p { color: var(--ink-2); }
.authority-points { list-style: none; padding: 0; margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.authority-points li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--ink-2); font-size: .97rem; }
.authority-points svg { flex: none; margin-top: 4px; }
.authority-visual { position: relative; }
.authority-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.authority-card blockquote { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--ink); margin-bottom: var(--space-4); }
.authority-card cite { font-style: normal; font-size: .9rem; color: var(--ink-3); display: block; }
.authority-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: var(--space-4); }
.authority-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.authority-card ul li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: .95rem; }
.authority-card ul li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(245,158,11,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.7 11.8 5.4' stroke='%23D97706' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.authority-orb { position: absolute; width: 420px; height: 420px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(46,107,255,.18), transparent 65%); filter: blur(60px); pointer-events: none; }

/* Tools section */
.tools-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-10); flex-wrap: wrap; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6); box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(46,107,255,.35); }
.tool-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: var(--space-4);
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--electric), var(--primary));
  box-shadow: var(--shadow-glow);
}
.tool-card h3 { font-size: 1.08rem; margin-bottom: var(--space-2); }
.tool-card p { color: var(--ink-2); font-size: .9rem; flex: 1; }

/* ============ 9. Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-8); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.featured {
  background: #fff;
  border: 2px solid var(--accent); color: var(--ink);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(245,158,11,.12);
  position: relative;
}
.price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--ink); font-size: var(--fs-tiny); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 16px; border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.price-amount { display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-4) 0 var(--space-2); }
.price-amount .amount { font-family: var(--font-display); font-weight: 700; font-size: 2.9rem; letter-spacing: -0.04em; }
.price-amount .per { color: var(--ink-3); font-size: .92rem; }
.price-desc { font-size: .95rem; color: var(--ink-2); margin-bottom: var(--space-5); }
.price-list { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--space-3); flex: 1; }
.price-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.price-list svg { flex: none; margin-top: 4px; }
.pricing-note { text-align: center; color: var(--ink-3); font-size: .92rem; margin-top: var(--space-8); max-width: 640px; margin-inline: auto; }

/* ============ 10. FAQ ============ */
.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: var(--space-4); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs); overflow: hidden; transition: box-shadow .2s ease;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-answer { padding: 0 var(--space-6) var(--space-6); color: var(--ink-2); font-size: .98rem; }

/* ============ 11. Final CTA + footer ============ */
.final-cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--primary-deep) 0%, var(--primary) 55%, var(--electric) 100%);
  color: #fff; text-align: center;
}
.final-cta .orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.final-cta .orb-1 { width: 480px; height: 480px; left: -140px; top: -160px; background: radial-gradient(circle, rgba(124,92,255,.5), transparent 65%); }
.final-cta .orb-2 { width: 420px; height: 420px; right: -120px; bottom: -180px; background: radial-gradient(circle, rgba(245,158,11,.35), transparent 65%); }
.final-cta-inner { position: relative; padding: var(--space-20) var(--space-8); max-width: 760px; margin-inline: auto; }
.final-cta h2 { color: #fff; margin-bottom: var(--space-4); }
.final-cta h2 .serif-accent { color: #FCD34D; }
.final-cta p { color: #D7E3FA; font-size: var(--fs-lead); }
.final-cta .btn-row { justify-content: center; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: var(--space-20); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); padding: var(--space-16) 0 var(--space-10); }
.footer-brand p { color: var(--ink-2); font-size: .94rem; max-width: 300px; }
.footer-kicker { display: block; font-size: var(--fs-tiny); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer ul a { color: var(--ink-2); text-decoration: none; font-size: .94rem; }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  border-top: 1px solid var(--border-soft); padding: var(--space-5) 0;
  font-size: .86rem; color: var(--ink-3);
}
.footer-bottom ul { display: flex; gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.footer-bottom ul a { color: var(--ink-3); text-decoration: none; }
.footer-bottom ul a:hover { color: var(--primary); }

/* ============ 12. Generic templates ============ */
.page-hero { position: relative; overflow: hidden; padding: var(--space-16) 0 var(--space-12); background: linear-gradient(180deg, #EFF4FB 0%, var(--bg) 100%); }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.2rem); margin-bottom: var(--space-4); }
.page-hero .lead { max-width: 640px; }
.breadcrumbs { font-size: .86rem; color: var(--ink-3); margin-bottom: var(--space-5); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }

.entry-header { margin-bottom: var(--space-6); }
.entry-header h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-bottom: var(--space-3); }
.post-meta { color: var(--ink-3); font-size: .9rem; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-8); box-shadow: var(--shadow-xs); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-title { font-size: 1.4rem; margin-bottom: var(--space-2); }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { color: var(--ink-2); }
.page-links { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.page-links a { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: var(--space-2) var(--space-5); text-decoration: none; font-weight: 600; font-size: .92rem; }

.form-field { margin-bottom: var(--space-5); }
.form-field label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field input[type="number"], .form-field select, .form-field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--electric); outline: 2px solid rgba(46,107,255,.25); outline-offset: 1px; }

/* Calculators (markup lives in the page editor; JS hooks on data attributes) */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-md); }
.calc-field { margin-bottom: var(--space-6); }
.calc-field label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.calc-field .field-hint { font-size: var(--fs-small); color: var(--ink-2); margin-top: var(--space-1); }
.calc-input-row { display: flex; gap: var(--space-4); align-items: center; }
.calc input[type="range"] { flex: 1; accent-color: var(--primary); height: 32px; }
.calc input[type="number"], .calc input[type="text"], .calc select {
  padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink);
}
.calc-results { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-5) var(--space-6); margin-top: var(--space-6); }
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.calc-result-row:last-child { border-bottom: 0; }
.calc-result-value { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.calc-result-row.total .calc-result-value { color: var(--success); font-size: 1.6rem; }
.calc-disclaimer { font-size: var(--fs-small); color: var(--ink-2); margin-top: var(--space-4); }

/* ============ 13. Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
/* On small screens the floating cluster becomes a clean vertical stack. */
@media (max-width: 960px) {
  .browser-body { padding: var(--space-4); }
  .hero-browser-wrap { margin-top: var(--space-10); }
}

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

/* ============ Stats band: verifiable counts only ============ */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5); }
.stat-card { text-align: center; padding: var(--space-6) var(--space-4); }
.stat-num {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.4rem); letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--electric) 0%, var(--primary) 75%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { margin-top: var(--space-2); font-size: .92rem; color: var(--ink-2); font-weight: 500; }

/* ============ 14. Responsive ============ */
@media (max-width: 1080px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bcell.tall { grid-row: auto; }
  .bcell.wide { grid-column: span 2; }
  .authority-inner { grid-template-columns: 1fr; padding: var(--space-12) var(--space-8); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .price-flag { top: -14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: var(--space-4) 4vw var(--space-6);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: var(--space-3) var(--space-2); }
  .main-nav .sub-menu { position: static; box-shadow: none; border: 0; border-top: 1px solid var(--border-soft); border-radius: 0; padding: var(--space-2) 0 var(--space-2) var(--space-4); }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .steps { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: var(--space-16) 0; }
}
@media (max-width: 640px) {
  .tools-grid, .grid-4 { grid-template-columns: 1fr; }
  .bento-grid, .prob-grid { grid-template-columns: 1fr; }
  .bcell.wide { grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(2.6rem, 1.5rem + 9vw, 3.4rem); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .calc-input-row { flex-direction: column; align-items: stretch; }
  .calc input[type="number"] { width: 100%; }
  .authority-inner { padding: var(--space-10) var(--space-6); }
  .final-cta-inner { padding: var(--space-12) var(--space-6); }
}

/* ============ 15. Approved concept layer (v3) ============
   Cinematic homepage: video hero, floating product UI cards, dark
   marquee, photo bento cell, parallax photo band, photo final CTA.
   Dark treatments are scoped to body.home so interior pages,
   city pages, tools, and calculators stay light. */

/* Amber CTA for use on dark backgrounds. */
.btn-amber {
  background: linear-gradient(135deg, var(--accent), #D97706); color: #1A1206;
  box-shadow: 0 12px 28px -10px rgba(245, 158, 11, .55);
}
.btn-amber:hover { color: #1A1206; background: linear-gradient(135deg, #FBBF24, var(--accent)); box-shadow: var(--shadow-md); }

/* Dark glass header over the cinematic hero (homepage only). */
body.home .site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(6, 12, 24, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
body.home .site-header.is-scrolled { background: rgba(6, 12, 24, .85); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
body.home .site-brand .brand-word { color: #fff; }
body.home .main-nav a { color: rgba(255, 255, 255, .82); }
body.home .main-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
body.home .main-nav .sub-menu { background: #fff; border-color: var(--border); }
body.home .main-nav .sub-menu a { color: var(--ink-2); }
body.home .main-nav .sub-menu a:hover { background: var(--surface-2); color: var(--ink); }
body.home .header-cta .btn-primary {
  background: linear-gradient(135deg, var(--accent), #D97706); color: #1A1206;
  box-shadow: 0 12px 28px -10px rgba(245, 158, 11, .55);
}
body.home .header-cta .btn-primary:hover { color: #1A1206; }
body.home .menu-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Cinematic hero ---------- */
body.home .hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; background: #060C18; color: #fff; padding: 0;
}
.hero-media { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-still { display: none; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,12,24,.62) 0%, rgba(6,12,24,.42) 45%, rgba(6,12,24,.78) 100%);
}
body.home .hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 150px 0 56px; max-width: 920px; margin-inline: auto;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1);
  padding: 9px 18px; border-radius: 999px; margin-bottom: 28px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
body.home .hero h1 { font-size: clamp(2.9rem, 1.6rem + 7.2vw, 5.6rem); line-height: 1.02; max-width: 25ch; margin: 0 auto 24px; text-wrap: balance; }
body.home .hero h1 .grad-text {
  background: linear-gradient(92deg, #7FB0FF, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body.home .hero h1 .serif-accent { color: #fff; }
.hero-sub { font-size: clamp(1.05rem, 1rem + 1vw, 1.3rem); color: rgba(255, 255, 255, .82); max-width: 56ch; margin: 0 auto 38px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Floating product UI cards. */
.hero-cards { position: relative; z-index: 2; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding: 0 4% 90px; }
.ui-card {
  position: relative; background: rgba(255, 255, 255, .97); border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(10, 22, 40, .45);
  padding: 38px 22px 20px; min-width: 290px; max-width: 340px; text-align: left; color: var(--ink);
  animation: floaty 7s ease-in-out infinite;
}
.ui-card:nth-child(2) { animation-delay: -3.5s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.ui-card .tag-illustrative { position: absolute; top: 12px; right: 12px; margin-left: 0; }
.ui-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ui-card-head .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ui-card-head .ico-blue { background: #E3ECFD; color: var(--primary); }
.ui-card-head .ico-green { background: rgba(21, 128, 61, .12); color: var(--success); }
.ui-card-head b { font-size: .92rem; display: block; }
.ui-card-head small { display: block; color: var(--ink-3); font-weight: 500; font-size: .78rem; }
.ui-card .rank-row { font-size: .86rem; }
.call-row { display: flex; gap: 12px; align-items: center; }
.call-ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(21, 128, 61, .12); color: var(--success); display: grid; place-items: center; flex: none; }
.call-row b { font-size: .92rem; display: block; color: var(--ink); }
.call-row small { color: var(--ink-3); font-size: .8rem; }
.call-value { margin-left: auto; text-align: right; }
.call-value b { color: var(--success); font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- Dark capabilities marquee ---------- */
.marquee-band { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 0; }
.marquee-track { gap: 0; }
.marquee-track span {
  gap: 0; padding-right: var(--space-10);
  color: rgba(255, 255, 255, .75); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
}
.marquee-track span::after { margin-left: var(--space-10); background: var(--accent); }

/* ---------- Problem cards ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prob-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.prob-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.prob-card .pico {
  width: 52px; height: 52px; border-radius: 15px; color: var(--accent-deep);
  background: linear-gradient(135deg, #FFE9C7, #FFD08A);
  display: grid; place-items: center; margin-bottom: 22px;
}
.prob-card h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.prob-card p { color: var(--ink-3); line-height: 1.65; font-size: .98rem; }

/* ---------- Parallax photo band ---------- */
.photo-band { position: relative; min-height: 72vh; display: flex; align-items: center; overflow: hidden; background: #060C18; }
.photo-band .bgimg { position: absolute; inset: -12% 0; will-change: transform; }
.photo-band .bgimg img { width: 100%; height: 100%; object-fit: cover; }
.photo-band .bgveil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,12,24,.82) 0%, rgba(6,12,24,.35) 60%, rgba(6,12,24,.15) 100%); }
.photo-band-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.photo-band-content h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.06; margin-bottom: 20px; }
.photo-band-content h2 .serif-accent { color: #FFD9A0; }
.photo-band-content p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; line-height: 1.7; }
.photo-band .eyebrow { color: var(--accent); }
.photo-band .eyebrow::before { background: var(--accent); }

/* ---------- Final CTA: full-bleed photo ---------- */
.final-photo { position: relative; overflow: hidden; background: #060C18; text-align: center; color: #fff; }
.final-photo .bgimg { position: absolute; inset: -12% 0; will-change: transform; }
.final-photo .bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.final-photo .bgveil { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(6,12,24,.25), rgba(6,12,24,.88)); }
.final-photo-inner { position: relative; z-index: 2; padding: var(--space-20) 0; max-width: 760px; margin-inline: auto; }
.final-photo h2 { color: #fff; font-size: clamp(2.4rem, 1.6rem + 4vw, 4.2rem); line-height: 1.04; margin-bottom: 22px; }
.final-photo h2 .grad-text {
  background: linear-gradient(92deg, #7FB0FF, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.final-photo p { color: rgba(255, 255, 255, .8); font-size: 1.15rem; max-width: 52ch; margin: 0 auto 36px; line-height: 1.65; }
.final-photo .btn-row { justify-content: center; }

/* ---------- Concept responsive + motion guards ---------- */
@media (max-width: 860px) {
  body.home .main-nav { background: #0B1426; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  body.home .main-nav a { color: rgba(255, 255, 255, .88); }
  body.home .main-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  body.home .main-nav .sub-menu { border-top-color: rgba(255, 255, 255, .1); }
  .hero-video { display: none; }
  .hero-still { display: block; }
  body.home .hero-content { padding-top: 120px; }
  .hero-cards { padding-bottom: 60px; }
  .photo-band { min-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-still { display: block; }
}
/* Must come after the base .prob-grid rule above (source order). */
@media (max-width: 640px) {
  .prob-grid { grid-template-columns: 1fr; }
}
