/* ============================================================
   KnoDTec — CRA Readiness Landing Page
   Palette: purpose-built trust system from the build brief,
   harmonised with knodtec.com (Inter + Syne type, blue primary,
   deep navy sections). All text/background pairs target WCAG AA.
   ============================================================ */

:root{
  --bg:           #F7F9FC;   /* page background, very light cool grey */
  --surface:      #FFFFFF;   /* cards */
  --ink:          #0E1A2B;   /* primary text, near-navy */
  --ink-soft:     #44556B;   /* secondary text */
  --navy:         #0B2A4A;   /* deep brand navy (headers, footer) */
  --navy-deep:    #07203A;   /* darker navy for gradients */
  --primary:      #1565D8;   /* trust blue — primary actions/links */
  --primary-700:  #0E4DAB;   /* hover */
  --teal:         #00A6A6;   /* secondary accent / highlights */
  --success:      #16A34A;   /* "verified / compliant" states */
  --warn:         #E07A0C;   /* caution */
  --danger:       #D43A2F;   /* "attack / rejected" states in the demo */
  --line:         #E2E8F2;   /* hairline borders */
  --shadow:       0 6px 24px rgba(11,42,74,.08);
  --shadow-lg:    0 18px 48px rgba(11,42,74,.16);

  --font:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --display: 'Syne', 'Inter', system-ui, sans-serif;

  --radius:    14px;
  --radius-sm: 10px;
  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------- Reset / base ------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
/* the [hidden] attribute must win over component display rules (e.g. display:flex) */
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.6;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block; }
svg{ display:block; }
a{ color:var(--primary); text-decoration:none; }
a:hover{ color:var(--primary-700); text-decoration:underline; }
h1,h2,h3{ font-family:var(--display); line-height:1.15; color:var(--ink); margin:0 0 .5em; letter-spacing:-.01em; }
h1{ font-size:clamp(2.05rem, 5.2vw, 3.4rem); font-weight:800; }
h2{ font-size:clamp(1.7rem, 3.6vw, 2.5rem); font-weight:700; }
h3{ font-size:1.2rem; font-weight:600; font-family:var(--font); letter-spacing:-.005em; }
p{ margin:0 0 1rem; }
:focus-visible{ outline:3px solid var(--primary); outline-offset:2px; border-radius:4px; }
/* headings/regions that receive *programmatic* focus (tabindex=-1) for screen-reader
   flow shouldn't paint an input-like ring — they're not keyboard-tabbable anyway. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible{ outline:none; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--navy); color:#fff; padding:.7rem 1.1rem; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

/* ------------------------- Layout helpers ------------------------- */
.container{ width:min(100% - 2.5rem, var(--container)); margin-inline:auto; }
.narrow{ max-width:820px; }
.section{ padding:clamp(3.5rem, 8vw, 6rem) 0; }
/* offset anchored targets so the sticky nav doesn't cover their headings */
section[id], [id]{ scroll-margin-top:78px; }
.center{ text-align:center; }

.section-tint{ background:var(--bg); }
.section + .section-tint, .section-tint{ background:linear-gradient(180deg,#fff, var(--bg)); }
.section-navy{
  background:radial-gradient(1200px 600px at 80% -10%, #123a63 0, transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-deep));
  color:#fff;
}

.section-head{ max-width:780px; margin:0 auto clamp(2rem,4vw,3rem); text-align:center; }
.section-head .kicker{
  display:inline-block; font-size:.8rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--primary); background:rgba(21,101,216,.08); padding:.35rem .8rem; border-radius:999px; margin-bottom:1rem;
}
.section-intro{ color:var(--ink-soft); font-size:1.1rem; max-width:65ch; margin:.6rem auto 0; }
.section-head-invert h2{ color:#fff; }
.section-head-invert .kicker{ color:#bfe0ff; background:rgba(255,255,255,.12); }
.section-head-invert .section-intro{ color:#c7d6e8; }

/* ------------------------- Buttons ------------------------- */
.btn{
  --btn-bg:var(--primary); --btn-fg:#fff;
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-family:var(--font); font-weight:600; font-size:1rem; line-height:1;
  padding:.85rem 1.4rem; border-radius:999px; border:2px solid transparent;
  background:var(--btn-bg); color:var(--btn-fg); cursor:pointer;
  transition:transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s;
  text-decoration:none; white-space:nowrap;
}
.btn:hover{ text-decoration:none; transform:translateY(-2px); box-shadow:0 8px 20px rgba(21,101,216,.28); }
.btn:active{ transform:translateY(0); }
.btn-primary{ --btn-bg:var(--primary); }
.btn-primary:hover{ background:var(--primary-700); color:#fff; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ background:#fff; border-color:var(--primary); color:var(--primary-700); box-shadow:var(--shadow); }
.section-navy .btn-ghost, .hero .btn-ghost{ color:#fff; border-color:rgba(255,255,255,.45); }
.section-navy .btn-ghost:hover, .hero .btn-ghost:hover{ background:rgba(255,255,255,.12); border-color:#fff; color:#fff; box-shadow:none; }
.btn-lg{ padding:1rem 1.7rem; font-size:1.05rem; }
.btn-sm{ padding:.55rem 1rem; font-size:.92rem; }
.btn-block{ display:flex; width:100%; }

/* ------------------------- Sticky nav ------------------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.86); backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid var(--line);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; min-height:62px; gap:1rem; }
.brand{ display:inline-flex; align-items:center; gap:.55rem; font-weight:700; color:var(--ink); }
.brand:hover{ text-decoration:none; }
.brand-name{ font-family:var(--display); font-size:1.2rem; letter-spacing:-.01em; }
.brand-mark{ flex:none; }

.nav-menu{ display:flex; align-items:center; gap:1.6rem; }
.nav-menu a{ color:var(--ink-soft); font-weight:500; font-size:.97rem; }
.nav-menu a:hover{ color:var(--primary); text-decoration:none; }
.nav-menu a.nav-cta{ color:#fff; }
.nav-menu a.nav-cta:hover{ color:#fff; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:42px; height:38px; padding:8px;
  background:transparent; border:1px solid var(--line); border-radius:9px; cursor:pointer;
}
.nav-toggle-bar{ height:2px; background:var(--ink); border-radius:2px; transition:transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:860px){
  .nav-toggle{ display:flex; }
  .nav-menu{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:#fff; border-bottom:1px solid var(--line); box-shadow:var(--shadow);
    padding:.5rem .5rem 1rem; max-height:0; overflow:hidden; transition:max-height .3s var(--ease);
  }
  .nav-menu.open{ max-height:420px; }
  .nav-menu a{ padding:.85rem 1rem; border-radius:8px; font-size:1.05rem; }
  .nav-menu a:hover{ background:var(--bg); }
  .nav-menu a.nav-cta{ margin-top:.4rem; text-align:center; justify-content:center; }
}

/* ------------------------- Hero ------------------------- */
.hero{ position:relative; overflow:hidden; color:#fff;
  background:radial-gradient(900px 500px at 78% -8%, #1a4a7a 0, transparent 55%), linear-gradient(155deg, var(--navy) 10%, var(--navy-deep) 90%);
}
.hero-bg{ position:absolute; inset:0; z-index:0; opacity:.7; }
.hero-motif{ width:100%; height:100%; }
.hero-inner{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(1.5rem,4vw,3rem); align-items:center;
  padding:clamp(3rem,7vw,5.5rem) 0 clamp(3.5rem,7vw,5rem);
}
.eyebrow{
  display:inline-block; font-size:.82rem; font-weight:600; letter-spacing:.06em;
  color:#bfe0ff; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18);
  padding:.4rem .9rem; border-radius:999px; margin-bottom:1.2rem;
}
.hero h1{ color:#fff; margin-bottom:1rem; }
.hero h1 .grad{ background:linear-gradient(90deg,#43c8ff,#00A6A6); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lede{ font-size:clamp(1.05rem,1.6vw,1.25rem); color:#d3e2f2; max-width:60ch; margin-bottom:1.8rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.8rem; margin-bottom:1.6rem; }
.hero-trust{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.5rem 1.4rem; }
.hero-trust li{ display:flex; align-items:center; gap:.5rem; font-size:.92rem; color:#bcd0e6; }
.hero-trust .ic{ width:20px; height:20px; flex:none; fill:#43c8ff; }

.hero-visual{ display:flex; justify-content:center; }
.hero-shield{ width:min(100%, 360px); height:auto; }

.scroll-hint{ position:absolute; left:50%; bottom:18px; transform:translateX(-50%); z-index:2; width:26px; height:42px; border:2px solid rgba(255,255,255,.4); border-radius:14px; }
.scroll-hint span{ position:absolute; left:50%; top:8px; width:4px; height:8px; margin-left:-2px; background:#fff; border-radius:2px; animation:scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot{ 0%{ opacity:0; transform:translateY(0); } 30%{ opacity:1; } 60%{ opacity:1; transform:translateY(12px); } 100%{ opacity:0; transform:translateY(16px); } }

@media (max-width:860px){
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-actions, .hero-trust{ justify-content:center; }
  .lede{ margin-inline:auto; }
  .hero-visual{ order:-1; }
  .hero-shield{ width:min(72%, 260px); }
  .scroll-hint{ display:none; }
}

/* ------------------------- What is CRA: plain card + steps ------------------------- */
.plain-card{
  background:var(--surface); border:1px solid var(--line); border-left:5px solid var(--primary);
  border-radius:var(--radius); padding:clamp(1.4rem,3vw,2rem); box-shadow:var(--shadow); margin-bottom:2.5rem;
}
.plain-big{ font-size:clamp(1.1rem,1.8vw,1.35rem); line-height:1.6; margin:0; color:var(--ink); }

.steps{ list-style:none; padding:0; margin:0 0 2.5rem; display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; counter-reset:step; }
.step{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.5rem 1.3rem; position:relative; box-shadow:var(--shadow); }
.step::before{ counter-increment:step; content:counter(step); position:absolute; top:1.1rem; right:1.2rem; font-family:var(--display); font-weight:800; font-size:1.4rem; color:var(--line); }
.step-ic{ width:46px; height:46px; border-radius:12px; display:grid; place-items:center; background:rgba(21,101,216,.1); margin-bottom:.9rem; }
.step-ic svg{ width:24px; height:24px; fill:none; stroke:var(--primary); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.step h3{ margin-bottom:.35rem; }
.step p{ margin:0; color:var(--ink-soft); font-size:.97rem; }
.steps .step:nth-child(2) .step-ic{ background:rgba(0,166,166,.12); } .steps .step:nth-child(2) .step-ic svg{ stroke:var(--teal); }
.steps .step:nth-child(3) .step-ic{ background:rgba(22,163,74,.12); } .steps .step:nth-child(3) .step-ic svg{ stroke:var(--success); }

/* ------------------------- Timeline ------------------------- */
.timeline{ position:relative; margin:0 0 2rem; padding:1.5rem 0; }
.timeline-line{ position:absolute; top:2.1rem; left:6%; right:6%; height:3px; background:var(--line); border-radius:3px; }
.timeline-progress{ display:block; height:100%; width:0; background:linear-gradient(90deg,var(--primary),var(--teal)); border-radius:3px; transition:width 1.4s var(--ease); }
.timeline.in .timeline-progress{ width:100%; }
.timeline-points{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.tp{ position:relative; text-align:center; padding-top:1.8rem; }
.tp-dot{ position:absolute; top:.65rem; left:50%; transform:translateX(-50%); width:16px; height:16px; border-radius:50%; background:#fff; border:3px solid var(--primary); box-shadow:0 0 0 4px var(--bg); }
.tp-emph .tp-dot{ border-color:var(--teal); background:var(--teal); }
.tp-date{ display:block; font-family:var(--display); font-weight:700; font-size:1.05rem; color:var(--ink); }
.tp-label{ display:block; font-weight:600; font-size:.95rem; margin-top:.2rem; }
.tp-emph .tp-label{ color:var(--primary-700); }
.tp-sub{ display:block; color:var(--ink-soft); font-size:.85rem; margin-top:.25rem; }

@media (max-width:680px){
  .steps{ grid-template-columns:1fr; }
  .timeline-line{ top:0; bottom:0; left:1.2rem; right:auto; width:3px; height:auto; }
  .timeline.in .timeline-progress{ width:100%; height:100%; }
  .timeline-progress{ width:100%; height:0; transition:height 1.4s var(--ease); }
  .timeline.in .timeline-progress{ height:100%; }
  .timeline-points{ grid-template-columns:1fr; gap:1.6rem; padding-left:2.6rem; }
  .tp{ text-align:left; padding-top:0; }
  .tp-dot{ left:-2.05rem; top:.2rem; transform:none; }
}

/* ------------------------- "For engineers" disclosure ------------------------- */
.eng{ border-top:1px dashed var(--line); margin-top:1rem; }
.eng > summary{
  list-style:none; cursor:pointer; padding:.8rem 0 .2rem; font-weight:600; color:var(--primary);
  display:flex; align-items:center; gap:.5rem; user-select:none;
}
.eng > summary::-webkit-details-marker{ display:none; }
.eng .eng-caret{ transition:transform .25s var(--ease); display:inline-block; }
.eng[open] > summary .eng-caret{ transform:rotate(90deg); }
.eng-body{ color:var(--ink-soft); font-size:.95rem; padding-top:.4rem; }
.eng-body p:last-child{ margin-bottom:0; }
.eng[open] .eng-body{ animation:reveal-soft .35s var(--ease); }
@keyframes reveal-soft{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
section#what .eng{ max-width:780px; margin-inline:auto; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:.2rem 1.4rem 1rem; box-shadow:var(--shadow); }

/* ------------------------- Teaser ------------------------- */
.teaser-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1.6rem; }
.teaser-q{ display:flex; gap:1rem; align-items:flex-start; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.3rem; box-shadow:var(--shadow); }
.teaser-num{ flex:none; width:36px; height:36px; border-radius:50%; background:var(--primary); color:#fff; font-family:var(--display); font-weight:700; display:grid; place-items:center; }
.teaser-q p{ margin:0; font-size:1.02rem; }
.teaser-verdict{ text-align:center; font-size:1.15rem; max-width:60ch; margin:0 auto 1.6rem; }
@media (max-width:680px){ .teaser-grid{ grid-template-columns:1fr; } }

/* ------------------------- Annex grid ------------------------- */
/* 2 equal columns: 8 cards tile perfectly as 4 rows. Emphasis (I, III, IV)
   is carried by colour/weight, not column-span, so nothing orphans. */
.annex-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.1rem; }
.annex-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:1.4rem; box-shadow:var(--shadow); transition:transform .2s var(--ease), box-shadow .2s, border-color .2s;
  display:flex; flex-direction:column;
}
.annex-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:#c9d8ec; }
.annex-top{ display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin-bottom:.9rem; }
.annex-ic{ width:42px; height:42px; border-radius:11px; background:rgba(21,101,216,.1); display:grid; place-items:center; flex:none; }
.annex-ic svg{ width:23px; height:23px; fill:none; stroke:var(--primary); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.annex-tag{ font-size:.72rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-soft); background:var(--bg); border:1px solid var(--line); padding:.25rem .55rem; border-radius:999px; }
.annex-card h3{ margin-bottom:.4rem; }
.annex-card > p{ color:var(--ink-soft); font-size:.95rem; margin-bottom:.4rem; flex:1; }

/* Emphasised annexes (I, III, IV) — highlighted, not resized */
.annex-emph{ border-color:#bcd3ee; border-top:3px solid var(--primary); background:linear-gradient(180deg,#fff,#f6faff); box-shadow:0 10px 30px rgba(21,101,216,.12); }
.annex-emph .annex-ic{ background:var(--primary); }
.annex-emph .annex-ic svg{ stroke:#fff; }
.annex-emph .annex-tag{ color:var(--primary-700); background:rgba(21,101,216,.08); border-color:rgba(21,101,216,.25); }
.annex-emph h3{ font-size:1.3rem; }

@media (max-width:600px){ .annex-grid{ grid-template-columns:1fr; } }

/* ------------------------- Quiz ------------------------- */
.quiz-card{ background:var(--surface); color:var(--ink); border-radius:18px; padding:clamp(1.4rem,3.5vw,2.4rem); box-shadow:var(--shadow-lg); }
.quiz-progress{ margin-bottom:1.6rem; }
.quiz-progress-bar{ height:8px; background:var(--line); border-radius:8px; overflow:hidden; }
.quiz-progress-bar span{ display:block; height:100%; width:20%; background:linear-gradient(90deg,var(--primary),var(--teal)); border-radius:8px; transition:width .4s var(--ease); }
.quiz-progress-label{ display:block; margin-top:.5rem; font-size:.85rem; color:var(--ink-soft); font-weight:500; }

.quiz-q{ animation:reveal-soft .3s var(--ease); }
.quiz-q h3{ font-family:var(--display); font-size:clamp(1.2rem,2.6vw,1.6rem); font-weight:700; margin-bottom:.4rem; }
.quiz-note{ color:var(--ink-soft); font-size:.92rem; margin-bottom:1.2rem; }
.quiz-options{ display:grid; gap:.7rem; margin-bottom:1.4rem; }
.quiz-opt{
  display:flex; gap:.85rem; align-items:flex-start; text-align:left; width:100%;
  background:var(--surface); border:2px solid var(--line); border-radius:12px; padding:1rem 1.1rem;
  cursor:pointer; font:inherit; color:var(--ink); transition:border-color .15s, background .15s, transform .1s;
}
.quiz-opt:hover{ border-color:var(--primary); background:#f5f9ff; }
.quiz-opt:active{ transform:scale(.995); }
.quiz-opt.selected{ border-color:var(--primary); background:#eef5ff; box-shadow:0 0 0 3px rgba(21,101,216,.12); }
.quiz-opt .opt-key{ flex:none; width:26px; height:26px; border-radius:7px; background:var(--bg); border:1px solid var(--line); font-weight:700; font-size:.85rem; display:grid; place-items:center; color:var(--ink-soft); }
.quiz-opt.selected .opt-key{ background:var(--primary); color:#fff; border-color:var(--primary); }
.quiz-opt .opt-text{ font-size:.99rem; }
.quiz-opt .opt-text strong{ display:block; margin-bottom:.1rem; }
.quiz-multi .quiz-opt .opt-key{ border-radius:50%; }

.quiz-nav{ display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-top:.5rem; }
.quiz-back{ background:transparent; border:none; color:var(--ink-soft); font:inherit; font-weight:600; cursor:pointer; padding:.6rem .2rem; display:inline-flex; align-items:center; gap:.4rem; }
.quiz-back:hover{ color:var(--primary); }
.quiz-back[hidden]{ display:none; }

/* Quiz result */
.quiz-result{ animation:reveal-soft .4s var(--ease); }
.result-badge{ display:inline-flex; align-items:center; gap:.6rem; padding:.5rem 1rem; border-radius:999px; font-weight:700; font-family:var(--display); margin-bottom:1rem; }
.rb-default{ background:rgba(21,101,216,.12); color:var(--primary-700); }
.rb-class1{ background:rgba(0,166,166,.14); color:#067a7a; }
.rb-class2{ background:rgba(224,122,12,.14); color:#b45c00; }
.rb-critical{ background:rgba(212,58,47,.12); color:#b22d23; }
.rb-out{ background:var(--bg); color:var(--ink-soft); border:1px solid var(--line); }
.result-badge .rb-dot{ width:10px; height:10px; border-radius:50%; background:currentColor; }
.quiz-result h3{ font-family:var(--display); font-size:clamp(1.3rem,3vw,1.8rem); font-weight:800; margin-bottom:.5rem; }
.result-lead{ font-size:1.08rem; color:var(--ink); margin-bottom:1.4rem; }
.result-block{ background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:1.1rem 1.2rem; margin-bottom:1rem; }
.result-block h4{ margin:0 0 .5rem; font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); font-weight:700; }
.result-block p{ margin:0 0 .5rem; }
.result-block p:last-child{ margin-bottom:0; }
.result-block ul{ margin:.3rem 0 0; padding-left:1.2rem; }
.result-block li{ margin-bottom:.4rem; }
.result-block.route{ border-left:4px solid var(--primary); }
.result-block.dates{ border-left:4px solid var(--teal); }
.result-block.help{ border-left:4px solid var(--success); background:#f3fbf6; border-color:#cdeed8; }
.result-attention{ display:flex; gap:.7rem; align-items:flex-start; background:#fff7ec; border:1px solid #f6dcb4; border-left:4px solid var(--warn); border-radius:10px; padding:.9rem 1rem; margin-bottom:1rem; font-size:.96rem; }
.result-attention svg{ width:22px; height:22px; flex:none; fill:var(--warn); }
.result-disclaimer{ font-size:.82rem; color:var(--ink-soft); background:var(--bg); border:1px dashed var(--line); border-radius:10px; padding:.8rem 1rem; margin:1.2rem 0; }
.result-cta{ display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; }
.result-restart{ background:transparent; border:none; color:var(--ink-soft); font:inherit; font-weight:600; cursor:pointer; text-decoration:underline; }
.result-restart:hover{ color:var(--primary); }
.quiz-noscript{ color:var(--ink-soft); }

/* ------------------------- Secure boot demo ------------------------- */
.demo-wrap{ display:grid; grid-template-columns:.95fr 1.05fr; gap:1.4rem; align-items:stretch; }
.demo-controls{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.4rem; box-shadow:var(--shadow); }
.demo-toggle{ display:flex; background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:4px; margin-bottom:1.3rem; }
.dt-btn{ flex:1; border:none; background:transparent; font:inherit; font-weight:600; font-size:.9rem; padding:.6rem .5rem; border-radius:999px; cursor:pointer; color:var(--ink-soft); transition:background .2s, color .2s; }
.dt-btn.is-active{ background:var(--primary); color:#fff; box-shadow:0 4px 12px rgba(21,101,216,.25); }
#modeOn.is-active{ background:var(--success); box-shadow:0 4px 12px rgba(22,163,74,.25); }

.demo-images{ border:none; padding:0; margin:0 0 1.2rem; }
.demo-images legend{ font-weight:600; font-size:.85rem; color:var(--ink-soft); padding:0; margin-bottom:.6rem; text-transform:uppercase; letter-spacing:.04em; }
.img-opt{ display:flex; gap:.7rem; align-items:flex-start; padding:.7rem .8rem; border:1.5px solid var(--line); border-radius:10px; margin-bottom:.5rem; cursor:pointer; transition:border-color .15s, background .15s; }
.img-opt:hover{ border-color:var(--primary); background:#f5f9ff; }
.img-opt input{ margin-top:.25rem; accent-color:var(--primary); }
.img-opt span{ font-size:.93rem; }
.img-opt strong{ font-weight:600; }
.demo-mode-note{ font-size:.88rem; color:var(--ink-soft); margin:1rem 0 0; padding:.7rem .8rem; background:var(--bg); border-radius:8px; }

.demo-stage{ display:flex; flex-direction:column; }
.demo-svg{ width:100%; height:auto; background:linear-gradient(160deg,#0c2c4d,#081f38); border-radius:var(--radius); border:1px solid #16365c; }
.mcu-label,.mcu-state{ font-family:var(--font); }

.demo-verdict{ margin-top:.9rem; border-radius:10px; padding:.85rem 1rem; font-weight:600; background:var(--surface); border:1px solid var(--line); color:var(--ink); transition:background .25s, color .25s, border-color .25s; }
.demo-verdict.is-ok{ background:#eafaf0; border-color:#bfe9cd; color:#0d7a37; }
.demo-verdict.is-bad{ background:#fdecea; border-color:#f6c4bf; color:#b22d23; }
.demo-verdict.is-warn{ background:#fff5e8; border-color:#f6dcb4; color:#b45c00; }
.demo-annot{ font-size:.85rem; color:var(--ink-soft); margin:.6rem 0 0; min-height:1.2em; }

/* demo SVG check states (driven by JS via classes) */
.check-row circle{ transition:fill .3s, stroke .3s; }
.check-row.pass circle{ fill:var(--success); stroke:var(--success); }
.check-row.fail circle{ fill:var(--danger); stroke:var(--danger); }
.check-row.warn circle{ fill:var(--warn); stroke:var(--warn); }
.mcu-flash-ok{ animation:flashOk .8s var(--ease); }
.mcu-flash-bad{ animation:flashBad .8s var(--ease) 2; }
@keyframes flashOk{ 0%,100%{ fill:#0B2A4A; } 50%{ fill:#16A34A; } }
@keyframes flashBad{ 0%,100%{ fill:#0B2A4A; } 50%{ fill:#D43A2F; } }

@media (max-width:820px){ .demo-wrap{ grid-template-columns:1fr; } }

/* ------------------------- Pipeline mini-animation ------------------------- */
.pipeline{ margin-top:2.5rem; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.6rem; box-shadow:var(--shadow); text-align:center; }
.pipeline-title{ font-family:var(--display); font-weight:700; font-size:1.2rem; margin-bottom:.2rem; }
.pipeline-sub{ color:var(--ink-soft); font-size:.95rem; margin-bottom:1.4rem; }
.pipeline-steps{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,1fr); gap:.8rem; }
.pstep{ position:relative; background:var(--bg); border:1.5px solid var(--line); border-radius:12px; padding:1.1rem .8rem; opacity:.5; transform:translateY(6px); transition:all .4s var(--ease); }
.pstep.active{ opacity:1; transform:none; border-color:var(--primary); box-shadow:0 6px 16px rgba(21,101,216,.12); }
.pstep:not(:last-child)::after{ content:"→"; position:absolute; right:-.65rem; top:50%; transform:translateY(-50%); color:var(--line); font-weight:700; z-index:1; }
.pstep.active:not(:last-child)::after{ color:var(--primary); }
.pstep-ic{ display:block; font-size:1.5rem; margin-bottom:.4rem; color:var(--primary); }
.pstep[data-step="2"].active .pstep-ic{ color:var(--warn); }
.pstep[data-step="4"].active .pstep-ic{ color:var(--success); }
.pstep-t{ font-size:.9rem; }
@media (max-width:640px){ .pipeline-steps{ grid-template-columns:1fr 1fr; gap:1.2rem; } .pstep:not(:last-child)::after{ display:none; } }

/* ------------------------- How we help ------------------------- */
.help-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.1rem; margin-bottom:1.6rem; }
.help-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.6rem; box-shadow:var(--shadow); transition:transform .2s var(--ease), box-shadow .2s; }
.help-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.help-ic{ width:48px; height:48px; border-radius:12px; background:rgba(21,101,216,.1); display:grid; place-items:center; margin-bottom:1rem; }
.help-ic svg{ width:26px; height:26px; fill:none; stroke:var(--primary); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.help-card h3{ font-size:1.15rem; margin-bottom:.5rem; }
.help-card p{ color:var(--ink-soft); font-size:.97rem; margin-bottom:1rem; }
.help-annex{ display:inline-block; font-size:.78rem; font-weight:600; color:var(--primary-700); background:rgba(21,101,216,.08); border:1px solid rgba(21,101,216,.18); padding:.3rem .7rem; border-radius:999px; }
.help-sub{ text-align:center; color:var(--ink-soft); max-width:62ch; margin:0 auto; font-size:1rem; }
@media (max-width:720px){ .help-grid{ grid-template-columns:1fr; } }

/* ------------------------- About / who you'll work with ------------------------- */
.about-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.8rem; box-shadow:var(--shadow); }
.about-people{ display:grid; grid-template-columns:1fr 1fr; gap:1.6rem; margin-bottom:1.3rem; }
.person{ display:flex; gap:1rem; align-items:flex-start; }
.person-avatar{ flex:none; width:64px; height:64px; border-radius:50%; overflow:hidden; box-shadow:var(--shadow); }
.person-name{ font-family:var(--display); font-size:1.12rem; font-weight:700; margin:0; }
.person-role{ color:var(--primary-700); font-weight:600; font-size:.78rem; letter-spacing:.04em; text-transform:uppercase; margin:.15rem 0 .5rem; }
.person-bio{ color:var(--ink-soft); font-size:.92rem; margin:0; }
.chips{ list-style:none; padding:1.2rem 0 0; margin:0; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:.5rem; }
.chips li{ font-size:.82rem; font-weight:600; color:var(--ink-soft); background:var(--bg); border:1px solid var(--line); padding:.35rem .75rem; border-radius:999px; }
@media (max-width:620px){ .about-people{ grid-template-columns:1fr; } }

/* ------------------------- FAQ ------------------------- */
.faq-list{ display:grid; gap:.8rem; }
.faq-item{ background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); overflow:hidden; }
.faq-item > summary{ list-style:none; cursor:pointer; padding:1.1rem 1.3rem; font-weight:600; font-size:1.05rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.faq-item > summary::-webkit-details-marker{ display:none; }
.faq-caret{ flex:none; width:26px; height:26px; border-radius:50%; background:var(--bg); color:var(--primary); display:grid; place-items:center; font-weight:700; transition:transform .25s var(--ease); }
.faq-item[open] .faq-caret{ transform:rotate(45deg); }
.faq-a{ padding:0 1.3rem 1.2rem; color:var(--ink-soft); }
.faq-a p{ margin:0; }
.faq-item[open] .faq-a{ animation:reveal-soft .3s var(--ease); }

/* ------------------------- Contact form ------------------------- */
.form-card{ background:var(--surface); color:var(--ink); border-radius:18px; padding:clamp(1.5rem,3.5vw,2.6rem); box-shadow:var(--shadow-lg); }
.hp{ position:absolute; left:-9999px; opacity:0; width:0; height:0; }
.field{ margin-bottom:1.1rem; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field label{ display:block; font-weight:600; font-size:.92rem; margin-bottom:.4rem; }
.req{ color:var(--danger); }
.opt{ color:var(--ink-soft); font-weight:400; font-size:.85rem; }
.field input, .field textarea{
  width:100%; font:inherit; font-size:1rem; color:var(--ink);
  padding:.8rem .95rem; border:1.5px solid var(--line); border-radius:10px; background:#fff; transition:border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(21,101,216,.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"]{ border-color:var(--danger); box-shadow:0 0 0 3px rgba(212,58,47,.12); }
.field-error{ color:var(--danger); font-size:.85rem; margin-top:.35rem; display:none; }
.field-error.show{ display:block; }
.consent{ display:flex; gap:.7rem; align-items:flex-start; margin:.4rem 0 1.3rem; font-size:.95rem; cursor:pointer; }
.consent input{ margin-top:.2rem; width:18px; height:18px; accent-color:var(--primary); flex:none; }
.quiz-summary{ display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; background:#eef5ff; border:1px solid #cfe0fb; border-radius:10px; padding:.8rem 1rem; margin-bottom:1.1rem; font-size:.92rem; }
.qs-label{ font-weight:700; color:var(--primary-700); }
.privacy-line{ text-align:center; font-size:.85rem; color:var(--ink-soft); margin:1rem 0 0; }
.form-status{ margin-top:1rem; font-size:.95rem; }
.form-status.error{ color:var(--danger); background:#fdecea; border:1px solid #f6c4bf; border-radius:10px; padding:.8rem 1rem; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }

.form-success{ text-align:center; padding:1rem 0; animation:reveal-soft .4s var(--ease); }
.fs-tick{ display:inline-block; width:64px; height:64px; margin-bottom:1rem; }
.form-success h3{ font-family:var(--display); font-size:1.5rem; font-weight:800; margin-bottom:.4rem; }
.form-success p{ color:var(--ink-soft); max-width:46ch; margin-inline:auto; }

/* ------------------------- Footer ------------------------- */
.site-footer{ background:var(--navy); color:#cdd9e8; }
.footer-inner{ display:grid; grid-template-columns:1fr 1.6fr; gap:2rem; padding:3rem 0 2rem; }
.brand-footer .brand-name{ color:#fff; }
.brand-footer{ color:#fff; margin-bottom:.8rem; }
.footer-loc{ font-size:.95rem; margin-bottom:.3rem; }
.footer-contact a{ color:#9fc8f5; }
.footer-disclaimer p{ font-size:.88rem; line-height:1.6; }
.footer-disclaimer strong{ color:#fff; }
.footer-current{ color:#93a6bd; font-size:.82rem !important; margin-top:.8rem; }
.footer-base{ border-top:1px solid rgba(255,255,255,.12); }
.footer-base p{ margin:0; padding:1.2rem 0; font-size:.85rem; color:#93a6bd; text-align:center; }
@media (max-width:720px){ .footer-inner{ grid-template-columns:1fr; gap:1.4rem; } }

/* ------------------------- Scroll-reveal ------------------------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); will-change:opacity, transform; }
.reveal.in{ opacity:1; transform:none; }

/* ------------------------- Hero shield animation ------------------------- */
.hs-shield-path{ stroke-dasharray:900; stroke-dashoffset:900; animation:drawShield 2s var(--ease) .3s forwards; }
@keyframes drawShield{ to{ stroke-dashoffset:0; } }
.hs-tick{ transform-origin:160px 160px; transform:scale(0); animation:popTick .5s var(--ease) 1.9s forwards; }
@keyframes popTick{ 0%{ transform:scale(0); } 70%{ transform:scale(1.15); } 100%{ transform:scale(1); } }
.hs-board{ transform-origin:160px 160px; animation:floaty 6s ease-in-out infinite; }
@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-6px); } }

/* ============================================================
   prefers-reduced-motion — disable / scale-down all motion
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1; transform:none; }
  .hs-shield-path{ stroke-dashoffset:0; }
  .hs-tick{ transform:scale(1); }
  .scroll-hint{ display:none; }
  .timeline-progress{ width:100%; }
}
