/* ============================================================
   hirescanners.com — design system + components
   Brand tokens shared with getqflow.com (public-site) and
   docs.qflowhub.io. Nothing here is inherited from the previous
   Netlify build: content was ported, styling is ours.
   ============================================================ */

/* Ubuntu — logo wordmark only. Self-hosted; Regular(400)/Medium(500)/Bold(700). */
@font-face { font-family: 'Ubuntu'; src: url('/assets/fonts/Ubuntu-R.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('/assets/fonts/Ubuntu-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('/assets/fonts/Ubuntu-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blue: #3bb5e5; --purple: #635bff; --violet: #7c3aed;
  --grad: linear-gradient(135deg, #3bb5e5 0%, #635bff 55%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,181,229,.12), rgba(99,91,255,.12));
  --bg: #ffffff; --bg-alt: #f6f8fc; --bg-card: #ffffff; --bg-card-hover: #fbfcfe;
  --border: #e6e9f0; --border-strong: #d3d8e3;
  --text: #0d1330; --text-2: #4a5170; --text-3: #8990ab;
  --shadow: 0 1px 2px rgba(13,19,48,.04), 0 8px 30px rgba(13,19,48,.06);
  --shadow-lg: 0 20px 60px rgba(99,91,255,.18);
  --nav-bg: rgba(255,255,255,.72);
  --ok: #16a34a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', var(--font);
  --font-brand: 'Ubuntu', var(--font-display);
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px; --radius-lg: 22px; --max: 1140px;
}
[data-theme="dark"] {
  --bg: #080b18; --bg-alt: #0c1124; --bg-card: #111733; --bg-card-hover: #161d3e;
  --border: #1f2747; --border-strong: #2a3358;
  --text: #eef1fb; --text-2: #aab2d5; --text-3: #6b739b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 40px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 70px rgba(99,91,255,.35);
  --nav-bg: rgba(8,11,24,.72);
  --grad-soft: linear-gradient(135deg, rgba(59,181,229,.16), rgba(124,58,237,.16));
  --ok: #4ade80;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
/* Touch: the browser's default tap highlight (translucent blue box) is off
   above, so give presses our own feedback instead. Keyboard focus is
   untouched — that's :focus-visible outlines, not this. */
.btn:active, .stepper button:active, .mini-stepper button:active, .segmented button:active,
.tcar-nav:active, .theme-btn:active, .nav-burger:active, .contact-submit:active { transform: scale(.97); }
.calc-toggle:active, .calc-addons > summary:active, .chip:active, .nav-flat:active, .mosaic-tile:active { background-color: var(--bg-alt); }
.mosaic-tile:active img { transform: scale(1.02); }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; width: 100%; }
/* padding-right + matching negative margin gives the clip box room for the
   trailing glyph's overhang (e.g. a 'y') without shifting layout/punctuation. */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-right: 0.12em; margin-right: -0.12em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; padding: 10px 18px; border-radius: 10px; cursor: pointer; transition: all .2s; border: 1px solid transparent; font-family: var(--font); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(99,91,255,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(99,91,255,.45); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- brand wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--text); }
.brand-mark { width: 30px; height: 30px; display: block; }
/* "Qflow" in Ubuntu Medium @20px; "for events™" indented 1.4em, half-size. */
.brand-text { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.02; font-family: var(--font-brand); font-weight: 500; font-size: 20px; }
.brand-sub { font-family: var(--font-display); font-size: 0.5em; font-weight: 600; color: #425466; letter-spacing: 0; line-height: 1; margin-top: 2px; margin-left: 1.4em; }
[data-theme="dark"] .brand-sub { color: #aab2d5; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav-flat { color: var(--text-2); font-weight: 500; font-size: 14.5px; transition: color .2s; padding: 8px 12px; border-radius: 8px; }
.nav-flat:hover { color: var(--text); }
.nav-flat.current { color: var(--text); font-weight: 600; }
.nav-mobile-cta { display: none; }
.nav-burger { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-2); cursor: pointer; font-size: 16px; align-items: center; justify-content: center; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.theme-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-2); cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s, transform .2s; }
.theme-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }

/* ---------- sections ---------- */
main { flex: 1; }
section.block { padding: 90px 0; }
.block.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.block.tight { padding: 60px 0; }
/* nav links jump to these (/#features, /#quote…): stop below the 68px sticky
   nav, otherwise on phones (64px section padding) the heading slid under it */
section[id] { scroll-margin-top: 68px; }
/* Section kicker — small uppercase text, no dot. Matches /start/ + public-site. */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
/* Pill — the estate's standard "context chip". Static gradient dot, never animated. */
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-2); margin-bottom: 26px; box-shadow: var(--shadow); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: 0 0 auto; }
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-bottom: 16px; }
.sec-head p { font-size: 18px; color: var(--text-2); }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--purple); }

/* ---------- hero — split: copy left, product shot right ----------
   Deliberately short: the whole point is that the logo strip and the first
   testimonial sit in the eye line on a first visit, rather than a full-height
   centred hero pushing them below the fold. */
/* overflow-x only: the 3D scanner's canvas overhangs its box and must not be
   sliced off top or bottom; sideways overflow (the glow) is still clipped. */
.hero { position: relative; padding: 64px 0 52px; overflow-x: clip; overflow-y: visible; }
.hero::before { content: ""; position: absolute; inset: -180px 0 auto 0; height: 600px; z-index: 0; clip-path: inset(180px 0 0 0); /* keep it inside the hero, as when .hero clipped */ background: radial-gradient(620px 380px at 22% 14%, rgba(59,181,229,.20), transparent 60%), radial-gradient(620px 420px at 78% 8%, rgba(124,58,237,.20), transparent 60%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
/* No text-wrap:balance — we want lines 1–2 to fill greedily, with the
   rotating word alone on line 3 (see the h1 comment in pages/index.html). */
.hero h1 { font-size: clamp(36px, 4.9vw, 54px); font-weight: 800; margin: 0 0 20px; }
/* Rotating headline completion — our typewriter, not a JS banner library.
   It owns line 3 outright, so no reserved min-width is needed and there is no
   trailing gap: a longer word simply grows to the right. */
.tw-wrap { white-space: nowrap; }
.cursor { color: var(--purple); -webkit-text-fill-color: var(--purple); font-weight: 300; margin-left: 2px; animation: tw-blink .8s step-end infinite; }
@keyframes tw-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.hero .sub { font-size: clamp(16.5px, 1.9vw, 19px); color: var(--text-2); max-width: 52ch; margin: 0 0 28px; }
/* three short "why a scanner" points: plain text + icon, no boxes (house rule: no pills) */
.hero .sub:has(+ .hero-points) { margin-bottom: 14px; }
.hero-points { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; font-size: 15.5px; color: var(--text); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-points i { color: var(--purple); font-size: 14px; width: 16px; text-align: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Fixed customer quote under the CTAs (replaced the stat lines, now in the
   stats band). Guarantees a real quote above the fold at any screen height. */
.hero-quote { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 52ch; }
.hero-quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 2px solid var(--border); }
.hero-quote blockquote { font-size: 15px; line-height: 1.55; color: var(--text); }
.hero-quote figcaption { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.hero-quote figcaption strong { color: var(--text-2); }

/* 3D scanner in the home hero (replaces the video). Transparent canvas, so no
   frame or shadow; the component fits the device to this box. The box is 4:5
   so the portrait device is drawn large, but -12.5% top/bottom margins (of the
   width) pull its layout height back to a square: same hero height as before,
   so the logo strip stays in the eye line. The overhang is transparent. */
.hero-scanner { position: relative; width: 100%; aspect-ratio: 4 / 5; margin-block: -12.5%; }
/* still → live 3D crossfade; the canvas stays hidden until it has a real frame */
.scanner-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s ease, visibility 0s .4s; }
.scanner-block canvas { transition: opacity .4s ease; }
.scanner-block:not(.is-ready) canvas { opacity: 0; }
.scanner-block.is-ready .scanner-fallback { opacity: 0; visibility: hidden; }
/* sub-page heroes carry no product shot — just tighten the band */
.hero.doc-hero { padding: 72px 0 52px; }

/* ---------- logo marquee (ours: CSS-only, seamless, pauses on hover) ---------- */
.logos { padding: 44px 0 12px; }
.logos p { text-align: center; color: var(--text-3); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 58px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee img { height: 34px; width: auto; object-fit: contain; opacity: .45; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.marquee img:hover { opacity: .9; filter: grayscale(0); }
[data-theme="dark"] .marquee img { filter: grayscale(1) invert(1) brightness(1.7); opacity: .55; }
[data-theme="dark"] .marquee img:hover { filter: grayscale(0) invert(1) brightness(1.7); opacity: .9; }
/* the track holds two identical halves, so -50% lands exactly on the seam */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; gap: 34px; } }

/* ---------- testimonial carousel (ours: transform track + JS in site.js) ---------- */
.tcar { display: flex; align-items: center; gap: 14px; }
.tcar-view { overflow: hidden; flex: 1; }
.tcar-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) { .tcar-track { transition: none; } }
.tcar-slide { flex: 0 0 100%; display: flex; gap: 22px; align-items: center; padding: 4px; }
.tcar-avatar { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 2px solid var(--border); }
.tcar-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcar-quote { font-size: 16.5px; color: var(--text); line-height: 1.6; }
.tcar-who { margin-top: 10px; font-size: 13.5px; color: var(--text-3); }
.tcar-who strong { color: var(--text-2); }
.tcar-nav { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: color .2s, border-color .2s, transform .2s; }
.tcar-nav:hover { color: var(--purple); border-color: var(--purple); transform: translateY(-1px); }
/* One shape for every dot — the current one is just filled. (The active dot
   used to stretch into a pill, which read as "a line and some circles".)
   The button is 24px for an easy tap target; the visible dot is its ::before. */
.tcar-dots { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
.tcar-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.tcar-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); opacity: .45; transition: opacity .2s, background .2s; }
[data-theme="dark"] .tcar-dots button::before { opacity: .7; }
.tcar-dots button:hover::before { opacity: .8; }
.tcar-dots button.active::before { background: var(--purple); opacity: 1; }
.tcar-dots button:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--purple); font-size: 20px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; }
.card .pill { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--purple); background: var(--grad-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.card .card-link { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 700; color: var(--purple); display: inline-flex; gap: 6px; align-items: center; }
.card .card-link:hover .arrow { transform: translateX(3px); }

/* ---------- category accents ----------
   One colour per feature category (and per process step), so a grid of cards
   reads as a set of kinds rather than twelve identical tiles. Colour lives in
   the icon tile, the pill and a hairline on hover only — the card body stays
   neutral, which is what keeps it from getting loud. */
.c-scan  { --acc: #3bb5e5; } .c-data { --acc: #635bff; } .c-hw   { --acc: #f59e0b; }
.c-sec   { --acc: #10b981; } .c-guest { --acc: #ec4899; } .c-conn { --acc: #14b8a6; }
.c-soft  { --acc: #0ea5e9; } .c-plat { --acc: #7c3aed; }
:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) { --acc-soft: color-mix(in srgb, var(--acc) 13%, transparent); }
[data-theme="dark"] :is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) { --acc-soft: color-mix(in srgb, var(--acc) 22%, transparent); }
.card:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) .ic { background: var(--acc-soft); color: var(--acc); }
.card:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) .pill { background: var(--acc-soft); color: var(--acc); }
.card:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat):hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--border)); box-shadow: 0 20px 50px color-mix(in srgb, var(--acc) 18%, transparent); }

/* feature categories + stories pick up the same accents */
.featcat:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) { border-top: 3px solid var(--acc); scroll-margin-top: 150px; transition: border-color .2s, box-shadow .2s; }
.featcat:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat):hover { box-shadow: 0 20px 50px color-mix(in srgb, var(--acc) 14%, transparent); }
.featcat:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) .featcat-head .ic { background: var(--acc-soft); color: var(--acc); }
.featcat:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) li::before,
.story:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) .story-list li::before { color: var(--acc); }
.acc-text { color: var(--acc); }

/* jump chips — one per category/story, dot in its accent */
.chipnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 0 auto 44px; }
.chipnav.left { justify-content: flex-start; margin: 30px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; transition: border-color .15s, color .15s, background .15s; }
.chip:hover { color: var(--text); border-color: var(--acc); background: var(--acc-soft); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: 0 0 auto; }

/* platform hero: copy left, live dashboard frame right */
.hero-split.plat-hero { grid-template-columns: .92fr 1.08fr; align-items: center; }
.plat-hero h1 { font-size: clamp(32px, 3.9vw, 46px); }
.pbrowser.plat-shot { margin: 0; max-width: none; width: 100%; }
@media (max-width: 980px) { .hero-split.plat-hero { grid-template-columns: 1fr; } }

/* full-width photo that breaks up the category grid */
.grid-photo { grid-column: 1 / -1; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.grid-photo img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center 72%; }
.story-media figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(13,19,48,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 13px; border-radius: 999px; }
.story-media { position: relative; }
/* Full-width photo caption: same scrim + two-line treatment as the home mosaic
   tiles, not a pill — a long caption in a pill wrapped into a cramped
   two-line capsule on phones. */
.grid-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,11,24,.78) 100%); pointer-events: none; }
.grid-photo figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.35; }
.grid-photo figcaption b { display: block; color: #fff; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
@media (max-width: 560px) { .grid-photo img { height: 230px; } .grid-photo figcaption { left: 16px; right: 16px; bottom: 14px; } }
.story-media figcaption i { color: var(--acc); margin-right: 3px; }
.story { scroll-margin-top: 100px; }
.cta-card .eyebrow { color: rgba(255,255,255,.8); }

/* ---------- 404 page ---------- */
.notfound-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; max-width: 520px; }
.notfound-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); font-weight: 600; font-size: 14.5px; color: var(--text); transition: border-color .15s, background .15s; }
.notfound-links a:hover { border-color: var(--acc); background: var(--acc-soft); }
.notfound-links .ic { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--acc-soft); color: var(--acc); font-size: 15px; }
.notfound-shot { width: 70%; max-width: 360px; height: auto; margin: 0 auto; display: block; }
@media (max-width: 560px) { .notfound-links { grid-template-columns: 1fr; } .notfound-shot { width: 55%; } }

/* ---------- event photo mosaic (home) ---------- */
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 14px; margin-top: 40px; }
.mosaic-tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-alt); }
.mosaic-tile.lead { grid-row: span 2; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.mosaic-tile:hover img { transform: scale(1.04); }
.mosaic-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,11,24,.78) 100%); }
.mosaic-cap { position: absolute; left: 18px; right: 18px; bottom: 15px; z-index: 1; color: rgba(255,255,255,.8); font-size: 12.5px; line-height: 1.35; }
.mosaic-cap b { display: block; color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.mosaic-tile.lead .mosaic-cap b { font-size: 21px; }
.mosaic-more { text-align: center; margin-top: 22px; }
.mosaic-more .card-link { font-size: 14px; font-weight: 700; color: var(--purple); display: inline-flex; gap: 6px; }
.mosaic-more .card-link:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .mosaic-tile img { transition: none; } .mosaic-tile:hover img { transform: none; } }

/* ---------- stats band — the page's one full-gradient section ---------- */
.stat-band { background: var(--grad); color: #fff; padding: 52px 0; }
.stat-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-band strong { display: block; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-band span { display: block; margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.85); }

/* ---------- dashboard showcase ---------- */
.pbrowser { margin: 52px auto 0; max-width: 900px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.pbrowser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); flex: 0 0 auto; }
.pbrowser-url { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbrowser img { display: block; width: 100%; height: auto; }
/* Light/dark screenshots of the same dashboard. The dark capture is slightly
   taller (2244×1313 vs 2244×1262), so the box is pinned to the light ratio and
   `cover` + `top` trims a sliver off the dark one's last guest row. */
.pbrowser-shot { aspect-ratio: 2244 / 1262; background-image: url('/assets/dashboard-light.jpg'); background-size: cover; background-position: top center; background-repeat: no-repeat; }
[data-theme="dark"] .pbrowser-shot { background-image: url('/assets/dashboard-dark.jpg'); }
/* Clear of the frame's drop shadow — 18px put the text inside the shadow's
   falloff and it read as smudged. */
.pbrowser-caption { max-width: 720px; margin: 46px auto 0; text-align: center; font-size: 14.5px; color: var(--text-2); }

/* ---------- quote calculator ---------- */
.calc-shell { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; margin-top: 46px; }
.calc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.calc-bar .who { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.calc-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: 0 0 auto; }
.calc-bar .note { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.calc-body { display: grid; grid-template-columns: 1.15fr .85fr; }
.calc-controls { padding: 28px; display: flex; flex-direction: column; gap: 28px; }
.calc-field > label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: 12px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s; font-family: var(--font); }
.stepper button:hover { border-color: var(--purple); color: var(--purple); }
.stepper .val { min-width: 58px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.stepper .unit { margin-left: 8px; font-size: 13.5px; color: var(--text-3); }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.segmented button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; font-family: var(--font); }
.segmented button:hover { border-color: var(--purple); color: var(--text); }
.segmented button.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.calc-note { margin-top: 10px; font-size: 12.5px; color: var(--text-3); line-height: 1.55; }

.calc-toggle { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.calc-toggle + .calc-toggle { margin-top: 12px; }
.calc-toggle:hover { border-color: var(--border-strong); }
.calc-toggle.on { border-color: var(--purple); background: var(--grad-soft); }
.calc-toggle:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.calc-toggle .t-title { font-weight: 700; font-size: 14.5px; }
.calc-toggle .t-desc { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.calc-toggle .t-price { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--purple); }
.calc-toggle .switch { margin-left: auto; flex: 0 0 auto; width: 44px; height: 25px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .2s; }
.calc-toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.calc-toggle.on .switch { background: var(--purple); }
.calc-toggle.on .switch::after { transform: translateX(19px); }
/* add-ons: progressive disclosure (<details>) */
.calc-addons { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.calc-addons > summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 14px 16px; border-radius: var(--radius); }
.calc-addons > summary::-webkit-details-marker { display: none; }
.calc-addons > summary:hover { background: var(--bg-alt); }
.calc-addons > summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.addons-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.addons-hint { font-size: 13px; color: var(--text-3); }
.addons-count { font-size: 12px; font-weight: 700; color: var(--purple); background: var(--grad-soft); border-radius: 999px; padding: 2px 10px; }
.addons-chev { margin-left: auto; color: var(--text-3); font-size: 12px; transition: transform .2s; }
.calc-addons[open] .addons-chev { transform: rotate(180deg); }
.calc-addons[open] > summary { border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.calc-addons > .calc-toggle { margin: 12px; }
.calc-addons > .calc-toggle + .calc-toggle { margin-top: 0; }
/* an add-on's own controls only appear once it's switched on */
.calc-toggle:not(.on) .mini-stepper-group, .calc-toggle:not(.on) .remote-opts { display: none; }
.remote-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.segmented.mini-seg { margin-top: 12px; }
.segmented.mini-seg button { padding: 5px 12px; font-size: 12.5px; }
.mini-stepper-group { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-stepper { display: inline-flex; align-items: center; gap: 3px; margin-top: 12px; }
.mini-stepper button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-2); font-size: 14px; line-height: 1; cursor: pointer; font-family: var(--font); }
.mini-stepper button:hover { border-color: var(--purple); color: var(--purple); }
.mini-stepper .mini-val { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; }
.mini-stepper .mini-unit { margin-left: 6px; font-size: 12px; color: var(--text-3); }

.calc-summary { padding: 28px; background: var(--bg-alt); border-left: 1px solid var(--border); }
.calc-summary h3 { font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.calc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--border); }
.calc-line:first-of-type { border-top: 0; }
.calc-line .l-value { font-family: var(--font-mono); font-size: 13.5px; color: var(--text); white-space: nowrap; }
.l-was { text-decoration: line-through; color: var(--text-3); margin-right: 8px; }
.calc-discount { color: var(--purple); font-size: 12.5px; font-weight: 600; }
.calc-total { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--border-strong); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.calc-total .l-label { font-weight: 700; color: var(--text); font-size: 15px; }
.calc-total .l-value { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.vat-note { flex: 1 0 100%; font-size: 12px; color: var(--text-3); }
.calc-cta { margin-top: 22px; }
.calc-cta .btn { width: 100%; justify-content: center; }
.calc-disclaimer { margin-top: 14px; font-size: 12px; color: var(--text-3); line-height: 1.55; }

/* ---------- process timeline ----------
   One alternating timeline replaces what used to be a 6-node summary card
   AND a 6-tile grid listing the same six steps. Markers are flat — no drop
   shadow — and the spine fades out at both ends instead of stopping hard. */
.support-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 0; max-width: 720px; }
.support-tags span { font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }

.timeline { position: relative; max-width: 960px; margin: 64px auto 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, transparent 0%, var(--border) 7%, var(--border) 93%, transparent 100%); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; }
/* Desktop: alternate rows interleave (negative gap) so the empty half of
   each row is taken by its neighbour — halves the section's height. */
.tl-item + .tl-item { margin-top: -38px; }
.tl-item:nth-child(odd) .tl-card { grid-column: 1; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
.tl-marker { grid-column: 2; grid-row: 1; justify-self: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--bg-alt); }
.tl-card { grid-row: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; transition: border-color .2s, transform .2s; }
.tl-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tl-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--purple); background: var(--grad-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.tl-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.tl-card p { color: var(--text-2); font-size: 14.5px; }
/* per-step accent: icon marker in the step's colour, tag to match */
.tl-item:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) .tl-marker { background: var(--acc); font-size: 15px; width: 44px; height: 44px; }
.tl-item:is(.c-scan,.c-data,.c-hw,.c-sec,.c-guest,.c-conn,.c-soft,.c-plat) .tl-tag { background: var(--acc-soft); color: var(--acc); }

/* ---------- feature categories (platform features page) ---------- */
.featcat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 60px; }
.featcat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 34px; display: flex; flex-direction: column; }
.featcat-head { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.featcat-head .ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--grad-soft); color: var(--purple); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.featcat-head h3 { font-size: 19px; font-weight: 700; }
.featcat ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.featcat li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.featcat li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 4px; color: var(--purple); font-size: 11px; }
.featcat li b { display: block; color: var(--text); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.featcat .card-link { margin-top: auto; padding-top: 26px; font-size: 14px; font-weight: 700; color: var(--purple); display: inline-flex; gap: 6px; align-items: center; }
.stat-row { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-top: 34px; }
.stat-row span { font-size: 14px; color: var(--text-2); }
.stat-row strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); margin-right: 6px; }

/* ---------- story blocks (success stories) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.story + .story { margin-top: 84px; }
.sec-head + .story { margin-top: 56px; }
.story.rev .story-media { order: 2; }
.story-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.story-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.story-content h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 14px; }
.story-content > p { color: var(--text-2); font-size: 16px; margin-bottom: 20px; }
.story-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.story-list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text-2); }
.story-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 3px; color: var(--purple); font-size: 11px; }
.hero-figure { margin-top: 42px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); position: relative; }
.hero-figure img { display: block; width: 100%; height: auto; }
.hero-figure figcaption { position: absolute; left: 18px; bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(13,19,48,.6); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 999px; }
.closing-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 38px; text-align: center; max-width: 760px; margin: 0 auto; }
.closing-box h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.closing-box p { color: var(--text-2); margin-bottom: 24px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.cta-band p { font-size: 18px; color: var(--text-2); max-width: 580px; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }
/* Home CTA: gradient card with the scanner photo bleeding off the right edge */
.cta-card { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; background: var(--grad); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); text-align: left; }
.cta-copy { padding: 56px 52px; color: #fff; }
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,.88); margin: 0 0 30px; }
.cta-card .hero-actions { justify-content: flex-start; }
.cta-photo { min-height: 300px; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* home card: the 3D scan scene replaces the photo (the photo stays as its fallback) */
.cta-photo.scan-scene { position: relative; min-height: 360px; background: var(--bg); }
/* The devices break out of the panel: the card stops clipping its children, so
   the panel carries its own rounded corners instead. */
.cta-card--scene { overflow: visible; }
.cta-card--scene .cta-copy { position: relative; z-index: 3; }   /* text and buttons stay above the devices */
/* like the hero: the overhanging canvas must not widen the page on phones */
.cta-band:has(.cta-card--scene) { overflow-x: clip; overflow-y: visible; }
.cta-card--scene .cta-photo { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
/* the old photo shows only when the scene can't run (no three.js / WebGL), never as a placeholder */
.scan-scene .scan-fallback { position: absolute; inset: 0; display: none; }
.scan-scene.is-fallback .scan-fallback { display: block; }
.scan-scene canvas { transition: opacity .4s ease; }
.scan-scene:not(.is-ready) canvas { opacity: 0; }
.btn-light { background: #fff; color: var(--purple); box-shadow: 0 6px 20px rgba(13,19,48,.18); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(13,19,48,.26); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start; }
.contact-info h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.contact-info > p { color: var(--text-2); font-size: 15px; margin-bottom: 26px; }
.contact-detail { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.contact-detail .ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; background: var(--grad-soft); color: var(--purple); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.contact-detail .t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.contact-detail .d { font-size: 15px; color: var(--text); margin-top: 2px; }
.contact-detail .d span { display: block; font-size: 13.5px; color: var(--text-2); }
.contact-detail a:hover { color: var(--purple); }
/* contact page: headline + routes + form in one band, form above the fold */
.contact-hero .contact-grid { align-items: start; }
.contact-hero h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin-bottom: 16px; }
.contact-lead { font-size: 16.5px; color: var(--text-2); margin-bottom: 26px; }
.contact-hero .form-card { box-shadow: var(--shadow-lg); }
.contact-detail:is(.c-scan,.c-data,.c-guest) .ic { background: var(--acc-soft); color: var(--acc); }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.next-step { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--acc); border-radius: var(--radius-lg); padding: 28px; }
.next-step .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 18px; }
.next-step .n { position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--acc); opacity: .25; }
.next-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.next-step p { color: var(--text-2); font-size: 14.5px; }
.contact-note { margin-top: 22px; font-size: 13px; color: var(--text-3); background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; line-height: 1.55; }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.form-field .req { color: var(--purple); }
.form-field input, .form-field select, .form-field textarea { padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); font-size: 14.5px; font-family: inherit; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--purple); outline-offset: 1px; border-color: var(--purple); }
.form-field textarea { resize: vertical; min-height: 128px; }
/* honeypot — must stay hidden wherever a form is rendered (page or modal) */
.botcheck { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
/* Cloudflare Turnstile slot (js/site.js mounts it); reserves its height so the button doesn't jump */
.ts-slot { min-height: 65px; margin: 4px 0 2px; }
.ts-hint { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #c23a3a; }
.form-disclaimer { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.form-result { padding: 8px 0; }
.form-result h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.form-result.ok h3 { color: var(--purple); }
.form-result p { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
.form-card [hidden] { display: none !important; }

/* ---------- legal / agreement documents ---------- */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 40px 0 14px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 26px 0 10px; }
.doc p { color: var(--text-2); font-size: 15.5px; margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.doc ol { counter-reset: docnum; }
.doc li { position: relative; padding-left: 28px; margin-bottom: 11px; color: var(--text-2); font-size: 15.5px; }
.doc ul > li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.doc ol > li { counter-increment: docnum; }
.doc ol > li::before { content: counter(docnum) "."; position: absolute; left: 0; top: 0; color: var(--purple); font-weight: 700; font-size: 14px; }
.doc li b, .doc p b, .doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--purple); font-weight: 600; }
.doc a:hover { text-decoration: underline; }
.doc-meta { font-size: 13px; color: var(--text-3); font-family: var(--font-mono); }
.note-box { background: var(--bg-alt); border: 1px solid var(--border); border-left: 3px solid var(--purple); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; font-size: 14.5px; color: var(--text-2); }
.note-box p:last-child { margin-bottom: 0; }
/* agreement pages: the "reference only" caveat sits in the header (was a pill);
   .sec-head p would otherwise blow it up to intro size */
.sec-head .doc-caveat { margin: 22px 0 0; }
.sec-head .doc-caveat p { font-size: 14.5px; color: var(--text-2); }
.doc-caveat strong { color: var(--text); }
.doc-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 44px; }
.doc-toc h2 { margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; }
.doc-toc ul { columns: 2; column-gap: 34px; margin: 0; }
/* entries are already numbered in the text — no extra bullet/counter */
.doc-toc li { font-size: 14px; break-inside: avoid; padding-left: 0; margin-bottom: 8px; }
.doc-toc li::before { display: none; }
.doc-toc a { color: var(--text-2); font-weight: 500; }
.party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.party-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.party-card .p-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.party-card .p-value { font-size: 15px; color: var(--text); margin-top: 4px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.doc-table th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--border-strong); }
.doc-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.doc-table td.amount { font-family: var(--font-mono); color: var(--text); text-align: right; white-space: nowrap; }
.doc-table-wrap { overflow-x: auto; }
.field-line { display: inline-block; min-width: 180px; border-bottom: 1px dashed var(--border-strong); }
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.sig-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; background: var(--bg-card); }
.sig-block .s-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); display: block; margin-bottom: 10px; }
.sig-block img { max-height: 56px; width: auto; }
[data-theme="dark"] .sig-block img { filter: invert(1) brightness(1.6); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 32px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.foot-brand { max-width: 300px; }
.foot-brand p { color: var(--text-3); font-size: 14px; margin-top: 14px; }
.foot-cols { display: flex; gap: 50px; flex-wrap: wrap; }
.foot-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-2); font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: var(--purple); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- enquiry modal ---------- */
.contact-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; animation: contactFade .18s ease-out; }
.contact-modal.open { display: flex; }
@keyframes contactFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes contactRise { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.contact-modal-card { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 36px 28px; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); position: relative; animation: contactRise .22s ease-out; max-height: 92vh; overflow-y: auto; }
.contact-modal-close { position: absolute; top: 12px; right: 14px; background: transparent; border: 0; font-size: 28px; line-height: 1; color: var(--text-3); cursor: pointer; padding: 4px 10px; border-radius: 6px; transition: color .15s, background .15s; }
.contact-modal-close:hover { color: var(--text); background: rgba(127,127,127,.08); }
.contact-modal h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.contact-modal-sub { color: var(--text-2); font-size: 14.5px; margin: 0 0 22px; line-height: 1.55; }
.contact-modal [hidden] { display: none !important; }
.contact-modal .form-field { margin-bottom: 14px; }
.contact-modal textarea { min-height: 84px; }
.contact-submit { display: inline-flex; align-items: center; gap: 8px; justify-content: center; width: 100%; margin-top: 6px; padding: 12px 22px; border-radius: 9px; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 15px; background: var(--grad); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(99,91,255,.35); transition: transform .15s, box-shadow .15s; }
.contact-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,91,255,.45); }
.contact-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.contact-fallback { font-size: 12.5px; color: var(--text-3); margin: 16px 0 0; text-align: center; }
.contact-fallback a { color: var(--purple); font-weight: 600; }
.contact-modal .form-result { text-align: center; }

/* No scroll-reveal / fade-in anywhere: /start/ and getqflow.com render content
   immediately and so does this site. Motion is limited to the logo marquee,
   the testimonial carousel and the hero typewriter. */

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-split, .story, .contact-grid, .calc-body { grid-template-columns: 1fr; }
  .hero-split { gap: 40px; }
  .story { gap: 30px; }
  .story.rev .story-media { order: 0; }
  .story + .story { margin-top: 56px; }
  .calc-summary { border-left: 0; border-top: 1px solid var(--border); }
  .featcat-grid, .grid-3, .next-steps, .party-grid, .sig-grid, .form-row { grid-template-columns: 1fr; }
  .doc-toc ul { columns: 1; }
  /* timeline collapses to one column with the spine on the left */
  .timeline { margin-top: 48px; }
  .timeline::before { left: 20px; transform: none; }
  .tl-item { grid-template-columns: 40px 1fr; column-gap: 22px; align-items: start; }
  .tl-item + .tl-item { margin-top: 18px; }
  .tl-item:nth-child(odd) .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 2; }
  .tl-marker { grid-column: 1; justify-self: start; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 170px 170px; }
  .mosaic-tile.lead { grid-row: auto; grid-column: span 2; }
  .stat-band-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-copy { padding: 40px 28px; }
  .cta-photo { min-height: 240px; }
  .cta-photo.scan-scene { min-height: 340px; }
  .cta-card--scene .cta-photo { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
@media (max-width: 900px) {
  .nav-desktop-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 12px 16px 20px; margin: 0; max-height: calc(100vh - 68px); overflow-y: auto; display: none; }
  .nav.open .nav-links { display: flex; }
  .nav-flat { width: 100%; padding: 13px 8px; font-size: 16px; }
  .nav-mobile-cta { display: flex; gap: 10px; margin-top: 14px; }
  .nav-mobile-cta .btn { flex: 1; justify-content: center; }
  section.block { padding: 64px 0; }
  .tcar-slide { flex-direction: column; text-align: center; gap: 14px; }
  .tcar-nav { display: none; }
}
@media (max-width: 560px) {
  /* Tighter page tops on phones. Desktop keeps its breathing room; on a
     phone 64–72px above the headline (plus the 68px nav) pushed it a third
     of the way down the screen, more obviously once the pills went. */
  .hero { padding: 36px 0 40px; }
  .hero.doc-hero { padding: 30px 0 40px; }
  /* Button pairs: side by side at equal widths when they fit, otherwise each
     takes the full row. Never the ragged "one wraps under the other at a
     different width" that plain flex-wrap gave on phones. */
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; min-width: fit-content; justify-content: center; white-space: nowrap; }
  .hero-actions .btn-lg { padding: 13px 16px; font-size: 15.5px; }
  .breadcrumb { margin-bottom: 12px; }
  .calc-controls, .calc-summary, .form-card, .closing-box { padding: 22px; }
  .contact-modal-card { padding: 28px 22px 22px; }
}
