/* Monitoring explainer in the WBShop.pl brand: white, ink, and the three logo squares
   (blue #0089ff, green #0eb007, burgundy #9b0420) standing for system, you and our team. */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --card: #ffffff;
  --ink: #151515;
  --ink-2: #3a3b3e;
  --muted: #676a70;
  --line: #e3e5e9;
  --blue: #0089ff;
  --blue-t: #006fd6;
  --green: #0eb007;
  --green-t: #0a7d05;
  --burgundy: #9b0420;
  --sys: var(--blue);
  --team: var(--burgundy);
  --you: var(--green);
  --ok: var(--green);
  --ok-t: var(--green-t);
  --ok-bg: #e4f6e3;
  --warn: #f0a000;
  --warn-t: #935d00;
  --warn-bg: #fdf1d8;
  --crit: #e02f3a;
  --crit-t: #bf1f2a;
  --crit-bg: #fde3e4;
  --info: var(--blue);
  --info-bg: #e1f0ff;
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-t), var(--green-t)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: .4rem; }
h3 { font-size: 1.3rem; font-weight: 700; }
.muted { color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.brand img { display: block; }
.brand-sub { font-weight: 500; color: var(--muted); font-size: .95rem; margin-left: 4px; }
.top nav { display: flex; gap: 6px; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; transition: background .15s ease, color .15s ease; }
.top nav a:hover { background: var(--bg-2); color: var(--ink); }
.top nav a.on { color: var(--blue-t); background: var(--info-bg); }

/* buttons, segmented toggles */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 12px 22px; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; border: 2px solid var(--ink); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-main { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 137, 255, .8); }
.btn-main:hover { background: var(--blue-t); border-color: var(--blue-t); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }

.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { font: 700 .9rem var(--body); border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); transition: background .15s ease, color .15s ease; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21, 21, 21, .15); }
.seg button[data-mode="fail"][aria-pressed="true"] { color: var(--crit-t); }
.seg-sm button { padding: 4px 10px; font-size: .82rem; }

.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(14, 176, 7, .5); animation: ping 2s ease-out infinite; }

/* hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.kicker { font: 600 .82rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; margin: 20px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 32px 0 0; }
.hero-facts div { border-left: 3px solid var(--line); padding-left: 12px; }
.hero-facts div:nth-child(1) { border-color: var(--sys); }
.hero-facts div:nth-child(2) { border-color: var(--team); }
.hero-facts div:nth-child(3) { border-color: var(--you); }
.hero-facts dt { font: 700 1.2rem var(--display); }
.hero-facts dd { margin: 0; color: var(--muted); font-size: .92rem; }

.hero-side { position: relative; }
.squares { position: absolute; inset: -40px -60px auto auto; width: 300px; height: 280px; z-index: 0; }
.sq { position: absolute; width: 64%; aspect-ratio: 1; border-radius: 6px; display: block; mix-blend-mode: multiply; }
.squares .sq-b { background: rgba(0, 137, 255, .5); left: 0; top: 17%; animation: float 9s ease-in-out infinite; }
.squares .sq-g { background: rgba(14, 176, 7, .4); left: 24%; top: 0; animation: float 11s ease-in-out -3s infinite; }
.squares .sq-r { background: rgba(155, 4, 32, .42); left: 35%; top: 29%; animation: float 10s ease-in-out -6s infinite; }

.journal { position: relative; z-index: 1; margin: 0; background: var(--ink); color: #e6e7ea; border-radius: var(--r); padding: 22px 22px 18px; box-shadow: 0 30px 60px -28px rgba(21, 21, 21, .55); }
.journal figcaption { font: 600 .85rem var(--mono); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #fff; }
.journal .muted { color: #9a9ca3; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--crit); animation: blink 1.6s ease-in-out infinite; }
.journal-list { list-style: none; margin: 0; padding: 0; font: .86rem/1.5 var(--mono); }
.journal-list li { display: grid; grid-template-columns: 48px 44px 1fr; gap: 8px; padding: 7px 0; border-top: 1px dashed #34363b; opacity: 0; animation: logIn .5s ease forwards; }
.journal-list li:nth-child(1) { animation-delay: .2s; }
.journal-list li:nth-child(2) { animation-delay: .6s; }
.journal-list li:nth-child(3) { animation-delay: 1.1s; }
.journal-list li:nth-child(4) { animation-delay: 1.7s; }
.journal-list li:nth-child(5) { animation-delay: 2.3s; }
.journal-list li:nth-child(6) { animation-delay: 2.8s; }
.journal-list time { color: #9a9ca3; }
.tag { font-size: .7rem; font-weight: 600; border-radius: 4px; padding: 1px 0; text-align: center; height: fit-content; margin-top: 2px; }
.tag.ok { background: #16451a; color: #8fe58a; }
.tag.warn { background: #54400c; color: #ffd26e; }
.tag.sys { background: #0c3a66; color: #9dd0ff; }
.journal-note { font-size: .9rem; color: #c3c5cb; margin: 12px 0 0; border-top: 1px solid #34363b; padding-top: 12px; }

/* bands */
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band-soft { background: var(--bg-2); }
.band-ink { background: var(--ink); color: #e8e9ec; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .section-lead { color: #c9cbd1; }
.section-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 40em; margin: 0 0 34px; }

/* test run */
.run { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin-bottom: 22px; box-shadow: 0 18px 40px -30px rgba(21, 21, 21, .35); }
.run-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.run-label { font-weight: 700; margin: 0; }
.run-count { font: 600 .85rem var(--mono); color: var(--muted); margin: 2px 0 0; }
.run-path { --p: 0; list-style: none; margin: 26px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; font-size: .92rem; text-align: center; color: var(--muted); }
.run-path::before, .run-path::after { content: ""; position: absolute; top: 13px; left: 10%; height: 4px; border-radius: 2px; }
.run-path::before { right: 10%; background: var(--line); }
.run-path::after { width: calc(80% * var(--p)); background: var(--green); transition: width .35s ease, background .2s ease; }
.run-path.failing::after { background: var(--crit); }
.run-path li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: color .2s ease; }
.stop { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font: 700 .9rem var(--mono); color: #fff; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.run-path li.active { color: var(--ink); }
.run-path li.active .stop { border-color: var(--blue); transform: scale(1.12); animation: ring 1s ease-out infinite; }
.run-path li.pass { color: var(--ink-2); }
.run-path li.pass .stop { background: var(--green); border-color: var(--green); }
.run-path li.pass .stop::after { content: "✓"; }
.run-path li.fail { color: var(--crit-t); font-weight: 700; }
.run-path li.fail .stop { background: var(--crit); border-color: var(--crit); transform: scale(1.12); }
.run-path li.fail .stop::after { content: "×"; }
.run-log { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--bg-2); font-size: .98rem; color: var(--ink-2); min-height: 2.9em; transition: background .2s ease, color .2s ease; }
.run-log.good { background: var(--ok-bg); color: var(--ok-t); }
.run-log.warn { background: var(--warn-bg); color: var(--warn-t); }
.run-log.alarm { background: var(--crit-bg); color: var(--crit-t); font-weight: 700; }

/* checks */
.checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.check { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.check:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -26px rgba(21, 21, 21, .45); border-color: #cfd3da; }
.check-no { font: 600 .8rem var(--mono); color: var(--blue-t); }
.check p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.check .eg { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--muted); font-style: italic; }

/* simulator */
.sim { border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(21, 21, 21, .45); }
.sim-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.sim-tabs button { font: 700 1rem var(--body); background: transparent; border: 0; border-right: 1px solid var(--line); padding: 16px 14px; text-align: left; cursor: pointer; color: var(--ink-2); display: flex; align-items: center; gap: 10px; position: relative; transition: background .15s ease; }
.sim-tabs button:last-child { border-right: 0; }
.sim-tabs button:hover { background: #fff; }
.sim-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.sim-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.dot.crit { background: var(--crit); } .dot.warn { background: var(--warn); } .dot.info { background: var(--info); } .dot.ok { background: var(--ok); }
.sim-body { padding: clamp(18px, 3vw, 32px); }
.sim-head { display: flex; align-items: center; gap: 18px; }
.clock { flex: none; font: 600 1.5rem var(--mono); background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 14px; min-width: 104px; text-align: center; }
.clock span { display: inline-block; }
.clock span.tick { animation: tick .3s ease; }
.sim-title { font-size: 1.12rem; margin: 0; max-width: 46em; color: var(--ink-2); }
.sim-bar { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.progress { flex: 1 1 200px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .4s ease; }
.sim-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; color: var(--muted); margin: 18px 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.who { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.who.sys { background: var(--sys); } .who.team { background: var(--team); } .who.you { background: var(--you); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 97px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.step { display: grid; grid-template-columns: 70px 28px 1fr; gap: 0 10px; padding: 10px 8px 10px 0; border-radius: 10px; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, background .3s ease; }
.step.on { opacity: 1; transform: none; }
.step.now { background: var(--bg-2); }
.step time { font: 600 .9rem var(--mono); color: var(--muted); text-align: right; padding-top: 3px; }
.step .node { width: 14px; height: 14px; border-radius: 4px; margin: 6px auto 0; position: relative; z-index: 1; box-shadow: 0 0 0 4px #fff; }
.step.now .node { box-shadow: 0 0 0 4px var(--bg-2); animation: ring 1.2s ease-out infinite; }
.step.sys .node { background: var(--sys); } .step.team .node { background: var(--team); } .step.you .node { background: var(--you); }
.step-text strong { display: block; font-size: 1.02rem; }
.step-text .who-name { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.step.sys .who-name { color: var(--blue-t); } .step.team .who-name { color: var(--team); } .step.you .who-name { color: var(--green-t); }
.step-text > span { color: var(--ink-2); font-size: .97rem; }
.step.alert .step-text strong { color: var(--crit-t); }
.step.good .step-text strong { color: var(--ok-t); }

.outcome { margin-top: 18px; background: var(--ok-bg); border-left: 5px solid var(--ok); border-radius: 10px; padding: 14px 18px; animation: logIn .4s ease; }
.outcome-label { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ok-t); margin: 0 0 4px; }
.outcome p { margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.facts div { background: #fff; border-radius: 10px; padding: 8px 14px; min-width: 130px; }
.facts dt { font: 800 1.35rem var(--display); color: var(--ink); }
.facts dd { margin: 0; font-size: .85rem; color: var(--muted); }

/* roles */
.roles-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.trio { position: relative; width: 210px; height: 190px; margin-right: 12px; }
.trio .sq { width: 62%; mix-blend-mode: screen; transition: transform .25s ease, opacity .25s ease; cursor: default; }
.trio .sq span { position: absolute; font: 700 .8rem var(--mono); color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.trio .sq-b { background: rgba(0, 137, 255, .8); left: 0; top: 18%; }
.trio .sq-b span { left: 8px; bottom: 8px; }
.trio .sq-g { background: rgba(14, 176, 7, .75); left: 26%; top: 0; }
.trio .sq-g span { right: 8px; top: 6px; }
.trio .sq-r { background: rgba(190, 20, 52, .8); left: 38%; top: 32%; }
.trio .sq-r span { right: 8px; bottom: 8px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.role { border: 1px solid #34363b; border-top: 4px solid; border-radius: var(--r); padding: 22px; transition: opacity .25s ease, transform .25s ease, background .25s ease; }
.role[data-role="sys"] { border-top-color: var(--sys); }
.role[data-role="team"] { border-top-color: #c8173a; }
.role[data-role="you"] { border-top-color: var(--you); }
.role h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.role ul { margin: 0; padding-left: 18px; color: #d3d5da; }
.role li { margin: 6px 0; }
.c-sys { color: #5cb6ff; } .c-team { color: #ff6f8a; } .c-you { color: #5fd95a; }
#role[data-focus] .role { opacity: .4; }
#role[data-focus="sys"] .role[data-role="sys"], #role[data-focus="team"] .role[data-role="team"], #role[data-focus="you"] .role[data-role="you"] { opacity: 1; transform: translateY(-4px); background: #1f2024; }
#role[data-focus] .trio .sq { opacity: .35; }
#role[data-focus="sys"] .trio .sq-b, #role[data-focus="team"] .trio .sq-r, #role[data-focus="you"] .trio .sq-g { opacity: 1; transform: scale(1.06); z-index: 1; }

/* noise funnel */
.funnel-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.funnel { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.funnel figcaption { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.funnel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.funnel li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; font-size: .95rem; color: var(--ink-2); }
.funnel li b { font: 800 1.3rem var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.funnel .fbar { grid-column: 1 / -1; height: 12px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.funnel .fbar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--muted); transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.funnel li:nth-child(1) .fbar i { background: #b9bdc6; }
.funnel li:nth-child(2) .fbar i { background: var(--blue); }
.funnel li:nth-child(3) .fbar i { background: var(--blue-t); }
.funnel li:nth-child(4) .fbar i { background: var(--burgundy); }
.funnel li:nth-child(5) .fbar i { background: var(--crit); }
.funnel .fnote { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }

/* what you see */
.see-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.plain { padding-left: 20px; margin: 0; }
.plain li { margin: 10px 0; color: var(--ink-2); }
.plain li::marker { color: var(--blue); }
.status { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: 0 24px 50px -30px rgba(21, 21, 21, .4); font-size: .95rem; }
.status-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.status-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.pill { border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.pill.ok { background: var(--ok-bg); color: var(--ok-t); }
.uptime-head, .uptime-foot { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.uptime-head strong { color: var(--ink); font: 700 1.2rem var(--display); }
.bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 38px; margin: 10px 0 6px; }
.bars span { background: var(--ok); border-radius: 2px; opacity: .8; transform-origin: bottom; transition: transform .15s ease, opacity .15s ease; cursor: pointer; }
.bars span:hover, .bars span.sel { opacity: 1; transform: scaleY(1.15); }
.bars span.warn { background: var(--warn); }
.bars span.crit { background: var(--crit); }
.bars.dense { gap: 1px; }
.tip { margin: 8px 0 0; padding: 8px 12px; background: var(--bg-2); border-radius: 8px; font-size: .88rem; color: var(--ink-2); min-height: 2.6em; }
.tip b { color: var(--ink); }
.svc { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.svc li { display: flex; align-items: center; gap: 8px; }
.history { border-top: 1px solid var(--line); padding-top: 12px; }
.history-label { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 6px; }
.history p { margin: 6px 0; color: var(--ink-2); }

/* gains */
.gains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.gain { border-top: 4px solid var(--ink); padding-top: 14px; }
.gain-sys { border-color: var(--sys); } .gain-you { border-color: var(--you); } .gain-team { border-color: var(--team); }
.gain strong { font-family: var(--display); font-size: 1.35rem; display: block; margin-bottom: 6px; }
.gain p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* limits */
.nots { list-style: none; padding: 0; margin: 18px 0 0; max-width: 50em; display: grid; gap: 12px; }
.nots li { position: relative; padding: 14px 18px 14px 52px; background: var(--bg-2); border-radius: 12px; color: var(--ink-2); }
.nots li::before { content: "×"; position: absolute; left: 16px; top: 13px; width: 24px; height: 24px; border-radius: 6px; background: var(--burgundy); color: #fff; font: 700 1rem/24px var(--mono); text-align: center; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 52em; }
.faq summary { font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--blue-t); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.faq details[open] p { animation: logIn .3s ease; }
.faq h2 { margin-bottom: 18px; }

/* footer */
.foot { padding: 28px 0 36px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 12px; }
.foot strong { color: var(--ink); }

/* scroll reveal: only elements below the fold get hidden, and only with JS */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pending { opacity: 0; transform: translateY(18px); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(14, 176, 7, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(14, 176, 7, 0); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(0, 137, 255, .5); } 100% { box-shadow: 0 0 0 10px rgba(0, 137, 255, 0); } }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -10px); } }
@keyframes tick { from { transform: translateY(-6px); opacity: .2; } to { transform: none; opacity: 1; } }

@media (max-width: 960px) {
  .hero-grid, .see-grid, .funnel-grid { grid-template-columns: 1fr; }
  .squares { inset: -30px -40px auto auto; width: 220px; height: 200px; }
  .checks, .gains { grid-template-columns: 1fr 1fr; }
  .roles { grid-template-columns: 1fr; }
  .top nav a { padding: 6px 7px; }
  .sim-tabs { grid-template-columns: 1fr 1fr; }
  .sim-tabs button:nth-child(2) { border-right: 0; }
  .sim-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .top nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand-sub { display: none; }
  .checks, .gains { grid-template-columns: 1fr; }
  .roles-head { grid-template-columns: 1fr; }
  .trio { width: 170px; height: 150px; margin: 0 auto; }
  .sim-tabs button { font-size: .92rem; padding: 12px 10px; }
  .sim-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .clock { font-size: 1.25rem; min-width: 0; }
  .sim-controls { width: 100%; }
  .sim-controls .btn { flex: 1; justify-content: center; padding-inline: 6px; font-size: .85rem; white-space: nowrap; }
  .step { grid-template-columns: 52px 22px 1fr; gap: 0 6px; }
  .timeline::before { left: 72px; }
  .journal-list li { grid-template-columns: 42px 38px 1fr; }
  .run-path { font-size: .78rem; }
  .run-path::before, .run-path::after { top: 11px; }
  .stop { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .journal-list li, .step { opacity: 1; transform: none; }
  .reveal.pending { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
