/* Evident website: layout and components. Values come from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ground); scroll-padding-top: 84px; }
body {
  margin: 0; font: 400 var(--t-body)/1.6 var(--body); color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-soft); }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; border-radius: var(--r-ui); }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand-mid); color: var(--on-brand); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; z-index: 100; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: -.01em; line-height: 1.08; margin: 0; }
h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-section); }
h3 { font-size: var(--t-title); line-height: 1.2; }
p { margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 19, 31, .8);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }


/* ---------- buttons: one pill, one size ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control); padding: 0 24px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 700 15px/1 var(--body); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  color: var(--on-brand); background: var(--brand-grad); background-origin: border-box; box-shadow: var(--glow);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.btn:hover { color: var(--on-brand); background: var(--brand-grad-hover); background-origin: border-box; transform: translateY(-1px); }
.btn-quiet { color: var(--ink); background: var(--glass); border-color: var(--line); box-shadow: none; }
.btn-quiet:hover { color: var(--ink); background: var(--glass); border-color: var(--brand); box-shadow: var(--glow); }
/* round controls (menu, pause) and the dots bar share the button's height and the quiet finish */
.ctl { height: var(--control); min-width: var(--control); border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--glass); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
button.ctl:hover { border-color: var(--brand); }
.ctl svg { width: 18px; height: 18px; }
.ctl.menu-btn { display: none; }
/* labels: small capitals above headings and on cards */
.label { font: 700 var(--t-label)/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.label.gold { color: var(--gold); }
.label.muted { color: var(--ink-muted); }
.label.ok { color: var(--success); }
/* a note that is not a button */
.note-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--t-small)/1 var(--body); color: var(--ink-muted); white-space: nowrap; }

/* ---------- sections ---------- */
section { position: relative; padding: var(--section-y) 0; }
.section-head { max-width: 760px; display: grid; gap: 18px; margin-bottom: 52px; }
.section-head p { font-size: var(--t-lead); color: var(--ink-soft); }
.card {
  background: var(--card); border: 1px solid var(--card-rim); border-radius: var(--r-box);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(120deg, rgba(185, 254, 254, .10), transparent 32%);
}

/* ---------- hero: copy on the plain ground, the wave banner rising beneath it ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 0; }
.hero-copy { display: grid; gap: 22px; justify-items: center; text-align: center; position: relative; z-index: 2; }
.hero h1 { color: var(--ink-hero); font-weight: 700; }
.hero-line { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.45; color: var(--ink-soft); max-width: 640px; }
.hero-note { font-size: var(--t-small); color: var(--ink-muted); }
.hero-banner { height: min(58vh, 540px); margin-top: clamp(-90px, -6vw, -30px); padding: 0; -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 24%, #000 86%, transparent); }

/* ---------- truths ---------- */
.truths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.truth { padding: 28px 24px 30px; display: grid; gap: 16px; align-content: start; }
.truth .num { font: 700 15px/1 var(--head); color: var(--gold); letter-spacing: .06em; }
.truth p { font: 500 var(--t-title)/1.25 var(--head); color: var(--ink); }
.so { margin-top: 40px; max-width: 820px; font-size: var(--t-lead); color: var(--ink-soft); }
.so strong { color: var(--ink); font-weight: 700; }

/* ---------- pictures of the product ---------- */
.shot { position: relative; margin: 0; min-width: 0; }
.shot figcaption { font-size: 13px; color: var(--ink-muted); margin-top: 12px; }

/* shared mock pieces */
.win { border-radius: var(--r-box); overflow: hidden; border: 1px solid var(--line-soft); background: #F7FBFC; color: #1B3238; font-size: 13px; box-shadow: var(--shadow-screen); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #0E3940; color: #DDF2F4; font-weight: 700; font-size: 12px; }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #5E8C93; display: inline-block; }
.win-bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { padding: 18px; display: grid; gap: 12px; }

/* 1. guidebook spread */
.book { padding: 12px; border-radius: var(--r-box); background: var(--card); border: 1px solid var(--card-rim); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); }
.book-inner { display: grid; grid-template-columns: .95fr 1.15fr; border-radius: var(--r-box); overflow: hidden; background: var(--ground-3); border: 1px solid var(--line-soft); }
.page { padding: 22px 20px; min-height: 330px; }
.page-left { border-right: 1px solid var(--line-soft); display: grid; align-content: start; gap: 14px; }
.page-left .ttl { margin: 0; font: 700 20px/1.15 var(--head); }
.page-left .meta { font-size: 12.5px; color: var(--ink-muted); }
.moves { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.moves li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.moves li b { color: var(--ink); font-weight: 700; }
.moves .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 12px/1 var(--body); border: 1.5px solid var(--line); color: var(--ink-soft); }
.moves .now .n { border-color: var(--gold); color: var(--on-brand); background: var(--gold); box-shadow: var(--glow); }
.moves .now { color: var(--ink); }
.moves .kind { display: block; font: 700 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 3px; }
.page-right { display: grid; gap: 12px; align-content: start; background: rgba(0, 0, 0, .12); }
.screen { border-radius: var(--r-box); overflow: hidden; border: 1px solid var(--line-soft); background: #F7FBFC; color: #1B3238; font-size: 11.5px; position: relative; }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #0E3940; color: #DDF2F4; font-weight: 700; font-size: 11px; }
.screen-bar i { width: 7px; height: 7px; border-radius: 50%; background: #5E8C93; display: inline-block; }
.screen-bar span { margin-left: 6px; }
.screen-body { padding: 12px; display: grid; gap: 9px; }
.field { display: grid; gap: 4px; }
.field .lbl { font-size: 10px; font-weight: 700; color: #4C676D; text-transform: uppercase; letter-spacing: .06em; }
.field .val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 26px; border: 1px solid #C9DCDF; border-radius: var(--r-ui); background: #fff; padding: 5px 8px; font-size: 11.5px; color: #1B3238; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.screen-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; position: relative; }
.fake-btn { padding: 7px 14px; border-radius: var(--r-ui); font-weight: 700; font-size: 11px; background: #E3EEF0; color: #2B464C; }
.fake-btn.primary { background: #0E7C86; color: #fff; }
.ring { position: absolute; right: -9px; top: -9px; width: 88px; height: 46px; border-radius: var(--r-box); border: 2.5px solid var(--record); box-shadow: 0 0 0 4px rgba(243, 81, 105, .18); animation: ring 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 3px rgba(243, 81, 105, .18); } 50% { box-shadow: 0 0 0 9px rgba(243, 81, 105, .06); } }
.clip { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft); }
.clip .play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-brand); flex: none; }
.clip .bar { flex: 1; height: 4px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.clip .bar::after { content: ''; display: block; height: 100%; width: 38%; background: var(--gold); }

/* 2. user guide: the route */
.doc-title { font: 700 20px/1.2 var(--head); color: #0B2B31; }
.doc-sub { font-size: 12.5px; color: #55737A; }
.route { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; }
.route li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 14px; position: relative; font-size: 13.5px; line-height: 1.4; color: #2B464C; }
.route li::before { content: ''; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: #BFD9DD; }
.route li:last-child { padding-bottom: 0; }
.route li:last-child::before { display: none; }
.route .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 12.5px/1 var(--body); background: #0E7C86; color: #fff; }
.route b { color: #0B2B31; }
.route .alt { margin-top: 8px; padding: 9px 12px; border-radius: var(--r-box); background: #FFF4DC; border: 1px solid #EBCB85; color: #5B4410; font-size: 12.5px; }
.route .alt strong { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8A6410; margin-bottom: 2px; }
.route .end .dot { background: #2F9E78; }

/* 3. technical guide and use cases */
.tech { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #4C676D; padding: 6px 8px; border-bottom: 2px solid #C9DCDF; }
.tbl td { padding: 8px; border-bottom: 1px solid #DCE9EB; vertical-align: top; color: #2B464C; }
.tbl td:first-child { font-weight: 700; color: #0B2B31; width: 28px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #DDF3EC; color: #1F6E55; white-space: nowrap; }
.usecase { border: 1px solid #C9DCDF; border-radius: var(--r-box); padding: 12px 14px; background: #fff; display: grid; gap: 6px; font-size: 12.5px; color: #2B464C; }
.usecase .uc-id { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #0E7C86; }
.usecase b { color: #0B2B31; }

/* 4. evidence pack */
.pack-head { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid #DCE9EB; }
.pack-head .case { font: 700 18px/1.2 var(--head); color: #0B2B31; }
.pack-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #55737A; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid #DCE9EB; border-radius: var(--r-box); background: #fff; font-size: 13px; }
.files .sum { font: 500 11.5px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #6B878D; }
.files b { color: #0B2B31; font-weight: 700; }

/* ---------- connections ---------- */
#connections { padding-bottom: 0; }
.net-stage { height: min(72vh, 640px); padding: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); cursor: grab; }
.net-note { padding: 16px 0 0; font-size: var(--t-small); color: var(--ink-muted); }

/* the network's own controls, brought onto the site's quiet finish at a compact size */
.net-stage .evn-bar { color: var(--ink); font: 600 13px/1 var(--body); gap: 8px; right: 16px; bottom: 16px; left: 16px; }
.net-stage .evn-bar button, .net-stage .evn-layers { height: 40px; padding: 0 16px; background: var(--glass); border: 1.5px solid var(--line); border-radius: var(--r-pill); }
.net-stage .evn-bar button:hover { border-color: var(--brand); }
.net-stage .evn-bar button:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }
.net-stage .evn-layers input { accent-color: var(--brand); }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.trust .section-head { margin-bottom: 0; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust-list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 22px 24px; border-radius: var(--r-box); border: 1px solid var(--line-soft); background: rgba(0, 34, 44, .7); }
.trust-list svg { width: 22px; height: 22px; color: var(--success); margin-top: 3px; }
.trust-list b { display: block; color: var(--ink); font: 500 var(--t-title)/1.2 var(--head); margin-bottom: 6px; }
.trust-list span { color: var(--ink-soft); }
.fine { font-size: var(--t-small); color: var(--ink-muted); margin-top: 18px; }

/* ---------- where it's going ---------- */
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stage { padding: 30px 28px 32px; display: grid; gap: 14px; align-content: start; }
.stage p { color: var(--ink-soft); }

/* ---------- contact ---------- */
.access-card { padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.access-card h2 { margin: 14px 0 18px; }
.access-card p { color: var(--ink-soft); font-size: var(--t-lead); }
.contact-box { display: grid; gap: 14px; justify-items: start; position: relative; }
.contact-box .mail { font: 700 clamp(18px, 2vw, 22px)/1.2 var(--body); color: var(--ink); text-decoration: none; word-break: break-all; }
.contact-box .mail:hover { color: var(--brand); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 44px 0 56px; color: var(--ink-muted); font-size: var(--t-small); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.site-footer img { height: 30px; width: auto; }
.site-footer nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .legal { text-align: right; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- alternating grounds ---------- */
.alt { background:
  radial-gradient(900px 480px at 82% 0%, rgba(47, 228, 233, .09), transparent 65%),
  radial-gradient(700px 420px at 8% 100%, rgba(233, 174, 54, .06), transparent 65%),
  linear-gradient(180deg, var(--ground-2) 0%, var(--ground-3) 50%, var(--ground-2) 100%);
  border-top: 1px solid rgba(11, 94, 112, .35); border-bottom: 1px solid rgba(11, 94, 112, .35); }
.section-head.centre { text-align: center; justify-items: center; margin-left: auto; margin-right: auto; }

/* ---------- compact floating bar after the hero ---------- */
.site-header { transition: background .25s ease, border-color .25s ease; }
.site-header .wrap { transition: width .3s ease, background .25s ease, border-radius .3s ease, padding .3s ease; border: 1px solid transparent; }
.site-header.compact { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.site-header.compact .wrap {
  pointer-events: auto; min-height: 60px; margin: 8px auto; width: min(1000px, calc(100% - 24px)); padding: 0 6px 0 22px;
  border-radius: var(--r-pill); background: var(--glass); border-color: var(--line-soft);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.site-header.compact .brand img { height: 30px; }

/* ---------- highlights carousel ---------- */
#highlights { padding: clamp(48px, 6vw, 80px) 0; margin-top: clamp(24px, 4vw, 56px); }
.hl-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.hl-head h2 { max-width: 640px; }
.hl-track {
  --cw: min(980px, 86vw);
  list-style: none; margin: 0; padding: 4px calc((100% - var(--cw)) / 2) 12px; display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-card { flex: 0 0 var(--cw); scroll-snap-align: center; border-radius: var(--r-box); padding: clamp(22px, 3.4vw, 40px) clamp(16px, 3.4vw, 40px) 0; height: 560px; display: flex; flex-direction: column; gap: 26px;
  opacity: .45; transition: opacity .5s ease; }
.hl-card.active { opacity: 1; }
.hl-cap { position: relative; text-align: center; font: 500 clamp(20px, 2.3vw, 27px)/1.25 var(--head); max-width: 620px; margin: 0 auto; display: grid; gap: 12px; justify-items: center; }
.hl-shot { position: relative; width: min(720px, 100%); margin: 0 auto; flex: 1; min-height: 0; }
.hl-shot .book { transform: none; }
.hl-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.hl-dots { display: flex; align-items: center; gap: 4px; padding: 0 12px; cursor: default; }
.hl-dot { width: 24px; height: 44px; color: inherit; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: width .3s ease; }
.hl-dot span { display: block; width: 8px; height: 8px; border-radius: 999px; background: var(--ink-muted); overflow: hidden; position: relative; transition: width .3s ease, background .3s ease; }
.hl-dot.on { width: 52px; }
.hl-dot.on span { width: 40px; background: rgba(143, 176, 185, .4); }
.hl-dot.on span::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(1); }
.hl-run .hl-dot.on span::after { animation: hlfill 6s linear both; }
@keyframes hlfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hl-pause .i-play { display: none; }
.hl-pause.paused .i-play { display: block; }
.hl-pause.paused .i-pause { display: none; }
/* the active card's screen fills in piece by piece */
@keyframes seqIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hl-card.active :is(.moves li, .route li, .tbl tbody tr, .usecase, .files li) { animation: seqIn .5s ease both; }
.hl-card.active :is(.moves li, .route li, .tbl tbody tr, .files li):nth-child(1) { animation-delay: .35s; }
.hl-card.active :is(.moves li, .route li, .tbl tbody tr, .files li):nth-child(2) { animation-delay: .8s; }
.hl-card.active :is(.moves li, .route li, .tbl tbody tr, .files li):nth-child(3) { animation-delay: 1.25s; }
.hl-card.active :is(.moves li, .route li, .files li):nth-child(4) { animation-delay: 1.7s; }
.hl-card.active .files li:nth-child(5), .hl-card.active .usecase { animation-delay: 2.15s; }

/* ---------- how it works: stage and tabs ---------- */
.demo { display: grid; gap: 28px; }
.demo-stage { position: relative; width: min(860px, 100%); margin: 0 auto; padding: 0 0 46px; }
.browser { border-radius: var(--r-box); overflow: hidden; background: #F7FBFC; color: #1B3238; border: 1px solid var(--line-soft); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); width: 88%; }
.b-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #0E3940; color: #DDF2F4; font: 700 12.5px/1 var(--body); }
.b-bar i { width: 9px; height: 9px; border-radius: 50%; background: #5E8C93; }
.b-url { margin-left: 8px; padding: 7px 12px; background: rgba(255, 255, 255, .08); border-radius: var(--r-ui); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.b-status { font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; }
.b-status span { display: none; }
.b-ext { position: relative; width: 30px; height: 30px; border-radius: var(--r-ui); background: rgba(255, 255, 255, .1); display: grid; place-items: center; flex: none; }
.b-dot { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #B9D2D8; transition: background .3s, border-color .3s, box-shadow .3s; }
.b-ext::after { content: ''; position: absolute; inset: -5px; border-radius: calc(var(--r-ui) + 4px); border: 2px solid #B5FFFB; opacity: 0; }
.demo[data-state='1'] .s1, .demo[data-state='2'] .s2, .demo[data-state='3'] .s3 { display: inline; }
.demo[data-state='1'] .b-ext::after { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { opacity: 0; transform: scale(1.25); } 50% { opacity: 1; transform: scale(1); } }
.demo[data-state='2'] .b-dot { background: var(--record); border-color: var(--record); box-shadow: 0 0 0 5px rgba(243, 81, 105, .28); animation: recpulse 1.4s ease-in-out infinite; }
.demo[data-state='2'] .s2 { color: #FF9BAA; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 9px rgba(243, 81, 105, .08); } }
.demo[data-state='3'] .b-dot { background: var(--success); border-color: var(--success); }
.demo[data-state='3'] .s3 { color: #8FE6C5; }
.b-body { padding: clamp(16px, 3vw, 30px); }
.b-form { display: grid; gap: 14px; max-width: 520px; }
.b-form .field .lbl { font-size: 11px; }
.b-form .field .val { height: 36px; font-size: 14px; padding: 8px 10px; }
.b-form .fake-btn { padding: 10px 18px; font-size: 13px; }
.b-form .screen-actions { align-items: center; }
.fill { opacity: 0; transition: opacity .35s ease; }
.demo[data-state='2'] .fill, .demo[data-state='3'] .fill { opacity: 1; }
.demo[data-state='2'] .f1 { transition-delay: .5s; } .demo[data-state='2'] .f2 { transition-delay: 1.1s; } .demo[data-state='2'] .f3 { transition-delay: 1.7s; }
.b-ring { opacity: 0; width: 104px; height: 54px; right: -8px; top: -8px; transition: opacity .3s ease; }
.demo[data-state='2'] .b-ring { opacity: 1; transition-delay: 2.4s; }
.b-approved { margin-right: auto; font: 700 12px/1 var(--body); padding: 7px 12px; border-radius: 999px; background: #DDF3EC; color: #1F6E55; opacity: 0; transition: opacity .3s ease; }
.demo[data-state='3'] .b-approved { opacity: 1; }
.webapp { position: absolute; right: 0; bottom: 0; width: min(340px, 62%); border-radius: var(--r-box); overflow: hidden; background: linear-gradient(165deg, #024355, #012C3B 55%, #001B28); border: 1px solid var(--card-rim);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(20, 227, 240, .14); opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .5s ease, transform .5s ease; }
.demo[data-state='3'] .webapp { opacity: 1; transform: none; transition-delay: .35s; }
.w-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font: 600 12px/1 var(--body); color: var(--ink-muted); }
.w-bar img { height: 20px; width: auto; }
.w-body { padding: 18px 16px 20px; display: grid; gap: 8px; justify-items: start; }
.w-ttl { font: 700 20px/1.2 var(--head); color: var(--ink); }
.w-meta { font-size: 13px; color: var(--ink-soft); }
.w-btn { margin-top: 6px; font: 700 13px/1 var(--body); padding: 11px 18px; border-radius: var(--r-pill); color: var(--on-brand); background: var(--brand-grad); }
.demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.demo-tab { text-align: left; font: inherit; color: var(--ink-soft); cursor: pointer; padding: 24px; border-radius: var(--r-box); border: 1px solid var(--line-soft); background: rgba(0, 27, 40, .55);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.demo-tab:hover { border-color: var(--line); }
.demo-tab[aria-selected='true'] { border-color: var(--brand); background: var(--card); box-shadow: 0 0 30px rgba(20, 227, 240, .12); }
.t-num { font: 700 15px/1 var(--body); color: var(--ink-muted); }
.demo-tab[aria-selected='true'] .t-num { color: var(--brand); }
.t-ttl { font: 500 var(--t-title)/1.2 var(--head); color: var(--ink); }
.t-txt { grid-column: 1 / -1; font-size: var(--t-body); line-height: 1.55; }

/* ---------- chapters ---------- */
#get { padding-bottom: 0; }
#get .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.chapter { padding: clamp(56px, 7vw, 100px) 0; }
.chapter-head { text-align: center; max-width: 800px; margin: 0 auto clamp(32px, 4vw, 52px); display: grid; gap: 18px; justify-items: center; }
.chapter-head h3 { font-size: var(--t-chapter); line-height: 1.05; }
.chapter-head p { font-size: var(--t-lead); color: var(--ink-soft); max-width: 660px; }
.chapter-head p strong { color: var(--ink); font-weight: 700; }
.chapter .shot { max-width: 900px; margin: 0 auto; }
.chapter .shot::before { content: ''; position: absolute; inset: -8% -6%; background: radial-gradient(closest-side, rgba(20, 227, 240, .13), transparent 70%); pointer-events: none; }
.chapter .shot > * { position: relative; }
.chapter .win-body { padding: clamp(16px, 3vw, 30px); }
.chapter .book { transform: none; }
.chapter .page { min-height: 0; padding: clamp(18px, 3vw, 30px); }

@media (max-width: 980px) {
  .demo-tabs { grid-template-columns: 1fr; }
  .site-header.compact.open .nav { top: 68px; left: 12px; right: 12px; border: 1px solid var(--line-soft); border-radius: var(--r-box); }
}
@media (max-width: 600px) {
  .hl-card { height: auto; padding-bottom: 20px; }
  .browser { width: 100%; }
  .demo-stage { padding-bottom: 215px; }
  .webapp { width: 88%; left: 6%; right: auto; }
  .b-status { display: none; }
  .b-form .row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-card, .fill, .webapp, .b-ring, .site-header .wrap { transition: none; }
  .hl-card.active :is(.moves li, .route li, .tbl tbody tr, .usecase, .files li) { animation: none; }
  .demo[data-state='1'] .b-ext::after { animation: none; opacity: 1; }
  .demo[data-state='2'] .b-dot { animation: none; }
  .hl-run .hl-dot.on span::after { animation: none; }
}

/* ---------- pages ---------- */
.page-title { font-size: var(--t-page); font-weight: 500; }
.leaf { padding-top: clamp(48px, 6vw, 88px); }
.nav a[aria-current='page'] { color: var(--ink); box-shadow: 0 2px 0 var(--brand); }
.hl-ttl { display: grid; gap: 14px; }
.hl-card .hl-link { position: relative; align-self: center; margin-top: -8px; flex: none; }
.strip { padding: clamp(36px, 4.5vw, 56px) 0; }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.strip-in p { font-size: var(--t-lead); color: var(--ink-soft); max-width: 760px; }
.strip-in strong { color: var(--ink); }
#highlights { margin-top: 0; }
#path { padding-bottom: clamp(48px, 6vw, 80px); }

/* ---------- demo guide page ---------- */
#demo-page { padding-bottom: clamp(48px, 6vw, 80px); overflow-x: clip; }
#demo-page .section-head { margin-bottom: clamp(28px, 3.5vw, 44px); }
/* as wide as the screen allows, but never taller than the window, so the whole book is in view */
.guide-stage { width: min(1560px, calc(100% - 32px), calc((100vh - 110px) * 1.6)); margin: 0 auto; position: relative; }
.guide-stage::before { content: ''; position: absolute; inset: -6% -4%; background: radial-gradient(closest-side, rgba(20, 227, 240, .14), transparent 72%); pointer-events: none; }
.evident-guide { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--card-rim); border-radius: var(--r-box); background: var(--ground); box-shadow: var(--shadow-screen); }
.guide-open { display: flex; justify-content: center; margin-top: 20px; position: relative; }
.guide-hold { position: relative; aspect-ratio: 16 / 10; border: 1px dashed var(--line-soft); border-radius: var(--r-box); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-soft); }
.guide-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.fact { padding: 28px; display: grid; gap: 12px; align-content: start; }
.fact p { color: var(--ink-soft); position: relative; }
.guide-note { text-align: center; }
.chapter-head .btn { margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .truths { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 980px) {
  .trust, .access-card, .guide-facts { grid-template-columns: 1fr; }
  .book { transform: none; }
  .path { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .ctl.menu-btn { display: inline-grid; }
  .site-header.open .nav {
    display: grid; position: absolute; top: 76px; left: 0; right: 0; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line-soft); padding: 8px 24px 20px;
  }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: left; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer .legal { text-align: left; }
}
@media (max-width: 600px) {
  :root { --t-body: 16px; --t-title: 22px; }
  .truths { grid-template-columns: 1fr; }
  .book-inner { grid-template-columns: 1fr; }
  .page-left { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .page { min-height: 0; }
  .header-actions .btn { display: none; }
  .hero-banner { height: 45vh; margin-top: -10px; }
  .net-stage { height: 480px; }
  .guide-stage { width: calc(100% - 16px); }
  .evident-guide, .guide-hold { aspect-ratio: 13 / 20; }

  .files li { grid-template-columns: 1fr auto; }
  .files .sum { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring { animation: none; }
  .btn { transition: none; }
}
.rel { position: relative; }
