/* Synacl browser tools — shared shell.
   The tokens, buttons, nav, pitch and FAQ blocks are lifted verbatim from landing/flash/index.html
   so /tools/ and /flash/ are visually one site. Everything below the "tool components" rule is new.
   Do not fork the tokens: change them here and in the flasher together. */

:root {
  --iris: #6F5FC3; --iris-deep: #574AA0; --iris-tint: #ECEAF8; --lilac: #B7A9F0;
  --night: #1E1B2A; --night-2: #17141F;
  --paper: #FBFAF7; --paper-2: #F4F2ED;
  --ink: #34302B; --ink-soft: #6B655C; --ink-faint: #9A938A;
  --hairline: #E4E2DD; --hair-2: #EEECE7;
  --ok: #1FA565; --warn: #E8A317; --alert: #DB4A3D;
  --maxw: 1160px;
  --fd: 'Space Grotesk', system-ui, sans-serif;
  --ft: 'Hanken Grotesk', system-ui, sans-serif;
  --fm: 'Space Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--ft); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ── nav / footer ── */
nav.top { position: sticky; top: 0; z-index: 100; background: rgba(251,250,247,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: 32px; padding: 14px 0; }
.nav-logo img { height: 34px; display: block; }
.nav-links { display: flex; gap: 26px; list-style: none; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--iris); }
.nav-cta { display: flex; gap: 10px; margin-left: 6px; }
footer { background: #14121C; color: rgba(255,255,255,.5); padding: 40px 0; font-family: var(--fm); font-size: 11px; letter-spacing: .04em; margin-top: 72px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer a { color: rgba(255,255,255,.6); text-decoration: none; } footer a:hover { color: #fff; }
footer .copy { margin-left: auto; color: rgba(255,255,255,.3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; font-family: var(--fm); font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); }
.foot-links a { color: var(--iris); text-decoration: none; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--ft); font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 9px; text-decoration: none; cursor: pointer; border: none; white-space: nowrap; transition: background .15s, color .15s, opacity .15s; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { color: var(--ink-soft); background: transparent; border: 1px solid var(--hairline); } .btn-ghost:not(:disabled):hover { background: #fff; color: var(--ink); }
.btn-primary { background: var(--iris); color: #fff; } .btn-primary:not(:disabled):hover { background: var(--iris-deep); }
.btn-outline { background: transparent; color: var(--iris); border: 1.5px solid var(--iris); } .btn-outline:not(:disabled):hover { background: var(--iris-tint); }
.btn-night { background: var(--night); color: #fff; } .btn-night:not(:disabled):hover { background: #2a2639; }
.btn-alert { background: var(--alert); color: #fff; } .btn-alert:not(:disabled):hover { background: #C23E32; }
.btn-lg { font-size: 15px; padding: 12px 24px; }
.btn-sm { font-size: 12.5px; padding: 6px 13px; border-radius: 7px; }
.btn-paper { background: #fff; color: var(--night); } .btn-paper:hover { background: var(--iris-tint); }
.btn-lilac { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); } .btn-lilac:hover { border-color: #fff; }

/* ── page header ── */
header.ph { padding: 64px 0 30px; }
.eyebrow { font-family: var(--fm); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--iris); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--iris); }
h1 { font-family: var(--fd); font-size: clamp(34px, 5vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; color: var(--night); max-width: 18ch; text-wrap: balance; margin-bottom: 18px; }
.sub { font-size: 17.5px; color: var(--ink-soft); max-width: 66ch; }
.sub strong { color: var(--ink); font-weight: 600; }
h2 { font-family: var(--fd); font-weight: 600; letter-spacing: -.03em; color: var(--night); }
h3 { font-family: var(--fd); font-weight: 600; letter-spacing: -.02em; color: var(--night); font-size: 16px; }

/* ── unsupported banner ── */
.unsup { border: 1px solid #F1D48A; background: #FFF8E3; color: #5F4700; border-radius: 12px; padding: 14px 18px; font-size: 14.5px; margin-bottom: 22px; }
.unsup b { font-weight: 600; }
.unsup.hide { display: none; }

/* ── panels ── */
.fl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.fl-wide { grid-template-columns: 1.05fr 1fr; }
.col { background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: 22px 24px 24px; }
.col, .frow > * { min-width: 0; }
.step { font-size: 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step i { font-style: normal; font-family: var(--fm); font-size: 11px; letter-spacing: .08em; color: #fff; background: var(--iris); border-radius: 999px; padding: 2px 9px; }
.lbl { font-family: var(--fm); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 0 8px; display: block; }
.lbl:first-child { margin-top: 0; }
.hint { font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; margin-top: 6px; }

/* ── form controls.
   A <select> sizes itself to its longest option, which blew a grid column to 768px on a 390px
   viewport while building the flasher. Every select is pinned to its column and every grid child
   gets min-width:0. Do not remove. ── */
select, input[type="text"], input[type="number"], textarea { font-family: var(--ft); font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--hairline); border-radius: 8px; padding: 8px 10px; max-width: 100%; width: 100%; min-width: 0; }
select { text-overflow: ellipsis; }
select:disabled, input:disabled, textarea:disabled { background: var(--paper-2); color: var(--ink-faint); }
textarea { font-family: var(--fm); font-size: 13px; line-height: 1.7; letter-spacing: .04em; resize: vertical; }
.mono { font-family: var(--fm); letter-spacing: .04em; }
/* A computed value shown as the hero of a panel — bigger than .sub, smaller than h1, and not a
   heading, so it does not compete with the page outline. */
.hero-val { font-family: var(--fm); font-size: clamp(32px, 4.5vw, 46px); letter-spacing: .06em; line-height: 1.1; color: var(--night); overflow-wrap: anywhere; }
/* `code` was only styled inside .prose/.faq/.status/.kv, so it fell back to the UA font anywhere
   else. One base rule saves every page the workaround. */
code { font-family: var(--fm); font-size: .92em; overflow-wrap: anywhere; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; }
.grid2 > *, .grid3 > *, .grid4 > * { min-width: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 14px 0; font-size: 14px; }
.opts label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.opts input[type="checkbox"] { accent-color: var(--iris); width: 15px; height: 15px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 14px; }

/* ── segmented control (address base, encoding, direction) ── */
.seg { display: inline-flex; border: 1px solid var(--hairline); border-radius: 9px; overflow: hidden; background: #fff; max-width: 100%; }
.seg button { font-family: var(--ft); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: none; border: none; padding: 7px 13px; cursor: pointer; white-space: nowrap; border-right: 1px solid var(--hairline); transition: background .12s, color .12s; }
.seg button:last-child { border-right: none; }
.seg button:hover:not(:disabled) { background: var(--paper); }
.seg button[aria-pressed="true"] { background: var(--iris); color: #fff; }
.seg:has(button:disabled) { opacity: .55; }
.seg button:disabled { cursor: not-allowed; }

/* ── tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin-bottom: 18px; }
.tabs button { font-family: var(--fd); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink-faint); background: none; border: none; border-bottom: 2px solid transparent; padding: 9px 14px; cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--iris); border-bottom-color: var(--iris); }
.tabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
.tabpane[hidden] { display: none; }

/* ── example chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }
.chips button { font-family: var(--fm); font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: border-color .12s, color .12s; }
.chips button:hover { border-color: var(--iris); color: var(--iris); }

/* ── byte strip: one cell per byte, coloured by role, with a caption under each ── */
.strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0; font-family: var(--fm); min-height: 46px; }
.strip .b { display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 7px; padding: 5px 7px 4px; font-size: 12.5px; letter-spacing: .06em; background: var(--paper-2); color: var(--ink); border: 1px solid transparent; }
.strip .b em { font-style: normal; font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; max-width: 9ch; overflow: hidden; text-overflow: ellipsis; }
.strip .b-addr { background: #EFEAFB; border-color: #D9CEF6; } .strip .b-addr em { color: var(--iris-deep); }
.strip .b-unit { background: #EFEAFB; border-color: #D9CEF6; } .strip .b-unit em { color: var(--iris-deep); }
.strip .b-fc { background: #E3F2EA; border-color: #BFE2CE; } .strip .b-fc em { color: #167A4B; }
.strip .b-start-hi, .strip .b-start-lo, .strip .b-addr-hi, .strip .b-addr-lo { background: #FDF0DC; border-color: #F3DCB4; } .strip .b-start-hi em, .strip .b-start-lo em, .strip .b-addr-hi em, .strip .b-addr-lo em { color: #8A5A00; }
.strip .b-qty-hi, .strip .b-qty-lo { background: #E7F0FB; border-color: #C8DDF4; } .strip .b-qty-hi em, .strip .b-qty-lo em { color: #1F5C9E; }
.strip .b-val-hi, .strip .b-val-lo { background: #E7F0FB; border-color: #C8DDF4; } .strip .b-val-hi em, .strip .b-val-lo em { color: #1F5C9E; }
.strip .b-bc { background: #F6E9F6; border-color: #E6CEE6; } .strip .b-bc em { color: #7B3A78; }
.strip .b-data { background: #fff; border-color: var(--hairline); }
.strip .b-exc { background: #FDECEA; border-color: #F5C9C3; } .strip .b-exc em { color: #9B2C21; }
.strip .b-crc-lo, .strip .b-crc-hi, .strip .b-lrc { background: var(--night); color: #D9D4E6; } .strip .b-crc-lo em, .strip .b-crc-hi em, .strip .b-lrc em { color: #9E97AC; }
.strip .b-crc-bad { background: var(--alert); color: #fff; } .strip .b-crc-bad em { color: #FFE0DC; }
.strip .b-mbap-tid, .strip .b-mbap-pid, .strip .b-mbap-len { background: var(--paper-2); border-color: var(--hairline); }
.strip .b-extra { background: #FFF8E3; border-color: #F1D48A; } .strip .b-extra em { color: #8A5A00; }
.strip .b-pending { background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 4px, #fff 4px, #fff 8px); border-style: dashed; border-color: var(--hairline); color: var(--ink-faint); }
.strip .b-next { background: transparent; border: 1px dashed var(--iris); color: var(--iris); }
.strip .b-next em { color: var(--iris); max-width: 16ch; }

/* ── status line ── */
.status { font-size: 14.5px; line-height: 1.5; padding: 11px 14px; border-radius: 10px; background: var(--paper-2); color: var(--ink-soft); margin: 12px 0; }
.status b, .status code { font-family: var(--fm); font-size: 13px; letter-spacing: .05em; color: var(--ink); font-weight: 400; }
.status.ok { background: #E8F6EF; color: #14603B; } .status.ok b, .status.ok code { color: #0E4A2D; }
.status.err { background: #FDECEA; color: #9B2C21; } .status.err b, .status.err code { color: #7A2219; }
.status.warn { background: #FFF8E3; color: #8A5A00; } .status.warn b, .status.warn code { color: #6B4600; }
.status.wait { background: var(--iris-tint); color: var(--iris-deep); } .status.wait b, .status.wait code { color: var(--iris-deep); }

/* ── key/value summary ── */
.kv { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 1px 0; background: var(--hair-2); border: 1px solid var(--hairline); border-radius: 11px; overflow: hidden; font-size: 13.5px; }
.kv dt { background: var(--paper); color: var(--ink-faint); font-family: var(--fm); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; display: flex; align-items: center; }
.kv dd { background: #fff; color: var(--ink); padding: 8px 12px; overflow-wrap: anywhere; }
.kv dd b { font-weight: 600; color: var(--night); }
.kv dd .m { font-family: var(--fm); font-size: 12.5px; letter-spacing: .04em; }
.kv dd .muted { color: var(--ink-faint); }
.badge { display: inline-block; font-family: var(--fm); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--iris-tint); color: var(--iris-deep); vertical-align: 1px; margin-left: 6px; }
.badge.ok { background: #E8F6EF; color: #14603B; }
.badge.warn { background: #FFF8E3; color: #8A5A00; }
.badge.err { background: #FDECEA; color: #9B2C21; }

/* ── values table ── */
.vt { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.vt th { font-family: var(--fm); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--hairline); font-weight: 400; white-space: nowrap; }
.vt th:first-child, .vt td:first-child { text-align: left; }
.vt td { padding: 6px 8px; border-bottom: 1px solid var(--hair-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vt td.m { font-family: var(--fm); font-size: 12px; letter-spacing: .04em; }
.vt tr:last-child td { border-bottom: none; }
.vt tr.best td { background: #F8F6FE; }
.vt tr.best td:first-child { box-shadow: inset 3px 0 0 var(--iris); }
.vt .why { font-size: 11.5px; color: var(--ink-faint); text-align: left; white-space: normal; }
.vt .addr { font-family: var(--fm); font-size: 11.5px; color: var(--ink-faint); }
.vt caption { caption-side: top; text-align: left; font-family: var(--fm); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding: 14px 0 4px; }
.scroll-x { overflow-x: auto; }

/* ── log ── */
.log { font-family: var(--fm); font-size: 11.5px; line-height: 1.55; color: #D9D4E6; background: var(--night-2); border-radius: 10px; padding: 12px 14px; height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.log.tall { height: 420px; }
.log .err { color: #FF8A7A; } .log .ok { color: #5FD9A0; } .log .dim { color: #7E7791; }
.log .tx { color: #9DB8FF; } .log .rx { color: #C6B9FF; }
.log .ann { display: inline-block; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; margin-left: 8px; vertical-align: 1px; cursor: help; background: rgba(183,169,240,.18); color: var(--lilac); }
.log .ann.warn { background: rgba(232,163,23,.18); color: #F5C462; }
.log .ann.err { background: rgba(219,74,61,.2); color: #FF8A7A; }
.logbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--ink-faint); flex-wrap: wrap; }
.logbar button { background: none; border: none; color: var(--iris); font-weight: 600; cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.logbar .sp { margin-left: auto; }

/* ── insights (serial monitor) ── */
.insights { display: grid; gap: 7px; margin-top: 14px; }
.insight { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; border: 1px solid var(--hairline); border-left-width: 3px; border-radius: 9px; padding: 9px 12px; font-size: 13.5px; background: #fff; }
.insight.info { border-left-color: var(--iris); }
.insight.warn { border-left-color: var(--warn); background: #FFFDF6; }
.insight.err { border-left-color: var(--alert); background: #FFF7F6; }
.insight b { font-family: var(--fd); font-weight: 600; color: var(--night); font-size: 13.5px; }
.insight span { color: var(--ink-soft); line-height: 1.5; }
.insight .n { font-family: var(--fm); font-size: 10.5px; color: var(--ink-faint); }

/* ── device chip ── */
.dev { display: none; font-family: var(--fm); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--hairline); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.dev.on { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dev b { color: var(--night); font-weight: 700; }
.dev .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px rgba(31,165,101,.15); }
.prog { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.prog i { display: block; height: 100%; width: 0; background: var(--iris); transition: width .15s; }
.prog.done i { background: var(--ok); }
.pct { font-family: var(--fm); font-size: 11px; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 12px; min-height: 16px; }

/* ── scan results ── */
.scan { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.scan button { font-family: var(--fm); font-size: 12px; letter-spacing: .04em; border-radius: 8px; padding: 5px 11px; cursor: pointer; border: 1px solid var(--ok); background: #E8F6EF; color: #14603B; }
.scan button.exc { border-color: var(--warn); background: #FFF8E3; color: #8A5A00; }
.scan button:hover { filter: brightness(.97); }

/* ── partition table (esp32-info) ── */
.parts { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.parts th { font-family: var(--fm); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--hairline); font-weight: 400; }
.parts td { padding: 6px 8px; border-bottom: 1px solid var(--hair-2); }
.parts td.m { font-family: var(--fm); font-size: 11.5px; letter-spacing: .03em; text-align: right; font-variant-numeric: tabular-nums; }
.parts tr.active td { background: #F8F6FE; }
.parts tr.active td:first-child { box-shadow: inset 3px 0 0 var(--iris); font-weight: 600; }
.apps { display: grid; gap: 10px; margin-top: 12px; }
.app { border: 1px solid var(--hairline); border-radius: 11px; padding: 12px 14px; background: #fff; }
.app.active { border-color: var(--iris); background: #F8F6FE; }
.app h4 { font-family: var(--fd); font-size: 14px; font-weight: 600; color: var(--night); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.app dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 12.5px; }
.app dt { font-family: var(--fm); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.app dd { color: var(--ink); overflow-wrap: anywhere; }
.app dd.m { font-family: var(--fm); font-size: 11.5px; }

/* ── confirm dialog (writes) ── */
dialog.confirm { border: none; border-radius: 16px; padding: 0; max-width: 460px; width: calc(100% - 40px); box-shadow: 0 24px 60px rgba(30,27,42,.28); }
dialog.confirm::backdrop { background: rgba(30,27,42,.45); backdrop-filter: blur(2px); }
dialog.confirm .dh { padding: 22px 26px 0; }
dialog.confirm h3 { font-size: 19px; margin-bottom: 10px; }
dialog.confirm .dbody { padding: 0 26px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
dialog.confirm .dbody .what { font-family: var(--fm); font-size: 13px; letter-spacing: .03em; color: var(--ink); background: var(--paper-2); border-radius: 9px; padding: 11px 13px; margin: 12px 0; line-height: 1.7; }
dialog.confirm .liability { font-size: 12.5px; color: #8A5A00; background: #FFF8E3; border-radius: 9px; padding: 10px 12px; line-height: 1.5; }
dialog.confirm .dacts { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px 22px; }

/* ── settings card (the Synacl hand-off) ── */
.card-syn { border: 1px solid var(--hairline); border-radius: 12px; background: var(--paper); padding: 14px 16px; margin: 14px 0; }
.card-syn .kv { font-size: 13px; }
.card-syn .honesty { font-size: 12.5px; color: #8A5A00; background: #FFF8E3; border-radius: 8px; padding: 9px 11px; margin-top: 10px; line-height: 1.5; }
.card-syn .honesty b { font-weight: 600; }

/* ── hub cards ── */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: 22px 24px 20px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--iris); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(111,95,195,.09); }
.tool-card .tool-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--iris-tint); color: var(--iris-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 15px; flex: none; transition: background .15s, color .15s; }
.tool-card .tool-icon svg { width: 22px; height: 22px; display: block; }
.tool-card:hover .tool-icon { background: var(--iris); color: #fff; }
.tool-card h3 { font-size: 17px; margin-bottom: 7px; }
.tool-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.tool-card .when { font-size: 13px; color: var(--ink-faint); margin-top: 10px; line-height: 1.5; }
.tool-card .need { font-family: var(--fm); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 12px; display: flex; align-items: center; gap: 7px; }
.tool-card .need i { font-style: normal; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.tool-card .need.serial i { background: var(--warn); }
.tool-card .go { font-size: 13.5px; font-weight: 600; color: var(--iris); margin-top: 14px; }

/* ── pitch ── */
.pitch { display: none; background: var(--night); color: #fff; border-radius: 18px; padding: 40px 44px; margin-top: 26px; }
.pitch.on { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.pitch.always { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.pitch h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; color: #fff; text-wrap: balance; }
.pitch h2 em { font-style: normal; color: var(--lilac); }
.pitch p { color: #9E97AC; margin: 14px 0 0; font-size: 15.5px; max-width: 52ch; }
.pitch ul { list-style: none; display: grid; gap: 12px; }
/* ⚠ Wrap the text of each <li> in a <div>. Bare inline content becomes an anonymous grid item
   sized to min-content and wraps one word per line — see landing/flash/index.html:301. */
.pitch li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: #D9D4E6; }
.pitch li > * { min-width: 0; }
.pitch li::before { content: '\2713'; color: var(--lilac); font-weight: 700; }
.pitch li b { color: #fff; font-weight: 600; }
.pitch li a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.pitch .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pitch .card-syn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.pitch .card-syn .kv { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); }
.pitch .card-syn .kv dt { background: rgba(255,255,255,.04); color: #9E97AC; }
.pitch .card-syn .kv dd { background: transparent; color: #E6E2F0; }
.pitch .card-syn .kv dd b { color: #fff; }

/* ── prose blocks ── */
.prose { margin-top: 56px; }
.prose h2 { font-size: clamp(23px, 3vw, 30px); margin-bottom: 12px; max-width: 26ch; }
.prose p { font-size: 15.5px; color: var(--ink-soft); max-width: 72ch; margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; font-size: 15px; color: var(--ink-soft); }
.prose li { margin-bottom: 7px; }
.prose code { font-family: var(--fm); font-size: 12.5px; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; color: var(--ink); overflow-wrap: anywhere; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
.prose th { text-align: left; font-family: var(--fm); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 7px 10px; border-bottom: 1px solid var(--hairline); font-weight: 400; }
.prose td { padding: 7px 10px; border-bottom: 1px solid var(--hair-2); color: var(--ink-soft); }

/* ── faq ── */
.faq { margin-top: 64px; }
.faq h2 { font-size: clamp(24px, 3vw, 32px); max-width: 26ch; margin-bottom: 8px; }
.faq .sub { font-size: 15.5px; margin-bottom: 22px; }
.faq .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.faq details { border: 1px solid var(--hairline); border-radius: 12px; background: #fff; padding: 0 18px; height: fit-content; }
.faq summary { cursor: pointer; font-family: var(--fd); font-weight: 600; color: var(--night); font-size: 15px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--iris); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p, .faq details ul { font-size: 14.5px; color: var(--ink-soft); padding-bottom: 16px; line-height: 1.6; }
.faq details ul { padding-left: 18px; }
.faq details p + p { padding-top: 0; margin-top: -8px; }
.faq code { font-family: var(--fm); font-size: 12px; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; color: var(--ink); overflow-wrap: anywhere; }

/* Body-copy links. Without this, every link inside .prose, .faq, .hint and the tool panels falls
   through to the UA default (#0000EE, underlined) — which is why the flasher carried an inline
   colour on its one anchor. */
.prose a, .faq details a, .hint a, .col a, .status a, .unsup a, .card-syn a { color: var(--iris); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .faq details a:hover, .hint a:hover, .col a:hover { color: var(--iris-deep); }
.unsup a { color: #7A5A00; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  header.ph { padding: 44px 0 24px; }
  .fl, .fl-wide { grid-template-columns: 1fr; }
  .pitch.on, .pitch.always { grid-template-columns: 1fr; padding: 30px 26px; }
  .faq .grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .col { padding: 18px 16px 20px; }
  .kv { grid-template-columns: minmax(84px, auto) 1fr; font-size: 13px; }
}
@media (max-width: 420px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }
