/* ===== Font Face Declarations ===== */
/* Typography rules: docs/TYPOGRAPHY.md — Geist for UI; Quicksand for .sn-name lockups only. */
@font-face { font-family:"Geist"; font-weight:400; font-style:normal; font-display:swap; src:url("/assets/fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family:"Geist"; font-weight:600; font-style:normal; font-display:swap; src:url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); }
@font-face { font-family:"Geist"; font-weight:700; font-style:normal; font-display:swap; src:url("/assets/fonts/Geist-Bold.woff2") format("woff2"); }
@font-face { font-family:"Quicksand"; font-weight:600; font-display:swap; src:url("/assets/fonts/Quicksand-SemiBold.woff") format("woff"); }
@font-face { font-family:"Quicksand"; font-weight:700; font-display:swap; src:url("/assets/fonts/Quicksand-Bold.woff") format("woff"); }

:root {
    --primary: #09adb7;
    --primary-dark: #07858c;
    --primary-light: #e0f7f8;
    --secondary: #8ed081;
    --text-dark: #222933;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-faint: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 24px rgba(9,173,183,0.08);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-brand: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --topbar-h: 36px;
    --header-h: 60px;
    --trace: #09adb7;
    --measure: #6366f1;
    --quote: #f59e0b;
    --text-gradient-from: #0aacb7;
    --text-gradient-to: #2d4e48;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family:var(--font); font-size:17px; line-height:1.6; color:var(--text-dark); background:var(--bg-white); -webkit-font-smoothing:antialiased; padding-top:calc(var(--topbar-h) + var(--header-h)); }
a { color:var(--primary); text-decoration:none; transition:color .2s; }
a:hover { color:var(--primary-dark); }
img { max-width:100%; height:auto; display:block; }
.container { max-width:1250px; margin:0 auto; padding:0 24px; }

/* ===== ICONS (Lucide) ===== */
/* Icons render as inline <svg class="lucide"> hydrated from <i data-lucide>. */
.lucide { width:1em; height:1em; flex:none; vertical-align:-0.125em; }
.status-dot { flex:none; width:6px; height:6px; border-radius:50%; background:currentColor; }

/* ===== TOP BAR ===== */
.topbar { position:fixed; top:0; left:0; right:0; height:var(--topbar-h); background:var(--text-dark); color:rgba(255,255,255,.8); z-index:1001; display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:600; }
.topbar a { color:#fff; font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.topbar a:hover { color:var(--primary-light); }
.topbar-close { position:absolute; right:16px; top:50%; transform:translateY(-50%); background:none; border:none; color:rgba(255,255,255,.5); cursor:pointer; font-size:14px; padding:4px; }
.topbar-close:hover { color:#fff; }
body.topbar-hidden { padding-top:var(--header-h); }
body.topbar-hidden .topbar { display:none; }
body.topbar-hidden .header-row { top:0; }
body.topbar-hidden .site-header { top:0; }

/* ===== HEADER ===== */
.header-row { position:fixed; top:var(--topbar-h); left:0; right:0; height:var(--header-h); z-index:1000; border-bottom:1px solid var(--border); background:rgba(255,255,255,.88); backdrop-filter:blur(12px) saturate(180%); -webkit-backdrop-filter:blur(12px) saturate(180%); }
.header-row.scrolled { box-shadow:var(--shadow-sm); }
.header-row-inner { position:relative; display:flex; align-items:center; justify-content:space-between; height:100%; width:100%; max-width:1250px; margin:0 auto; padding:0 24px 0 13px; }
/* Legacy alias: older pages may still reference .site-header */
.site-header { position:fixed; top:var(--topbar-h); left:0; right:0; height:var(--header-h); background:rgba(255,255,255,.94); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid var(--border); z-index:1000; display:flex; align-items:center; }
.site-header.scrolled { box-shadow:var(--shadow-sm); }
.hdr { display:flex; align-items:center; justify-content:space-between; height:100%; width:100%; max-width:1250px; margin:0 auto; padding:0 24px 0 13px; }
.hdr-logo { display:flex; align-items:center; flex-shrink:0; }
.hdr-logo img { height:36px; }
.nav-menu { display:flex; align-items:center; gap:10px; list-style:none; flex:1; justify-content:center; }
.nav-menu > li > a { display:flex; align-items:center; gap:4px; padding:7px 12px; border-radius:var(--radius-sm); font-size:15.5px; font-weight:600; color:var(--text-medium); transition:all .15s; }
.nav-menu > li > a:hover, .nav-menu > li > a.active { color:var(--text-dark); background:var(--bg-gray); }
.nav-menu > li > a .chev { width:14px; height:14px; flex-shrink:0; transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1); }
/* Dropdown: HOVER based */
.dropdown { position:relative; }
.dd-panel { display:none; position:absolute; top:100%; left:50%; transform:translateX(-50%); background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:12px; min-width:380px; z-index:100; padding-top:16px; }
.dd-panel::before { content:''; position:absolute; top:-12px; left:0; right:0; height:16px; }
.dropdown:hover .dd-panel { display:block; }
@media (hover:hover) {
    .dropdown:hover > a .chev { transform:rotate(180deg); }
}
/* Product brand lockup (subnav, dropdown, cards) */
.sn-brand { display:flex; align-items:center; gap:10px; text-decoration:none; transition:all .2s; flex-shrink:0; }
a.sn-brand { margin-left:-3px; }
a.sn-brand:hover { transform:translateY(-1px); }
.sn-icon { width:32px; height:32px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:14px; color:#fff; flex-shrink:0; }
.sn-brand.trace-brand .sn-icon { background:linear-gradient(135deg,var(--primary) 0%,#07959e 100%); box-shadow:0 2px 8px rgba(9,173,183,.3); }
.sn-brand.measure-brand .sn-icon { background:linear-gradient(135deg,var(--measure) 0%,#4f46e5 100%); box-shadow:0 2px 8px rgba(99,102,241,.3); }
.sn-brand.quote-brand .sn-icon { background:linear-gradient(135deg,var(--quote) 0%,#d97706 100%); box-shadow:0 2px 8px rgba(245,158,11,.3); }
.sn-name { font-family:var(--font-brand); font-size:18px; font-weight:700; letter-spacing:-.3px; color:#212933; } /* Quicksand product wordmark; see docs/TYPOGRAPHY.md */
.sn-name::after { content:'.'; }
.sn-brand.trace-brand .sn-name::after { color:var(--trace); }
.sn-brand.measure-brand .sn-name::after { color:var(--measure); }
.sn-brand.quote-brand .sn-name::after { color:var(--quote); }

.dd-item { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:12px; border-radius:var(--radius-md); transition:background .15s; color:var(--text-dark); cursor:pointer; }
.dd-item:hover { background:var(--bg-light); }
.dd-item .sn-brand { margin-left:0; }
.dd-item p { font-size:12.5px; color:var(--text-light); line-height:1.35; margin:0; }
.dd-item--all { flex-direction:row; align-items:flex-start; gap:12px; border-top:1px solid var(--border); margin-top:4px; padding-top:12px; }
.dd-icon { width:36px; height:36px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; font-size:14px; color:#fff; flex-shrink:0; }
.dd-icon--all { background:var(--bg-gray); color:var(--text-medium); }
.dd-item--all h4 { font-size:13.5px; font-weight:700; margin-bottom:1px; }
.hdr-right { display:flex; align-items:center; gap:8px; }
#site-nav { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.menu-toggle { display:none; background:none; border:none; cursor:pointer; width:44px; height:44px; padding:0; position:relative; flex-shrink:0; z-index:1002; color:var(--text-dark); align-items:center; justify-content:center; }
.menu-toggle-icons { position:relative; width:22px; height:22px; display:block; }
.menu-toggle-icon { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; transition:opacity 220ms ease; }
.menu-toggle-icon .lucide { width:22px; height:22px; }
.menu-toggle:not(.active) .menu-toggle-icon--close { opacity:0; pointer-events:none; }
.menu-toggle:not(.active) .menu-toggle-icon--menu { opacity:1; }
.menu-toggle.active .menu-toggle-icon--menu { opacity:0; pointer-events:none; }
.menu-toggle.active .menu-toggle-icon--close { opacity:1; }
.mobile-nav-backdrop { display:none; }
.btn-login { padding:6px 14px; font-size:13px; font-weight:600; color:var(--text-medium); border:1px solid var(--border); border-radius:var(--radius-sm); background:transparent; cursor:pointer; font-family:var(--font); transition:all .15s; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; line-height:1.2; white-space:nowrap; }
.btn-login:hover { color:var(--text-dark); border-color:var(--text-light); }
.nav-login-mobile { display:none; }
.btn-sm { padding:6px 16px; font-size:13px; font-weight:600; color:#fff; background:var(--primary); border-radius:var(--radius-sm); border:none; cursor:pointer; font-family:var(--font); transition:all .15s; text-decoration:none; display:inline-block; }
.btn-sm:hover { background:var(--primary-dark); color:#fff; }

/* ===== PRODUCT SUBNAV — full page width, glass bar ===== */
.subnav { display:none; position:sticky; top:calc(var(--topbar-h) + var(--header-h)); left:0; right:0; z-index:998; background:rgba(255,255,255,.75); backdrop-filter:blur(20px) saturate(180%); -webkit-backdrop-filter:blur(20px) saturate(180%); border-bottom:1px solid rgba(0,0,0,.06); box-shadow:0 2px 12px rgba(0,0,0,.04); transition:box-shadow .3s; }
body.topbar-hidden .subnav { top:var(--header-h); }
.subnav.visible { display:block; }
.subnav:hover { box-shadow:0 4px 20px rgba(0,0,0,.07); }
.sn-pill { max-width:1250px; width:100%; margin:0 auto; padding:0 24px; height:56px; display:flex; align-items:center; justify-content:space-between; }
.sn-links { display:flex; list-style:none; gap:4px; align-items:center; }
.sn-links a { display:flex; align-items:center; padding:8px 16px; border-radius:20px; font-size:14px; font-weight:600; color:var(--text-light); text-decoration:none; transition:all .2s; position:relative; line-height:1.2; }
.sn-links a::after { content:''; position:absolute; bottom:0; left:16px; right:16px; height:2px; background:var(--primary); transform:scaleX(0); transition:transform .2s; }
.sn-links a:hover { color:var(--primary); }
.sn-links a:hover::after, .sn-links a.active::after { transform:scaleX(1); }
.sn-links a.active { color:var(--primary-dark); font-weight:700; }
.sn-cta { flex-shrink:0; transition:opacity .25s, transform .25s; }
.sn-cta.hidden { opacity:0; transform:scale(.9); pointer-events:none; }
.sn-cta-btn { display:flex; align-items:center; gap:6px; padding:10px 18px; font-size:13px; font-weight:600; border-radius:20px; background:linear-gradient(135deg,var(--primary) 0%,#07959e 100%); color:#fff; border:none; box-shadow:0 2px 8px rgba(9,173,183,.3); transition:all .2s; cursor:pointer; font-family:var(--font); text-decoration:none; }
.sn-cta-btn:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(9,173,183,.4); color:#fff; }

/* ===== PAGE SYSTEM ===== */



/* ===== HERO — visually distinct with blur effects & grid ===== */
.hero { position:relative; display:flex; align-items:center; overflow:clip; padding:100px 0 80px; }
.hero-bg { position:absolute; inset:0; z-index:0; }
.hero-gradient { position:absolute; inset:0; background:linear-gradient(135deg, #fafbfc 0%, #f3f4f6 50%, #e8f4f5 100%); }
.hero-blur { position:absolute; border-radius:50%; filter:blur(120px); opacity:.5; }
.hero-blur-1 { top:-10%; right:-5%; width:500px; height:500px; background:linear-gradient(135deg, rgba(9,173,183,.25) 0%, rgba(142,208,129,.15) 100%); }
.hero-blur-2 { bottom:-15%; left:-10%; width:600px; height:600px; background:linear-gradient(135deg, rgba(142,208,129,.2) 0%, rgba(9,173,183,.1) 100%); }
.hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(9,173,183,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(9,173,183,.03) 1px,transparent 1px); background-size:60px 60px; mask-image:linear-gradient(to bottom,transparent,black 20%,black 80%,transparent); -webkit-mask-image:linear-gradient(to bottom,transparent,black 20%,black 80%,transparent); }
.hero-inner { max-width:700px; position:relative; z-index:1; }
.hero h1 { font-size:clamp(40px,6vw,62px); font-weight:700; line-height:1.1; margin-bottom:20px; letter-spacing:-.02em; }
.hero-accent { color:var(--primary-dark); }
.hero .lead { font-size:clamp(16px,1.9vw,19px); color:var(--text-medium); line-height:1.7; margin-bottom:32px; max-width:580px; }
.hero-btns { display:flex; gap:10px; flex-wrap:wrap; }
.btn-hero { display:inline-flex; align-items:center; gap:8px; padding:14px 28px; font-size:15px; font-weight:600; background:var(--primary); color:#fff; border-radius:var(--radius-md); border:none; cursor:pointer; font-family:var(--font); transition:all .2s; text-decoration:none; box-shadow:var(--shadow-glow); }
.btn-hero:hover { background:var(--primary-dark); color:#fff; transform:translateY(-1px); }
.btn-outline { display:inline-flex; align-items:center; gap:8px; padding:14px 28px; font-size:15px; font-weight:600; background:rgba(255,255,255,.6); color:var(--text-dark); border-radius:var(--radius-md); border:1.5px solid var(--border); cursor:pointer; font-family:var(--font); transition:all .15s; text-decoration:none; backdrop-filter:blur(8px); }
.btn-outline:hover { border-color:var(--primary); color:var(--primary); }

/* ===== PRODUCT HERO — also distinct per product ===== */
.phero { position:relative; display:flex; align-items:center; overflow:clip; padding:88px 0 72px; }
.phero .hero-bg { position:absolute; inset:0; z-index:0; }
.phero.trace-bg .hero-gradient { background:linear-gradient(135deg, #fafbfc 0%, #e8f4f5 50%, #e0f7f8 100%); }
.phero.trace-bg .hero-blur-1 { background:radial-gradient(circle, rgba(9,173,183,.3) 0%, transparent 70%); }
.phero.trace-bg .hero-blur-2 { background:radial-gradient(circle, rgba(142,208,129,.2) 0%, transparent 70%); }
.phero.measure-bg .hero-gradient { background:linear-gradient(135deg, #fafbfc 0%, #eef0ff 50%, #ede9fe 100%); }
.phero.measure-bg .hero-blur-1 { background:radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%); }
.phero.measure-bg .hero-blur-2 { background:radial-gradient(circle, rgba(139,92,246,.15) 0%, transparent 70%); }
.phero.quote-bg .hero-gradient { background:linear-gradient(135deg, #fafbfc 0%, #fff8e8 50%, #fef3c7 100%); }
.phero.quote-bg .hero-blur-1 { background:radial-gradient(circle, rgba(245,158,11,.25) 0%, transparent 70%); }
.phero.quote-bg .hero-blur-2 { background:radial-gradient(circle, rgba(217,119,6,.15) 0%, transparent 70%); }
.phero-inner { max-width:640px; position:relative; z-index:1; }
.phero-badge { display:inline-flex; align-items:center; font-size:13px; font-weight:700; padding:7px 12px 7px 14px; border-radius:100px; margin-bottom:20px; border:1px solid; }
.phero-badge:not(:has(.phero-badge-name)) { gap:8px; }
.phero-badge-name { display:inline-flex; align-items:center; gap:8px; }
.phero-badge-sep { width:1px; height:14px; background:currentColor; opacity:.22; margin:0 10px; flex-shrink:0; }
.phero-badge-stage { font-size:11px; font-weight:600; letter-spacing:.01em; opacity:.92; white-space:nowrap; }
.phero-meta .phero-badge { margin-bottom:0; }
.phero-meta { margin-bottom:18px; }
.phero-badge.trace { background:rgba(9,173,183,.08); border-color:rgba(9,173,183,.2); color:var(--trace); }
.phero-badge.measure { background:rgba(99,102,241,.08); border-color:rgba(99,102,241,.2); color:var(--measure); }
.phero-badge.quote { background:rgba(245,158,11,.08); border-color:rgba(245,158,11,.2); color:#b45309; }
.phero h1 { font-size:clamp(36px,5vw,50px); font-weight:700; line-height:1.15; margin-bottom:16px; letter-spacing:-.02em; text-wrap:balance; }
.phero .lead { font-size:15px; color:var(--text-dark); line-height:1.7; margin-bottom:28px; max-width:540px; }
.hero-note { font-size:14px; color:var(--text-medium); margin-top:14px; max-width:480px; line-height:1.55; }

/* Split product hero */
.phero-split { padding:72px 0 64px; }
.phero-split-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; align-items:center; position:relative; z-index:1; }
.phero-visual { margin:0; padding:20px 20px 14px; background:linear-gradient(180deg,var(--bg-light) 0%,#eef6f7 100%); border-radius:var(--radius-xl); border:none; box-shadow:none; }
.phero-visual img { width:100%; height:auto; display:block; border-radius:var(--radius-md); }
.phero-caption { padding:0; margin-top:12px; font-size:14px; color:var(--text-dark); line-height:1.55; background:transparent; border:none; }

/* Trace page story sections */
.trace-section { padding:80px 0; }
.story-compare { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.story-pane { padding:28px 24px; border-radius:var(--radius-xl); border:1px solid var(--border); background:var(--bg-white); }
.story-pane h3 { font-size:18px; font-weight:700; margin-bottom:14px; }
.story-pane--before { background:var(--bg-light); }
.story-pane--after { border-color:rgba(9,173,183,.25); background:linear-gradient(180deg, #f8fdfd 0%, var(--bg-white) 100%); }
.story-list { list-style:none; }
.story-list li { position:relative; padding:8px 0 8px 18px; font-size:14px; color:var(--text-medium); line-height:1.6; border-bottom:1px solid var(--border); }
.story-list li:last-child { border-bottom:none; }
.story-list li::before { content:''; position:absolute; left:0; top:15px; width:6px; height:6px; border-radius:50%; background:var(--text-faint); }
.story-pane--after .story-list li::before { background:var(--trace); }
.story-flow { display:flex; flex-direction:column; gap:32px; }
.story-step { display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:center; padding-bottom:32px; border-bottom:1px solid var(--border); }
.story-step:last-child { padding-bottom:0; border-bottom:none; }
.story-step-head { display:flex; gap:16px; align-items:flex-start; }
.story-step-num { flex-shrink:0; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--primary-light); color:var(--primary-dark); font-size:15px; font-weight:700; }
.story-step-head h3 { font-size:20px; font-weight:700; margin-bottom:6px; }
.story-step-head p { font-size:14px; color:var(--text-medium); line-height:1.65; }
.story-step-visual { border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:var(--bg-white); min-height:220px; }
.story-step-visual img { width:100%; height:auto; display:block; }
.story-footnote { margin-top:28px; font-size:15px; color:var(--text-light); line-height:1.65; }

/* Trace screenshot frame (hero, showcase, moments) */
.trace-shot-frame { margin:0; padding:20px 20px 14px; background:linear-gradient(180deg,var(--bg-light) 0%,#eef6f7 100%); border-radius:var(--radius-xl); border:none; box-shadow:none; }
.trace-shot-frame img { width:100%; height:auto; display:block; border-radius:var(--radius-md); }
.trace-shot-frame figcaption { margin-top:8px; padding:0; font-size:14px; color:var(--text-dark); line-height:1.55; background:transparent; border:none; min-height:0; }

/* Trace product screenshot showcase */
.trace-showcase { display:grid; grid-template-columns:minmax(200px,232px) minmax(0,1fr); border:1px solid var(--border); border-radius:var(--radius-xl); overflow:hidden; background:var(--bg-white); box-shadow:0 1px 3px rgba(0,0,0,.05); }
.trace-showcase-nav { display:flex; flex-direction:column; gap:4px; padding:14px 10px; background:var(--bg-light); border-right:1px solid var(--border); }
.trace-showcase-tab { display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%; padding:12px 14px; border:none; border-radius:var(--radius-md); background:transparent; font-family:var(--font); text-align:left; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; transition:background .15s; color:var(--text-medium); }
.trace-showcase-tab:hover { background:rgba(255,255,255,.7); color:var(--text-dark); }
.trace-showcase-tab.is-active { background:var(--bg-white); box-shadow:var(--shadow-sm); color:var(--primary-dark); }
.trace-showcase-tab:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.trace-showcase-tab-title { font-size:14px; font-weight:700; line-height:1.3; }
.trace-showcase-tab-desc { font-size:12.5px; color:var(--text-light); line-height:1.45; }
.trace-showcase-tab.is-active .trace-showcase-tab-desc { color:var(--text-medium); }
.trace-showcase-panels { min-width:0; }
.trace-showcase-stage { display:none; padding:20px; gap:20px; }
.trace-showcase-stage.is-active { display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:"visual" "copy" "thumbs"; }
.trace-showcase-visual { grid-area:visual; margin:0; padding:16px 16px 10px; border:none; border-radius:var(--radius-lg); overflow:visible; background:linear-gradient(180deg,var(--bg-light) 0%,#eef6f7 100%); }
.trace-showcase-visual img { width:100%; height:auto; display:block; border-radius:var(--radius-md); }
.trace-showcase-visual figcaption { padding:6px 2px 0; font-size:14px; color:var(--text-dark); line-height:1.55; background:transparent; border:none; min-height:0; }
.trace-showcase-copy { grid-area:copy; }
.trace-showcase-copy h3 { font-size:22px; font-weight:700; margin-bottom:10px; }
.trace-showcase-copy p { font-size:15px; color:var(--text-medium); line-height:1.7; margin-bottom:16px; }
.trace-showcase-points { list-style:none; }
.trace-showcase-points li { position:relative; padding:7px 0 7px 16px; font-size:14.5px; color:var(--text-medium); line-height:1.6; }
.trace-showcase-points li::before { content:''; position:absolute; left:0; top:13px; width:6px; height:6px; border-radius:50%; background:var(--trace); }
.trace-showcase-thumbs { grid-area:thumbs; display:flex; gap:12px; overflow-x:auto; padding:4px 0 6px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
.trace-shot { flex:0 0 120px; scroll-snap-align:start; padding:4px; border:2px solid transparent; border-radius:var(--radius-md); overflow:hidden; background:var(--bg-light); cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; transition:background .15s, border-color .15s; }
.trace-shot img { width:100%; height:76px; object-fit:cover; object-position:top center; display:block; border-radius:4px; pointer-events:none; user-select:none; -webkit-user-drag:none; }
.trace-shot:hover { background:#e8f4f5; }
.trace-shot.is-active { background:var(--primary-light); border-color:var(--trace); }
.trace-shot:focus-visible { outline:none; border-color:var(--primary); }

.gallery-fade-target { transition:opacity 0.35s ease-out; }
.gallery-fade-target.is-fading { opacity:0; }

/* Inline gallery carousel */
.has-gallery-carousel {
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    align-self:start;
    width:100%;
}
.trace-gallery-carousel__viewport {
    overflow:hidden;
    width:100%;
    flex:0 0 auto;
    touch-action:pan-y pinch-zoom;
    cursor:grab;
}
.has-gallery-carousel.is-gallery-swiping .trace-gallery-carousel__viewport {
    touch-action:none;
    cursor:grabbing;
}
.trace-gallery-carousel__track {
    display:flex;
    width:100%;
    will-change:transform;
}
.trace-gallery-carousel__slide {
    flex:0 0 100%;
    width:100%;
}
.trace-gallery-carousel__img {
    width:100%;
    height:auto;
    display:block;
    border-radius:var(--radius-md);
    user-select:none;
    -webkit-user-drag:none;
}
.trace-gallery-dots {
    display:none;
    flex:0 0 auto;
    justify-content:center;
    align-items:center;
    gap:6px;
    padding:8px 2px 2px;
}
.trace-gallery-dot {
    width:6px;
    height:6px;
    padding:0;
    border:1px solid rgba(9,92,99,.28);
    border-radius:50%;
    background:rgba(9,92,99,.12);
    cursor:pointer;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
    transition:background .15s, border-color .15s, transform .15s;
}
.trace-gallery-dot:hover { border-color:rgba(9,92,99,.45); background:rgba(9,92,99,.22); }
.trace-gallery-dot.is-active { background:var(--trace); border-color:var(--trace); transform:scale(1.15); }
.trace-gallery-dot:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.page-quote .trace-gallery-dot.is-active { background:var(--quote); border-color:var(--quote); }

/* Trace scroll moments (below showcase) */
.trace-moments { padding-top:0; }
.trace-moment { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; padding:56px 0; border-bottom:1px solid var(--border); }
.trace-moment:last-child { padding-bottom:0; border-bottom:none; }
.trace-moment--reverse .trace-moment-copy { order:2; }
.trace-moment--reverse .trace-shot-frame { order:1; }
.trace-moment-copy h3 { font-size:24px; font-weight:700; line-height:1.25; margin-bottom:12px; }
.trace-moment-copy > p { font-size:15px; color:var(--text-medium); line-height:1.7; margin-bottom:16px; }
.trace-moment-points { list-style:none; }
.trace-moment-points li { position:relative; padding:7px 0 7px 16px; font-size:14.5px; color:var(--text-medium); line-height:1.6; }
.trace-moment-points li::before { content:''; position:absolute; left:0; top:13px; width:6px; height:6px; border-radius:50%; background:var(--trace); }
.trace-moment-visual { min-width:0; }
.trace-moment-thumbs { display:flex; gap:12px; overflow-x:auto; margin-top:14px; padding:4px 0 6px; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }

/* Trace AI section */
.trace-ai-section .section-label { color:var(--primary-dark); }
.trace-ai-section .section-label .lucide { width:14px; height:14px; }
.trace-ai-bundles { display:flex; flex-wrap:wrap; gap:10px; margin:-28px 0 12px; }
.trace-ai-bundle { font-size:13.5px; line-height:1.45; padding:8px 14px; border-radius:20px; background:var(--bg-white); border:1px solid var(--border); color:var(--text-medium); }
.trace-ai-bundle strong { color:var(--text-dark); font-weight:700; }
.trace-ai-section .trace-moment:first-of-type { padding-top:40px; }
.trace-ai-section .story-footnote { margin-top:8px; }

/* Quieter Trace landing page */
.page-trace .hero-blur { opacity:.22; filter:blur(90px); }
.page-trace.trace-bg .hero-gradient { background:linear-gradient(135deg,#fafbfc 0%,#f4fafa 55%,#f8faf9 100%); }
.page-trace .hero-grid { opacity:.35; }
.page-trace .subnav { background:var(--bg-white); backdrop-filter:none; -webkit-backdrop-filter:none; }
.page-trace .story-pane--after { border-color:var(--border); background:var(--bg-white); box-shadow:none; }
.page-trace .sn-cta-btn { background:var(--primary-dark); box-shadow:none; }
.page-trace .sn-cta-btn:hover { background:#066b72; box-shadow:none; transform:none; }

@media(min-width:900px) {
    .trace-showcase-stage.is-active { grid-template-columns:minmax(0,1fr) 280px; grid-template-areas:"visual copy" "thumbs thumbs"; padding:24px; gap:24px; }
    .trace-shot { flex-basis:132px; }
    .trace-shot img { height:84px; }
}

@media(max-width:768px) {
    .trace-showcase { grid-template-columns:1fr; }
    .trace-showcase-nav { flex-direction:row; overflow-x:auto; border-right:none; border-bottom:1px solid var(--border); padding:10px; gap:8px; scroll-snap-type:x proximity; }
    .trace-showcase-tab { flex:0 0 auto; min-width:132px; scroll-snap-align:start; }
    .trace-showcase-tab-desc { display:block; font-size:11px; line-height:1.35; }
    .trace-showcase-stage { padding:16px; }
    .trace-showcase-thumbs,
    .trace-moment-thumbs { display:none; }
    .trace-gallery-dots { display:flex; padding:10px 2px 0; }
    .has-gallery-carousel figcaption,
    .has-gallery-carousel [data-trace-caption],
    .has-gallery-carousel [data-trace-moment-caption] {
        flex:0 0 auto;
        margin-top:8px;
        padding-top:0;
    }
    .trace-showcase-visual.has-gallery-carousel { padding-bottom:12px; }
    .trace-shot-frame.has-gallery-carousel { padding-bottom:12px; }
    .trace-moment { grid-template-columns:1fr; gap:24px; padding:40px 0; }
    .trace-moment--reverse .trace-moment-copy,
    .trace-moment--reverse .trace-shot-frame { order:unset; }
    .trace-ai-bundles { margin:-16px 0 8px; }
}

@media(prefers-reduced-motion:reduce) {
    .trace-showcase-tab, .trace-shot { transition:none; }
    .gallery-fade-target { transition:none; }
    .trace-gallery-carousel__track { transition:none !important; }
    .home-hero-panel { transition:none; }
    .home-hero-panel:hover { transform:none; }
}

/* Trace pricing preview state */
.trace-pricing-preview .ap-trial-badge { display:none; }
.trace-pricing-preview .ap-cta.is-primary { pointer-events:auto; }
.pricing-soon-banner { margin:0 auto 28px; max-width:720px; padding:16px 20px; border-radius:var(--radius-lg); border:1px solid rgba(9,173,183,.25); background:var(--primary-light); color:var(--text-dark); font-size:14px; line-height:1.6; text-align:center; }
.pricing-soon-banner strong { color:var(--primary-dark); }

/* ===== SECTION ===== */
.section { padding:140px 0; }
.section-alt { background:var(--bg-light); }
.section-label { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:.4px; margin-bottom:14px; }
.section-title { font-size:38px; font-weight:700; line-height:1.2; margin-bottom:20px; }
.section-desc { font-size:16px; color:var(--text-medium); max-width:560px; margin-bottom:52px; line-height:1.7; }

/* ===== PRODUCT GRID (flexible) ===== */
.products-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:20px; }
.pcard { background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius-xl); padding:28px 24px; transition:all .25s; position:relative; overflow:hidden; cursor:pointer; }
a.pcard { color:inherit; text-decoration:none; display:block; }
.pcard:hover { border-color:transparent; box-shadow:0 6px 20px rgba(0,0,0,.06); transform:translateY(-3px); }
.pcard-bar { position:absolute; top:0; left:0; right:0; height:3px; }
.pcard .sn-brand { margin-bottom:16px; }
.pcard h4.tagline { font-size:16px; font-weight:600; color:var(--text-light); margin-bottom:14px; }
.pcard .body { font-size:13.5px; color:var(--text-medium); line-height:1.65; margin-bottom:16px; }
.pcard ul { list-style:none; margin-bottom:18px; }
.pcard li { display:flex; align-items:flex-start; gap:7px; font-size:12.5px; color:var(--text-medium); padding:3px 0; }
.pcard li .lucide { color:var(--primary); margin-top:3px; font-size:12px; }
.status { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:3px 9px; border-radius:16px; }
.status-live { background:#ecfdf5; color:#059669; }
.status-dev { background:#fef3c7; color:#d97706; }
.pcard-link { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:600; color:var(--primary); margin-top:6px; }
.pcard-link .lucide { font-size:13px; transition:transform .15s; }
.pcard-link:hover .lucide { transform:translateX(3px); }

/* ===== HOW IT WORKS ===== */
.how-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
.how-step { text-align:center; padding:28px; }
.how-num { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--primary-light); color:var(--primary); font-size:15px; font-weight:700; margin-bottom:14px; }
.how-step h4 { font-size:15px; font-weight:700; margin-bottom:6px; }
.how-step .how-title { font-size:17px; font-weight:700; margin-bottom:8px; line-height:1.3; }
.how-step p { font-size:13.5px; color:var(--text-medium); line-height:1.6; }

/* Product cards with screenshots */
.pcard-tagline { font-size:15px; font-weight:600; color:var(--text-medium); margin-bottom:12px; line-height:1.5; }
.pcard-points { list-style:none; margin-bottom:16px; }
.pcard-points li { display:flex; align-items:flex-start; gap:7px; font-size:14px; color:var(--text-medium); padding:4px 0; line-height:1.55; }
.pcard-points li .lucide { color:var(--primary); margin-top:3px; font-size:12px; flex-shrink:0; }
.pcard-visual { display:flex; flex-direction:column; }
.pcard-shot { margin:0 0 16px; padding:10px; background:var(--bg-light); border-radius:var(--radius-md); overflow:hidden; }
.pcard-shot img { width:100%; height:auto; border-radius:4px; }
.pcard-visual .pcard-link { margin-top:8px; }
.products-grid-visual { grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); }

/* Homepage (waitlist landing) */
.page-home .hero-home-platform { padding:80px 0 56px; }
.page-home .hero-home-platform .hero-gradient { background:linear-gradient(180deg,#fafbfc 0%,#f8fafb 55%,#fff 100%); }
.page-home .hero-home-platform .hero-blur,
.page-home .hero-home-platform .hero-grid { display:none; }
.hero-home-inner { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; text-align:center; gap:48px; }
.hero-home-copy { max-width:680px; }
.hero-home-copy .lead { margin-left:auto; margin-right:auto; }
.hero-home-copy .hero-btns { justify-content:center; }
.hero-home-copy .hero-note { margin-left:auto; margin-right:auto; }
.home-hero-kicker { font-size:14px; font-weight:600; color:var(--primary-dark); margin:0 0 14px; line-height:1.4; }
.home-hero-lanes { position:absolute; inset:0; display:flex; pointer-events:none; }
.home-hero-lane { flex:1; }
.home-hero-lane--trace { background:linear-gradient(180deg,rgba(9,173,183,.07) 0%,transparent 72%); }
.home-hero-lane--measure { background:linear-gradient(180deg,rgba(99,102,241,.06) 0%,transparent 72%); }
.home-hero-lane--quote { background:linear-gradient(180deg,rgba(245,158,11,.06) 0%,transparent 72%); }
.home-hero-trio { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; width:100%; max-width:960px; }
.home-hero-panel { display:flex; flex-direction:column; text-align:left; border:1px solid var(--border); border-radius:var(--radius-xl); overflow:hidden; background:var(--bg-white); text-decoration:none; color:inherit; transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.home-hero-panel:hover { box-shadow:0 8px 24px rgba(0,0,0,.06); transform:translateY(-2px); color:inherit; }
.home-hero-panel:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.home-hero-panel-bar { height:3px; flex-shrink:0; }
.home-hero-panel--trace .home-hero-panel-bar { background:var(--trace); }
.home-hero-panel--trace:hover { border-color:rgba(9,173,183,.35); }
.home-hero-panel--measure .home-hero-panel-bar { background:var(--measure); }
.home-hero-panel--measure:hover { border-color:rgba(99,102,241,.35); }
.home-hero-panel--quote .home-hero-panel-bar { background:var(--quote); }
.home-hero-panel--quote:hover { border-color:rgba(245,158,11,.4); }
.home-hero-panel figure { margin:0; padding:12px 12px 0; background:var(--bg-light); }
.home-hero-panel img { width:100%; height:auto; display:block; border-radius:4px; aspect-ratio:16/10; object-fit:cover; object-position:top center; }
.home-hero-panel-meta { padding:12px 14px 14px; }
.home-hero-panel .sn-brand { margin:0 0 4px; }
.home-hero-panel .sn-name { font-size:16px; }
.home-hero-panel-hook { display:block; font-size:13px; color:var(--text-medium); line-height:1.45; }
.page-home .section-label { text-transform:none; letter-spacing:0; font-size:13.5px; font-weight:600; color:var(--primary-dark); }
.page-home .section-label .lucide { width:14px; height:14px; }
.page-home .home-section { padding:96px 0; }
.page-home .section-desc { font-size:16px; max-width:600px; }
.page-home .btn-sm { background:var(--primary-dark); }
.home-trusted { padding:28px 0 36px; border-bottom:1px solid var(--border); background:var(--bg-white); }
.home-trusted-inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:20px 32px; }
.home-trusted-label { font-size:14px; font-weight:600; color:var(--text-medium); margin:0; text-align:center; }
.home-trusted-logos { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:28px 36px; list-style:none; margin:0; padding:0; }
.home-trusted-logos img { width:auto; max-height:48px; opacity:.9; filter:grayscale(10%); transition:opacity .2s ease, filter .2s ease; }
.home-trusted-logos a:hover img, .home-trusted-logos img:hover { opacity:1; filter:none; }
.page-home .cta-note { margin-top:14px; font-size:14px; color:var(--text-light); line-height:1.6; }
.page-home .cta-note a { font-weight:600; }

/* Planned pricing page (pre-launch) */
.page-pricing-preview .hero-pricing-preview .hero-blur,
.page-pricing-preview .hero-pricing-preview .hero-grid { display:none; }
.page-pricing-preview .hero-pricing-preview .hero-gradient { background:linear-gradient(135deg,#fafbfc 0%,#f6f8f9 100%); }
.page-pricing-preview .hero-accent { color:var(--primary-dark); }
.page-pricing-preview .section-label { text-transform:none; letter-spacing:0; font-size:13.5px; font-weight:600; color:var(--primary-dark); }
.page-pricing-preview .section-label .lucide { width:14px; height:14px; }

/* ===== ABOUT BRIEF ===== */
.page-about .section-label { text-transform:none; letter-spacing:0; font-size:13.5px; font-weight:600; color:var(--primary-dark); }
.page-about .section-label .lucide { width:14px; height:14px; }
.about-split { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:48px; align-items:center; }
.about-split--reverse { grid-template-columns:auto minmax(0,1fr); }
.about-split > img { max-width:400px; max-height:400px; width:auto; height:auto; border-radius:var(--radius-lg); flex-shrink:0; box-shadow:0 4px 20px rgba(34,41,51,.08), 0 12px 40px rgba(34,41,51,.06); }
.about-photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:48px; }
.about-photo-grid figure { margin:0; }
.about-photo-grid img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius-lg); box-shadow:0 4px 20px rgba(34,41,51,.08), 0 12px 40px rgba(34,41,51,.06); }
.about-photo-grid figcaption { margin-top:10px; font-size:13.5px; font-weight:600; color:var(--text-medium); text-align:center; }
.about-text { max-width:640px; }
.about-split .about-text { max-width:none; }
.about-text p { font-size:17px; color:var(--text-medium); line-height:1.75; margin-bottom:14px; }

/* ===== Legal documents ===== */
.legal-doc { max-width:760px; margin:0 auto; }
.legal-doc .legal-meta { font-size:14px; color:var(--text-light); margin-bottom:28px; }
.legal-doc h2 { font-size:22px; font-weight:700; color:var(--text-dark); margin:36px 0 12px; letter-spacing:-.01em; }
.legal-doc h3 { font-size:17px; font-weight:600; color:var(--text-dark); margin:24px 0 8px; }
.legal-doc p,
.legal-doc li { font-size:16px; color:var(--text-medium); line-height:1.75; }
.legal-doc p { margin-bottom:14px; }
.legal-doc ul,
.legal-doc ol { margin:0 0 16px 1.25rem; }
.legal-doc li { margin-bottom:8px; }
.legal-doc a { color:var(--primary-dark); text-decoration:underline; text-underline-offset:2px; }
.legal-doc a:hover { color:var(--primary); }
.legal-doc table { width:100%; border-collapse:collapse; margin:16px 0 20px; font-size:15px; }
.legal-doc th,
.legal-doc td { border:1px solid var(--border); padding:10px 12px; text-align:left; vertical-align:top; }
.legal-doc th { background:var(--bg-light); font-weight:600; color:var(--text-dark); }
.legal-doc .legal-callout { background:var(--bg-light); border:1px solid var(--border); border-radius:var(--radius-md); padding:16px 18px; margin:20px 0; }
.legal-doc .legal-callout p:last-child { margin-bottom:0; }

/* ===== CTA ===== */
.cta { padding:140px 0; background:linear-gradient(135deg,var(--bg-light) 0%,#e0f7f8 100%); }
.cta-inner { text-align:center; max-width:520px; margin:0 auto; }
.cta-inner h2 { font-size:36px; font-weight:700; margin-bottom:10px; }
.cta-inner p { font-size:14px; color:var(--text-medium); margin-bottom:20px; }
.cta-btns { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.cta-note { font-size:12.5px; color:var(--text-light); margin-top:14px; }

/* ===== FEATURES ===== */
.feat-block { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; padding:88px 0; border-bottom:1px solid var(--bg-gray); }
.feat-block:last-child { border-bottom:none; }
.feat-block.reverse { direction:rtl; }
.feat-block.reverse > * { direction:ltr; }
.feat-visual { overflow:hidden; display:flex; align-items:center; justify-content:center; }
.feat-visual img { width:100%; height:auto; display:block; }
.feat-content .feat-badge { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:.3px; margin-bottom:10px; }
.feat-content h3 { font-size:20px; font-weight:700; margin-bottom:10px; }
.feat-content p { font-size:15px; color:var(--text-medium); line-height:1.65; margin-bottom:14px; }
.feat-list { list-style:none; }
.feat-list li { display:flex; align-items:flex-start; gap:7px; font-size:13px; color:var(--text-medium); padding:3px 0; }
.feat-list li .lucide { color:var(--primary); margin-top:2px; font-size:14px; }

/* ===== PRICING ===== */
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.price-card { background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius-xl); padding:28px 24px; position:relative; }
.price-card.featured { border-color:var(--primary); box-shadow:var(--shadow-glow); }
.price-card .plan-badge { position:absolute; top:-10px; left:50%; transform:translateX(-50%); background:var(--primary); color:#fff; font-size:11px; font-weight:700; padding:3px 12px; border-radius:12px; }
.price-card h3 { font-size:18px; font-weight:700; margin-bottom:4px; }
.price-card .plan-desc { font-size:13px; color:var(--text-light); margin-bottom:16px; }
.price-card .price { font-size:32px; font-weight:700; color:var(--text-dark); margin-bottom:4px; }
.price-card .price span { font-size:14px; font-weight:600; color:var(--text-light); }
.price-card .price-note { font-size:12px; color:var(--text-light); margin-bottom:20px; }
.price-card ul { list-style:none; margin-bottom:24px; }
.price-card li { display:flex; align-items:flex-start; gap:7px; font-size:13px; color:var(--text-medium); padding:4px 0; }
.price-card li i { color:var(--primary); margin-top:3px; font-size:10px; }
.price-card .btn-hero, .price-card .btn-outline { width:100%; justify-content:center; }

/* ===== DOCS ===== */
.docs-layout { display:grid; grid-template-columns:220px 1fr; gap:40px; }
.docs-nav { position:sticky; top:calc(var(--header-h) + 24px); }
.docs-nav a { display:flex; align-items:center; gap:8px; padding:8px 12px; font-size:13px; font-weight:600; color:var(--text-light); border-radius:var(--radius-sm); transition:all .15s; margin-bottom:2px; }
.docs-nav a:hover { color:var(--text-dark); background:var(--bg-gray); }
.docs-nav a.active { color:var(--primary); background:var(--primary-light); }
.docs-content h2 { font-size:22px; font-weight:700; margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.docs-content h3 { font-size:17px; font-weight:700; margin:28px 0 10px; }
.docs-content p { font-size:15px; color:var(--text-medium); line-height:1.7; margin-bottom:14px; }
.docs-content ol, .docs-content ul { margin:0 0 16px 20px; font-size:15px; color:var(--text-medium); line-height:1.7; }
.video-embed { position:relative; width:100%; max-width:720px; margin:4px 0 10px; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow-sm); aspect-ratio:16/9; background:var(--bg-gray); }
.video-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-embed-caption { font-size:13.5px; color:var(--text-light); margin:-4px 0 18px; }

/* ===== TWO-MODE CARDS (Quote Dashboard vs Widget) ===== */
.modes-grid { display:grid; grid-template-columns:1fr 1fr; gap:36px; margin-top:40px; }
.mode-card { background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius-xl); padding:32px 28px; position:relative; overflow:hidden; transition:all .25s; }
.mode-card:hover { box-shadow:0 6px 20px rgba(0,0,0,.06); transform:translateY(-2px); }
.mode-card-accent { position:absolute; top:0; left:0; right:0; height:3px; background:var(--quote); }
.mode-card .mode-icon { width:48px; height:48px; border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; background:linear-gradient(135deg,var(--quote) 0%,#d97706 100%); margin-bottom:20px; }
.mode-card h3 { font-size:20px; font-weight:700; margin-bottom:6px; }
.mode-card .mode-for { font-size:13px; font-weight:600; color:var(--quote); margin-bottom:12px; }
.mode-card p { font-size:14px; color:var(--text-medium); line-height:1.65; margin-bottom:16px; }
.mode-card ul { list-style:none; margin-bottom:0; }
.mode-card li { display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--text-medium); padding:4px 0; }
.mode-card li .lucide { color:var(--quote); margin-top:3px; width:14px; height:14px; flex-shrink:0; }
@media(max-width:768px) { .modes-grid { grid-template-columns:1fr; } }

.quote-widget-demo {
    margin-top:8px;
    padding:24px;
    background:var(--bg-white);
    border:1px solid var(--border);
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-sm);
    overflow:hidden;
}
.quote-widget-demo asytra-quote-full { display:block; min-height:480px; }
.quote-viewer-demo {
    margin-top:0;
    padding:0;
    background:transparent;
    border:none;
    border-radius:0;
    box-shadow:none;
    overflow:visible;
}
.quote-viewer-demo asytra-quote-viewer-demo {
    display:block;
}
.page-cad-viewer .cad-viewer-main {
    display:flex;
    flex-direction:column;
    padding-top:0;
    min-height:calc(100vh - var(--topbar-h) - var(--header-h));
}
.page-cad-viewer .cad-viewer-stage {
    position:relative;
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:32px 0 48px;
    overflow:hidden;
}
.page-cad-viewer .cad-viewer-stage-bg {
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;
}
.page-cad-viewer .cad-viewer-gradient {
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, #fafbfc 0%, #f3f4f6 48%, #e8f4f5 100%);
}
.page-cad-viewer .cad-viewer-blur {
    position:absolute;
    border-radius:50%;
    filter:blur(40px);
}
.page-cad-viewer .cad-viewer-blur-1 {
    top:-12%;
    right:-6%;
    width:520px;
    height:520px;
    background:radial-gradient(circle, rgba(9,173,183,.28) 0%, transparent 70%);
}
.page-cad-viewer .cad-viewer-blur-2 {
    bottom:-18%;
    left:-8%;
    width:560px;
    height:560px;
    background:radial-gradient(circle, rgba(142,208,129,.18) 0%, transparent 70%);
}
.page-cad-viewer .cad-viewer-grid {
    position:absolute;
    inset:0;
    background-image:linear-gradient(rgba(9,173,183,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(9,173,183,.03) 1px,transparent 1px);
    background-size:60px 60px;
    mask-image:linear-gradient(to bottom,transparent,black 18%,black 82%,transparent);
    -webkit-mask-image:linear-gradient(to bottom,transparent,black 18%,black 82%,transparent);
}
.page-cad-viewer .cad-viewer-stage-inner {
    position:relative;
    z-index:1;
    width:100%;
    max-width:1480px;
    margin:0 auto;
    padding:0 24px;
}
.page-cad-viewer .cad-viewer-breadcrumbs {
    margin:0 0 12px;
}
.page-cad-viewer .cad-viewer-breadcrumbs ol {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px 8px;
    list-style:none;
    margin:0;
    padding:0;
    font-size:12.5px;
    color:var(--text-faint);
}
.page-cad-viewer .cad-viewer-breadcrumbs li {
    display:inline-flex;
    align-items:center;
    gap:8px;
}
.page-cad-viewer .cad-viewer-breadcrumbs li:not(:last-child)::after {
    content:"/";
    color:var(--text-faint);
    opacity:.7;
}
.page-cad-viewer .cad-viewer-breadcrumbs a {
    color:var(--text-medium);
    font-weight:600;
}
.page-cad-viewer .cad-viewer-breadcrumbs a:hover { color:var(--primary-dark); }
.page-cad-viewer .cad-viewer-breadcrumbs [aria-current="page"] {
    color:var(--text-dark);
    font-weight:600;
}
.page-cad-viewer .cad-viewer-hero {
    margin-bottom:14px;
    border-radius:var(--radius-lg);
    border:1px solid var(--border);
    background:#fff;
    box-shadow:var(--shadow-sm);
}
.page-cad-viewer .cad-viewer-hero-inner {
    padding:18px 20px 16px;
}
.page-cad-viewer .cad-viewer-hero-badge {
    display:inline-flex;
    align-items:center;
    margin-bottom:10px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.02em;
    color:var(--primary-dark);
    text-transform:none;
}
.page-cad-viewer .cad-viewer-hero-title {
    margin:0 0 8px;
    font-size:clamp(22px, 2.8vw, 28px);
    font-weight:800;
    line-height:1.15;
    letter-spacing:-.02em;
    color:var(--text-dark);
}
.page-cad-viewer .cad-viewer-hero-title-accent {
    color:var(--primary-dark);
}
.page-cad-viewer .cad-viewer-hero-desc {
    margin:0 0 12px;
    font-size:15px;
    line-height:1.55;
    color:var(--text-medium);
    max-width:62ch;
}
.page-cad-viewer .cad-viewer-hero-features {
    display:flex;
    flex-wrap:wrap;
    gap:8px 16px;
    margin:0 0 12px;
    padding:0;
    list-style:none;
}
.page-cad-viewer .cad-viewer-hero-features li {
    display:inline-flex;
    align-items:center;
    gap:7px;
    font-size:13px;
    font-weight:600;
    color:var(--text-light);
}
.page-cad-viewer .cad-viewer-hero-features .lucide {
    width:14px;
    height:14px;
    color:var(--primary);
    flex-shrink:0;
}
.page-cad-viewer .cad-viewer-hero-formats {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}
.page-cad-viewer .cad-viewer-hero-format {
    display:inline-flex;
    align-items:center;
    padding:4px 9px;
    border-radius:100px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.03em;
    color:var(--text-medium);
    background:var(--bg-gray);
    border:1px solid var(--border);
}
/* Quote mode: top-aligned scrollable workbench, not vertically centered. */
.page-cad-viewer .cad-viewer-stage:has(asytra-quote-viewer-demo[data-demo-mode="quote"]) {
    justify-content:flex-start;
    padding-top:20px;
}
.page-cad-viewer .cad-viewer-stage-inner:has(asytra-quote-viewer-demo[data-demo-mode="quote"]) {
    max-width:1200px;
}
.page-cad-viewer .cad-viewer-stage-inner:has(asytra-quote-viewer-demo[data-demo-mode="quote"]) .cad-viewer-hero,
.page-cad-viewer .cad-viewer-stage-inner:has(asytra-quote-viewer-demo[data-demo-mode="quote"]) .cad-viewer-breadcrumbs {
    display:none;
}
.page-cad-viewer .quote-viewer-demo {
    margin-top:4px;
}
/* Pre-widget boot skeleton (shown until embed JS mounts) */
.page-cad-viewer {
    --viewer-demo-boot-canvas-height: min(70vh, 820px);
    --viewer-demo-boot-controls-min: 260px;
    --viewer-demo-boot-controls-max: 300px;
}
.page-cad-viewer .quote-viewer-boot {
    margin-top:0;
}
.page-cad-viewer .quote-viewer-demo:has(.asytra-quote-widget) .quote-viewer-boot,
.page-cad-viewer .cad-viewer-stage-inner:has(.quote-widget-demo-consent:not([hidden])) .quote-viewer-boot {
    display:none;
}
.page-cad-viewer .viewer-demo-boot-stage {
    padding:18px;
    border-radius:var(--radius-xl);
    border:1px solid var(--border);
    background:linear-gradient(180deg, #f8fdfd 0%, #fff 100%);
    box-shadow:var(--shadow-sm);
}
.page-cad-viewer .viewer-demo-boot-grid {
    display:grid;
    grid-template-columns:minmax(var(--viewer-demo-boot-controls-min), var(--viewer-demo-boot-controls-max)) minmax(0, 1fr);
    gap:16px;
    align-items:center;
}
.page-cad-viewer .viewer-demo-boot-side {
    display:flex;
    flex-direction:column;
    gap:12px;
}
.page-cad-viewer .viewer-demo-boot-card {
    padding:16px;
    border-radius:var(--radius-md);
    border:1px solid var(--border);
    background:#fff;
    box-shadow:var(--shadow-sm);
}
.page-cad-viewer .viewer-demo-boot-card--viewer {
    padding:0;
    overflow:hidden;
}
.page-cad-viewer .quote-viewer-boot-block {
    border-radius:6px;
    background:linear-gradient(105deg, #f1f5f9 0%, #f1f5f9 38%, #e2e8f0 50%, #f1f5f9 62%, #f1f5f9 100%);
    background-size:220% 100%;
    animation:quote-viewer-boot-shimmer 1.35s ease-in-out infinite;
}
.page-cad-viewer .quote-viewer-boot-block--line { height:14px; }
.page-cad-viewer .quote-viewer-boot-block--upload {
    height:120px;
    border-radius:10px;
    border:2px dashed var(--border);
    background:#f8fafc;
    animation:none;
}
.page-cad-viewer .quote-viewer-boot-block--btn { height:48px; border-radius:8px; }
.page-cad-viewer .quote-viewer-boot-block--toolbar {
    height:44px;
    border-radius:0;
    animation:quote-viewer-boot-shimmer 1.35s ease-in-out infinite;
}
.page-cad-viewer .quote-viewer-boot-block--canvas {
    height:var(--viewer-demo-boot-canvas-height);
    min-height:360px;
    border-radius:0;
}
@keyframes quote-viewer-boot-shimmer {
    0% { background-position:100% 0; }
    100% { background-position:-100% 0; }
}
@media (max-width:900px) {
    .page-cad-viewer .viewer-demo-boot-grid {
        grid-template-columns:1fr;
    }
    .page-cad-viewer .quote-viewer-boot-block--canvas {
        min-height:min(52vh, 520px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .page-cad-viewer .quote-viewer-boot-block { animation:none; }
}
.page-cad-viewer .quote-widget-demo-consent {
    margin-bottom:12px;
    padding:12px 14px;
    border-radius:var(--radius-lg);
    border:1px solid var(--border);
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(8px);
}
@media (max-width:768px) {
    .page-cad-viewer .cad-viewer-stage-inner { padding:0 16px; }
    .page-cad-viewer .cad-viewer-stage { padding:20px 0 32px; }
    .page-cad-viewer .cad-viewer-hero-inner { padding:16px; }
}

/* SEO content below the interactive viewer */
.page-cad-viewer .cad-viewer-seo {
    position:relative;
    z-index:1;
    background:var(--bg-white);
}
.page-cad-viewer .cad-viewer-seo.section-alt { background:var(--bg-light); }
.page-cad-viewer .cad-viewer-seo .section-title { text-wrap:balance; }
.page-cad-viewer .cad-viewer-seo .section-desc {
    max-width:720px;
    margin:0 auto 36px;
    text-align:center;
    color:var(--text-medium);
    line-height:1.65;
}
.page-cad-viewer .cad-viewer-how-grid {
    max-width:1000px;
    margin:0 auto;
}
.page-cad-viewer .cad-viewer-how-grid .how-step {
    text-align:left;
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-sm);
}
.page-cad-viewer .cad-viewer-how-grid .how-num {
    background:#fef3c7;
    color:#b45309;
    border:1px solid rgba(245,158,11,.3);
}
.page-cad-viewer .cad-viewer-how-grid code,
.page-cad-viewer .cad-viewer-format-card code,
.page-cad-viewer .cad-viewer-faq-wrap code,
.page-cad-viewer .cad-viewer-noscript code {
    font-size:0.92em;
    padding:1px 6px;
    border-radius:4px;
    background:var(--bg-gray);
    color:var(--text-dark);
}
.page-cad-viewer .cad-viewer-format-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}
.page-cad-viewer .cad-viewer-format-card {
    padding:22px 20px;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    background:#fff;
    box-shadow:var(--shadow-sm);
}
.page-cad-viewer .cad-viewer-format-card h3 {
    font-size:17px;
    font-weight:700;
    margin-bottom:8px;
}
.page-cad-viewer .cad-viewer-format-ext {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:0 0 12px;
}
.page-cad-viewer .cad-viewer-format-card p:last-child {
    margin:0;
    font-size:13.5px;
    color:var(--text-medium);
    line-height:1.65;
}
.page-cad-viewer .cad-viewer-faq-wrap {
    max-width:800px;
}
.page-cad-viewer .cad-viewer-faq-wrap .section-title,
.page-cad-viewer .cad-viewer-faq-wrap .section-desc { text-align:left; margin-left:0; }
.page-cad-viewer .cad-viewer-faq-wrap .faq-a a { font-weight:600; }
.page-cad-viewer .cad-viewer-noscript {
    margin:0 0 12px;
    padding:14px 16px;
    border-radius:var(--radius-lg);
    border:1px solid var(--border);
    background:rgba(255,255,255,.9);
}
.page-cad-viewer .cad-viewer-noscript p { margin:0 0 8px; }
.page-cad-viewer .cad-viewer-noscript p:last-child { margin-bottom:0; }
@media (max-width:900px) {
    .page-cad-viewer .cad-viewer-format-grid { grid-template-columns:1fr; }
    .page-cad-viewer .cad-viewer-how-grid { grid-template-columns:1fr; max-width:520px; }
}
@media (max-width:768px) {
    .page-cad-viewer .cad-viewer-seo .section-desc { margin-bottom:24px; text-align:left; }
    .page-cad-viewer .cad-viewer-seo .section-title { text-align:left; }
}

.products-viewer-link {
    margin:28px 0 0;
    text-align:center;
    font-size:14px;
    color:var(--text-medium);
    line-height:1.6;
}
.products-viewer-link a { font-weight:600; }
.quote-viewer-hero .hero-note code,
.quote-viewer-formats code {
    font-size:0.92em;
    padding:1px 6px;
    border-radius:4px;
    background:var(--bg-gray);
    color:var(--text-dark);
}
.quote-viewer-formats {
    margin:16px 0 0;
    font-size:13.5px;
    color:var(--text-medium);
    line-height:1.6;
}
.page-quote-viewer .quote-viewer-section { padding-top:32px; }
.quote-viewer-cta-card {
    margin-top:8px;
    padding:32px;
    background:linear-gradient(180deg,var(--bg-light) 0%,#fff8e8 100%);
    border:1px solid var(--border);
    border-radius:var(--radius-xl);
}
.quote-viewer-cta-copy { max-width:640px; }
.quote-viewer-cta-copy h3 { font-size:22px; margin-bottom:10px; }
.quote-viewer-cta-copy p { color:var(--text-medium); margin-bottom:16px; line-height:1.65; }
.quote-viewer-cta-copy .feat-list { margin-bottom:24px; }
.quote-viewer-cta-copy .btn-hero { background:#b45309; color:#fff; }
.quote-viewer-cta-copy .btn-hero:hover { background:#92400e; color:#fff; }

.mode-shot { margin:-32px -28px 20px; overflow:hidden; border-bottom:1px solid var(--border); background:var(--bg-light); }
.mode-shot img { width:100%; height:auto; display:block; }

.quote-proof-duo { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding-top:48px; margin-top:8px; border-top:1px solid var(--bg-gray); }
.quote-proof-item { display:flex; flex-direction:column; gap:18px; }
.quote-proof-item .feat-visual { border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; background:var(--bg-light); }
.quote-proof-item .feat-content h3 { font-size:18px; }
.quote-proof-item .feat-content p { margin-bottom:10px; }

.page-quote .quote-section { padding:72px 0; }
.page-quote .feat-block { padding:56px 0; }
.page-quote .feat-list li .lucide { color:var(--quote); }
.page-quote .mode-card li .lucide { color:var(--quote); margin-top:3px; width:14px; height:14px; flex-shrink:0; }
.page-quote .how-num .lucide { width:18px; height:18px; }
.page-quote .mode-card .mode-icon .lucide { width:20px; height:20px; }
.page-quote .how-num { background:#fef3c7; color:#b45309; border:1px solid rgba(245,158,11,.3); }
.page-quote .phero-visual { background:linear-gradient(180deg,var(--bg-light) 0%,#fff8e8 100%); border:1px solid var(--border); border-radius:var(--radius-xl); box-shadow:none; }
.page-quote .quote-shot-frame img { border-radius:var(--radius-md); }
.page-quote .quote-cta { background:linear-gradient(135deg,var(--bg-light) 0%,#fef3c7 100%); }
.page-quote .quote-cta .cta-inner { max-width:none; }
@media (min-width: 900px) {
    .page-quote .quote-cta .cta-inner h2 { white-space:nowrap; }
}
.page-quote .mode-card .mode-for { color:#92400e; }
.page-quote .btn-hero { background:#b45309; color:#fff; }
.page-quote .btn-hero:hover { background:#92400e; color:#fff; }
.page-quote .status-dev { color:#92400e; }
.quote-pain-grid { align-items:stretch; }
.quote-pain-step { display:flex; flex-direction:column; height:100%; }
.quote-pain-step .how-num { margin-inline:auto; }
.quote-pain-step h3 { font-size:15px; font-weight:700; margin-bottom:6px; }
.quote-pain-bridge { text-align:center; font-size:24px; font-weight:700; margin:40px auto 12px; text-wrap:balance; }
.quote-pain-bridge-desc { text-align:center; max-width:680px; margin:0 auto; font-size:17px; color:var(--text-dark); line-height:1.7; }
.quote-blog-section .section-title { text-align:center; }
.quote-blog-grid { grid-template-columns:repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width:960px; margin:0 auto; }
.quote-blog-link { display:flex; flex-direction:column; text-align:left; padding:24px; background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius-xl); color:inherit; text-decoration:none; transition:all .2s; height:100%; }
.quote-blog-link:hover { border-color:rgba(245,158,11,.45); box-shadow:0 6px 20px rgba(0,0,0,.06); transform:translateY(-2px); }
.quote-blog-link h3 { font-size:15px; font-weight:700; margin-bottom:8px; line-height:1.35; color:var(--text-dark); }
.quote-blog-link p { font-size:13.5px; color:var(--text-medium); line-height:1.6; margin-bottom:14px; flex:1; }
.quote-blog-cta { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:600; color:#b45309; margin-top:auto; }
.quote-blog-cta .lucide { width:14px; height:14px; transition:transform .15s; }
.quote-blog-link:hover .quote-blog-cta { color:#92400e; }
.quote-blog-link:hover .quote-blog-cta .lucide { transform:translateX(3px); }
.quote-widget-demo-notice { font-size:14px; color:var(--text-dark); line-height:1.6; margin:0 0 20px; padding:14px 16px; background:#fffbeb; border:1px solid rgba(245,158,11,.28); border-radius:var(--radius-md); }
.quote-widget-demo-notice strong { color:#92400e; }
.quote-widget-demo-fallback { font-size:14px; color:var(--text-medium); margin-top:12px; }
.quote-widget-demo-consent {
    font-size:14px; color:var(--text-medium); line-height:1.7;
    margin:0 0 16px; padding:16px 18px;
    background:var(--bg-light); border:1px solid var(--border); border-radius:var(--radius-md);
}
.quote-widget-demo-consent__btn {
    display:inline; padding:0; border:none; background:none;
    color:var(--primary); font:inherit; font-weight:600; cursor:pointer; text-decoration:underline;
}
.quote-widget-demo-consent__btn:hover { color:var(--primary-dark); }
.quote-widget-demo-consent[hidden] { display:none !important; }
.page-quote .trace-moment-points li::before { background:var(--quote); }
.page-quote .trace-shot:hover { background:#fff8e8; }
.page-quote .trace-shot.is-active { background:#fef3c7; border-color:var(--quote); }
.page-quote .trace-shot:focus-visible { border-color:var(--quote); }
.page-quote .quote-shot-frame { background:linear-gradient(180deg,var(--bg-light) 0%,#fff8e8 100%); }

.quote-widget-flow { padding-top:32px; }
.quote-widget-flow.trace-moment { border-bottom:none; padding-bottom:0; }
.quote-widget-followup { margin-top:56px; padding-top:48px; border-top:1px solid var(--border); }
.quote-widget-followup-intro { max-width:720px; margin:0 auto 32px; text-align:center; }
.quote-widget-followup-intro h3 { font-size:24px; font-weight:700; line-height:1.25; margin-bottom:12px; text-wrap:balance; }
.quote-widget-followup-intro p { font-size:16px; color:var(--text-medium); line-height:1.7; }
.quote-widget-followup-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.quote-widget-party { margin:0; display:flex; flex-direction:column; gap:12px; }
.quote-widget-party-label { display:inline-flex; align-self:flex-start; font-size:12px; font-weight:700; letter-spacing:0.02em; color:#b45309; background:#fef3c7; border:1px solid rgba(245,158,11,.25); padding:4px 10px; border-radius:100px; }
.quote-widget-party-shot { border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; background:var(--bg-light); }
.quote-widget-party-shot img { width:100%; height:auto; display:block; }
.quote-widget-party figcaption { font-size:14px; color:var(--text-medium); line-height:1.6; }
@media(max-width:768px) {
    .quote-proof-duo { grid-template-columns:1fr; gap:48px; }
    .quote-blog-grid { grid-template-columns:1fr; }
    .mode-shot { margin:-24px -20px 16px; }
    .quote-widget-followup-grid { grid-template-columns:1fr; }
    .quote-widget-followup { margin-top:40px; padding-top:36px; }
}

/* ===== FAQ ACCORDION ===== */
.faq-group { margin-bottom:32px; }
.faq-group h3 { font-size:17px; font-weight:700; margin-bottom:12px; }
.faq-item { border:1px solid var(--border); border-radius:var(--radius-md); margin-bottom:8px; overflow:hidden; }
.faq-q { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; font-size:14px; font-weight:600; color:var(--text-dark); cursor:pointer; background:var(--bg-white); border:none; width:100%; text-align:left; font-family:var(--font); transition:background .15s; }
.faq-q:hover { background:var(--bg-light); }
.faq-q .lucide { font-size:14px; color:var(--text-faint); transition:transform .2s; }
.faq-item.open .faq-q .lucide { transform:rotate(180deg); }
.faq-a { display:none; padding:0 16px 14px; font-size:13.5px; color:var(--text-medium); line-height:1.65; }
.faq-item.open .faq-a { display:block; }

/* ===== CONTACT ===== */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.contact-info h3 { font-size:18px; font-weight:700; margin-bottom:16px; }
.contact-info p { font-size:14px; color:var(--text-medium); line-height:1.7; margin-bottom:20px; }
.contact-detail { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--text-medium); margin-bottom:12px; }
.contact-detail i { color:var(--primary); width:18px; text-align:center; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:var(--text-dark); margin-bottom:4px; }
.form-group input, .form-group textarea, .form-group select { width:100%; padding:10px 12px; font-size:14px; font-family:var(--font); border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-white); color:var(--text-dark); transition:border-color .15s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline:none; border-color:var(--primary); }
.form-group textarea { resize:vertical; min-height:100px; }

/* ===== SPINNER (matches asytra-trace Spinner) ===== */
.asytra-spinner {
    border-radius:50%;
    animation:asytra-spin 1s linear infinite;
    display:inline-block;
    flex-shrink:0;
    transition:color .2s ease;
}
.asytra-spinner--small { width:16px; height:16px; border:2px solid rgba(255,255,255,.3); border-top:2px solid currentColor; }
.asytra-spinner--medium { width:24px; height:24px; border:3px solid rgba(255,255,255,.3); border-top:3px solid currentColor; }
.asytra-spinner--large { width:40px; height:40px; border:3px solid rgba(255,255,255,.3); border-top:3px solid currentColor; }
.asytra-spinner--white { color:#fff; }
.asytra-spinner--primary { color:var(--primary); }
@keyframes asytra-spin {
    0% { transform:rotate(0deg); }
    100% { transform:rotate(360deg); }
}

/* ===== FOOTER ===== */
.site-footer { background:var(--text-dark); color:rgba(255,255,255,.65); padding:56px 0 28px; }
.ft-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
.ft-brand p { font-size:13px; line-height:1.6; margin-top:14px; max-width:260px; }
.ft-brand img { display:block; height:26px; width:auto; max-width:100%; }
.ft-col .ft-col-title, .ft-col h5 { font-size:13px; font-weight:700; color:#fff; margin-bottom:14px; }
.ft-col ul { list-style:none; }
.ft-col li { margin-bottom:8px; }
.ft-col a { font-size:13px; color:rgba(255,255,255,.55); transition:color .15s; }
.ft-col a:hover { color:#fff; }
.ft-bottom { border-top:1px solid rgba(255,255,255,.08); padding-top:20px; display:flex; justify-content:space-between; align-items:center; font-size:12px; }
.ft-bottom-meta { display:flex; flex-direction:column; gap:3px; }
.ft-social { display:flex; gap:14px; }
.ft-social a { color:rgba(255,255,255,.45); font-size:15px; display:inline-flex; }
.ft-social a:hover { color:#fff; }
.ft-social a svg { width:18px; height:18px; display:block; }

/* ===== UNAVAILABLE POPUP ===== */
.asytra-popup {
    position:fixed; inset:0; z-index:9999;
    display:flex; align-items:center; justify-content:center; padding:20px;
    background:rgba(0,0,0,.45);
    opacity:0; visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;
}
.asytra-popup.is-open { opacity:1; visibility:visible; }
.asytra-popup.is-closing { opacity:0; visibility:hidden; pointer-events:none; }
.asytra-popup__panel {
    background:var(--bg-white); border-radius:var(--radius-xl);
    max-width:440px; width:100%; padding:36px 32px; text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,.15);
    transform:scale(.94) translateY(14px); opacity:0;
    transition:transform .28s cubic-bezier(.22,1,.36,1), opacity .28s ease;
}
.asytra-popup.is-open .asytra-popup__panel { transform:scale(1) translateY(0); opacity:1; }
.asytra-popup.is-closing .asytra-popup__panel { transform:scale(.96) translateY(10px); opacity:0; }
.asytra-popup__icon {
    width:56px; height:56px; border-radius:50%;
    background:var(--primary-light);
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 20px; color:var(--primary); font-size:22px;
}
.asytra-popup__title { font-size:22px; font-weight:700; margin:0 0 8px; color:var(--text-dark); }
.asytra-popup__message { font-size:14px; color:var(--text-medium); line-height:1.7; margin:0 0 24px; }
.asytra-popup__actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.asytra-popup__btn {
    display:inline-flex; align-items:center; justify-content:center;
    padding:12px 28px; font-size:14px; font-weight:600;
    font-family:var(--font); border-radius:var(--radius-md);
    cursor:pointer; transition:background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    text-decoration:none; border:none;
}
.asytra-popup__btn--primary {
    background:var(--primary); color:#fff;
    box-shadow:var(--shadow-glow);
}
.asytra-popup__btn--primary:hover {
    background:var(--primary-dark); color:#fff; transform:translateY(-1px);
}
.asytra-popup__btn--primary:active {
    transform:translateY(0); box-shadow:0 1px 6px rgba(9,173,183,.25);
}
.asytra-popup__btn--secondary {
    background:rgba(255,255,255,.6); color:var(--text-dark);
    border:1.5px solid var(--border);
}
.asytra-popup__btn--secondary:hover {
    border-color:var(--primary); color:var(--primary);
}
.asytra-popup__btn--secondary:active {
    transform:scale(.98); background:var(--bg-light);
}
@media (prefers-reduced-motion:reduce) {
    .asytra-popup, .asytra-popup__panel { transition:none; }
    .asytra-popup__btn { transition:background .15s, color .15s, border-color .15s; }
}

/* ===== IMAGE LIGHTBOX ===== */
img.asytra-zoomable { cursor:zoom-in; }
img.asytra-zoomable:active { cursor:zoom-out; }
img.asytra-zoomable:focus-visible { outline:2px solid var(--primary); outline-offset:3px; border-radius:var(--radius-sm); }
.asytra-lightbox {
    position:fixed; inset:0; z-index:10050;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding:44px 24px 24px;
    background:rgba(0,0,0,0); opacity:0; visibility:hidden;
    transition:background .28s ease, opacity .28s ease, visibility .28s ease;
}
.asytra-lightbox.is-open { background:rgba(0,0,0,.82); opacity:1; visibility:visible; overscroll-behavior-x:none; }
html.asytra-lightbox-open,
html.asytra-lightbox-open body { overscroll-behavior-x:none; }
html.asytra-lightbox-open main { pointer-events:none; }
html.asytra-lightbox-open .asytra-chat-wrap { z-index:10040; }

/* reCAPTCHA v3 badge: keep clear of the Asa chat launcher (bottom-right on desktop). */
.grecaptcha-badge {
    z-index:99998;
    box-shadow:none !important;
}
@media (min-width:769px) {
    .grecaptcha-badge {
        left:24px !important;
        right:auto !important;
        bottom:24px !important;
    }
}
@media (max-width:768px) and (min-width:481px) {
    .grecaptcha-badge {
        left:auto !important;
        right:16px !important;
        bottom:16px !important;
    }
}
@media (max-width:480px) {
    .grecaptcha-badge {
        left:auto !important;
        right:16px !important;
        bottom:80px !important;
    }
}

.asytra-lightbox.is-closing { background:rgba(0,0,0,0); opacity:0; visibility:hidden; pointer-events:none; }
.asytra-lightbox__close {
    position:fixed; top:16px; right:16px; z-index:4;
    width:44px; height:44px; border:none; border-radius:50%;
    background:rgba(255,255,255,.12); color:#fff; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:background .2s ease, transform .2s ease;
}
.asytra-lightbox__close:hover { background:rgba(255,255,255,.22); transform:scale(1.05); }
.asytra-lightbox__close .lucide { width:22px; height:22px; }
.asytra-lightbox__stage {
    position:relative; display:flex; align-items:center; justify-content:center;
    width:100%; max-height:calc(100vh - 88px); flex:1; min-height:0; gap:16px;
}
.asytra-lightbox__viewport {
    display:flex; align-items:center; justify-content:center;
    overflow:hidden; max-width:calc(100vw - 160px); max-height:calc(100vh - 88px);
}
.asytra-lightbox__track {
    display:flex; align-items:center; height:100%;
}
.asytra-lightbox__slide {
    display:flex; align-items:center; justify-content:center;
}
.asytra-lightbox.is-carousel .asytra-lightbox__viewport {
    width:100%; max-width:100vw;
}
.asytra-lightbox.is-carousel .asytra-lightbox__track {
    width:100%; will-change:transform;
}
.asytra-lightbox.is-carousel .asytra-lightbox__slide {
    flex:0 0 100%; min-width:0;
}
.asytra-lightbox.is-carousel.is-dragging .asytra-lightbox__track {
    transition:none !important;
}
.asytra-lightbox.is-carousel .asytra-lightbox__img {
    opacity:1;
    transition:box-shadow .2s ease;
}
.asytra-lightbox.has-gallery .asytra-lightbox__viewport {
    touch-action:pan-y pinch-zoom;
    -webkit-user-select:none; user-select:none;
}
.asytra-lightbox.has-gallery.is-dragging .asytra-lightbox__viewport {
    touch-action:none;
    cursor:grabbing;
}
.asytra-lightbox.has-gallery:not(.is-dragging) .asytra-lightbox__viewport {
    cursor:grab;
}
.asytra-lightbox__img.is-dragging {
    transition:none !important;
    cursor:grabbing;
}
.asytra-lightbox__nav {
    flex-shrink:0; width:48px; height:48px; border:1px solid rgba(255,255,255,.22); border-radius:50%;
    background:rgba(255,255,255,.18); color:#fff; cursor:pointer; z-index:3;
    display:flex; align-items:center; justify-content:center;
    transition:background .2s ease, transform .2s ease, opacity .2s ease, border-color .2s ease;
    box-shadow:0 4px 16px rgba(0,0,0,.25);
}
.asytra-lightbox__nav:hover:not(:disabled) { background:rgba(255,255,255,.3); border-color:rgba(255,255,255,.35); transform:scale(1.05); }
.asytra-lightbox__nav:disabled { opacity:.35; cursor:default; box-shadow:none; }
.asytra-lightbox__nav .lucide { width:24px; height:24px; stroke-width:2.25px; }
.asytra-lightbox:not(.has-gallery) .asytra-lightbox__nav { display:none; }
.asytra-lightbox__img {
    display:block; max-width:calc(100vw - 160px); max-height:calc(100vh - 88px);
    width:auto; height:auto; object-fit:contain; border-radius:var(--radius-md);
    box-shadow:0 16px 48px rgba(0,0,0,.35);
    transition:transform .32s cubic-bezier(.22,1,.36,1), opacity .28s ease;
    will-change:transform, opacity;
}
.asytra-lightbox__caption {
    margin:8px 0 0; max-width:min(640px, calc(100vw - 48px));
    font-size:14px; color:rgba(255,255,255,.75); text-align:center; line-height:1.5;
    transition:opacity .28s ease;
}
.asytra-lightbox__dots.trace-shot-dots {
    display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:7px;
    margin:10px 0 0; padding:0 4px; min-height:10px;
}
.asytra-lightbox .trace-shot-dot {
    width:10px; height:10px; padding:0; border:2px solid rgba(255,255,255,.55);
    border-radius:50%; background:rgba(255,255,255,.22); cursor:pointer; touch-action:manipulation;
    -webkit-tap-highlight-color:transparent; flex-shrink:0; box-sizing:border-box;
    transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.asytra-lightbox .trace-shot-dot:hover { border-color:#fff; background:rgba(255,255,255,.4); }
.asytra-lightbox .trace-shot-dot.is-active { background:#fff; border-color:#fff; transform:scale(1.2); }
.asytra-lightbox .trace-shot-dot:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.asytra-lightbox__caption.is-fading { opacity:0; transition:opacity .18s ease; }
.asytra-lightbox.is-zoom-animating {
    overflow:visible;
}
.asytra-lightbox.is-zoom-animating .asytra-lightbox__stage,
.asytra-lightbox.is-zoom-animating .asytra-lightbox__viewport,
.asytra-lightbox.is-zoom-animating .asytra-lightbox__track,
.asytra-lightbox.is-zoom-animating .asytra-lightbox__slide {
    overflow:visible;
}
@media (max-width:768px) {
    .asytra-lightbox { padding:36px 8px 16px; }
    .asytra-lightbox__stage { gap:0; width:100%; flex:1; align-self:stretch; min-height:0; }
    .asytra-lightbox.has-gallery .asytra-lightbox__stage { touch-action:pan-y pinch-zoom; }
    .asytra-lightbox.has-gallery.is-dragging .asytra-lightbox__stage { touch-action:none; }
    .asytra-lightbox__viewport { max-width:100vw; width:100%; }
    .asytra-lightbox__img { max-width:calc(100vw - 24px); }
    .asytra-lightbox__nav { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    .asytra-lightbox, .asytra-lightbox__img, .asytra-lightbox__close, .asytra-lightbox__caption { transition:none; }
}

/* ===== BLOG ===== */
.blog-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:24px; }
.blog-card { background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius-xl); overflow:hidden; transition:all .25s; }
.blog-card:hover { box-shadow:0 6px 20px rgba(0,0,0,.06); transform:translateY(-2px); }
.blog-card a { color:inherit; text-decoration:none; display:block; }
.blog-card-img { width:100%; height:200px; object-fit:cover; background:var(--bg-gray); }
.blog-card-body { padding:24px; }
.blog-card-meta { display:flex; align-items:center; gap:12px; font-size:12px; color:var(--text-faint); margin-bottom:10px; }
.blog-card-meta .blog-tag { background:var(--primary-light); color:var(--primary); padding:2px 8px; border-radius:10px; font-weight:600; font-size:11px; }
.blog-card h3 { font-size:17px; font-weight:700; margin-bottom:8px; line-height:1.3; }
.blog-card p { font-size:13.5px; color:var(--text-medium); line-height:1.6; }
.blog-card-link { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:600; color:var(--primary); margin-top:12px; }
.blog-card-link .lucide { font-size:13px; transition:transform .15s; }
.blog-card:hover .blog-card-link .lucide { transform:translateX(3px); }

/* Blog post single */
.blog-post { max-width:720px; margin:0 auto; }
.blog-post-header { margin-bottom:32px; }
.blog-post-meta { display:flex; align-items:center; gap:12px; font-size:13px; color:var(--text-faint); margin-bottom:16px; flex-wrap:wrap; }
.blog-post-meta .blog-tag { background:var(--primary-light); color:var(--primary); padding:3px 10px; border-radius:12px; font-weight:600; font-size:12px; }
.blog-post h1 { font-size:clamp(34px,5vw,48px); font-weight:700; line-height:1.2; margin-bottom:16px; }
.blog-post-lead { font-size:18px; color:var(--text-medium); line-height:1.7; }
.blog-post-body h2 { font-size:24px; font-weight:700; margin:36px 0 12px; }
.blog-post-body h3 { font-size:18px; font-weight:700; margin:28px 0 10px; }
.blog-post-body p { font-size:17px; color:var(--text-medium); line-height:1.8; margin-bottom:16px; }
.blog-post-body ul, .blog-post-body ol { margin:0 0 16px 20px; font-size:17px; color:var(--text-medium); line-height:1.8; }
.blog-post-body li { margin-bottom:6px; }
.blog-post-body code {
    font-size:0.9em;
    padding:1px 6px;
    border-radius:4px;
    background:var(--bg-gray);
    color:var(--text-dark);
}
.blog-compare-table-wrap {
    overflow-x:auto;
    margin:24px 0 28px;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    background:var(--bg-white);
}
.blog-compare-table {
    width:100%;
    border-collapse:collapse;
    font-size:14px;
    line-height:1.5;
}
.blog-compare-table th,
.blog-compare-table td {
    padding:12px 14px;
    text-align:left;
    border-bottom:1px solid var(--border);
    vertical-align:top;
}
.blog-compare-table th {
    background:var(--bg-light);
    font-size:12px;
    font-weight:700;
    color:var(--text-dark);
}
.blog-compare-table tr:last-child td { border-bottom:none; }
.blog-compare-table td { color:var(--text-medium); }
.blog-compare-table td:first-child { font-weight:700; color:var(--text-dark); white-space:nowrap; }
.blog-post-body img { border-radius:var(--radius-md); margin:24px 0; }
.blog-post-body blockquote { border-left:3px solid var(--primary); padding:12px 20px; margin:24px 0; background:var(--bg-light); border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.blog-post-body blockquote p { color:var(--text-dark); font-style:italic; margin-bottom:0; }
.blog-back { display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:600; color:var(--text-light); margin-bottom:24px; }
.blog-back:hover { color:var(--primary); }

/* ===== CHANGELOG ===== */
.changelog-list { max-width:760px; margin:0 auto; }
.changelog-empty { font-size:15px; color:var(--text-medium); text-align:center; padding:32px 0; }
.changelog-day { padding-bottom:36px; margin-bottom:36px; border-bottom:1px solid var(--border); }
.changelog-day:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.changelog-day-date { font-size:22px; font-weight:700; margin-bottom:20px; color:var(--text-dark); }
.changelog-day-items { display:flex; flex-direction:column; gap:20px; }
.changelog-item { background:var(--bg-light); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px 22px; }
.changelog-item-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.changelog-tag { display:inline-flex; align-items:center; padding:3px 10px; border-radius:12px; font-size:12px; font-weight:600; line-height:1.2; }
.changelog-tag--product.changelog-tag--trace { background:var(--primary-light); color:var(--trace); }
.changelog-tag--product.changelog-tag--quote { background:#fef3c7; color:var(--quote); }
.changelog-tag--product.changelog-tag--measure { background:#ede9fe; color:var(--measure); }
.changelog-tag--product.changelog-tag--unknown { background:var(--bg-gray); color:var(--text-medium); }
.changelog-tag--type { background:var(--bg-white); color:var(--text-medium); border:1px solid var(--border); }
.changelog-tag--type.changelog-tag--feature { color:var(--primary-dark); border-color:#b8e8eb; background:#f0fbfc; }
.changelog-tag--type.changelog-tag--improvement { color:#4b5563; }
.changelog-tag--type.changelog-tag--fix { color:#b45309; border-color:#fde68a; background:#fffbeb; }
.changelog-item-title { font-size:17px; font-weight:700; margin-bottom:8px; line-height:1.35; color:var(--text-dark); }
.changelog-item-summary { font-size:15px; color:var(--text-medium); line-height:1.7; margin-bottom:0; }

/* ===== RESPONSIVE ===== */

/* --- Tablet (max 1024px) --- */
@media(max-width:1024px) {
    .how-grid { grid-template-columns:1fr; max-width:420px; margin:0 auto; }
    .pricing-grid { grid-template-columns:1fr; max-width:400px; margin:0 auto; }
    .feat-block { grid-template-columns:1fr; gap:24px; padding:64px 0; }
    .feat-block.reverse { direction:ltr; }
    .feat-visual { min-height:220px; height:auto; }
    .story-compare { grid-template-columns:1fr; }
    .story-step { grid-template-columns:1fr; gap:20px; }
    .phero-split-grid { grid-template-columns:1fr; gap:28px; }
    .phero-split { padding:56px 0 48px; }
    .docs-layout { grid-template-columns:1fr; }
    .docs-nav { position:static; display:flex; flex-wrap:wrap; gap:4px; margin-bottom:24px; }
    .contact-grid { grid-template-columns:1fr; gap:32px; }
    .about-split { grid-template-columns:1fr; gap:32px; }
    .about-split > img { max-width:400px; max-height:400px; margin:0 auto; }
    .about-photo-grid { grid-template-columns:1fr; gap:24px; max-width:400px; margin:40px auto 0; }
    .ft-grid { grid-template-columns:1fr 1fr; gap:24px; }
    .hero-blur-1 { width:350px; height:350px; }
    .hero-blur-2 { width:400px; height:400px; }
}

/* --- Mobile (max 768px) --- */
@media(max-width:768px) {
    :root { --topbar-h:40px; --header-h:56px; }
    .container { padding:0 16px; }

    /* Topbar */
    .topbar { font-size:11px; line-height:1.35; padding:0 40px 0 16px; text-align:center; }

    /* Header */
    .header-row-inner { padding:0 16px 0 13px; }
    .nav-menu { display:none; }
    .hdr-right { display:none; }
    .nav-login-mobile { display:list-item; margin-top:auto; padding-top:16px; border-top:1px solid var(--border); }
    .mobile-menu-open .nav-login-mobile > a {
        display:flex; align-items:center; justify-content:center; width:100%;
        min-height:48px; padding:12px 16px; font-size:16px; font-weight:600;
        color:var(--text-dark); border:1px solid var(--border); border-radius:var(--radius-sm);
        background:var(--bg-light);
    }
    .mobile-menu-open .nav-login-mobile > a:hover { border-color:var(--primary); color:var(--primary-dark); }
    .menu-toggle { display:flex; }

    /* Mobile nav backdrop */
    .mobile-nav-backdrop {
        display:block; position:fixed; inset:0;
        top:calc(var(--topbar-h) + var(--header-h));
        background:rgba(34, 41, 51, 0.22);
        backdrop-filter:blur(0px) saturate(150%);
        -webkit-backdrop-filter:blur(0px) saturate(150%);
        z-index:1100; opacity:0; pointer-events:none;
        transition:
            opacity .28s cubic-bezier(0.22, 1, 0.36, 1),
            backdrop-filter .28s cubic-bezier(0.22, 1, 0.36, 1),
            -webkit-backdrop-filter .28s cubic-bezier(0.22, 1, 0.36, 1);
    }
    body.topbar-hidden .mobile-nav-backdrop { top:var(--header-h); }
    body.mobile-menu-open .mobile-nav-backdrop {
        opacity:1; pointer-events:auto;
        backdrop-filter:blur(12px) saturate(150%);
        -webkit-backdrop-filter:blur(12px) saturate(150%);
    }
    body.mobile-menu-open .topbar { z-index:1103; }
    body.mobile-menu-open .header-row {
        z-index:1102; box-shadow:none;
        background:var(--bg-white);
        backdrop-filter:none; -webkit-backdrop-filter:none;
    }

    /* Right slide sheet */
    #site-nav {
        display:flex; flex-direction:column;
        position:fixed; top:calc(var(--topbar-h) + var(--header-h)); right:0; bottom:0;
        width:min(340px, 88vw); max-width:100%;
        background:var(--bg-white);
        box-shadow:-8px 0 32px rgba(34, 41, 51, 0.12);
        z-index:1101; overflow:hidden;
        transform:translateX(100%);
        transition:none;
        pointer-events:none; visibility:hidden;
    }
    body.topbar-hidden #site-nav { top:var(--header-h); }
    body.mobile-nav-animate #site-nav {
        transition:transform .28s cubic-bezier(0.22, 1, 0.36, 1);
    }
    body.mobile-menu-open #site-nav,
    body.mobile-nav-closing #site-nav {
        visibility:visible;
    }
    body.mobile-menu-open #site-nav {
        transform:translateX(0); pointer-events:auto;
    }
    .mobile-menu-open .nav-menu {
        display:flex; flex-direction:column; flex:1; justify-content:flex-start;
        align-items:stretch; width:100%;
        position:static; overflow-y:auto;
        padding:8px 20px 24px; gap:2px; min-height:0;
    }
    .mobile-menu-open .nav-menu > li { width:100%; }
    .mobile-menu-open .nav-menu > li > a {
        display:flex; align-items:center; justify-content:flex-start; width:100%;
        min-height:52px; padding:14px 0; font-size:20px; font-weight:600;
        text-align:left; color:#212933; border-bottom:none; border-radius:0;
    }
    .mobile-menu-open .nav-menu > li > a:hover { color:#212933; background:transparent; }
    .mobile-menu-open .dropdown > a {
        justify-content:space-between;
    }
    .mobile-menu-open .dropdown > a .chev {
        width:22px; height:22px;
        transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
        transform:rotate(0deg);
    }
    .mobile-menu-open .dropdown > a[aria-expanded="true"] .chev {
        transform:rotate(180deg);
    }
    .mobile-menu-open .dropdown .dd-panel {
        display:grid; grid-template-rows:0fr;
        position:static; transform:none; box-shadow:none; border:none;
        padding:0 0 0 4px; min-width:auto; width:100%; border-radius:0;
        opacity:0; pointer-events:none;
        transition:
            grid-template-rows 280ms cubic-bezier(0.4, 0, 0.2, 1),
            opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-menu-open .dropdown.dropdown-open .dd-panel {
        grid-template-rows:1fr; opacity:1; pointer-events:auto;
    }
    .mobile-menu-open .dropdown .dd-panel::before { display:none; }
    .mobile-menu-open .dropdown .dd-panel-inner {
        overflow:hidden; min-height:0;
    }
    .mobile-menu-open .dd-item {
        flex-direction:row; align-items:center; justify-content:flex-start; gap:12px;
        min-height:52px; width:100%; padding:12px 0; text-align:left;
        color:#212933;
    }
    .mobile-menu-open .dd-item:hover { color:#212933; background:transparent; }
    .mobile-menu-open .dd-item p { display:none; }
    .mobile-menu-open .dd-item .sn-icon { width:32px; height:32px; font-size:14px; border-radius:8px; }
    .mobile-menu-open .dd-item .sn-name { font-size:19px; color:#212933; }
    .mobile-menu-open .dd-item--all {
        flex-direction:row; align-items:center; justify-content:flex-start; gap:12px;
        border-top:none; margin-top:0; padding-top:10px; text-align:left;
        color:#212933;
    }
    .mobile-menu-open .dd-item--all:hover { color:#212933; background:transparent; }
    .mobile-menu-open .dd-item--all > div { text-align:left; }
    .mobile-menu-open .dd-item--all .dd-icon {
        width:32px; height:32px; border-radius:8px; font-size:14px;
    }
    .mobile-menu-open .dd-item--all h4 {
        font-size:19px; font-weight:700; margin:0; color:#212933;
    }
    /* Focus rings */
    .menu-toggle:focus-visible,
    .mobile-menu-open .nav-menu a:focus-visible {
        outline:2px solid var(--primary); outline-offset:2px;
    }
    /* Lock body scroll when menu open */
    .mobile-menu-open { overflow:hidden; }

    @media (prefers-reduced-motion:reduce) {
        #site-nav, .mobile-nav-backdrop, .menu-toggle-icon { transition:none; }
        .mobile-menu-open .dropdown .dd-panel,
        .mobile-menu-open .dropdown > a .chev { transition:none; }
        body.mobile-menu-open .mobile-nav-backdrop {
            backdrop-filter:none; -webkit-backdrop-filter:none;
        }
        .menu-toggle-icon { transition:none; }
    }

    /* Subnav */
    .sn-pill { padding:0 16px; height:48px; }
    .sn-name { font-size:15px; }
    .sn-icon { width:28px; height:28px; font-size:12px; }
    .sn-links a { padding:6px 10px; font-size:12.5px; }
    .sn-cta-btn { padding:7px 12px; font-size:12px; }

    /* Hero */
    .hero { padding:72px 0 56px; }
    .hero h1 { font-size:30px; }
    .hero .lead { font-size:15px; }
    .hero-btns { flex-direction:column; }
    .hero-btns .btn-hero, .hero-btns .btn-outline { width:100%; justify-content:center; }

    /* Product hero */
    .phero { padding:64px 0 48px; }
    .phero h1 { font-size:26px; }

    /* Sections */
    .section { padding:80px 0; }
    main { padding-bottom:72px; }
    .page-home .hero-home-platform { padding:56px 0 40px; }
    .hero-home-inner { gap:28px; }
    .home-hero-trio { grid-template-columns:1fr; gap:12px; }
    .section-title { font-size:24px; }
    .section-desc { font-size:14px; margin-bottom:28px; }
    .cta { padding:96px 0; }
    .cta-inner h2 { font-size:24px; }
    .cta-btns { flex-direction:column; }
    .cta-btns .btn-hero, .cta-btns .btn-outline { width:100%; justify-content:center; }

    /* Product cards */
    .products-grid { grid-template-columns:1fr; }
    .pcard { padding:24px 20px; }
    .pcard .sn-name { font-size:15px; }
    .pcard h4.tagline { font-size:15px; }
    .page-home .home-section { padding:72px 0; }
    .home-trusted-inner { flex-direction:column; align-items:center; gap:16px; }
    .home-trusted-logos { justify-content:center; gap:20px 28px; }

    /* Pricing */
    .price-card .price { font-size:28px; }

    /* Features */
    .feat-visual { min-height:200px; height:auto; }
    .story-step-visual { min-height:180px; }
    .trace-section { padding:64px 0; }
    .feat-content h3 { font-size:18px; }

    /* Footer */
    .ft-grid { grid-template-columns:1fr; gap:24px; }
    .ft-brand { margin-bottom:8px; }
    .ft-bottom { flex-direction:column; gap:12px; text-align:center; }
}

/* --- Small phone (max 480px) --- */
@media(max-width:480px) {
    .hero h1 { font-size:26px; }
    .phero h1 { font-size:23px; }
    .section-title { font-size:22px; }
    .btn-hero, .btn-outline { padding:12px 20px; font-size:14px; }
    .sn-cta { display:flex; }
    .sn-cta-btn { padding:6px 12px; font-size:11.5px; }
    .sn-links a { padding:6px 8px; font-size:11.5px; }
    .topbar { font-size:10.5px; }
}

/* ===== PRICING PAGE ===== */
.pricing-jump { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.pricing-jump a { display:inline-flex; align-items:center; gap:10px; padding:9px 18px; border-radius:20px; font-size:13px; font-weight:600; color:var(--text-medium); background:rgba(255,255,255,.7); border:1px solid var(--border); backdrop-filter:blur(8px); transition:all .2s; text-decoration:none; }
.pricing-jump a:hover { color:var(--text-dark); border-color:var(--text-light); transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.pricing-jump a i { font-size:12px; }
.pricing-jump a.pj-trace:hover { color:var(--trace); border-color:rgba(9,173,183,.35); }
.pricing-jump a.pj-quote:hover { color:var(--quote); border-color:rgba(245,158,11,.35); }
.pricing-jump a.pj-measure:hover { color:var(--measure); border-color:rgba(99,102,241,.35); }
.pricing-jump a.pj-credits:hover { color:var(--text-dark); border-color:var(--text-light); }
.pricing-section { padding:32px 0 72px; }
.hero-pricing .hero-blur-1 { background:linear-gradient(135deg, rgba(9,173,183,.22) 0%, rgba(245,158,11,.12) 100%); }
.hero-pricing .hero-blur-2 { background:linear-gradient(135deg, rgba(142,208,129,.18) 0%, rgba(99,102,241,.08) 100%); }

/* ===== 404 PAGE ===== */
.page-404 .btn-hero,
.page-404 .btn-sm { background:var(--primary-dark); }
.page-404 .btn-hero:hover,
.page-404 .btn-sm:hover { background:#067a82; color:#fff; }
.not-found-code { font-size:13px; font-weight:700; letter-spacing:.12em; color:var(--text-light); margin-bottom:12px; }
.not-found-path { font-size:14px; color:var(--text-medium); margin-bottom:0; word-break:break-word; }
.not-found-path code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13px; color:var(--text-dark); background:var(--bg-gray); padding:2px 8px; border-radius:var(--radius-sm); }
.not-found-help { font-size:14px; color:var(--text-medium); margin:0; }
.not-found-help a { font-weight:600; }
.not-found-destinations { padding-top:48px; padding-bottom:72px; }
.not-found-destinations .section-title { text-align:center; }
.not-found-destinations .section-desc { text-align:center; max-width:640px; margin-left:auto; margin-right:auto; }
.not-found-jump { justify-content:center; margin-top:24px; max-width:720px; margin-left:auto; margin-right:auto; }
@media(max-width:768px) {
    .page-404 .phero { padding:48px 0 40px; }
    .not-found-destinations { padding-top:32px; padding-bottom:56px; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.asytra-cookie-banner {
    position:fixed; inset:auto 0 0 0; z-index:10002;
    display:flex; justify-content:center; align-items:flex-end;
    padding:16px;
    padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px));
    pointer-events:none; opacity:0; visibility:hidden;
    transition:opacity .28s ease, visibility .28s ease, transform .28s ease;
    transform:translateY(12px);
}
.asytra-cookie-banner.is-open {
    pointer-events:auto; opacity:1; visibility:visible; transform:translateY(0);
}
.asytra-cookie-banner__panel {
    width:min(100%, 920px);
    max-height:min(88vh, calc(100vh - 32px));
    max-height:min(88dvh, calc(100dvh - 32px - env(safe-area-inset-bottom, 0px)));
    overflow-x:hidden; overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    background:rgba(255,255,255,.97);
    border:1px solid var(--border);
    border-radius:var(--radius-xl);
    box-shadow:0 18px 50px rgba(34,41,51,.14);
    backdrop-filter:blur(14px) saturate(180%);
    -webkit-backdrop-filter:blur(14px) saturate(180%);
}
.asytra-cookie-banner__main,
.asytra-cookie-banner__prefs {
    padding:24px 24px 22px;
}
.asytra-cookie-banner__eyebrow {
    font-size:12px; font-weight:700; letter-spacing:.04em;
    text-transform:none; color:var(--primary); margin:0 0 8px;
}
.asytra-cookie-banner__title {
    font-size:20px; font-weight:700; line-height:1.25;
    color:var(--text-dark); margin:0 0 10px;
}
.asytra-cookie-banner__text {
    font-size:14px; line-height:1.7; color:var(--text-medium); margin:0 0 10px;
}
.asytra-cookie-banner__text--small { margin-bottom:18px; }
.asytra-cookie-banner__text a { font-weight:600; }
.asytra-cookie-banner__actions,
.asytra-cookie-banner__prefs-actions {
    display:flex; flex-wrap:wrap; gap:10px; margin-top:4px;
}
.asytra-cookie-banner__btn {
    display:inline-flex; align-items:center; justify-content:center;
    min-height:44px; padding:10px 18px;
    font-size:14px; font-weight:600; font-family:var(--font);
    border-radius:var(--radius-md); border:1.5px solid transparent;
    cursor:pointer; transition:background .15s, color .15s, border-color .15s, transform .15s;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
}
.asytra-cookie-banner__btn--primary {
    background:var(--primary); color:#fff; box-shadow:var(--shadow-glow);
}
.asytra-cookie-banner__btn--secondary {
    background:rgba(255,255,255,.75); color:var(--text-dark); border-color:var(--border);
}
.asytra-cookie-banner__btn--ghost {
    background:transparent; color:var(--text-medium); border-color:transparent;
}
.asytra-cookie-banner__pref {
    display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
    padding:14px 0; border-top:1px solid var(--border);
}
.asytra-cookie-banner__pref:first-child { border-top:none; padding-top:0; }
.asytra-cookie-banner__pref-copy {
    flex:1; min-width:0;
}
.asytra-cookie-banner__pref-title {
    font-size:15px; font-weight:600; color:var(--text-dark); margin:0 0 4px;
}
.asytra-cookie-banner__pref-desc {
    font-size:13px; line-height:1.6; color:var(--text-medium); margin:0;
}
.asytra-cookie-banner__always-on {
    flex-shrink:0; font-size:12px; font-weight:700; color:var(--text-light);
    padding-top:2px; white-space:nowrap;
}
.asytra-cookie-banner__toggle-wrap {
    position:relative; flex-shrink:0; display:inline-flex; align-items:center;
    min-width:44px; min-height:44px; justify-content:flex-end;
    margin:-10px -10px -10px 0; padding:10px;
}
.asytra-cookie-banner__toggle-input {
    position:absolute; opacity:0; width:1px; height:1px; margin:0; padding:0; border:none; outline:none;
}
.asytra-cookie-banner__toggle-switch {
    position:relative; display:inline-block;
    width:48px; height:24px; border-radius:20px;
    background:#e2e8f0; border:2px solid transparent;
    box-shadow:inset 0 1px 3px rgba(0,0,0,.1);
    cursor:pointer;
    transition:background .3s cubic-bezier(.4,0,.2,1), border-color .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
}
.asytra-cookie-banner__toggle-thumb {
    position:absolute; top:50%; left:2px;
    width:20px; height:20px; border-radius:50%;
    background:#fff; border:1px solid rgba(0,0,0,.05);
    box-shadow:0 2px 4px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    transform:translateY(-50%);
    transition:transform .3s cubic-bezier(.4,0,.2,1);
    pointer-events:none;
}
.asytra-cookie-banner__toggle-input:checked + .asytra-cookie-banner__toggle-switch {
    background:var(--primary); border-color:var(--primary);
    box-shadow:inset 0 1px 3px rgba(0,0,0,.1), 0 0 0 3px rgba(9,173,183,.1);
}
.asytra-cookie-banner__toggle-input:checked + .asytra-cookie-banner__toggle-switch .asytra-cookie-banner__toggle-thumb {
    transform:translateY(-50%) translateX(24px);
}
.asytra-cookie-banner__toggle-input:focus-visible + .asytra-cookie-banner__toggle-switch {
    outline:2px solid var(--primary); outline-offset:2px;
}
@media (hover:hover) and (pointer:fine) {
    .asytra-cookie-banner__btn--primary:hover {
        background:var(--primary-dark); color:#fff; transform:translateY(-1px);
    }
    .asytra-cookie-banner__btn--secondary:hover {
        border-color:var(--primary); color:var(--primary);
    }
    .asytra-cookie-banner__btn--ghost:hover { color:var(--primary); }
    .asytra-cookie-banner__toggle-switch:hover { background:#cbd5e1; }
    .asytra-cookie-banner__toggle-input:checked + .asytra-cookie-banner__toggle-switch:hover {
        background:var(--primary-dark);
        box-shadow:inset 0 1px 3px rgba(0,0,0,.1), 0 0 0 3px rgba(9,173,183,.15);
    }
}
html.asytra-cookie-banner-open .asytra-chat-wrap {
    opacity:0; visibility:hidden; pointer-events:none;
}
@media (max-width:768px) {
    .asytra-cookie-banner {
        padding:0;
        padding-bottom:env(safe-area-inset-bottom, 0px);
    }
    .asytra-cookie-banner__panel {
        width:100%;
        max-height:min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 8px));
        border-radius:var(--radius-xl) var(--radius-xl) 0 0;
        border-bottom:none;
        box-shadow:0 -8px 40px rgba(34,41,51,.12);
    }
    .asytra-cookie-banner__main,
    .asytra-cookie-banner__prefs {
        padding:20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    }
    .asytra-cookie-banner__title { font-size:18px; }
    .asytra-cookie-banner__text { font-size:13px; }
    .asytra-cookie-banner__actions,
    .asytra-cookie-banner__prefs-actions { flex-direction:column; gap:8px; }
    .asytra-cookie-banner__btn { width:100%; }
    .asytra-cookie-banner__pref { gap:12px; }
    .asytra-cookie-banner__pref-title { font-size:14px; }
    .asytra-cookie-banner__pref-desc { font-size:12px; }
}
@media (max-width:380px) {
    .asytra-cookie-banner__pref {
        flex-wrap:wrap;
        align-items:center;
    }
    .asytra-cookie-banner__pref-copy { flex:1 1 calc(100% - 64px); }
    .asytra-cookie-banner__toggle-wrap,
    .asytra-cookie-banner__always-on {
        margin-left:auto;
    }
}
@media (prefers-reduced-motion:reduce) {
    .asytra-cookie-banner { transition:none; }
    .asytra-cookie-banner__btn { transition:background .15s, color .15s, border-color .15s; }
    .asytra-cookie-banner__toggle-switch,
    .asytra-cookie-banner__toggle-thumb { transition:none; }
}
