/* FirstReach AI — shared styles for content pages (everything except index.html and the legal pages) */
:root {
    --bg: #f9fafb; --bg-2: #eef0f6; --surface: rgba(255, 255, 255, 0.72); --surface-2: rgba(255, 255, 255, 0.94);
    --line: rgba(17, 24, 39, 0.08); --line-2: rgba(17, 24, 39, 0.16);
    --text: #111827; --text-2: #4b5563; --text-3: #9aa0ae; --body: #374151;
    --indigo: #6366f1; --indigo-l: #818cf8; --violet: #a78bfa; --fuchsia: #e879f9; --green: #4ade80; --amber: #fbbf24;
    --grad: linear-gradient(100deg, #818cf8, #a78bfa 50%, #e879f9);
    --r-lg: 28px; --r-md: 18px;
    --fd: 'Space Grotesk', sans-serif; --fb: 'Inter', sans-serif; --fm: 'JetBrains Mono', monospace; --fs: 'Instrument Serif', serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    /* total horizontal inset for page content: 24px per side on a phone, up to 56px on a desktop */
    --page-gutter: clamp(48px, 12vw, 112px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--fb); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1280px, 100% - var(--page-gutter)); margin-inline: auto; position: relative; }
.narrow { max-width: 820px; }

/* background aura */
#bg-mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg); overflow: hidden; }
#bg-mesh .aura { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.26; }
#bg-mesh .aura-1 { width: 60vw; height: 60vw; top: -20vw; right: -15vw; background: #a5b4fc; }
#bg-mesh .aura-2 { width: 50vw; height: 50vw; bottom: -20vw; left: -15vw; background: #f0abfc; opacity: 0.18; }
main { position: relative; z-index: 2; padding-top: 110px; }

/* nav (mirrors index.html) */
#site-nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: min(1240px, calc(100% - 24px)); z-index: 140; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 18px 45px -22px rgba(99, 102, 241, 0.25); }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { height: 30px; width: 30px; transition: transform 0.5s var(--ease); }
.nav-logo:hover img { transform: scale(1.12) rotate(-4deg); }
.nav-logo span { font-family: var(--fd); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.nav-logo em { font-style: normal; color: var(--indigo-l); }
.nav-links { display: none; gap: 26px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link { font-family: var(--fm); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-2); position: relative; padding: 6px 0; transition: color 0.3s; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0%; background: var(--grad); transition: width 0.4s var(--ease); }
.nav-link:hover, .nav-link.active { color: #050507; font-weight: 700; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-burger i { display: block; width: 20px; height: 1.5px; background: #111827; transition: transform 0.4s var(--ease); }
body.nav-open .nav-burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
body.nav-open .nav-burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 560px) { .nav-logo span { display: none; } .btn-nav { padding: 11px 16px; font-size: 9px; letter-spacing: 0.14em; } #site-nav { padding: 8px 8px 8px 16px; } }
#mobile-menu { position: fixed; inset: 0; z-index: 130; background: rgba(249, 250, 251, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 90px 24px 40px; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; overflow: auto; }
body.nav-open #mobile-menu { opacity: 1; visibility: visible; }
.m-link { font-family: var(--fd); font-weight: 700; font-size: clamp(1.3rem, 5vw, 1.9rem); letter-spacing: -0.02em; color: var(--text-2); padding: 6px 0; transition: color 0.3s; }
.m-link:hover, .m-link.active { color: #111827; }
.m-cta { margin-top: 26px; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--fd); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 999px; overflow: hidden; isolation: isolate; transition: transform 0.4s var(--ease), box-shadow 0.4s; white-space: nowrap; border: 0; cursor: pointer; }
.btn-primary { background: linear-gradient(100deg, #4f46e5, #7c3aed 55%, #c026d3); color: #fff; box-shadow: 0 8px 30px -8px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #6366f1, #a78bfa 55%, #e879f9); opacity: 0; transition: opacity 0.4s; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-20deg); transition: left 0.7s var(--ease); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--indigo-l); color: var(--indigo); }
.btn-nav { padding: 12px 22px; font-size: 10px; letter-spacing: 0.2em; }
.btn-hero { padding: 20px 38px; font-size: 13px; }
.btn-md { padding: 16px 28px; font-size: 12px; }
.btn-submit { padding: 22px 30px; font-size: 14px; border-radius: 18px; width: 100%; }

/* typography */
.eyebrow { font-family: var(--fm); font-size: 11px; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: linear-gradient(90deg, var(--indigo), transparent); }
.eyebrow b { color: var(--indigo-l); font-weight: 500; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.h-display { font-family: var(--fd); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.96; font-size: clamp(2.4rem, 6.5vw, 5.2rem); margin: 0; }
.h-display.sm { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
h2.h-section { font-family: var(--fd); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 18px; }
h3 { font-family: var(--fd); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-size: 1.25rem; margin: 0 0 10px; }
.lead { color: var(--text-2); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.75; max-width: 760px; margin: 0; }
.lead strong { color: var(--text); font-weight: 600; }
p { line-height: 1.75; color: var(--body); margin: 0 0 14px; }
.serif { font-family: var(--fs); font-style: italic; font-weight: 400; }
.muted { color: var(--text-3); }
.small { font-size: 0.86rem; }
.mono { font-family: var(--fm); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); }
ul.list { padding-left: 20px; margin: 0 0 14px; }
ul.list li { line-height: 1.7; color: var(--body); margin-bottom: 8px; }
ul.check { list-style: none; padding: 0; margin: 0 0 14px; }
ul.check li { position: relative; padding-left: 30px; line-height: 1.7; color: var(--body); margin-bottom: 10px; }
ul.check li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #818cf8, #e879f9); opacity: 0.9; }
ul.check li::after { content: ''; position: absolute; left: 5px; top: calc(0.55em + 4px); width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ph { background: #fff4c2; border: 1px dashed #d1a300; border-radius: 4px; padding: 0 5px; font-family: var(--fm); font-size: 0.82em; color: #6b4e00; }

/* layout blocks */
.section { padding: clamp(60px, 8vw, 120px) 0; position: relative; }
.section.tight { padding: clamp(36px, 5vw, 70px) 0; }
.hero { padding: clamp(30px, 5vw, 70px) 0 clamp(40px, 6vw, 80px); }
.hero .lead { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 60px; } }
.split { display: grid; gap: 34px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 60px; } .split.even { grid-template-columns: 1fr 1fr; } .split .sticky { position: sticky; top: 110px; } }
.grid-2 { display: grid; gap: 18px; }
.grid-3 { display: grid; gap: 18px; }
.grid-4 { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* cards */
.glass { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform 0.6s var(--ease), border-color 0.5s, box-shadow 0.5s, background 0.5s; overflow: hidden; }
.glass:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, 0.5); box-shadow: 0 30px 60px -30px rgba(99, 102, 241, 0.35); background: var(--surface-2); }
.card { padding: clamp(24px, 3vw, 36px); }
.card .num { font-family: var(--fd); font-weight: 700; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(17,24,39,0.25); margin-bottom: 18px; transition: color 0.4s; }
.glass:hover .num { color: var(--indigo-l); -webkit-text-stroke-color: transparent; }
.card p:last-child { margin-bottom: 0; }
.card.link { display: block; }
.card.link .arrow { font-family: var(--fm); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--indigo); margin-top: 16px; display: inline-block; }
.card.feature { display: flex; gap: 22px; align-items: flex-start; }
.card.feature .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, rgba(129,140,248,0.18), rgba(232,121,249,0.18)); display: grid; place-items: center; font-family: var(--fm); font-size: 11px; color: var(--indigo); }
.stat { padding: 26px 28px; }
.stat b { display: block; font-family: var(--fd); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stat span { font-size: 0.9rem; color: var(--text-2); line-height: 1.5; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--fm); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255,255,255,0.6); }
.chip.on { border-color: rgba(129,140,248,0.6); color: var(--indigo); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fm); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255,255,255,0.6); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74,222,128,0.2); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,0.8); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); line-height: 1.55; color: var(--body); }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--fm); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); font-weight: 500; background: rgba(17, 24, 39, 0.025); white-space: nowrap; }
td.hl, th.hl { background: rgba(129, 140, 248, 0.08); }
td b { color: var(--text); font-weight: 600; }
.yes { color: #15803d; font-weight: 600; }
.no { color: #b91c1c; font-weight: 600; }
.part { color: #b45309; font-weight: 600; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); padding: 0 22px; transition: border-color 0.4s; }
.faq details[open] { border-color: rgba(129,140,248,0.5); background: var(--surface-2); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--fd); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--fm); color: var(--indigo); font-size: 18px; flex: none; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding-bottom: 20px; margin: 0; }

/* transcript */
.transcript { display: grid; gap: 12px; padding: clamp(20px, 3vw, 30px); }
.transcript .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.bubble { max-width: 88%; padding: 14px 18px; border-radius: 18px; font-size: 0.95rem; line-height: 1.6; color: var(--body); }
.bubble.caller { align-self: flex-start; background: rgba(17,24,39,0.05); border-bottom-left-radius: 6px; }
.bubble.ai { align-self: flex-end; background: linear-gradient(120deg, rgba(129,140,248,0.16), rgba(232,121,249,0.16)); border: 1px solid rgba(129,140,248,0.25); border-bottom-right-radius: 6px; }
.bubble .who { display: block; font-family: var(--fm); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.audio-soon { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line-2); font-family: var(--fm); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.audio-soon .bars { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.audio-soon .bars i { width: 3px; background: var(--indigo-l); opacity: 0.6; border-radius: 2px; }

/* forms */
form.stack { display: flex; flex-direction: column; gap: 14px; }
.input-glass { width: 100%; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line); color: var(--text); font: 500 1rem var(--fb); transition: border-color 0.35s, box-shadow 0.35s; }
.input-glass::placeholder { color: var(--text-3); }
.input-glass:focus { outline: none; border-color: var(--indigo-l); box-shadow: 0 0 0 4px rgba(129,140,248,0.18); }
select.input-glass { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236366f1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; padding-right: 44px; color: var(--text-2); }
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 0.85rem; line-height: 1.5; color: var(--text-2); cursor: pointer; padding: 2px 4px; }
.form-consent input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--indigo); flex: none; cursor: pointer; }
.form-privacy { font-size: 0.78rem; line-height: 1.5; color: var(--text-3); margin: -4px 0 0; padding: 0 4px; }
.form-privacy a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.form-ok { display: none; padding: 26px; text-align: center; }
.form-ok h3 { margin-bottom: 8px; }
form.sent { display: none; }
form.sent + .form-ok { display: block; }

/* calculator */
.calc { display: grid; gap: 24px; }
@media (min-width: 960px) { .calc { grid-template-columns: 0.95fr 1.05fr; gap: 32px; align-items: start; } }
.calc-inputs { padding: clamp(22px, 3vw, 32px); display: grid; gap: 22px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.92rem; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.field label output { font-family: var(--fm); font-size: 0.9rem; color: var(--indigo); white-space: nowrap; }
.field .hint { font-size: 0.8rem; color: var(--text-3); margin: 8px 0 0; line-height: 1.5; }
input[type=range] { width: 100%; accent-color: var(--indigo); height: 4px; cursor: pointer; }
.calc-out { display: grid; gap: 18px; }
.calc-big { padding: clamp(24px, 3vw, 36px); background: linear-gradient(135deg, rgba(129,140,248,0.14), rgba(232,121,249,0.12)); border-color: rgba(129,140,248,0.35); }
.calc-big .label { font-family: var(--fm); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-2); }
.calc-big .value { font-family: var(--fd); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.04em; line-height: 1; margin: 10px 0 6px; }
.calc-big .band { font-size: 0.9rem; color: var(--text-2); }
.calc-mini { display: grid; gap: 12px; }
@media (min-width: 560px) { .calc-mini { grid-template-columns: repeat(3, 1fr); } }
.calc-mini .stat { padding: 20px; }
.calc-mini .stat b { font-size: 1.7rem; }
.chart { padding: 20px 22px 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .cap { font-size: 0.8rem; color: var(--text-3); margin: 8px 0 0; line-height: 1.5; }
.calc-note { font-size: 0.82rem; color: var(--text-3); line-height: 1.6; }

/* steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps.three { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 26px; }
.step .k { font-family: var(--fm); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--indigo); margin-bottom: 14px; }

/* bands */
.cta-band { padding: clamp(40px, 6vw, 70px); text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0 auto 30px; }
.marquee-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0; margin: 20px 0 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-chunk { display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; font-family: var(--fm); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }
.marquee-chunk i { font-style: normal; color: var(--indigo); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .foot-track { animation: none; } html { scroll-behavior: auto; } }

/* breadcrumb */
.crumbs { font-family: var(--fm); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--indigo); }

/* footer (mirrors index.html) */
footer.site-foot { border-top: 1px solid var(--line); padding: clamp(50px, 7vw, 90px) 0 44px; overflow: hidden; position: relative; z-index: 2; }
.foot-marquee { overflow: hidden; margin-bottom: clamp(40px, 6vw, 70px); opacity: 0.9; }
.foot-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.foot-chunk { display: flex; align-items: center; gap: 56px; padding-right: 56px; white-space: nowrap; }
.foot-chunk span { font-family: var(--fd); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(4rem, 11vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(17, 24, 39, 0.14); transition: color 1s; }
.foot-chunk span:hover { color: rgba(129, 140, 248, 0.25); }
.foot-chunk i { font-style: normal; color: var(--indigo); font-size: clamp(2rem, 5vw, 4rem); }
.foot-line { text-align: center; font-family: var(--fm); font-size: 9px; letter-spacing: 0.6em; text-transform: uppercase; color: var(--text-3); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; } .foot-brand { grid-column: 1; } }
.foot-col .eyebrow { margin-bottom: 18px; }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fd); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); }
.foot-logo img { width: 28px; height: 28px; }
.foot-logo em { font-style: normal; color: var(--indigo); }
.foot-tag { font-family: var(--fs); font-style: italic; font-size: 1.2rem; color: var(--text-2); margin: 16px 0 0; }
.foot-desc { font-family: var(--fb); font-size: 0.92rem; line-height: 1.7; color: #6b7280; margin: 12px 0 0; max-width: 36ch; }
.foot-contact { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.foot-contact li { font-family: var(--fb); font-size: 0.95rem; color: var(--text-2); }
.foot-contact a:hover { color: var(--indigo); }
.foot-who { display: block; font-family: var(--fm); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-list li { font-family: var(--fb); font-size: 0.93rem; color: var(--text-2); }
.foot-list a { transition: color 0.3s; }
.foot-list a:hover { color: var(--indigo); }
.foot-soon { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--text-3); cursor: default; white-space: nowrap; }
.foot-soon .soon { font-family: var(--fm); font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-3); white-space: nowrap; }
.foot-legal { display: grid; gap: 12px; max-width: 920px; margin-inline: auto; text-align: center; }
.foot-legal p { font-family: var(--fb); font-size: 0.78rem; line-height: 1.75; color: #6b7280; margin: 0; }
.foot-legal p strong { font-weight: 600; color: var(--text-2); }
.foot-legal .foot-line { margin-top: 22px; }

/* dropdown navigation */
.nav-item { position: relative; }
.nav-drop { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.nav-drop .chev { width: 9px; height: 6px; transition: transform 0.3s var(--ease); }
.nav-item:hover .chev, .nav-item.open .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 300px; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(99, 102, 241, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.4s var(--ease), visibility 0.25s; z-index: 150; display: grid; gap: 4px; text-align: left; }
.nav-menu.wide { min-width: 600px; grid-template-columns: 1fr 1fr; }
.nav-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item:hover > .nav-menu, .nav-item.open > .nav-menu, .nav-item:focus-within > .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-mi { display: block; padding: 11px 14px; border-radius: 14px; transition: background 0.25s; font-family: var(--fb); text-transform: none; letter-spacing: 0; }
.nav-mi:hover { background: rgba(99, 102, 241, 0.08); }
.nav-mi b { display: block; font-family: var(--fd); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; color: var(--text); }
.nav-mi span { display: block; font-size: 0.8rem; line-height: 1.45; color: var(--text-2); margin-top: 3px; }
.nav-mi.all { border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding-top: 14px; font-family: var(--fm); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--indigo); }
.nav-mi.all:hover { background: none; }
.nav-menu.wide .nav-mi.all { grid-column: 1 / -1; }

/* grouped mobile menu */
#mobile-menu { justify-content: flex-start; align-items: stretch; padding: 96px 8vw 40px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.m-scroll { display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; }
.m-group { margin-bottom: 24px; }
.m-label { font-family: var(--fm); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--indigo); margin-bottom: 8px; }
.m-link { font-size: clamp(1.15rem, 5vw, 1.5rem); padding: 5px 0; display: block; }
.m-cta { margin-top: 8px; }

/* draft note (product pages still being confirmed) */
.draft-note { background: #fff8e1; border: 1px solid #f0c94c; border-radius: 14px; padding: 16px 20px; font-size: 0.9rem; line-height: 1.6; color: #5b4300; margin-bottom: 30px; }
.draft-note strong { color: #3d2c00; }

/* page veil, scroll reveals, aurora drift, spotlight */
.page-veil { position: fixed; inset: 0; z-index: 400; background: linear-gradient(120deg, #eef0f6, #e0e7ff 50%, #fae8ff); pointer-events: none; animation: veilOut 0.9s var(--ease) 0.05s forwards; }
body.leaving .page-veil { animation: veilIn 0.4s var(--ease) forwards; }
@keyframes veilOut { to { transform: translateY(-102%); } }
@keyframes veilIn { from { transform: translateY(102%); } to { transform: translateY(0); } }
[data-io] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-io].in { opacity: 1; transform: none; }
.glass[data-io].in:hover { transform: translateY(-3px); }
#bg-mesh .aura { animation: drift 26s ease-in-out infinite alternate; }
#bg-mesh .aura-2 { animation-duration: 34s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); filter: blur(110px) hue-rotate(0deg); } 100% { transform: translate(6vw, 4vw) scale(1.15); filter: blur(120px) hue-rotate(35deg); } }
.glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(129, 140, 248, 0.2), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.glass:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 1; }
.btn-primary { transition: transform 0.4s var(--ease), box-shadow 0.4s; }
@media (prefers-reduced-motion: reduce) { .page-veil { display: none; } [data-io] { opacity: 1; transform: none; transition: none; } #bg-mesh .aura { animation: none; } }
/* On a touch device the veil covers the page while it is still painting, so the first
   thing you see on a phone is a blank gradient rather than the page. The script keeps
   the reveals and the held navigation off here too; this is the CSS half of that. */
@media (hover: none), (pointer: coarse) {
  .page-veil { display: none; }
  [data-io] { opacity: 1; transform: none; transition: none; }
}

/* phones: tables stack into labelled rows instead of scrolling sideways */
@media (max-width: 640px) {
    .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td, .table-wrap tbody th { display: block; width: 100%; box-sizing: border-box; }
    .table-wrap thead { display: none; }
    .table-wrap tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
    .table-wrap tr:last-child { border-bottom: 0; }
    .table-wrap td, .table-wrap tbody th { border-bottom: 0; padding: 5px 14px; white-space: normal; }
    .table-wrap tbody th, .table-wrap td:first-child { padding-top: 10px; font-weight: 600; color: var(--text); background: none; }
    .table-wrap tbody th { font-family: var(--fm); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
    td.hl, th.hl { background: rgba(129, 140, 248, 0.08); }
}

/* Source references: the marker sits on the stat, the citation lives once at the
   foot of the page, so a number in a stat tile is not interrupted by an attribution. */
.src-ref { text-decoration: none; color: var(--indigo); font-weight: 600; margin-left: 2px; }
.src-ref sup { font-size: 0.7em; }
.src-ref:hover { text-decoration: underline; }
.src-list {
  margin: 14px 0 0; padding-left: 20px;
  font-size: 0.82rem; line-height: 1.7; color: var(--muted, #6b7280);
}
.src-list li { margin-bottom: 4px; }

/* Founder avatars. The circle and the headshot crop are done here rather than in the
   image file, so an original photo of any shape can be dropped in untouched and the
   visible part moved later with object-position. */
.avatar {
  flex: 0 0 auto; width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.14);
  background: linear-gradient(135deg, #eef0ff, #f8eaff);
}
.avatar[hidden] { display: none; }
.avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-weight: 700; font-size: 2.1rem; letter-spacing: -0.02em;
  color: var(--indigo, #6366f1);
}
@media (max-width: 640px) {
  .avatar { width: 96px; height: 96px; }
  .avatar-fallback { font-size: 1.6rem; }
}
/* product screenshots (CRM Platform page): a window frame, a two-phone pair, and text-beside-image rows */
.shot { padding: 0; background: var(--surface-2); }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(249, 250, 251, 0.9); }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(17, 24, 39, 0.12); }
.shot .bar span { margin-left: 10px; font-family: var(--fm); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.shot img { display: block; width: 100%; height: auto; }
.shot-cap { font-size: 0.82rem; color: var(--text-3); line-height: 1.6; margin: 14px 6px 0; }
.shot-cap a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.shot-rows { display: grid; gap: clamp(44px, 7vw, 96px); }
.shot-row { display: grid; gap: 26px; align-items: center; }
.shot-row .k { font-family: var(--fm); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--indigo); margin-bottom: 14px; }
.shot-row h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.shot-row p { color: var(--text-2); line-height: 1.7; margin: 0 0 12px; }
.shot-row p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
    .shot-row { grid-template-columns: 0.78fr 1.22fr; gap: 56px; }
    .shot-row.flip .shot-text { order: 2; }
    .shot-row.flip .shot-media { order: 1; }
}
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 520px; margin-inline: auto; }
.phone { border-radius: 30px; padding: 8px; background: #111827; border: 1px solid rgba(17, 24, 39, 0.4); box-shadow: 0 30px 60px -30px rgba(17, 24, 39, 0.45); }
.phone img { display: block; width: 100%; height: auto; border-radius: 22px; }
.shot-card { padding: 0; display: flex; flex-direction: column; }
.shot-card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.shot-card .body { padding: 22px 26px 26px; }
.shot-card .body p { margin: 0; color: var(--text-2); line-height: 1.65; font-size: 0.95rem; }
