/* "How Airlock works" explainer. Shared by the dashboard About page and the unlisted /how-it-works page.
 * Uses the dashboard's colour tokens (--bg-surface, --text-primary, --emerald, …); each host page defines them. */
.hx-root { container-type:inline-size; container-name:hx; }
.hx-hero { display:grid; gap:16px; margin-bottom:20px; }
.hx-lead { font-size:14px; color:var(--text-secondary); max-width:70ch; }
.hx-flow { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:10px; }
.hx-node { border:1px solid var(--border-hairline); background:var(--bg-subtle); border-radius:10px; padding:10px 12px; min-width:0; }
.hx-node b { display:block; font-size:13.5px; font-weight:600; }
.hx-node span { font-size:12px; color:var(--text-secondary); }
.hx-door { background:var(--accent); border-color:var(--accent); color:var(--accent-fg); }
.hx-door span { color:inherit; opacity:.7; }
.hx-arrow { width:34px; height:2px; background:var(--border-strong); border-radius:2px; position:relative; overflow:hidden; }
.hx-arrow::after { content:""; position:absolute; inset:0; width:40%; background:var(--emerald); animation:hx-flow 1.8s linear infinite; }
@keyframes hx-flow { from { transform:translateX(-100%); } to { transform:translateX(260%); } }
@keyframes hx-flowv { from { transform:translateY(-100%); } to { transform:translateY(260%); } }
.hx-tabs { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin-bottom:16px; }
.hx-tab { text-align:left; border:1px solid var(--border-hairline); background:transparent; color:var(--text-primary); border-radius:10px; padding:9px 12px; cursor:pointer; display:grid; gap:1px; font:inherit; transition:all .15s ease; }
.hx-tab:hover { background:var(--bg-surface); border-color:var(--border-strong); }
.hx-tab[aria-selected="true"] { background:var(--bg-surface); border-color:var(--accent); box-shadow:var(--shadow-card); }
.hx-tab-n { font-size:11px; color:var(--text-muted); font-weight:500; }
.hx-tab-t { font-size:13.5px; font-weight:600; }
.hx-stage { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:20px; align-items:start; margin-bottom:16px; }
.hx-stage[hidden] { display:none; }
.hx-story { display:grid; gap:12px; }
.hx-story h2 { font-size:19px; font-weight:600; letter-spacing:-0.01em; line-height:1.25; text-wrap:balance; }
.hx-story p, .hx-muted { font-size:13.5px; color:var(--text-secondary); }
.hx-try { background:var(--blue-bg); border-radius:8px; padding:9px 12px; font-size:13px; }
.hx-try b { color:var(--blue); }
.hx-tech { border-top:1px solid var(--border-hairline); padding-top:10px; font-size:12.5px; color:var(--text-secondary); }
.hx-tech summary { cursor:pointer; font-weight:600; color:var(--text-primary); }
.hx-tech p { margin-top:6px; font-size:12.5px; }
.hx-panel { display:grid; gap:14px; min-width:0; }
.hx-panel .segmented-toggle { justify-self:start; flex-wrap:wrap; }
.hx-cols { display:grid; grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr); gap:8px; }
.hx-col { display:grid; gap:6px; align-content:start; min-width:0; }
.hx-col-h { display:flex; justify-content:space-between; gap:6px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); }
.hx-gate { border-radius:8px; background:var(--bg-subtle); border:1px solid var(--border-strong); color:var(--text-primary); display:grid; place-items:center; writing-mode:vertical-rl; transform:rotate(180deg); font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; transition:opacity .3s ease; }
.hx-gate.off { opacity:.25; border-style:dashed; }
.hx-mail { border:1px solid var(--border-hairline); background:var(--bg-subtle); border-radius:8px; padding:7px 10px; font-size:12.5px; display:grid; gap:1px; min-width:0; transition:opacity .3s ease, background .25s ease; }
.hx-mail-from { display:flex; justify-content:space-between; gap:6px; font-size:11px; color:var(--text-secondary); }
.hx-mail-subj { font-weight:600; overflow-wrap:anywhere; }
.hx-mail-note { font-size:11px; font-weight:600; }
.hx-mail.pass { background:var(--emerald-bg); border-color:transparent; }
.hx-mail.pass .hx-mail-note { color:var(--emerald); }
.hx-mail.blocked { background:var(--rose-bg); border-color:transparent; opacity:.75; }
.hx-mail.blocked .hx-mail-note { color:var(--rose); }
.hx-mail.bounce { background:var(--amber-bg); border-color:transparent; }
.hx-mail.ghost { opacity:.28; }
.hx-mail.enter { animation:hx-enter .4s both; }
@keyframes hx-enter { from { opacity:0; transform:translateX(-12px); } }
.hx-redact { background:var(--text-primary); color:var(--text-primary); border-radius:3px; padding:0 2px; }
.hx-strike { text-decoration:line-through; color:var(--rose); }
.hx-key { border:1px dashed var(--border-strong); border-radius:8px; padding:8px 10px; display:grid; gap:1px; font-size:12.5px; }
.hx-key.safe { border-color:var(--emerald); background:var(--emerald-bg); }
.hx-key.danger { border-color:var(--rose); background:var(--rose-bg); }
.hx-key-l { font-size:11px; color:var(--text-secondary); }
.hx-key .mono { overflow-wrap:anywhere; }
.hx-chips { display:flex; flex-wrap:wrap; gap:6px; }
.hx-chip { border:1px solid var(--border-hairline); background:var(--bg-surface); color:var(--text-primary); border-radius:999px; padding:4px 11px; font:inherit; font-size:12.5px; font-weight:500; cursor:pointer; transition:all .15s ease; }
.hx-chip:hover { border-color:var(--border-strong); }
.hx-chip[aria-pressed="true"] { background:var(--emerald-bg); border-color:var(--emerald); }
.hx-draft { border:1px solid var(--border-hairline); background:var(--bg-subtle); border-radius:10px; padding:12px; font-size:13.5px; line-height:1.6; display:grid; gap:6px; }
.hx-draft-h { font-size:11.5px; color:var(--text-secondary); }
.hx-flag { border-radius:4px; padding:0 3px; transition:background .3s ease, color .3s ease; }
.hx-flag.on { background:var(--rose-bg); color:var(--rose); box-shadow:inset 0 -2px 0 var(--rose); }
.hx-row { display:flex; gap:8px; flex-wrap:wrap; }
.hx-status { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; min-height:22px; }
.hx-status::before { content:""; width:8px; height:8px; border-radius:50%; background:transparent; flex-shrink:0; }
.hx-status.pass { color:var(--emerald); } .hx-status.pass::before { background:var(--emerald); }
.hx-status.hold { color:var(--amber); } .hx-status.hold::before { background:var(--amber); }
.hx-status.block { color:var(--rose); } .hx-status.block::before { background:var(--rose); }
.hx-status.scan { color:var(--blue); } .hx-status.scan::before { background:var(--blue); animation:hx-pulse .8s infinite alternate; }
@keyframes hx-pulse { to { opacity:.2; } }
.hx-phone { justify-self:center; width:min(300px, 100%); border:1px solid var(--border-strong); border-radius:22px; padding:12px; background:var(--bg-subtle); display:grid; gap:8px; }
.hx-phone[hidden] { display:none; }
.hx-phone-bar { width:60px; height:5px; border-radius:3px; background:var(--border-strong); justify-self:center; }
.hx-notif { background:var(--bg-surface); border-radius:14px; padding:11px 12px; font-size:12.5px; display:grid; gap:8px; box-shadow:var(--shadow-modal); animation:hx-drop .35s both; }
@keyframes hx-drop { from { opacity:0; transform:translateY(-8px); } }
.hx-notif-app { font-size:10.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); }
.hx-note { width:100%; min-height:62px; resize:vertical; font:inherit; font-size:13px; }
.hx-folders { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.hx-folder { border:1px solid var(--border-hairline); border-radius:10px; padding:8px; display:grid; gap:6px; align-content:start; min-height:104px; min-width:0; }
.hx-nav { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.hx-ledger .card-header { margin-bottom:10px; }
.hx-ledger ol { list-style:none; display:grid; gap:4px; max-height:220px; overflow-y:auto; }
.hx-ledger li { display:grid; grid-template-columns:72px 1fr auto; gap:10px; align-items:baseline; font-size:12.5px; padding:6px 8px; border-radius:6px; background:var(--bg-subtle); animation:hx-enter .35s both; }
.hx-ledger li.hx-ledger-empty { display:block; background:none; padding:0; color:var(--text-secondary); animation:none; }
.hx-ledger-t { font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--text-secondary); font-variant-numeric:tabular-nums; }
.hx-ledger-h { font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--text-muted); }
.hx-link { all:unset; color:inherit; text-decoration:underline; cursor:pointer; }
.hx-link:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
@container hx (max-width: 860px) {
  .hx-stage { grid-template-columns:1fr; }
  .hx-tabs { grid-template-columns:repeat(2, 1fr); }
}
@container hx (max-width: 560px) {
  .hx-flow { grid-template-columns:1fr; }
  .hx-arrow { width:2px; height:16px; justify-self:center; }
  .hx-arrow::after { width:100%; height:40%; animation-name:hx-flowv; }
  .hx-cols { grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr); }
  .hx-folders { grid-template-columns:1fr; }
  .hx-folder { min-height:0; }
  .hx-ledger li { grid-template-columns:60px 1fr; }
  .hx-ledger-h { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-arrow::after, .hx-mail.enter, .hx-notif, .hx-ledger li, .hx-status.scan::before { animation:none; }
}
.hx-review { background:var(--bg-surface); border-radius:14px; padding:11px 12px; font-size:12.5px; display:grid; gap:8px; animation:hx-drop .35s .15s both; }
.hx-actions { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.hx-actions .btn { justify-content:center; text-align:center; padding:7px 8px; font-size:12px; white-space:normal; line-height:1.25; }
@media (prefers-reduced-motion: reduce) { .hx-review { animation:none; } }

/* "We don't keep your emails": one email's life, drawn as four small emails */
.hx-life { display:grid; gap:16px; margin-bottom:20px; }
.hx-life-title { font-size:19px; font-weight:600; letter-spacing:-0.01em; line-height:1.25; margin-bottom:4px; }
.hx-life-steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; counter-reset:hxl; }
.hx-life-steps li { position:relative; display:grid; gap:6px; align-content:start; counter-increment:hxl; min-width:0; }
.hx-life-steps li > b { font-size:13.5px; font-weight:600; }
.hx-life-steps li > b::before { content:counter(hxl); display:inline-grid; place-items:center; width:18px; height:18px; margin-right:6px; border-radius:50%; background:var(--bg-subtle); border:1px solid var(--border-hairline); font-size:11px; color:var(--text-secondary); vertical-align:1px; }
.hx-life-steps li > span { font-size:12.5px; color:var(--text-secondary); line-height:1.45; }
.hx-life-steps li:not(:last-child)::after { content:""; position:absolute; top:38px; right:-12px; width:10px; height:2px; background:var(--border-strong); border-radius:2px; }
.hx-life-del > b { color:var(--rose); }
.hx-life-del > b::before { background:var(--rose-bg); border-color:transparent; color:var(--rose); }
.hx-life-mail { position:relative; height:78px; border:1px solid var(--border-hairline); background:var(--bg-subtle); border-radius:10px; padding:10px 11px; display:grid; gap:5px; align-content:start; overflow:hidden; }
.hx-life-mail i { display:block; height:6px; border-radius:3px; background:var(--border-strong); }
.hx-lm-from { width:45%; }
.hx-lm-subj { width:78%; background:var(--text-secondary) !important; opacity:.55; }
.hx-lm-text { display:grid; gap:5px; transition:opacity .4s ease; }
.hx-lm-text i { width:100%; opacity:.6; }
.hx-lm-text i.short { width:60%; }
.hx-lm-chip { position:absolute; top:8px; right:9px; font-style:normal; font-size:10px; font-weight:600; padding:1px 7px; border-radius:999px; background:var(--emerald-bg); color:var(--emerald); }
.hx-life-mail.gone { border-color:var(--rose); border-style:dashed; }
.hx-life-mail.gone .hx-lm-text { animation:hx-erase 3.2s ease-in-out infinite; }
.hx-lm-bin { position:absolute; right:9px; bottom:8px; width:22px; height:22px; color:var(--rose); background:var(--rose-bg); border-radius:6px; padding:3px; }
.hx-life-mail.label { height:auto; min-height:78px; align-content:center; }
@keyframes hx-erase { 0%, 25% { opacity:.9; } 55%, 100% { opacity:0; } }
.hx-life-foot { font-size:13px; color:var(--text-secondary); display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
@media (prefers-reduced-motion: reduce) { .hx-life-mail.gone .hx-lm-text { animation:none; opacity:.15; } }
@container hx (max-width: 640px) {
  .hx-life-steps { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .hx-life-steps li::after { display:none; }
}
@media (max-width: 520px) {
  .hx-life-steps { grid-template-columns:minmax(0,1fr); }
  .hx-life-steps li { grid-template-columns:96px minmax(0,1fr); grid-template-rows:auto 1fr; column-gap:12px; }
  .hx-life-steps li > .hx-life-mail { grid-row:1 / span 2; height:70px; }
  .hx-life-steps li::after { display:none; }
}
