/* Synovelo design tokens: see DESIGN.md */
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #14232b;
  --bg-2: #172a33;
  --panel: #1b3039;
  --panel-2: #213a44;
  --line: rgba(183, 200, 204, .14);
  --line-2: rgba(183, 200, 204, .26);
  --text: #e9f0ef;
  --muted: #b7c8cc;
  --dim: #95abb1;          /* ≥4.5:1 on --panel */
  --accent: #20c4b0;
  --accent-2: #65dfcf;
  --warn: #f0c977;
  --danger: #ff9b8f;
  --ink: #0e1a20;
  --display: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: rgba(32, 196, 176, .18); }
h1, h2, h3, h4, h5 { font-family: var(--display); margin: 0; letter-spacing: -0.025em; line-height: 1.12; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
p a, li a, dd a, .muted a { color: var(--accent-2); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a, input, select, textarea { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }

.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow.dim { color: var(--dim); margin-bottom: 6px; }
.accent { color: var(--accent-2); }
.soft { color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* Buttons: one primary action (teal). Everything else is secondary. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 9px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; background: none; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: var(--panel-2); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--accent-2); background: #26434e; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 26px; font-size: 1.04rem; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-text { color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: color 200ms ease, text-decoration-color 200ms ease; }
.btn-text:hover { color: var(--text); text-decoration-color: var(--accent-2); }
.link { background: none; border: 0; padding: 0; color: var(--accent-2); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(101,223,207,.45); transition: text-decoration-color 200ms ease, color 200ms ease; }
.link:hover { text-decoration-color: var(--accent-2); color: #8ff0e3; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(20,35,43,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.04em; text-decoration: none; color: #fff; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { background: transparent; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 14px; font-size: .92rem; transition: border-color 200ms ease; }
.menu-btn:hover { border-color: var(--accent-2); }
.menu { position: fixed; inset: 68px 0 0; z-index: 55; background: rgba(14,26,32,.97); overscroll-behavior: contain; overflow-y: auto; }
.menu-inner { display: flex; flex-direction: column; gap: 6px; padding-top: 40px; padding-bottom: 40px; }
.menu-inner a:not(.btn) { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); transition: color 200ms ease; }
.menu-inner a:not(.btn):hover { color: var(--accent-2); }
.menu-inner .btn { align-self: flex-start; margin-top: 24px; }

/* Hero */
.hero { padding: 72px 0 40px; background: radial-gradient(900px 520px at 80% 0%, rgba(32,196,176,.16), transparent 60%), radial-gradient(700px 400px at 10% 90%, rgba(32,196,176,.07), transparent 60%); }
.hero-title .line { padding-bottom: .06em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 600px; margin-top: 22px; }
.ctas { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.ctas.center { justify-content: center; }
.note { color: var(--muted); font-size: .88rem; margin-top: 18px; }

.ticker { margin-top: 28px; max-width: 420px; border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; }
.ticker-bars { display: flex; gap: 6px; margin-bottom: 12px; }
.ticker-bars span { width: 28px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background-color 300ms ease; }
.ticker-bars span.on { background: var(--accent); }
.ticker b { font-family: var(--display); font-size: 1.02rem; }
.ticker p { color: var(--muted); font-size: .9rem; margin: 4px 0 8px; }
.ticker .link { font-size: .9rem; text-decoration: none; }

.hub { position: relative; height: 400px; max-width: 760px; margin: 40px auto 0; }
.hub-label { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: .72rem; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.hub-lines { position: absolute; inset: 30px 0 0; width: 100%; height: calc(100% - 30px); }
.hub-lines circle, .hub-lines path { fill: none; stroke: rgba(101,223,207,.22); stroke-width: 1.2; stroke-dasharray: 4 6; }
.hub-lines path { animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.hub-core { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 132px; height: 132px; border-radius: 26px; background: linear-gradient(160deg, #6ff0de, #1aa897); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 8px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; box-shadow: 0 0 0 10px rgba(32,196,176,.08), 0 24px 60px rgba(32,196,176,.25); }
.core-ring { font-size: 1.9rem; line-height: 1; letter-spacing: 0; }
.hub-card { position: absolute; width: 190px; text-align: left; background: rgba(33,58,68,.82); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; backdrop-filter: blur(6px); transition: border-color 200ms ease, translate 250ms var(--ease-out); }
.hub-card:hover { translate: 0 -3px; border-color: var(--accent); }
.hub-card .ico { color: var(--accent-2); font-size: 1.05rem; margin-bottom: 6px; }
.hub-card b { font-family: var(--display); font-size: .98rem; }
.hub-card small { color: var(--muted); font-size: .8rem; }
.hc-1 { left: 2%; top: 50px; } .hc-2 { right: 2%; top: 50px; } .hc-3 { left: 6%; bottom: 10px; } .hc-4 { right: 6%; bottom: 10px; }

/* Spotlight (React Bits pattern) */
.spot, .product, .choice { position: relative; isolation: isolate; }
.spot::after, .product::after, .choice::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity 250ms ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(101,223,207,.13), transparent 70%); }
.spot:hover::after, .product:hover::after, .choice:hover::after { opacity: 1; }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section.tight { padding: 72px 0; }
.split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.center-head { text-align: center; max-width: 720px; margin: 0 auto; }
.center-head .muted { margin-top: 14px; }

.proof { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.proof .muted { margin-top: 16px; max-width: 460px; }
.proof .small { margin-top: 18px; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.proof-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; background: none; border: 0; border-bottom: 1px solid var(--line-2); padding: 18px 0; text-align: left; }
.proof-item b { display: block; font-family: var(--display); font-size: 1.05rem; transition: color 200ms ease; }
.proof-item:hover b { color: var(--accent-2); }
.proof-item .ico, .proof-item .arr { color: var(--accent-2); }
.proof-item small { color: var(--muted); font-size: .82rem; }
.pillars { list-style: none; padding: 18px 24px; margin: 56px 0 0; display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); font-size: .9rem; }
.pillars span { color: var(--dim); margin-right: 10px; font-variant-numeric: tabular-nums; }

/* Demo */
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.demo-tabs button { display: flex; gap: 12px; align-items: center; background: none; border: 0; border-right: 1px solid var(--line); padding: 18px 20px; text-align: left; transition: background-color 200ms ease; }
.demo-tabs button:last-child { border-right: 0; }
.demo-tabs button:hover { background: rgba(255,255,255,.03); }
.demo-tabs button[aria-selected="true"] { background: var(--bg-2); box-shadow: inset 0 -2px 0 var(--accent); }
.demo-tabs .ico { color: var(--accent-2); }
.demo-tabs b { display: block; font-family: var(--display); }
.demo-tabs small { color: var(--muted); font-size: .8rem; }
.demo-intro { padding: 30px 28px; background: linear-gradient(180deg, rgba(32,196,176,.08), transparent); }
.demo-intro h3 { font-size: 1.6rem; margin-bottom: 10px; }
.decision { display: flex; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 640px; }
.ico-ring { color: var(--accent-2); font-size: 1.3rem; line-height: 1.2; }
.decision b { font-size: .92rem; }
.decision p { color: var(--muted); font-size: .9rem; }
.workspace { margin: 0 28px 28px; padding-top: 6px; }
.ws-bar { display: flex; justify-content: space-between; font-size: .8rem; color: var(--dim); padding: 14px 0; border-bottom: 1px solid var(--line); }
.ws-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 0 8px; }
.ws-head h4 { font-size: 1.2rem; }
.pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: .8rem; white-space: nowrap; }
.pill.done { border-color: var(--accent); color: var(--accent-2); }
.pill.warn { border-color: #e2b45c; color: var(--warn); }
.stages { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.stages::before { content: ""; position: absolute; left: 10%; right: 10%; top: 15px; height: 1px; background: var(--line-2); }
.stages li { position: relative; text-align: center; min-width: 0; }
.stages button { background: none; border: 0; padding: 0; display: grid; justify-items: center; gap: 8px; width: 100%; }
.stages .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); position: relative; z-index: 1; font-variant-numeric: tabular-nums; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.stages .l { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.stages li.done .n { background: rgba(32,196,176,.18); border-color: var(--accent); color: var(--accent-2); }
.stages li.current .n { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.stages li.current .l { color: var(--text); font-weight: 600; }
.stages li.flag .n { background: #e2b45c; border-color: #e2b45c; color: var(--ink); }
.step-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-height: 190px; transition: border-color 200ms ease; }
.step-card.exception { border-color: rgba(226,180,92,.6); }
.step-card.exception .eyebrow { color: var(--warn); }
.step-card.recovered { border-color: rgba(32,196,176,.6); }
.step-card h5 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card > p { color: var(--muted); }
.owner { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(32,196,176,.18); color: var(--accent-2); display: grid; place-items: center; font-size: .78rem; font-weight: 600; }
.owner small { display: block; color: var(--dim); font-size: .76rem; }
.owner b { font-size: .9rem; }
.ws-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.ws-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; }
.ws-foot .eyebrow { margin: 0; }
.ws-foot b { font-size: .92rem; }
.demo-note { padding: 0 28px 24px; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; }
.product .ico { color: var(--accent-2); font-size: 1.5rem; margin-bottom: 18px; }
.product .eyebrow { margin-bottom: 6px; }
.product h3 { font-size: 1.5rem; margin-bottom: 10px; }
.product > p { color: var(--muted); }
.product details { margin: 18px 0; font-size: .9rem; }
.product summary { cursor: pointer; color: var(--accent-2); list-style: none; }
.product summary::before { content: "▸ "; }
.product details[open] summary::before { content: "▾ "; }
.product summary::-webkit-details-marker { display: none; }
.product ol { color: var(--muted); padding-left: 20px; margin: 12px 0 8px; }
.product .exc { color: var(--muted); border-left: 2px solid #e2b45c; padding-left: 12px; }
.product .link { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; text-decoration: none; }

/* Approach */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.approach .muted { margin: 18px 0 28px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.steps li > span { color: var(--accent); font-size: .8rem; padding-top: 4px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .94rem; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent-2); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Booking calendar (loads only after consent) */
.cal { border-radius: 14px; overflow: hidden; margin: 32px auto 14px; max-width: 980px; border: 1px solid var(--line-2); background: var(--panel); }
.cal.loaded { background: #fff; border-color: transparent; }
.cal iframe { width: 100%; height: 720px; border: 0; display: block; }
.cal-consent { padding: 40px 28px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.cal-consent p { color: var(--muted); max-width: 520px; }
.cal-consent b { color: var(--text); }
.cal-consent-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Contact form */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.contact-intro h3 { font-size: 1.6rem; margin-bottom: 10px; }
.contact-form { display: grid; gap: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; max-width: 620px; }
.contact .field { max-width: none; }
.field > span:first-child { font-weight: 500; font-size: .95rem; }
.field em { color: var(--dim); font-style: normal; font-size: .82rem; margin-left: 6px; }
.field input, .field select, .field textarea { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: inherit; padding: 12px 14px; width: 100%; transition: border-color 200ms ease; }
.field select { background-color: var(--panel); color: var(--text); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7d949a; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .86rem; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.form-status { font-size: .92rem; }
.form-status.ok { color: var(--accent-2); }
.form-status.bad { color: var(--danger); }

.final { padding: 120px 0; background: radial-gradient(600px 300px at 50% 100%, rgba(32,196,176,.12), transparent 70%); }
.final .ctas { margin-bottom: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .86rem; color: var(--dim); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { text-decoration: none; transition: color 200ms ease; }
.footer a:hover { color: var(--text); }
.footer .link { font-size: .86rem; color: var(--dim); text-decoration-color: var(--line-2); }

/* Cookie banner */
.cookie { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.4); display: grid; gap: 14px; font-size: .9rem; animation: cookie-in 300ms var(--ease-out); }
.cookie p { color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Wizard */
#wizard { padding: 36px 0 96px; min-height: calc(100vh - 68px); }
.back { text-decoration: none; font-size: .92rem; }
.w-progress { list-style: none; padding: 0; margin: 26px 0 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.w-progress li { border-top: 3px solid var(--line-2); padding-top: 10px; font-size: .82rem; color: var(--dim); }
.w-progress li span { display: block; font-size: .72rem; margin-bottom: 2px; }
.w-progress li.done { border-color: rgba(32,196,176,.5); color: var(--muted); }
.w-progress li.current { border-color: var(--accent); color: var(--accent-2); font-weight: 600; }
.w-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.w-step h2 { margin-bottom: 12px; outline: none; }
.w-step > .muted { max-width: 620px; margin-bottom: 26px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.choice { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-align: left; display: grid; gap: 6px; transition: border-color 200ms ease, background-color 200ms ease; }
.choice:hover { border-color: var(--line-2); }
.choice[aria-pressed="true"] { border-color: var(--accent); background-color: rgba(32,196,176,.1); }
.choice .ico { color: var(--accent-2); font-size: 1.1rem; margin-bottom: 6px; }
.choice b { font-family: var(--display); font-size: 1.02rem; }
.choice small { color: var(--muted); font-size: .86rem; }
#w-err { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font-size: .92rem; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.chip:hover { border-color: var(--accent-2); }
.chip[aria-pressed="true"] { background: rgba(32,196,176,.14); border-color: var(--accent); color: var(--accent-2); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.w-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.w-nav .btn { margin-left: auto; }
.w-side { position: sticky; top: 92px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.w-side h3 { font-size: 1.2rem; margin-bottom: 6px; }
.s-stages { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 8px; }
.s-stages li { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: .9rem; display: flex; justify-content: space-between; }
.s-stages li.flag { border-color: var(--accent); background: rgba(32,196,176,.08); }
.s-stages li.flag::after { content: "Review"; color: var(--accent-2); font-size: .76rem; }
.s-tools-label { margin-top: 6px; }
.checkpoint { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.suggest { background: linear-gradient(160deg, rgba(32,196,176,.14), rgba(32,196,176,.03)); border: 1px solid rgba(32,196,176,.5); border-radius: 16px; padding: 26px; margin-bottom: 24px; }
.suggest h3 { font-size: 2rem; margin-bottom: 10px; }
.suggest p { color: var(--muted); margin-bottom: 20px; max-width: 560px; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; }
.summary div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.summary dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.summary dd { margin: 0; font-size: .94rem; overflow-wrap: anywhere; }
.book-inline { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.book-inline h3 { font-size: 1.5rem; }
.howto { color: var(--muted); padding-left: 20px; margin: 14px 0 0; display: grid; gap: 8px; }
.book-inline .cal { margin: 20px 0 12px; max-width: none; }
.book-inline > .link { margin-top: 14px; display: inline-block; }

/* Legal + 404 pages */
.page { padding: 64px 0 96px; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.legal .updated { color: var(--dim); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); color: var(--muted); vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; }
.legal .toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.notfound { min-height: calc(100vh - 160px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font-family: var(--display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent-2); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 18px 0 12px; }
.notfound .ctas { justify-content: center; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-lines path, .spinner { animation: none; }
  .cookie { animation: none; }
  .btn:active { transform: none; }
  .hub-card:hover { translate: none; }
}
@media (hover: none) { .spot::after, .product::after, .choice::after { display: none; } }

/* Responsive */
@media (max-width: 980px) {
  .split-head, .proof, .approach, .contact { grid-template-columns: 1fr; gap: 24px; }
  .w-grid { grid-template-columns: 1fr; }
  .w-side { position: static; }
  .demo-tabs { grid-template-columns: 1fr 1fr; }
  .demo-tabs button:nth-child(2) { border-right: 0; }
  .demo-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 24px; }
  .section { padding: 68px 0; }
  .ctas { gap: 14px; }
  .ctas .btn { width: 100%; }
  .nav-cta { padding: 8px 12px; }
  .hub { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 34px; }
  .hub-lines { display: none; }
  .hub-card { position: static; width: auto; }
  .hub-core { position: static; transform: none; grid-column: 1 / -1; grid-row: 1; width: 100%; height: 86px; border-radius: 16px; grid-auto-flow: column; gap: 14px; }
  .products, .choice-grid, .summary, .proof-grid, .form-row { grid-template-columns: 1fr; }
  .stages .l { font-size: .68rem; }
  .demo-intro { padding: 24px 18px; }
  .workspace { margin: 0 18px 22px; }
  .demo-note { padding: 0 18px 20px; }
  .demo-tabs button { padding: 14px; }
  .pillars { flex-direction: column; gap: 10px; align-items: flex-start; }
  .w-progress { gap: 6px; }
  .w-progress li { font-size: 0; }
  .w-progress li span { font-size: .72rem; }
  .cal iframe { height: 820px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions .btn { flex: 1; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border: 0; padding: 4px 0; }
  .legal tr { border-bottom: 1px solid var(--line-2); padding: 10px 0; }
}
