/* ============================================================================
   Quadrante — Marketing website · design system (premium, responsive, a11y)
   Brand tokens shared with marketing/assets/deck.css. Target: WCAG 2.1 AA.
   ============================================================================ */
:root{
  --ink:#0B1220; --ink-2:#0F1A30;
  --paper:#FFFFFF; --bg:#FBFBFD; --surface:#F5F6F8; --surface-2:#EDEFF4;
  --text:#0E1726; --muted:#5A6473; --faint:#8A93A3; --line:#E7E9EF;
  --brand:#3D5AFE; --brand-700:#2A3FD6; --brand-50:#EEF1FF;
  --violet:#7C3AED;
  --ok:#0E9F6E; --ok-50:#E7F7F0;
  --warn:#C97A0A; --warn-50:#FBF3E6;
  --bad:#E11D48; --bad-50:#FCE9EE;
  --info:#4F46E5;
  --radius:16px; --radius-sm:10px; --radius-lg:24px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow:0 2px 6px rgba(16,24,40,.06), 0 12px 32px rgba(16,24,40,.07);
  --shadow-lg:0 30px 70px rgba(13,20,40,.22);
  --grad:linear-gradient(120deg,#3D5AFE 0%,#7C3AED 100%);
  --grad-soft:linear-gradient(135deg,#EEF1FF 0%,#F5EEFF 100%);
  --maxw:1180px;
  --header-h:66px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  color:var(--text); background:var(--paper);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  line-height:1.55; font-size:17px;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.num,.kpi b{font-variant-numeric:tabular-nums}
h1,h2,h3,h4{margin:0;letter-spacing:-.02em;line-height:1.1;font-weight:700}
p{margin:0}
::selection{background:rgba(61,90,254,.18)}

/* a11y: visible focus + skip link */
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:6px}
.skip{position:absolute;left:-9999px;top:0;background:#fff;color:var(--brand);padding:10px 16px;
  border-radius:0 0 10px 0;font-weight:700;z-index:200}
.skip:focus{left:0}

/* ---- layout ---- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.section{padding:88px 0}
.section.tight{padding:64px 0}
.eyebrow{font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--brand);margin:0 0 14px}
.eyebrow.on-dark{color:#A9B6FF}
.h-sec{font-size:clamp(28px,4vw,44px);max-width:20ch}
.lead{font-size:clamp(17px,2.1vw,21px);color:var(--muted);max-width:62ch;margin-top:16px;line-height:1.55}
.center{text-align:center}.center .lead,.center .h-sec{margin-left:auto;margin-right:auto}
.grid{display:grid;gap:22px}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
.muted{color:var(--muted)}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;gap:9px;height:48px;padding:0 22px;border-radius:12px;
  font-weight:700;font-size:15.5px;border:1px solid transparent;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,background .12s ease;white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--grad);color:#fff;box-shadow:0 8px 22px rgba(61,90,254,.30)}
.btn-primary:hover{box-shadow:0 12px 28px rgba(61,90,254,.40)}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--text)}
.btn-ghost:hover{border-color:#cfd5e4;background:var(--surface)}
.btn-ghost.on-dark{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.20);color:#fff}
.btn-ghost.on-dark:hover{background:rgba(255,255,255,.12)}
.btn.sm{height:40px;padding:0 16px;font-size:14px;border-radius:10px}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}

/* ---- header ---- */
.header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;gap:18px;height:var(--header-h)}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:19px;letter-spacing:-.01em}
.brand .brand-mark{width:26px;height:26px;flex:none;display:block}
.nav .links{display:flex;gap:6px;margin-left:18px}
.nav .links a{padding:8px 12px;border-radius:9px;font-weight:600;font-size:15px;color:var(--muted)}
.nav .links a:hover{color:var(--text);background:var(--surface)}
.nav .spacer{flex:1}
.nav .cta{display:flex;align-items:center;gap:10px}
.menu-btn{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;
  align-items:center;justify-content:center;cursor:pointer}
.menu-btn span,.menu-btn span::before,.menu-btn span::after{content:"";display:block;width:18px;height:2px;background:var(--text);border-radius:2px;position:relative}
.menu-btn span::before{position:absolute;top:-6px}.menu-btn span::after{position:absolute;top:6px}
.mobile-menu{display:none}

/* ---- hero ---- */
.hero{position:relative;overflow:hidden;color:#EAEEFF;
  background:radial-gradient(120% 130% at 82% -20%,#1b2b57 0%,#0b1220 56%)}
.hero .wrap{position:relative;z-index:2;padding-top:78px;padding-bottom:78px}
.hero .glow{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;z-index:1}
.hero .glow.a{width:560px;height:560px;background:#4f46e5;right:-140px;top:-180px}
.hero .glow.b{width:440px;height:440px;background:#7c3aed;left:-160px;bottom:-200px;opacity:.4}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.hero h1{font-size:clamp(34px,5.2vw,60px);line-height:1.03;color:#fff;max-width:15ch}
.hero .lead{color:#AEB9D6;max-width:50ch}
.hero .cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.trust-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:30px}
.pill{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;
  padding:7px 13px;border-radius:999px}
.pill.on-dark{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:#cdd6ea}
.pill .d{width:7px;height:7px;border-radius:50%;background:#7C9CFF}
.hero-shot{position:relative}
.hero-shot img{border-radius:14px;box-shadow:var(--shadow-lg);border:1px solid rgba(255,255,255,.10)}
.hero-note{font-size:12.5px;color:rgba(255,255,255,.5);margin-top:14px}

/* ---- generic shot frame ---- */
.shot-frame{border-radius:14px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line);background:#fff}
.shot-frame img{width:100%;display:block}
.caption{font-size:12.5px;color:var(--faint);margin-top:12px}

/* ---- cards / tiles ---- */
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm)}
.card.soft{background:var(--surface);box-shadow:none}
.tile{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;height:100%}
.tile .ic,.ic-box{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;
  background:var(--brand-50);color:var(--brand)}
.tile .ic svg,.ic-box svg{width:24px;height:24px}
.tile h3{font-size:19px;margin:16px 0 7px}
.tile p{font-size:15.5px;color:var(--muted);line-height:1.55}
.num-badge{width:30px;height:30px;border-radius:9px;background:var(--grad);color:#fff;font-weight:700;
  display:grid;place-items:center;font-size:14px;flex:none}

/* ---- badges ---- */
.badge{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;padding:4px 11px;border-radius:999px;white-space:nowrap}
.badge .d{width:7px;height:7px;border-radius:50%}
.b-info{background:var(--brand-50);color:var(--brand-700)} .b-info .d{background:var(--brand)}
.b-ok{background:var(--ok-50);color:#0a7a55} .b-ok .d{background:var(--ok)}
.b-warn{background:var(--warn-50);color:#9a5d06} .b-warn .d{background:var(--warn)}
.b-soon{background:#F1F0FB;color:#5B4BCB;border:1px dashed #C9C4F0} .b-soon .d{background:var(--violet)}
.b-muted{background:var(--surface-2);color:var(--muted)} .b-muted .d{background:var(--faint)}

/* ---- problem ---- */
.pains{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:8px}
.pain{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.pain .x{width:34px;height:34px;border-radius:9px;background:var(--bad-50);color:var(--bad);display:grid;place-items:center;font-weight:800;flex:none}
.pain h4{font-size:16px;margin:0 0 3px}
.pain p{font-size:14px;color:var(--muted);margin:0;line-height:1.5}
.costbar{margin-top:26px;background:var(--ink);color:#fff;border-radius:var(--radius);padding:26px 30px;
  display:flex;flex-wrap:wrap;gap:18px 30px;align-items:center;position:relative;overflow:hidden}
.costbar .glow{position:absolute;width:300px;height:300px;border-radius:50%;background:#7c3aed;filter:blur(80px);opacity:.25;right:-80px;top:-120px}
.costbar .ck{display:flex;align-items:center;gap:10px;font-weight:600;color:#cdd6ea;font-size:15px;position:relative;z-index:2}
.costbar .ck b{color:#fff}
.cost-quote{margin-top:18px;font-size:clamp(18px,2.4vw,24px);font-weight:600;color:var(--text);max-width:30ch}

/* ---- flow steps ---- */
.flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:30px}
.flow .node{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);
  border-radius:12px;padding:12px 16px;font-weight:700;box-shadow:var(--shadow-sm)}
.flow .node .ic-box{width:34px;height:34px;border-radius:9px}
.flow .arrow{color:var(--faint);font-size:20px;font-weight:700}

/* ---- feature rows (walkthrough) ---- */
.frow{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;margin-top:56px}
.frow:first-of-type{margin-top:36px}
.frow.rev .ftext{order:2}
.frow h3{font-size:clamp(22px,2.6vw,28px);margin-bottom:10px}
.frow p{color:var(--muted);font-size:16.5px}
.flist{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-direction:column;gap:11px}
.flist li{display:flex;gap:11px;align-items:flex-start;font-size:15.5px}
.flist .tick{color:var(--ok);flex:none;margin-top:1px}

/* ---- walkthrough gallery ---- */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:30px}
.gcard .shot-frame{margin-bottom:12px}
.gcard h4{font-size:17px;margin:0 0 4px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gcard p{font-size:14.5px;color:var(--muted);margin:0}

/* ---- AI section (dark) ---- */
.dark{background:radial-gradient(120% 130% at 15% -10%,#1b2b57 0%,#0b1220 60%);color:#EAEEFF;position:relative;overflow:hidden}
.dark .h-sec{color:#fff}.dark .lead{color:#AEB9D6}
.dark .glow{position:absolute;border-radius:50%;filter:blur(80px);opacity:.4}
.dark .glow.a{width:500px;height:500px;background:#4f46e5;left:-160px;top:-140px}
.ai-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:14px}
.ai-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);border-radius:16px;padding:22px}
.ai-card .ic-box{background:rgba(124,92,237,.20);color:#C9B8FF}
.ai-card h3{color:#fff;font-size:19px;margin:14px 0 6px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ai-card p{color:#AEB9D6;font-size:15px;margin:0}
.guardrail{margin-top:22px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
  border-radius:16px;padding:22px 24px;display:flex;gap:14px;align-items:flex-start}
.guardrail .ic-box{background:rgba(14,159,110,.18);color:#5BE3AE;flex:none}
.guardrail p{color:#C3CCDF;font-size:15px;margin:0}.guardrail b{color:#fff}

/* ---- mobile section ---- */
.phones{display:flex;gap:24px;justify-content:center;align-items:flex-end;flex-wrap:wrap}
.phones img{width:240px;border-radius:30px;box-shadow:var(--shadow-lg)}
.phones img:nth-child(2){margin-bottom:28px}

/* ---- benefits / ROI ---- */
.cmp{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}
.cmp-col{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.cmp-col.now{background:var(--surface)}
.cmp-col.next{border-color:var(--brand);box-shadow:0 14px 34px -16px rgba(61,90,254,.40)}
.cmp-head{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.cmp-tag{display:inline-block;font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--faint)}
.cmp-tag.brand{color:var(--brand-700)}
.cmp ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.cmp li{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;line-height:1.5}
.cmp-col.now li{color:var(--muted)}
.cmp .mk{flex:none;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;margin-top:1px}
.cmp .mk svg{width:12px;height:12px}
.cmp-col.now .mk{background:#E6E8EF;color:#98a0b0}
.cmp-col.next .mk{background:var(--brand-50);color:var(--brand-700)}
.cmp-note{display:flex;align-items:center;gap:11px;margin-top:18px;padding:14px 18px;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  font-size:14.5px;font-weight:600;color:var(--text)}
.cmp-note svg{flex:none;width:18px;height:18px;color:var(--brand-700)}
.value3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:34px}
.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}
.diff{margin-top:56px}
.diff-h{font-size:clamp(22px,3vw,30px);font-weight:800;letter-spacing:-.02em;margin:0;color:var(--text)}
.diff-lead{color:var(--muted);max-width:64ch;margin-top:12px;line-height:1.55}
.matrix-wrap{margin-top:24px;overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:#fff;-webkit-overflow-scrolling:touch}
.matrix{width:100%;min-width:560px;border-collapse:collapse}
.matrix th,.matrix td{padding:14px 16px;text-align:center;border-bottom:1px solid var(--line)}
.matrix thead th{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--faint);vertical-align:bottom;line-height:1.3}
.matrix tbody th[scope=row]{text-align:left;font-weight:600;font-size:14.5px;color:var(--text);width:40%}
.matrix tbody tr:last-child th,.matrix tbody tr:last-child td{border-bottom:0}
.matrix .hl{background:var(--brand-50)}
.matrix thead th.hl{color:var(--brand-700)}
.matrix .m{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%}
.matrix .m svg{width:13px;height:13px}
.matrix .m.no{background:#EEF0F4;color:#aab0bd}
.matrix .m.part{background:#FBF3E3;color:#B7791F}
.matrix .m.yes{background:var(--brand);color:#fff}
.matrix-legend{display:flex;gap:20px;flex-wrap:wrap;margin-top:14px;font-size:12.5px;color:var(--muted)}
.matrix-legend span{display:inline-flex;align-items:center;gap:7px}
.matrix-legend i.lg{width:13px;height:13px;border-radius:50%;display:inline-block;flex:none}
.matrix-legend i.lg.yes{background:var(--brand)}
.matrix-legend i.lg.part{background:#E6C079}
.matrix-legend i.lg.no{background:#D3D7E0}

/* ---- trust ---- */
.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:8px}
.trust-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.trust-card .ic-box{background:var(--ok-50);color:#0a7a55}
.trust-card h3{font-size:17.5px;margin:14px 0 6px}
.trust-card p{font-size:14.5px;color:var(--muted);margin:0;line-height:1.55}

/* ---- integrations ---- */
.intg{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:8px}
.intg .ic-box{background:var(--brand-50);color:var(--brand)}
.intg h3{font-size:18px;margin:14px 0 6px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}

/* ---- roadmap ---- */
.road2{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:8px}
.road-col{border:1px solid var(--line);border-radius:var(--radius);padding:26px;background:#fff}
.road-col.now{background:var(--ok-50);border-color:#BFE8D6}
.road-col.soon{background:#F6F5FE;border-color:#DAD6F4}
.road-col h3{font-size:19px;margin:0 0 16px;display:flex;align-items:center;gap:10px}
.road-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.road-col li{display:flex;gap:11px;align-items:flex-start;font-size:15.5px;line-height:1.45}
.road-col .mk{flex:none;margin-top:2px}
.mk.tick{color:var(--ok)}.mk.soon{color:var(--violet)}

/* ---- FAQ ---- */
.faq{max-width:820px;margin:8px auto 0}
.qa{border-bottom:1px solid var(--line)}
.qa summary{cursor:pointer;list-style:none;padding:20px 4px;display:flex;justify-content:space-between;
  gap:18px;align-items:center;font-weight:700;font-size:17.5px}
.qa summary::-webkit-details-marker{display:none}
.qa summary .chev{flex:none;width:26px;height:26px;border-radius:8px;background:var(--surface);
  display:grid;place-items:center;color:var(--brand);transition:transform .2s ease;font-size:16px}
.qa[open] summary .chev{transform:rotate(45deg)}
.qa .a{padding:0 4px 22px;color:var(--muted);font-size:16px;line-height:1.6;max-width:70ch}
@media (prefers-reduced-motion:reduce){.qa summary .chev{transition:none}}

/* ---- final CTA ---- */
.cta-band{background:var(--grad);color:#fff;border-radius:var(--radius-lg);padding:56px;text-align:center;
  position:relative;overflow:hidden;box-shadow:var(--shadow-lg)}
.cta-band h2{font-size:clamp(26px,3.6vw,40px);color:#fff;max-width:18ch;margin:0 auto}
.cta-band p{color:#E7E9FF;font-size:18px;margin:16px auto 0;max-width:52ch}
.cta-band .btn-primary{background:#fff;color:var(--brand-700);box-shadow:0 12px 30px rgba(0,0,0,.18)}
.cta-band .reassure{margin-top:16px;font-size:14px;color:rgba(255,255,255,.85)}

/* ---- clients / social proof ---- */
.clients{background:var(--bg);padding:46px 0;border-bottom:1px solid var(--line);text-align:center}
.clients-kicker{font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);margin:0 0 30px}
.logo-marquee{overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.lm-track{display:flex;width:max-content;animation:lm-scroll 34s linear infinite}
.logo-marquee:hover .lm-track{animation-play-state:paused}
.lm-group{display:flex;align-items:center;gap:64px;margin:0;padding:0 32px;list-style:none}
.lm-item{flex:none;display:flex;flex-direction:column;align-items:center;gap:12px;height:96px;justify-content:center}
.lm-item img{height:52px;width:auto;object-fit:contain}
.lm-item.ph{opacity:.85}
.lm-name{font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.lm-item.ph .lm-name{color:var(--faint)}
.ls-ph{color:var(--faint);opacity:.55;display:inline-flex;height:52px;align-items:center}
.ls-ph svg{width:48px;height:48px}
@keyframes lm-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .lm-track{animation:none}
  .logo-marquee{-webkit-mask-image:none;mask-image:none}
  .lm-group:nth-child(2){display:none}
  .lm-group{flex-wrap:wrap;justify-content:center;gap:40px}
}
.clients-note{font-size:14px;color:var(--muted);margin:30px auto 0;max-width:52ch}
.clients-note a{color:var(--brand-700);font-weight:600}

/* ---- footer ---- */
.footer{background:var(--ink);color:#AEB7CC;padding:64px 0 34px}
.footer .ftop{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:30px}
.footer .brand{color:#fff}
.footer h5{color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 14px}
.footer a{display:block;color:#AEB7CC;padding:5px 0;font-size:15px}
.footer a:hover{color:#fff}
.footer .tag{margin-top:14px;font-size:14.5px;color:#8A93A3;max-width:34ch}
.footer .legal{border-top:1px solid rgba(255,255,255,.10);margin-top:40px;padding-top:22px;
  display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:13px;color:#7b8498}
.footer .disclaimer{font-size:12.5px;color:#6b7488;line-height:1.6;margin-top:14px;max-width:90ch}

/* ---- reveal animation ---- */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr;gap:36px}
  .hero-shot{max-width:620px}
  .pains,.gallery,.trust-grid,.intg,.value3{grid-template-columns:repeat(2,1fr)}
  .ai-cards{grid-template-columns:1fr}
}
/* nav collapses to hamburger earlier than content grids (avoids 760–900 header overflow) */
@media (max-width:900px){
  .nav .links{display:none}
  .nav .cta .btn{display:none}
  .menu-btn{display:flex}
  .mobile-menu{display:none;flex-direction:column;gap:4px;padding:10px 24px 18px;
    border-bottom:1px solid var(--line);background:#fff}
  .mobile-menu.open{display:flex}
  .mobile-menu a{padding:12px 10px;border-radius:10px;font-weight:600;color:var(--text)}
  .mobile-menu a:hover{background:var(--surface)}
  .mobile-menu .btn{margin-top:8px;justify-content:center}
}
@media (max-width:760px){
  body{font-size:16px}
  .section{padding:62px 0}
  .hero .wrap{padding-top:54px;padding-bottom:58px}
  .frow{grid-template-columns:1fr;gap:24px;margin-top:44px}
  .frow.rev .ftext{order:0}
  .pains,.g2,.g3,.g4,.gallery,.trust-grid,.intg,.value3,.road2,.cmp{grid-template-columns:1fr}
  .cmp{gap:16px}
  .diff{margin-top:44px}
  .matrix{min-width:0}
  .matrix th,.matrix td{padding:12px 4px}
  .matrix thead th{font-size:10px;letter-spacing:.02em}
  .matrix tbody th[scope=row]{font-size:12.5px;width:44%;padding-left:12px;line-height:1.3}
  .matrix .m{width:22px;height:22px}
  .matrix .m svg{width:12px;height:12px}
  .cta-band{padding:38px 24px}
  .footer .ftop{grid-template-columns:1fr 1fr}
  .costbar{flex-direction:column;align-items:flex-start;gap:12px}
}
@media (max-width:420px){
  .footer .ftop{grid-template-columns:1fr}
}

/* ============================================================================
   LIVE DEMOS — animated, in-page UI moments (replace static screenshots).
   Each demo conveys its phase message "a parole" via a simple action that
   plays when it scrolls into view (.play) and replays on hover ([data-replay]).
   Reduced-motion: final state shown instantly.
   ============================================================================ */
.demo{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.demo-head{display:flex;align-items:center;gap:8px;padding:11px 14px;background:#F3F4F7;border-bottom:1px solid var(--line)}
.demo-head .dots{display:flex;gap:6px;flex:none}
.demo-head .dots i{width:10px;height:10px;border-radius:50%;background:#D7DAE2;display:block}
.demo-head .u{flex:1;font-size:12px;color:var(--faint);font-weight:600;background:#fff;border:1px solid var(--line);
  border-radius:7px;height:24px;display:flex;align-items:center;padding:0 10px;gap:7px}
.demo-head .u svg{width:13px;height:13px;color:var(--faint)}
.demo-body{padding:18px}
.demo-title{display:flex;align-items:center;gap:9px;font-weight:700;font-size:14px;margin:0 0 12px}
.demo-title .sp{margin-left:auto}

/* staggered reveal primitive */
.demo .anim{opacity:0;transform:translateY(9px);transition:opacity .5s ease,transform .5s ease;
  transition-delay:calc(var(--i,0) * 130ms)}
.demo.play .anim{opacity:1;transform:none}
.demo .pop{opacity:0;transform:scale(.6);transition:opacity .35s ease,transform .35s cubic-bezier(.2,1.2,.3,1);
  transition-delay:calc(var(--i,0) * 130ms + 220ms)}
.demo.play .pop{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .demo .anim,.demo .pop{opacity:1;transform:none;transition:none}
}

/* capture (photos) */
.cap{display:flex;gap:10px;margin-bottom:14px}
.cap .ph{flex:1;aspect-ratio:4/3;border-radius:10px;position:relative;overflow:hidden;
  background:#dfe3ec center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}
.cap .ph .lbl{position:absolute;left:7px;bottom:7px;font-size:10.5px;font-weight:800;color:#fff;
  text-shadow:0 1px 4px rgba(0,0,0,.55)}
.cap .ph.watch{background-image:url(assets/photos/14060M.jpg)}
.cap .ph.id{background-image:url(assets/photos/carta-identita.jpg);background-position:center}
.scan{position:absolute;left:0;right:0;top:0;height:34px;
  background:linear-gradient(180deg,rgba(124,92,237,0),rgba(124,92,237,.40),rgba(124,92,237,0));opacity:0}
.demo.play .scan{animation:scan 1.5s ease-in-out 1 both}
@keyframes scan{0%{opacity:.9;transform:translateY(-30px)}80%{opacity:.9}100%{opacity:0;transform:translateY(150px)}}
@media (prefers-reduced-motion:reduce){.demo.play .scan{animation:none}}

/* extracted fields */
.frows{display:flex;flex-direction:column;gap:8px}
.fr{display:flex;align-items:center;gap:10px;background:#F8F9FF;border:1px solid #E3E7FF;border-radius:9px;padding:9px 11px}
.fr .k{font-size:12px;color:var(--muted);font-weight:700;width:104px;flex:none}
.fr .v{font-weight:700;font-size:14px;color:var(--text)}
.fr .chip{margin-left:auto;font-size:11px;font-weight:800;color:var(--brand);background:#fff;border:1px solid #C9CDFF;
  border-radius:7px;padding:2px 8px;white-space:nowrap}
.fr .chip.low{color:var(--warn);border-color:#F0D9AE;background:#FFFBF4}
.demo-cta{display:flex;align-items:center;gap:10px;margin-top:13px;flex-wrap:wrap}
.demo-btn{height:42px;padding:0 18px;border-radius:11px;background:var(--grad);color:#fff;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;box-shadow:0 8px 20px rgba(61,90,254,.28)}
.demo-hint{font-size:12.5px;color:var(--faint);font-weight:600}

/* semantic search */
.searchbox{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:11px;height:48px;
  padding:0 14px;color:var(--text);font-weight:600;background:#fff}
.searchbox svg{width:18px;height:18px;color:var(--faint);flex:none}
.searchbox .q{font-size:15px;min-height:18px}
.caret{display:inline-block;width:2px;height:18px;background:var(--brand);margin-left:1px;vertical-align:-3px;
  animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.results{display:flex;flex-direction:column;gap:9px;margin-top:11px}
.res{display:flex;align-items:center;gap:11px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.res .th{width:34px;height:34px;border-radius:8px;background:#dfe3ec center/cover no-repeat;flex:none}
.res .nm{font-weight:700;font-size:14px}
.res .sub{font-size:12px;color:var(--muted)}
.res .match{margin-left:auto;font-size:12px;font-weight:800;color:var(--brand-700);background:var(--brand-50);
  border-radius:999px;padding:4px 10px;white-space:nowrap}

/* audit timeline */
.tl{position:relative;padding-left:30px}
.tl::before{content:"";position:absolute;left:9px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl .fillrail{position:absolute;left:9px;top:6px;width:2px;background:var(--grad);height:0;border-radius:2px;
  transition:height 1.2s cubic-bezier(.3,.7,.3,1)}
.demo.play .tl .fillrail{height:calc(100% - 12px)}
@media (prefers-reduced-motion:reduce){.demo.play .tl .fillrail{transition:none}}
.tl .ti{position:relative;padding:0 0 16px}
.tl .ti:last-child{padding-bottom:0}
.tl .ti .dot{position:absolute;left:-30px;top:0;width:20px;height:20px;border-radius:50%;background:#fff;
  border:2px solid var(--line);display:grid;place-items:center;color:#fff}
.tl .ti.ok .dot{background:var(--grad);border-color:transparent}
.tl .ti.ok .dot svg{width:12px;height:12px}
.tl .ti h5{font-size:14.5px;margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tl .ti p{font-size:12.5px;color:var(--muted);margin:2px 0 0}
.tl .ti .t{font-size:11.5px;color:var(--faint);font-weight:700}

/* recall (vendita) — chips that show data arriving from the watch */
.recall{display:flex;flex-direction:column;gap:9px}
.recall .rr{display:flex;align-items:center;gap:10px;font-size:14px}
.recall .rr .k{color:var(--muted);font-weight:700;width:120px;flex:none}
.recall .rr .v{font-weight:700}
.recall .from{font-size:11px;font-weight:800;color:#0a7a55;background:var(--ok-50);border-radius:7px;padding:2px 8px;margin-left:auto}

/* mini stat cards (dossier/storico/impostazioni) */
.mini-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:30px}
.mini{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow-sm)}
.mini .ic-box{margin-bottom:14px}
.mini h4{font-size:17px;margin:0 0 4px}
.mini p{font-size:14px;color:var(--muted);margin:0}
.mini .stat{font-size:34px;font-weight:800;letter-spacing:-.02em;background:var(--grad);
  -webkit-background-clip:text;background-clip:text;color:transparent;line-height:1}
.mini .toggles{display:flex;flex-direction:column;gap:9px;margin-top:4px}
.mini .tg{display:flex;align-items:center;justify-content:space-between;font-size:13.5px;font-weight:600}
.mini .sw{width:38px;height:22px;border-radius:999px;background:var(--surface-2);position:relative;flex:none;transition:background .35s ease}
.mini .sw::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;
  box-shadow:var(--shadow-sm);transition:left .35s ease}
.demo.play .mini .sw.on,.play.mini .sw.on{background:var(--ok)}
.demo.play .mini .sw.on::after,.play.mini .sw.on::after{left:19px}

/* CSS phone (mobile section) */
.phone2{width:268px;margin:0 auto;background:#0E1726;border-radius:36px;padding:11px;box-shadow:var(--shadow-lg);flex:none}
.phone2 .scr{background:var(--bg);border-radius:27px;overflow:hidden;min-height:486px;display:flex;flex-direction:column;position:relative}
.phone2 .nb{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:84px;height:18px;background:#0E1726;border-radius:0 0 12px 12px;z-index:5}
.phone2 .pt{padding:24px 16px 8px;display:flex;align-items:center;justify-content:space-between}
.phone2 .pt .tt{font-size:15px;font-weight:800}
.phone2 .pb{padding:6px 14px 12px;display:flex;flex-direction:column;gap:11px;flex:1}
.capgrid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.cshot{aspect-ratio:1;border-radius:13px;background:#dfe3ec center/cover no-repeat;position:relative;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}
.cshot .cn{position:absolute;left:7px;bottom:6px;font-size:10px;font-weight:800;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.55)}
.cshot .ck{position:absolute;right:6px;top:6px;width:22px;height:22px;border-radius:50%;background:var(--ok);color:#fff;
  display:grid;place-items:center}
.cshot .ck svg{width:13px;height:13px}
.cshot.empty{background:#fff;border:1.5px dashed #C7CCD8;display:grid;place-items:center;color:var(--faint);font-size:22px;font-weight:300}
.bio{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:11px 13px}
.bio .fp{width:34px;height:34px;border-radius:10px;background:var(--brand-50);color:var(--brand);display:grid;place-items:center;flex:none}
.bio .fp svg{width:20px;height:20px}
.demo.play .bio .fp{animation:pulse 1.6s ease-in-out 2}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(61,90,254,.0)}50%{box-shadow:0 0 0 6px rgba(61,90,254,.18)}}
@media (prefers-reduced-motion:reduce){.demo.play .bio .fp{animation:none}}
.bio .bt{font-size:13px;font-weight:700}
.bio .bs{font-size:11.5px;color:var(--muted)}
.phbtn{height:46px;border-radius:13px;background:var(--grad);color:#fff;font-weight:800;display:flex;align-items:center;
  justify-content:center;gap:8px;font-size:14px}

/* hero demo sits on dark; keep white card but tweak shadow */
.hero-demo{position:relative}
.hero-demo .demo{box-shadow:var(--shadow-lg);border-color:rgba(255,255,255,.10)}

/* mobile section split (text + phone) */
.split2{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
@media (max-width:760px){ .split2{grid-template-columns:1fr;gap:34px} }

@media (max-width:1024px){
  .mini-cards{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:760px){
  .mini-cards{grid-template-columns:1fr}
  .fr .k{width:88px}
  .recall .rr .k{width:104px}
}
