/* ============ BenFlowAI — design system ============ */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F6FA;
  --surface: #FFFFFF;
  --text: #0A1628;
  --text-soft: #4A5568;
  --muted: #8A94A6;
  --accent: #336DFF;
  --accent-2: #B251F3;
  --accent-bright: #336DFF;
  --accent-soft: rgba(51, 109, 255, 0.10);
  --grad: linear-gradient(135deg, #B251F3 0%, #336DFF 100%);
  --border: #E5E7EB;
  --shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #050B16;
  --bg-alt: #051727;
  --surface: #021C34;
  --text: #F4F6FA;
  --text-soft: rgba(255, 255, 255, 0.72);
  --muted: #6B7A90;
  --accent: #5B8CFF;
  --accent-2: #B251F3;
  --accent-bright: #5B8CFF;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --grad: linear-gradient(135deg, #B251F3 0%, #336DFF 100%);
  --border: rgba(244, 246, 250, 0.1);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* redouble.ai-style dark sections: near-black navy base + slow-drifting glow blobs */
[data-theme="dark"] body::before,
[data-theme="dark"] body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none;
}
[data-theme="dark"] body::before {
  width: 58vmax; height: 58vmax; top: 5%; left: -25%;
  background: radial-gradient(circle, #052D53 0%, rgba(5,45,83,0) 65%);
  opacity: 0.95; animation: blobDrift1 28s ease-in-out infinite;
}
[data-theme="dark"] body::after {
  width: 52vmax; height: 52vmax; top: -10%; right: -15%;
  background: radial-gradient(circle, #1A4378 0%, rgba(26,67,120,0) 65%);
  opacity: 0.55; animation: blobDrift2 34s ease-in-out infinite;
}
[data-theme="dark"] .hero::before {
  content: ""; position: absolute; width: 42vmax; height: 42vmax; bottom: -10%; right: 5%;
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, #5D2789 0%, rgba(93,39,137,0) 70%);
  opacity: 0.25; animation: blobDrift3 36s ease-in-out infinite;
}
@keyframes blobDrift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vmax, 4vmax) scale(1.08); } }
@keyframes blobDrift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5vmax, 6vmax) scale(0.95); } }
@keyframes blobDrift3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4vmax, -5vmax); } }
[data-theme="dark"] .section-alt,
[data-theme="dark"] .trust { background: rgba(5, 23, 39, 0.55); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16.5px;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.5em; }
h3 { font-size: 1.45rem; }
a { color: inherit; }
img, svg, canvas, video { max-width: 100%; }
/* header is sticky: keep anchor targets clear of it */
:target { scroll-margin-top: 90px; }

/* ============ header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.brand-name em { font-style: normal; color: var(--accent); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--text-soft); transition: color 0.2s; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: transform 0.2s;
}
.theme-toggle:hover { transform: rotate(15deg); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--grad); color: #fff; }
[data-theme="dark"] .btn-primary { color: #FFFFFF; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(51, 109, 255, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-small { padding: 7px 16px; font-size: 0.85rem; }
.arrow { transition: transform 0.2s; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ hero ============ */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; }
.flow-line { fill: none; stroke: var(--accent-bright); stroke-width: 1.5; opacity: 0.35; stroke-dasharray: 8 10; animation: dashMove 30s linear infinite; }
.flow-line.l2 { animation-duration: 40s; opacity: 0.22; }
.flow-line.l3 { animation-duration: 50s; opacity: 0.28; }
@keyframes dashMove { to { stroke-dashoffset: -720; } }
.flow-dot { fill: var(--accent-bright); opacity: 0.9; }
.d1 { offset-path: path("M-40 620 C 280 560, 340 300, 720 300 S 1180 140, 1500 120"); animation: travel 14s linear infinite; }
.d2 { offset-path: path("M-40 420 C 320 420, 420 560, 760 540 S 1240 420, 1500 360"); animation: travel 18s linear infinite 3s; }
.d3 { offset-path: path("M-40 160 C 260 200, 520 80, 860 140 S 1260 320, 1500 300"); animation: travel 16s linear infinite 7s; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }

.vertical-switch { display: inline-flex; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; margin-bottom: 40px; box-shadow: var(--shadow); flex-wrap: wrap; justify-content: center; }
.vs-pill {
  padding: 9px 20px; border-radius: 999px; border: none; background: transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--text-soft);
  cursor: pointer; transition: all 0.25s ease;
}
.vs-pill:hover { color: var(--accent); }
.vs-pill.active { background: var(--grad); color: #fff; }
[data-theme="dark"] .vs-pill.active { color: #FFFFFF; }

.hero-headline { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 22px; transition: opacity 0.25s ease, transform 0.25s ease; }
.hero-headline .accent { color: var(--accent); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-soft); max-width: 640px; margin: 0 auto 34px; transition: opacity 0.25s ease; }
.morphing .hero-headline, .morphing .hero-sub, .morphing .hero-stats { opacity: 0; transform: translateY(8px); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; transition: opacity 0.25s ease, transform 0.25s ease; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); }
.stat span { font-size: 0.87rem; color: var(--muted); max-width: 160px; text-align: center; }

/* ============ trust wall ============ */
.trust { padding: 34px 0 44px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-metric { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.02rem; color: var(--text-soft); margin-bottom: 26px; }
.trust-metric strong { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 1.15rem; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); display: inline-block; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(51,109,255,0.5);} 70% { box-shadow: 0 0 0 10px rgba(51,109,255,0);} 100% { box-shadow: 0 0 0 0 rgba(51,109,255,0);} }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.badge { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.82rem; font-weight: 600; color: var(--text-soft); }

/* ============ sections ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.section-sub { color: var(--text-soft); max-width: 620px; margin-bottom: 44px; font-size: 1.08rem; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ agent panel ============ */
.agent-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.agent-controls { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.speed-toggle { display: flex; gap: 4px; background: var(--bg-alt); border-radius: 999px; padding: 4px; }
.speed-btn { border: none; background: transparent; padding: 5px 13px; border-radius: 999px; font-weight: 600; font-size: 0.82rem; cursor: pointer; color: var(--text-soft); font-family: var(--font-body); }
.speed-btn.active { background: var(--accent); color: #fff; }
[data-theme="dark"] .speed-btn.active { color: #FFFFFF; }
.agent-status { margin-left: auto; font-size: 0.88rem; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; }
.agent-steps { list-style: none; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.agent-step { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; transition: background 0.3s, opacity 0.3s; opacity: 0.45; }
.agent-step .step-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; color: var(--muted); transition: all 0.3s;
}
.agent-step.running { opacity: 1; background: var(--accent-soft); }
.agent-step.running .step-icon { border-color: var(--accent); color: var(--accent); animation: spinBorder 1.2s linear infinite; }
@keyframes spinBorder { 0%{ border-top-color: transparent; transform: rotate(0);} 100%{ border-top-color: transparent; transform: rotate(360deg);} }
.agent-step.done { opacity: 0.85; }
.agent-step.done .step-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .agent-step.done .step-icon { color: #FFFFFF; }
.agent-step .step-text strong { display: block; font-size: 0.95rem; }
.agent-step .step-text span { font-size: 0.82rem; color: var(--muted); }
.agent-log { background: #051727; border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 380px; }
.log-header { padding: 12px 20px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.78rem; color: #52678C; border-bottom: 1px solid rgba(255,255,255,0.06); }
.log-body { padding: 16px 20px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.8rem; line-height: 1.75; color: #9FB4D8; overflow-y: auto; max-height: 360px; flex: 1; }
.log-body .log-line { opacity: 0; animation: logIn 0.3s forwards; }
@keyframes logIn { to { opacity: 1; } }
.log-body .t { color: #46597A; }
.log-body .ok { color: #7FA7FF; }

/* ============ builder ============ */
.builder-canvas { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.builder-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.builder-svg { width: 100%; height: auto; display: block; }
.builder-hint { display: none; margin-top: 10px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.node.tapped .node-box { stroke: var(--accent); stroke-width: 2.5; }
.edge { stroke: var(--muted); stroke-width: 2; fill: none; stroke-dasharray: 6 6; animation: dashMove 20s linear infinite; }
.edge-arrow { fill: var(--muted); }
.node { cursor: pointer; }
.node-box { fill: var(--bg); stroke: var(--border); stroke-width: 1.5; transition: all 0.25s ease; }
.node:hover .node-box { stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 6px 14px rgba(51,109,255,0.25)); }
.node-trigger { fill: var(--accent-soft); stroke: var(--accent); }
.node-kind { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; fill: var(--accent); text-anchor: middle; }
.node-label { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; fill: var(--text); text-anchor: middle; }
.builder-tip {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px;
  font-size: 0.88rem; max-width: 520px; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease; box-shadow: var(--shadow);
}
.builder-tip.show { opacity: 1; }

/* ============ vertical cards ============ */
.vertical-card {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; margin-top: 36px; box-shadow: var(--shadow);
}
.vertical-card:nth-child(odd) .vc-demo { order: -1; }
.vc-tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; margin-bottom: 16px; }
.vc-copy h3 { font-size: 1.7rem; margin-bottom: 14px; }
.vc-problem { color: var(--text-soft); margin-bottom: 18px; }
.vc-list { list-style: none; margin-bottom: 22px; }
.vc-list li { padding-left: 28px; position: relative; margin-bottom: 9px; color: var(--text-soft); font-size: 0.97rem; }
.vc-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.vc-metric { font-size: 0.95rem; color: var(--text-soft); border-top: 1px solid var(--border); padding-top: 16px; }
.vc-metric strong { color: var(--accent); font-family: var(--font-display); font-size: 1.25rem; }

/* ---- Home care software stack ---- */
.stack-block { margin-top: 40px; }
.stack-head { max-width: 780px; margin-bottom: 30px; }
.stack-head h3 { font-size: 1.7rem; margin-bottom: 12px; }
.stack-sub { color: var(--text-soft); font-size: 1.02rem; line-height: 1.6; }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(285px, 100%), 1fr)); gap: 20px; }
.stack-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stack-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.stack-ico {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.35rem;
  border-radius: 13px; background: var(--accent-soft); margin-bottom: 15px;
}
.stack-card h4 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-bottom: 9px; }
.stack-card p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.55; margin-bottom: 16px; }
.stack-tools { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.stack-tools li {
  font-size: 0.78rem; font-weight: 600; color: var(--text-soft);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 11px;
}
.stack-note { margin-top: 22px; font-size: 0.8rem; color: var(--muted); max-width: 820px; line-height: 1.5; }
.mini-demo { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 13px; }
.md-row { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 15px; opacity: 0.35; transform: translateX(-6px); transition: all 0.5s ease; }
.md-row.on { opacity: 1; transform: none; }
.md-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); flex-shrink: 0; }

/* ============ EVV auto-dial flow demo ============ */
.evvflow {
  --ef-violet: var(--accent); --ef-blue: var(--accent-2); --ef-cyan: #12A7C9;
  --ef-green: #2E7D32; --ef-green-lit: #34C759; --ef-orange: #E65100;
  --ef-panel: var(--surface); --ef-panel-2: var(--bg-alt);
  --ef-ink: var(--text); --ef-muted: var(--muted); --ef-faint: var(--muted);
  --ef-line: var(--border); --ef-shadow: var(--shadow); --ef-shadow-sm: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%;
}
[data-theme="dark"] .evvflow {
  --ef-cyan: #3AD6E6; --ef-green: #43C463; --ef-green-lit: #5BE07C; --ef-orange: #FF7A2E;
}
.evvflow--wide { flex-direction: row; justify-content: center; align-items: center; gap: 44px; flex-wrap: wrap; }

/* ---- stage ---- */
.ef-stage { display: flex; flex-direction: column; align-items: center; position: relative; }

/* agency cloud node */
.ef-cloud {
  width: min(300px, 88%); background: var(--ef-panel); border: 1px solid var(--ef-line);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--ef-shadow);
  display: flex; align-items: center; gap: 12px; position: relative; z-index: 3;
  opacity: .35; transform: translateY(4px) scale(.98); transition: .6s cubic-bezier(.2,.7,.2,1);
}
.ef-stage[data-step="2"] .ef-cloud, .ef-stage[data-step="3"] .ef-cloud,
.ef-stage[data-step="4"] .ef-cloud, .ef-stage[data-step="5"] .ef-cloud { opacity: 1; transform: none; }
.ef-sheet {
  width: 38px; height: 38px; border-radius: 10px; flex: none; position: relative;
  background: linear-gradient(135deg,#1a8f4a,#0f7a3d); display: grid; place-items: center; box-shadow: var(--ef-shadow-sm);
}
.ef-sheet::before {
  content: ""; position: absolute; inset: 10px 9px; border-radius: 2px;
  background:
    linear-gradient(#fff 0 0) 0 3px/100% 1.5px,
    linear-gradient(#fff 0 0) 0 8px/100% 1.5px,
    linear-gradient(#fff 0 0) 0 13px/100% 1.5px,
    linear-gradient(rgba(255,255,255,.55) 0 0) 5px 0/1.5px 100%;
  background-repeat: no-repeat;
}
.ef-ci { min-width: 0; }
.ef-ci b { font-size: 13.5px; font-weight: 650; display: block; color: var(--ef-ink); }
.ef-ci span { font-size: 11px; color: var(--ef-muted); }
.ef-live { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--ef-green); display: flex; align-items: center; gap: 6px; flex: none; }
.ef-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ef-green-lit); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ef-green-lit) 70%, transparent); }
.ef-stage[data-step="2"] .ef-live i { animation: efPulse 1.4s infinite; }
@keyframes efPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ef-green-lit) 70%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* encrypted beam */
.ef-beam { height: 64px; width: 44px; position: relative; z-index: 1; margin: -2px 0; }
.ef-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--ef-line), color-mix(in srgb, var(--ef-violet) 45%, transparent), var(--ef-line));
  opacity: .5; transition: .5s;
}
.ef-stage[data-step="2"] .ef-line { opacity: 1; }
.ef-lock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.7);
  width: 26px; height: 26px; border-radius: 8px; background: var(--ef-panel); border: 1px solid var(--ef-line);
  display: grid; place-items: center; font-size: 12px; color: var(--ef-violet); z-index: 2;
  opacity: 0; transition: .5s; box-shadow: var(--ef-shadow-sm);
}
.ef-stage[data-step="2"] .ef-lock, .ef-stage[data-step="3"] .ef-lock,
.ef-stage[data-step="4"] .ef-lock, .ef-stage[data-step="5"] .ef-lock { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.ef-pk {
  position: absolute; left: 50%; top: 0; width: 7px; height: 7px; border-radius: 50%;
  transform: translateX(-50%); background: var(--ef-cyan); opacity: 0;
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--ef-cyan) 80%, transparent);
}
.ef-stage[data-step="2"] .ef-pk { animation: efFlow 1.15s linear infinite; }
.ef-pk:nth-child(3) { animation-delay: .38s; }
.ef-pk:nth-child(4) { animation-delay: .76s; }
@keyframes efFlow { 0% { top: 2px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 58px; opacity: 0; } }

/* phone */
.ef-phone {
  width: 280px; max-width: 82vw; aspect-ratio: 300/610; position: relative; z-index: 2;
  border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg,#3a3550,#1c1930);
  box-shadow: var(--ef-shadow), inset 0 0 0 1.5px rgba(255,255,255,.06);
}
[data-theme="dark"] .ef-phone { background: linear-gradient(160deg,#2b2740,#15121f); }
.ef-notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 96px; height: 20px; background: #0d0b14; border-radius: 0 0 14px 14px; z-index: 6; }
.ef-notch::after { content: ""; position: absolute; right: 20px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #2a2740; box-shadow: -11px 0 0 #201d30; }
.ef-screen { position: absolute; inset: 11px; border-radius: 30px; overflow: hidden; background: #D6D2E4; color: #26243c; font-size: 12.5px; }
.ef-app, .ef-dialer { position: absolute; inset: 0; transition: opacity .55s, transform .55s; will-change: opacity; }
.ef-app { opacity: 0; transform: scale(1.02); pointer-events: none; overflow: hidden; background: linear-gradient(180deg,#DCDAE6 0%,#D6D2E4 55%,#D2CEE1 100%); }
.ef-dialer { opacity: 0; transform: scale(1.02); background: #0f1420; color: #eaf1ff; }
.ef-splash { position: absolute; inset: 0; background: linear-gradient(150deg,#6D4AFF,#2E7BF6); display: grid; place-content: center; justify-items: center; gap: 14px; transition: opacity .6s; z-index: 5; }
.ef-mk { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.16); display: grid; place-items: center; color: #fff; backdrop-filter: blur(4px); animation: efBreathe 2.2s ease-in-out infinite; }
@keyframes efBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.ef-nm { color: #fff; font-weight: 600; letter-spacing: .02em; }
.ef-sub { color: rgba(255,255,255,.8); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.ef-stage[data-step="0"] .ef-splash { opacity: 1; }
.ef-stage:not([data-step="0"]) .ef-splash { opacity: 0; pointer-events: none; }
.ef-stage:not([data-step="0"]):not([data-step="4"]):not([data-step="5"]) .ef-app { opacity: 1; transform: none; pointer-events: auto; }
.ef-stage[data-step="4"] .ef-dialer, .ef-stage[data-step="5"] .ef-dialer { opacity: 1; transform: none; }

/* app chrome */
.ef-appbar { display: flex; align-items: center; gap: 9px; padding: 15px 13px 9px; position: relative; z-index: 5; }
.ef-ulogo { display: flex; align-items: center; gap: 6px; flex: none; }
.ef-ulogo svg { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.ef-uw { font-weight: 800; font-size: 12px; letter-spacing: .02em; color: #1f3a6e; line-height: 1.05; }
.ef-uw small { display: block; font-size: 6px; letter-spacing: .05em; color: #6b7ba0; font-weight: 700; text-transform: uppercase; margin-top: 1px; }
.ef-ttl { font-size: 16.5px; font-weight: 500; color: #3a3746; margin-left: 3px; letter-spacing: .005em; }
.ef-gear { margin-left: auto; color: #75727f; font-size: 16px; }
.ef-appwin { position: absolute; top: 50px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.ef-scroll { position: absolute; inset: 0; padding: 6px 13px 18px; display: flex; flex-direction: column; gap: 12px; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.ef-stage[data-step="2"] .ef-scroll { transform: translateY(-150px); }

.ef-btn { height: 60px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #edeeec; font-weight: 600; font-size: 20px; letter-spacing: .09em; position: relative; flex: none; box-shadow: 0 9px 20px -14px rgba(40,30,10,.65), inset 0 1px 0 rgba(255,255,255,.18); }
.ef-btn.in { background: linear-gradient(180deg,#4C6A49,#38513A); }
.ef-btn.out { background: linear-gradient(180deg,#8E4E33,#7A4028); }
.ef-ripple { position: absolute; inset: 0; border-radius: 999px; pointer-events: none; }
.ef-stage[data-step="3"] .ef-btn.out { animation: efTapd .9s ease-out 1; }
@keyframes efTapd { 0% { transform: scale(1); } 30% { transform: scale(.96); } 60% { transform: scale(1.01); } 100% { transform: scale(1); } }
.ef-stage[data-step="3"] .ef-btn.out .ef-ripple { animation: efRip .9s ease-out 1; }
@keyframes efRip { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 100% { box-shadow: 0 0 0 30px rgba(255,255,255,0); } }
.ef-finger { position: absolute; right: 38px; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.95), rgba(255,255,255,.25) 60%, transparent 62%); border: 2px solid rgba(255,255,255,.7); opacity: 0; z-index: 6; pointer-events: none; top: 158px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ef-stage[data-step="3"] .ef-finger { animation: efFinger 1.9s cubic-bezier(.3,.7,.2,1) 1; }
@keyframes efFinger { 0% { opacity: 0; transform: translateY(26px) scale(1.1); } 22% { opacity: 1; transform: translateY(0) scale(1); } 40% { transform: translateY(0) scale(.82); } 58% { transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-6px) scale(1); } }

.ef-card { background: #E4E2EE; border: 1px solid rgba(255,255,255,.5); border-radius: 16px; padding: 14px 15px; box-shadow: 0 5px 14px -11px rgba(60,50,110,.5); }
.ef-card h4 { margin: 0 0 9px; font-size: 14px; font-weight: 700; color: #302d44; }
.ef-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.ef-lab { font-size: 11.5px; color: #68657f; font-weight: 500; }
.ef-val { font-family: ui-monospace,"Cascadia Code",Consolas,monospace; font-size: 15px; font-weight: 500; color: #2a2840; margin-top: 3px; transition: .4s; }
.ef-val.empty { color: #a9a5c2; }
.ef-edit { color: #5b57c4; font-size: 14.5px; font-weight: 500; flex: none; }
.ef-divide { height: 1px; background: rgba(120,110,160,.2); margin: 3px 0; }
.ef-voice { display: flex; align-items: center; gap: 12px; padding: 6px 0 2px; }
.ef-mic { font-size: 21px; filter: grayscale(1); opacity: .7; }
.ef-vt b { display: block; font-size: 14px; color: #2a2840; font-weight: 600; }
.ef-vt span { font-size: 11.5px; color: #68657f; }
.ef-toggle { margin-left: auto; width: 42px; height: 24px; border-radius: 999px; background: #8b8896; position: relative; flex: none; }
.ef-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ef-note { font-size: 10.5px; color: #6a6784; line-height: 1.45; margin-top: 7px; }

.ef-sbtn { height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #eeecf7; font-weight: 600; font-size: 15px; letter-spacing: .02em; margin-top: 11px; background: linear-gradient(180deg,#6c63cf,#574fc0); box-shadow: 0 8px 16px -11px rgba(80,55,180,.7); }
.ef-sbtn-lab::after { content: "Sync now"; }
.ef-stage[data-step="2"] .ef-sbtn { filter: saturate(.85) brightness(.96); }
.ef-stage[data-step="2"] .ef-sbtn-lab::after { content: "Syncing…"; }
.ef-synced { font-size: 10.5px; color: #6a6784; margin-top: 8px; display: flex; align-items: center; gap: 7px; }
.ef-synced .ef-s { width: 7px; height: 7px; border-radius: 50%; background: #b6b2cc; transition: .4s; }
.ef-synced.ok .ef-s { background: #34C759; }
.ef-txt::after { content: "Not synced yet"; }
.ef-synced.ok .ef-txt::after { content: "Synced just now · schedule up to date"; }
.ef-stage[data-step="2"] .ef-synced .ef-s { background: #5b52d6; animation: efBlink .9s infinite; }
.ef-stage[data-step="2"] .ef-txt::after { content: "Syncing…"; }

.ef-sched-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid rgba(120,110,160,.18); opacity: 0; transform: translateX(6px); transition: .5s; }
.ef-sched-row:first-of-type { border-top: 0; }
.ef-sched-row.show { opacity: 1; transform: none; }
.ef-sched-row .ef-tag { font-size: 11.5px; font-weight: 700; width: 60px; flex: none; }
.ef-sched-row.i .ef-tag { color: #3b543b; }
.ef-sched-row.o .ef-tag { color: #7c4128; }
.ef-sched-row .ef-tm { font-size: 11.5px; color: #57546f; font-family: ui-monospace,Consolas,monospace; }
.ef-sched-row .ef-chip { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .04em; color: #7d7a94; border: 1px solid rgba(120,110,160,.35); border-radius: 20px; padding: 2px 8px; }
.ef-sched-row.due .ef-chip { color: #7c4128; border-color: color-mix(in srgb,#7c4128 45%,#fff); background: #f6ece5; }
@keyframes efBlink { 50% { opacity: .35; } }

/* dialer */
.ef-dhead { padding: 16px 16px 8px; text-align: center; }
.ef-to { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7f93bd; }
.ef-dnum { font-family: ui-monospace,Consolas,monospace; font-size: 21px; font-weight: 600; margin-top: 4px; letter-spacing: .02em; }
.ef-st { font-size: 11px; color: #5fd08a; margin-top: 5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ef-st i { width: 6px; height: 6px; border-radius: 50%; background: #5fd08a; animation: efBlink 1s infinite; }
.ef-eq { display: block; width: 100%; height: 52px; margin-top: 2px; }
.ef-log { padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.ef-tok { display: flex; align-items: center; gap: 10px; font-size: 12px; opacity: 0; transform: translateY(7px); transition: .35s; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 9px; padding: 7px 10px; }
.ef-tok.show { opacity: 1; transform: none; }
.ef-key { font-family: ui-monospace,Consolas,monospace; font-weight: 700; font-size: 12px; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 7px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg,#26324f,#1b2540); color: #bcd2ff; border: 1px solid rgba(120,150,220,.3); }
.ef-key.job { background: linear-gradient(135deg,#3a2a12,#2a1e0c); color: #ffc48a; border-color: rgba(230,150,60,.35); }
.ef-key.act { background: linear-gradient(135deg,#123024,#0e2419); color: #7fe0aa; border-color: rgba(70,200,130,.35); }
.ef-lbl { color: #c7d2ea; flex: 1; min-width: 0; }
.ef-lbl b { color: #eef4ff; font-weight: 650; }
.ef-tok.flash .ef-key { animation: efFlash .5s ease-out 1; }
@keyframes efFlash { 0% { box-shadow: 0 0 0 0 rgba(90,224,124,.6); filter: brightness(1.5); } 100% { box-shadow: 0 0 0 12px transparent; filter: brightness(1); } }
.ef-done-badge { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: linear-gradient(150deg,rgba(15,20,32,.86),rgba(15,20,32,.96)); opacity: 0; transition: .5s; pointer-events: none; }
.ef-stage[data-step="5"] .ef-done-badge { opacity: 1; }
.ef-ring { width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle,#1a8f4a,#0f7a3d); display: grid; place-items: center; color: #fff; font-size: 32px; box-shadow: 0 0 40px -6px #2E7D32; }
.ef-stage[data-step="5"] .ef-ring { animation: efPop .5s cubic-bezier(.2,1.4,.4,1) 1; }
@keyframes efPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ef-done-badge b { color: #eaf1ff; font-size: 15px; }
.ef-done-badge > span { color: #7f93bd; font-size: 11.5px; font-family: ui-monospace,Consolas,monospace; }

/* narration rail */
.ef-rail { width: 100%; max-width: 420px; }
.ef-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ef-violet); font-weight: 700; display: flex; align-items: center; gap: 9px; }
.ef-num { font-variant-numeric: tabular-nums; color: var(--ef-muted); border: 1px solid var(--ef-line); border-radius: 6px; padding: 1px 7px; font-size: 11px; }
.ef-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px,2.4vw,26px); line-height: 1.12; letter-spacing: -.01em; margin: 14px 0 0; text-wrap: balance; min-height: 2.1em; color: var(--ef-ink); }
.ef-title em { font-style: italic; color: var(--ef-violet); }
.ef-lede { margin: 12px 0 0; color: var(--ef-muted); font-size: 14px; max-width: 44ch; min-height: 4.3em; line-height: 1.5; }
.ef-lede code { font-family: ui-monospace,"Cascadia Code",Consolas,monospace; font-size: .86em; background: color-mix(in srgb, var(--ef-violet) 12%, transparent); color: var(--ef-ink); padding: 1px 6px; border-radius: 5px; }
.ef-steps { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ef-steps li { display: flex; align-items: center; gap: 13px; padding: 9px 12px; border-radius: 12px; color: var(--ef-faint); font-size: 13px; cursor: pointer; transition: .35s; border: 1px solid transparent; }
.ef-steps li .ef-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; border: 2px solid var(--ef-line); background: transparent; transition: .35s; }
.ef-steps li:hover { color: var(--ef-muted); }
.ef-steps li[data-done="1"] { color: var(--ef-muted); }
.ef-steps li[data-done="1"] .ef-dot { background: var(--ef-violet); border-color: var(--ef-violet); }
.ef-steps li[data-active="1"] { color: var(--ef-ink); font-weight: 600; background: var(--ef-panel); border-color: var(--ef-line); box-shadow: var(--ef-shadow-sm); }
.ef-steps li[data-active="1"] .ef-dot { background: var(--ef-violet); border-color: color-mix(in srgb, var(--ef-violet) 40%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ef-violet) 25%, transparent); }
.ef-controls { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.ef-controls button { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ef-ink); background: var(--ef-panel); border: 1px solid var(--ef-line); border-radius: 10px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 8px; transition: .2s; box-shadow: var(--ef-shadow-sm); }
.ef-controls button:hover { border-color: var(--ef-violet); color: var(--ef-violet); }
.ef-controls button:focus-visible { outline: 2px solid var(--ef-violet); outline-offset: 2px; }
.ef-progress { flex: 1; height: 4px; border-radius: 99px; background: var(--ef-line); overflow: hidden; }
.ef-bar { display: block; height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--ef-violet), var(--ef-blue)); transition: width .25s linear; }
.ef-foot { text-align: left; color: var(--ef-faint); font-size: 11px; margin-top: 16px; line-height: 1.5; }
.ef-foot code { font-family: ui-monospace,Consolas,monospace; word-break: break-word; }


/* ============ before / after ============ */
.ba-slider { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); user-select: none; }
.ba-pane { padding: 44px 48px; min-height: 340px; }
.ba-pane h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 18px; }
.ba-pane ul { list-style: none; }
.ba-pane li { margin-bottom: 12px; font-size: 0.95rem; }
.ba-before { background: var(--surface); color: var(--text-soft); }
.ba-before h4 { color: #C0564A; }
.ba-after {
  position: absolute; inset: 0; background: var(--accent);
  color: #fff; clip-path: inset(0 0 0 50%);
}
[data-theme="dark"] .ba-after { color: #FFFFFF; }
.ba-after h4 { color: inherit; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--text);
  cursor: ew-resize; touch-action: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: var(--bg);
  display: grid; place-items: center; font-size: 1.1rem; box-shadow: var(--shadow);
}

.ba-hint-narrow { display: none; }

/* ============ ROI ============ */
.roi-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.roi-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.roi-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 26px; }
.range-row { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.range-row output { font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); min-width: 54px; text-align: right; font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; appearance: none; height: 6px; border-radius: 3px; background: var(--bg-alt); outline: none; }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.roi-note { font-size: 0.83rem; color: var(--muted); margin-top: -6px; }
.roi-results { display: flex; flex-direction: column; gap: 18px; }
.roi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.roi-card-accent { background: var(--grad); border-color: transparent; }
.roi-card-accent .roi-label, .roi-card-accent .roi-value { color: #fff; }
[data-theme="dark"] .roi-card-accent .roi-label, [data-theme="dark"] .roi-card-accent .roi-value { color: #FFFFFF; }
.roi-label { font-size: 0.88rem; color: var(--muted); display: block; margin-bottom: 6px; }
.roi-value { font-family: var(--font-display); font-size: 2.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }

/* ============ steps ============ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 20px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.step-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent-soft); -webkit-text-stroke: 1.5px var(--accent); font-weight: 700; display: block; margin-bottom: 14px; }
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-soft); font-size: 0.96rem; }

/* ============ CTA ============ */
.cta-section { background: var(--text); color: var(--bg); }
.cta-inner { text-align: center; max-width: 660px; }
.cta-inner h2 { color: var(--bg); }
.cta-inner > p { opacity: 0.75; margin-bottom: 32px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.cta-form input {
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: inherit; font-size: 1rem; min-width: 280px;
  font-family: var(--font-body); outline: none; transition: border-color 0.2s;
}
[data-theme="dark"] .cta-form input { border-color: rgba(12,18,17,0.35); background: rgba(12,18,17,0.08); }
.cta-form input::placeholder { color: inherit; opacity: 0.55; }
.cta-form input:focus { border-color: var(--accent-bright); }
.cta-fineprint { font-size: 0.85rem; opacity: 0.55; }

/* ============ footer ============ */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.footer-nav a { text-decoration: none; font-size: 0.9rem; color: var(--text-soft); }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { width: 100%; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 24px; }

/* ============ nav dropdown ============ */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.drop-caret { font-size: 0.7rem; transition: transform 0.2s ease; display: inline-block; }
.nav-drop:hover .drop-caret, .nav-drop:focus-within .drop-caret { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 190px; padding: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px);
}
.drop-menu a {
  padding: 9px 14px; border-radius: 9px; font-size: 0.92rem; font-weight: 500;
  color: var(--text-soft); text-decoration: none; transition: background 0.15s, color 0.15s;
}
.drop-menu a:hover { background: var(--accent-soft); color: var(--accent); }

/* ============ mobile nav ============ */
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(5, 11, 22, 0.5); backdrop-filter: blur(2px); }
.nav-scrim[hidden] { display: none; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(330px, 88vw); padding: 86px 20px 36px;
  background: var(--bg); border-left: 1px solid var(--border);
  box-shadow: -18px 0 46px rgba(5, 11, 22, 0.22);
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.mobile-nav.open { transform: none; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.04rem; padding: 13px 12px; border-radius: 12px; }
.mobile-nav a:active { background: var(--accent-soft); color: var(--accent); }
.mobile-nav a.mnav-sub { font-size: 0.97rem; font-weight: 500; color: var(--text-soft); padding-left: 26px; }
.mnav-label { padding: 18px 12px 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mobile-nav .mnav-cta { margin-top: 24px; justify-content: center; text-align: center; color: #fff; }
body.nav-open { overflow: hidden; }
body.nav-open .site-header { background: var(--bg); z-index: 130; }

/* ============ hero EVV ============ */
.hero-evv { margin-top: 48px; display: flex; justify-content: center; animation: heroEvvIn 0.5s ease; }
.hero-evv[hidden] { display: none; }
@keyframes heroEvvIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .section { padding: 80px 0; }
  .vertical-card { gap: 34px; padding: 38px; }
  .roi-grid { gap: 32px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 68px 0; }
  .hero { padding: 60px 0 54px; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-log { border-left: none; border-top: 1px solid var(--border); min-height: 260px; }
  .vertical-card { grid-template-columns: 1fr; padding: 30px; gap: 28px; }
  .vertical-card:nth-child(odd) .vc-demo { order: 0; }
  .roi-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .ba-pane { padding: 28px 22px; }
  .ef-rail { max-width: none; }
  /* the node graph stops being legible when squeezed - pan it instead */
  .builder-svg { min-width: 680px; }
  .builder-hint { display: block; }
  .builder-tip { position: static; transform: none; max-width: none; margin-top: 12px; display: none; }
  .builder-tip.show { display: block; }
}

@media (max-width: 760px) {
  .evvflow--wide { flex-direction: column; }
  .hero-evv { margin-top: 34px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 11px 16px; gap: 10px; }
  .header-cta { display: none; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 34px; height: 34px; }
  .theme-toggle { width: 36px; height: 36px; }
  :target { scroll-margin-top: 76px; }

  .section { padding: 54px 0; }
  .section-sub { margin-bottom: 30px; font-size: 1rem; }
  .hero { padding: 36px 0 44px; }

  /* five industry pills will not fit on one row - scroll instead of wrapping to three */
  .vertical-switch {
    display: flex; flex-wrap: nowrap; justify-content: flex-start;
    width: 100%; overflow-x: auto; border-radius: 16px; margin-bottom: 30px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .vertical-switch::-webkit-scrollbar { display: none; }
  .vs-pill { flex: 0 0 auto; padding: 10px 16px; font-size: 0.86rem; white-space: nowrap; }

  .hero-ctas { gap: 10px; margin-bottom: 38px; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero-stats { gap: 20px 26px; }
  .stat strong { font-size: 1.6rem; }
  .stat span { font-size: 0.8rem; max-width: 124px; }

  .trust { padding: 26px 0 34px; }
  .trust-metric { font-size: 0.94rem; margin-bottom: 20px; }
  .marquee-track { gap: 34px; }
  .marquee-track span { font-size: 1rem; }
  .badges { gap: 9px; margin-top: 22px; }

  .agent-controls { padding: 14px 16px; gap: 10px; }
  .agent-status { margin-left: 0; }
  .agent-steps { padding: 18px 14px; }
  .agent-step { padding: 10px 12px; gap: 11px; }
  .log-body { font-size: 0.74rem; padding: 14px 16px; }
  .log-header { padding: 10px 16px; }

  .builder-canvas { padding: 14px; }

  .vertical-card { padding: 24px 18px; margin-top: 22px; gap: 24px; }
  .vc-copy h3 { font-size: 1.32rem; }
  .vc-list li { font-size: 0.94rem; }
  .stack-block { margin-top: 30px; }
  .stack-head h3 { font-size: 1.35rem; }
  .stack-card { padding: 20px 18px; }
  .mini-demo { padding: 16px; gap: 10px; }
  .md-row { font-size: 0.85rem; padding: 10px 13px; }

  .ef-controls { flex-wrap: wrap; }
  .ef-progress { flex: 1 0 100%; order: 3; }
  .ef-title { min-height: 0; }
  .ef-lede { min-height: 0; }

  /* a 50/50 clip on a 390px pane just interleaves two columns of text -
     stack the two states instead and drop the drag handle */
  .ba-slider { display: block; }
  .ba-pane { padding: 22px 18px; min-height: 0; }
  .ba-pane li { font-size: 0.9rem; }
  .ba-after { position: static; clip-path: none !important; border-top: 1px solid var(--border); }
  .ba-handle { display: none; }
  .ba-hint-wide { display: none; }
  .ba-hint-narrow { display: inline; }

  .roi-form { padding: 22px 18px; }
  .roi-form label { margin-bottom: 22px; }
  .range-row { gap: 14px; }
  .roi-card { padding: 20px 22px; }
  .roi-value { font-size: 2.1rem; }
  .roi-results .btn-lg { justify-content: center; }

  .step-card { padding: 24px 22px; }

  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form input { min-width: 0; width: 100%; }
  .cta-form .btn { width: 100%; justify-content: center; }

  .site-footer { padding: 42px 0 32px; }
  .footer-inner { gap: 26px; }
  .footer-nav { margin-left: 0; gap: 12px 20px; }
}

@media (max-width: 420px) {
  body { font-size: 15.5px; }
  .hero-headline { font-size: clamp(1.95rem, 8.6vw, 2.6rem); }
  .hero-stats { gap: 16px 20px; }
  .stat strong { font-size: 1.45rem; }
  .badge { font-size: 0.76rem; padding: 6px 12px; }
  .ef-phone { width: 100%; max-width: 258px; }
  .roi-value { font-size: 1.85rem; }
  .roi-card { padding: 18px; }
  .btn-lg { padding: 13px 22px; font-size: 0.97rem; }
  .stack-tools li { font-size: 0.74rem; }
}

/* touch devices: hover lifts stick after a tap, so drop them */
@media (hover: none) {
  .stack-card:hover { transform: none; border-color: var(--border); }
  .btn-primary:hover { transform: none; box-shadow: none; }
  .theme-toggle:hover { transform: none; }
  input[type="range"]::-webkit-slider-thumb:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
