/* ===========================================================================
   Sijil Lab — product landing page · v2 "product-forward"
   Identity: real app surfaces (white, app-window chrome), product-blue brand,
   MONOSPACE for clinical data/codes/ASTM frames (the lab-instrument cue).
   The marketing wraps AROUND realistic, interactive product panels.
   FR primary + AR (RTL). Dependency-free.
   =========================================================================== */

:root {
  --bg:        #FFFFFF;
  --bg-soft:   #F4F7FC;   /* cool app panel */
  --bg-soft-2: #ECF1F8;
  --ink:       #0C1426;   /* near-black navy */
  --ink-soft:  #3A4658;
  --muted:     #6B7689;
  --line:      #E2E8F2;
  --line-soft: #EEF2F8;
  --brand:     #2563EB;   /* product blue (matches the real app) */
  --brand-deep:#1D4ED8;
  --brand-soft:#E7EFFE;
  --brand-ink: #14275C;
  --green:     #16A34A;   /* validé */
  --green-soft:#E6F6EC;
  --amber:     #D97706;   /* en cours */
  --amber-soft:#FCF0DC;
  --red:       #DC2626;   /* critique / déconnecté */
  --red-soft:  #FCE9E9;
  --night:     #0A1124;   /* dark sections */
  --night-2:   #111B36;

  --maxw: 1200px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --r:   16px;
  --r-sm: 10px;

  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --font-ar: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sh-sm: 0 1px 2px rgba(12,20,38,.05), 0 4px 12px rgba(12,20,38,.05);
  --sh:    0 2px 6px rgba(12,20,38,.06), 0 18px 40px rgba(12,20,38,.10);
  --sh-lg: 0 8px 24px rgba(12,20,38,.10), 0 40px 80px rgba(12,20,38,.16);

  /* backward-compat aliases for roi.html / pricing.html (v1 token names) */
  --accent: var(--brand); --accent-deep: var(--brand-deep); --accent-soft: var(--brand-soft);
  --paper: var(--bg); --paper-2: var(--bg-soft);
  --radius: var(--r); --shadow: var(--sh); --shadow-lg: var(--sh-lg); --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
html[dir="rtl"] body { font-family: var(--font-ar); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---------- type ---------- */
h1,h2,h3,.display { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.07; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.4rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.27rem); color: var(--ink-soft); max-width: 48ch; }
.brandc { color: var(--brand); }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-display); font-size: .76rem; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand); display: inline-block; margin-bottom: .9rem; }

/* ---------- buttons ---------- */
.btn { font-family: var(--font-display); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center;
  gap: .5rem; padding: .8rem 1.4rem; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: all .2s var(--ease); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .45rem .8rem; font-size: .82rem; border-radius: 9px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 750; font-size: 1.18rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #4F86FF); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(37,99,235,.3); }
.brand .mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--brand-deep); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.lang-toggle { font-family: var(--font-display); font-size: .82rem; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; padding: .42rem .8rem; cursor: pointer; color: var(--ink-soft); }
.lang-toggle:hover { border-color: var(--brand); color: var(--brand-deep); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; font-size: 1.45rem; color: var(--ink); }

/* ---------- sections ---------- */
section { padding: clamp(60px, 8vw, 120px) 0; position: relative; }
.section-head { max-width: 66ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lead { margin-top: .9rem; }
.alt { background: var(--bg-soft); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 64px); background:
  radial-gradient(1200px 500px at 80% -10%, var(--brand-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin: .6rem 0 1rem; }
.hero .lead { max-width: 46ch; }
.hero-cta { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.trust .t { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: .3rem .6rem; }

/* =====================================================================
   APP WINDOW CHROME — the realistic product frame (cursor/reducto move)
   ===================================================================== */
.appwin { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); overflow: hidden; }
.appwin-top { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.appwin-top .traffic { display: flex; gap: .35rem; }
.appwin-top .traffic i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.appwin-top .crumb { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-inline-start: .4rem; }
.appwin-top .who { margin-inline-start: auto; font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.appwin-top .who .ava { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-size: .65rem; font-weight: 700; font-family: var(--font-display); }
.appwin-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.appwin-side { background: #FAFBFE; border-inline-end: 1px solid var(--line); padding: .7rem .5rem; }
.appwin-side .grp { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .5rem .6rem .25rem; }
.appwin-side a { display: flex; align-items: center; gap: .5rem; padding: .42rem .6rem; border-radius: 8px; font-size: .82rem; color: var(--ink-soft); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.appwin-side a .ic { width: 16px; text-align: center; opacity: .8; }
.appwin-side a:hover { background: var(--bg-soft); color: var(--brand-deep); }
.appwin-side a.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.appwin-main { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.appwin-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); }
.appwin-head h4 { font-family: var(--font-display); font-size: 1rem; }
.appwin-content { padding: .4rem; overflow: auto; flex: 1; -webkit-overflow-scrolling: touch; }

/* status tags (AntD-like, real product) */
.tag { font-size: .72rem; font-weight: 600; padding: .14rem .5rem; border-radius: 6px; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { color: var(--green); background: var(--green-soft); }
.tag.warn { color: var(--amber); background: var(--amber-soft); }
.tag.crit { color: var(--red); background: var(--red-soft); }
.tag.info { color: var(--brand); background: var(--brand-soft); }
.tag.plain::before { display: none; }

/* product data table */
.ptable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ptable th { text-align: start; font-weight: 600; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; padding: .5rem .7rem; border-bottom: 1px solid var(--line); }
.ptable td { padding: .55rem .7rem; border-bottom: 1px solid var(--line-soft); }
.ptable tr { cursor: pointer; transition: background .15s; }
.ptable tbody tr:hover { background: var(--bg-soft); }
.ptable tr.sel { background: var(--brand-soft); }
@keyframes rowflash { 0% { background: var(--brand-soft); } 100% { background: transparent; } }
.ptable tr.arrived td { animation: rowflash 1.8s var(--ease); }
.ptable tr.arrived td:first-child { position: relative; }
@keyframes genpop { 0% { box-shadow: 0 0 0 0 var(--brand); } 30% { box-shadow: 0 0 0 4px var(--brand-soft); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
.genflash { animation: genpop .7s var(--ease); }
.ptable .num { font-family: var(--font-mono); font-weight: 600; }
.ptable .num.hi { color: var(--red); }
.ptable .num.lo { color: var(--brand-deep); }
.ptable .sub { color: var(--muted); font-size: .76rem; }
.flag { font-family: var(--font-mono); font-size: .7rem; font-weight: 700; padding: 0 .25rem; border-radius: 4px; }
.flag.H { color: var(--red); background: var(--red-soft); }
.flag.L { color: var(--brand-deep); background: var(--brand-soft); }

/* tabbed product showcase */
.showcase-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.sc-tab { font-family: var(--font-display); font-weight: 600; font-size: .86rem; padding: .55rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink-soft); cursor: pointer; transition: all .18s; }
.sc-tab:hover { border-color: var(--brand); color: var(--brand-deep); }
.sc-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sc-stage { min-height: 440px; }
.sc-cap { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; max-width: 70ch; }
.sc-cap b { color: var(--ink); }

/* detail drawer (validation) */
.drawer { padding: 1rem 1.1rem; }
.drawer .res-row { display: grid; grid-template-columns: 1fr auto auto; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.drawer .res-row .v { font-family: var(--font-mono); font-weight: 700; }
.drawer .res-row .v.hi { color: var(--red); }
.spark { height: 26px; }
.spark path { fill: none; stroke: var(--brand); stroke-width: 1.5; }
.drawer .acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- device board (automates supervision) ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; padding: .8rem; }
.dev { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem .9rem; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.dev.down { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.dev-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.dev-h .name { font-family: var(--font-display); font-weight: 650; }
.dev-h .proto { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.dev-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.dev-stats .m { font-family: var(--font-mono); }
.dev-stats .m .n { font-weight: 700; font-size: .95rem; }
.dev-stats .m .n.bad { color: var(--red); }
.dev-stats .m .k { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dms-alert { margin: 0 .8rem .8rem; background: var(--red-soft); border: 1px solid var(--red); color: var(--red); border-radius: var(--r-sm); padding: .65rem .85rem; font-size: .85rem; display: none; align-items: center; gap: .5rem; }
.dms-alert.show { display: flex; }
.dms-alert .mono { font-weight: 700; }

/* ---------- parsing gadget (raw -> structured, the reducto move) ---------- */
.parse { display: grid; grid-template-columns: 1fr 44px 1fr; gap: .6rem; align-items: stretch; padding: 1rem; }
.parse .pane { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; display: flex; flex-direction: column; }
.parse .pane h5 { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .5rem .7rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.parse pre { font-family: var(--font-mono); font-size: .72rem; line-height: 1.7; padding: .7rem; color: var(--ink-soft); white-space: pre-wrap; word-break: break-all; flex: 1; }
.parse pre .hl { background: var(--brand-soft); color: var(--brand-deep); border-radius: 3px; padding: 0 2px; transition: background .25s; }
.parse pre .hl.lit { background: #FCE26B; color: #5a4a00; }
.parse .arrow { display: grid; place-items: center; color: var(--brand); font-size: 1.3rem; }
.parse .struct { padding: .5rem; }
.parse .struct .kv { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .76rem; padding: .35rem .4rem; border-radius: 6px; opacity: .25; transform: translateX(6px); transition: all .3s var(--ease); }
html[dir="rtl"] .parse .struct .kv { transform: translateX(-6px); }
.parse .struct .kv.in { opacity: 1; transform: none; }
.parse .struct .kv.in:nth-child(odd) { background: var(--bg-soft); }
.parse .struct .kv .k { color: var(--muted); }
.parse .struct .kv .val { font-weight: 700; color: var(--ink); }
.parse-foot { display: flex; align-items: center; gap: .7rem; padding: 0 1rem 1rem; }

/* ---------- conformité gate ---------- */
.gate { padding: 1rem 1.1rem; }
.gate .chk { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; font-size: .9rem; border-bottom: 1px solid var(--line-soft); opacity: .3; transition: opacity .3s; }
.gate .chk.in { opacity: 1; }
.gate .chk .bx { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.gate .chk.pass .bx { background: var(--green-soft); color: var(--green); }
.gate .chk.fail .bx { background: var(--red-soft); color: var(--red); }
.gate .chk .lbl b { font-family: var(--font-mono); }
.gate .chk .mini { color: var(--muted); font-size: .76rem; }
.gate-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.gate-verdict { font-weight: 600; font-size: .9rem; }
.gate-verdict.block { color: var(--red); }
.gate-verdict.ok { color: var(--green); }

/* ---------- QC chart (Levey-Jennings) ---------- */
.qc { padding: 1rem; }
.qc svg { width: 100%; height: auto; }
.qc .band-3 { fill: var(--red-soft); opacity: .5; }
.qc .band-2 { fill: var(--amber-soft); opacity: .5; }
.qc .band-1 { fill: var(--green-soft); opacity: .6; }
.qc .mean { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; }
.qc .sd { stroke: var(--line); stroke-width: 1; }
.qc .pt { fill: var(--brand); cursor: pointer; transition: r .15s; }
.qc .pt:hover { r: 6; }
.qc .pt.viol { fill: var(--red); }
.qc .conn { fill: none; stroke: var(--brand); stroke-width: 1.5; opacity: .5; }
.qc-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .76rem; color: var(--muted); padding: .4rem 1rem 0; }
.qc-tip { font-family: var(--font-mono); font-size: .78rem; color: var(--ink); padding: .3rem 1rem; min-height: 1.4em; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; padding: .9rem; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem; background: var(--bg); }
.kpi .k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.kpi .v { font-family: var(--font-display); font-weight: 750; font-size: 1.9rem; margin-top: .2rem; }
.kpi.warn .v { color: var(--amber); }
.kpi.crit .v { color: var(--red); }
.donut-wrap { display: flex; align-items: center; gap: 1rem; padding: 0 .9rem .9rem; }
.donut-legend { font-size: .82rem; }
.donut-legend .li { display: flex; align-items: center; gap: .45rem; padding: .15rem 0; }
.donut-legend .li i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- report preview ---------- */
.report { padding: 1.3rem 1.5rem; font-size: .82rem; max-width: 560px; margin: 0 auto; }
.report .rhead { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: .8rem; }
.report .rhead .lab { font-family: var(--font-display); font-weight: 750; font-size: 1rem; }
.report .meta { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; font-family: var(--font-mono); font-size: .74rem; margin-bottom: .8rem; color: var(--ink-soft); }
.report table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.report th { text-align: start; border-bottom: 1px solid var(--line); padding: .3rem; color: var(--muted); font-weight: 600; }
.report td { padding: .3rem; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); }
.report .sign { margin-top: 1rem; display: flex; justify-content: space-between; align-items: end; }
.report .sign .b { font-family: var(--font-display); }
.report .stamp { border: 1.5px solid var(--green); color: var(--green); border-radius: 8px; padding: .25rem .6rem; font-family: var(--font-display); font-weight: 700; font-size: .72rem; transform: rotate(-4deg); }

/* ---------- capability grid ---------- */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: .9rem; font-size: 1.1rem; }
.card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .92rem; }
.tag-soon { font-family: var(--font-mono); font-size: .64rem; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: .1rem .4rem; border-radius: 5px; margin-inline-start: .4rem; vertical-align: middle; }

/* ---------- sovereignty (dark, secure-env) ---------- */
.dark { background: var(--night); color: #C7D2E4; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #6AA0FF; }
.secure-env { background: var(--night-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 1.6rem; position: relative; }
.secure-env .ring { border: 1px dashed rgba(106,160,255,.4); border-radius: 12px; padding: 1.1rem; }
.secure-env .ring .lbl { font-family: var(--font-mono); font-size: .68rem; color: #6AA0FF; letter-spacing: .05em; }
.secure-env .boxes { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-top: .7rem; }
.secure-env .b { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: .7rem; font-size: .82rem; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.chip { font-size: .8rem; font-weight: 600; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .4rem .85rem; color: #cfe0fb; background: rgba(255,255,255,.04); }
.chip::before { content: "✓ "; color: #6AA0FF; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.3rem; }
.stat { text-align: center; }
.stat .big { font-family: var(--font-display); font-weight: 750; font-size: clamp(1.9rem,3.6vw,2.8rem); color: var(--brand-deep); line-height: 1; }
.stat .lbl { font-size: .9rem; color: var(--ink-soft); margin-top: .45rem; }
.stat .src { font-size: .7rem; color: var(--muted); margin-top: .3rem; font-style: italic; }

/* ---------- lab types ---------- */
.labtypes { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.labtype { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.labtype h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.labtype p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: start; background: none; border: 0; padding: 1.1rem 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .sign { color: var(--brand); font-size: 1.3rem; transition: transform .25s; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a p { padding-bottom: 1.1rem; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-deep), #4F86FF); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.92); margin: .9rem auto 0; }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: #93A2BC; padding: clamp(44px,6vw,72px) 0 2.2rem; }
.footer a { color: #cfe0fb; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.2rem; }
.footer h4 { font-family: var(--font-display); color: #fff; font-size: .9rem; margin-bottom: .9rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .numbers, .labtypes, .footer-grid, .parse { grid-template-columns: 1fr; }
  .parse .arrow { transform: rotate(90deg); }
  .appwin-body { grid-template-columns: 1fr; }
  .appwin-side { display: none; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 64px; inset-inline: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter); gap: 1rem; box-shadow: var(--sh); }
  .nav-links.open .btn-mobile-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: .3rem; }
}
.btn-mobile-cta { display: none; }
.nav-links a.btn-mobile-cta, .nav-links a.btn-mobile-cta:hover { color: #fff; }
@media (max-width: 640px) { .nav-actions .btn-primary { display: none; } }

/* hero app interactivity hint */
.hero-hint { text-align: center; margin-top: .7rem; font-size: .8rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: .4rem; }
.hero-hint .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: live 2s var(--ease) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4, .numbers, .kpis, .dev-grid { grid-template-columns: 1fr; } body { font-size: 16px; } .ptable th, .ptable td { padding: .45rem .5rem; font-size: .8rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
