/* whack.sh — public site theme. Dark by default; light follows the device
   (prefers-color-scheme) unless the visitor explicitly picks one (persisted). */
:root{
  --bg:#0b0e14; --panel:#12161f; --text:#e7eaf0; --muted:#8a93a6;
  --accent:#3ddc97; --border:#1d2533; --link:#7fd8ff;
  --shadow:0 8px 26px rgba(0,0,0,.45);
}
:root[data-theme="light"]{
  --bg:#f5f7fb; --panel:#ffffff; --text:#1a1f29; --muted:#5b6573;
  --accent:#0f9d63; --border:#e4e9f1; --link:#0b69c7;
  --shadow:0 10px 30px rgba(20,30,50,.10);
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#f5f7fb; --panel:#ffffff; --text:#1a1f29; --muted:#5b6573;
    --accent:#0f9d63; --border:#e4e9f1; --link:#0b69c7;
    --shadow:0 10px 30px rgba(20,30,50,.10);
  }
}

*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--bg); color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  line-height:1.6; min-height:100vh; display:flex; flex-direction:column;
  transition:background .2s ease, color .2s ease;
}
a{color:var(--link)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.container{width:100%; max-width:1080px; margin:0 auto; padding:0 24px}

/* header */
.topbar{display:flex; align-items:center; justify-content:space-between; padding:18px 0}
.topbar .logo{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text)}
.topbar .logo img{height:52px; width:auto; display:block}
.topbar .logo b{font-weight:700; letter-spacing:-.01em; font-size:1.3rem}
.topbar .logo .dot{color:var(--accent)}
.nav a{color:var(--muted); text-decoration:none; margin-left:22px; font-size:.92rem}
.nav a:hover{color:var(--text)}

/* hero */
main{flex:1 0 auto; display:flex; flex-direction:column; justify-content:center}
.hero{text-align:center; padding:40px 0 64px; max-width:560px; margin:0 auto}
.hero .mark{width:clamp(200px,52vw,300px); height:auto; display:block; margin:0 auto 4px; filter:drop-shadow(var(--shadow))}
.hero .sub{color:var(--muted); margin:.5rem auto 0; max-width:620px; font-size:1.06rem}
.hero .soon{margin-top:1.6rem; font-size:.78rem; letter-spacing:.16em; text-transform:uppercase; color:var(--accent)}
.hero .prompt{margin-top:1.7rem; color:var(--muted)}
.hero .prompt b{color:var(--text)}
.cursor{display:inline-block; width:.55ch; height:1em; vertical-align:text-bottom; background:var(--accent); animation:blink 1.1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}

/* footer + theme flipper */
footer{flex-shrink:0; border-top:1px solid var(--border); padding:18px 0; color:var(--muted); font-size:.85rem}
footer .inner{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap}
.theme-flip{
  display:inline-flex; align-items:center; gap:8px; cursor:pointer;
  background:var(--panel); color:var(--text); border:1px solid var(--border);
  border-radius:999px; padding:7px 13px; font:inherit; font-size:.82rem; line-height:1;
  transition:border-color .15s ease;
}
.theme-flip:hover{border-color:var(--accent)}
.theme-flip .ico{font-size:.95rem}
.theme-flip .lbl{color:var(--muted)}

/* ── buttons ── */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; text-decoration:none;
  border-radius:10px; padding:11px 20px; font:inherit; font-weight:600; font-size:.95rem; border:1px solid transparent; transition:.15s}
.btn.primary{background:var(--accent); color:#06140d; border-color:var(--accent)}
.btn.primary:hover{filter:brightness(1.08)}
.btn.ghost{background:transparent; color:var(--text); border-color:var(--border)}
.btn.ghost:hover{border-color:var(--accent)}
.btn.block{width:100%; margin-top:12px}
.btn.sm{padding:7px 13px; font-size:.85rem}
.btn:disabled{opacity:.6; cursor:default}

/* ── splash: headline / cta / features / sign-in ── */
.hero .headline{font-size:clamp(1.6rem,4.5vw,2.5rem); line-height:1.15; margin:.6rem 0 .4rem; letter-spacing:-.02em}
.hero .tag{max-width:620px; margin-left:auto; margin-right:auto}
.cta{display:flex; gap:12px; justify-content:center; margin:22px 0 6px; flex-wrap:wrap}
.features{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; max-width:900px; margin:8px auto 48px}
.feat{background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:20px}
.feat h3{margin:0 0 6px; font-size:1rem}
.feat p{margin:0; color:var(--muted); font-size:.9rem; line-height:1.5}
.signin{max-width:440px; margin:0 auto 56px}
.signin .card{background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:28px; box-shadow:var(--shadow)}
.signin h2{margin:0 0 4px; font-size:1.15rem}
.signin .muted{color:var(--muted); font-size:.88rem; margin:0 0 16px}
.signin .muted.small{font-size:.8rem; margin:14px 0 0; text-align:center}
.signin input{width:100%; padding:12px; border-radius:10px; border:1px solid var(--border); background:var(--bg); color:var(--text); font-size:.95rem}
.signin input:focus{outline:2px solid var(--accent); outline-offset:1px}

/* ── nav when signed in ── */
.nav .bal{color:var(--accent); font-weight:700; font-family:ui-monospace,monospace; font-size:.9rem; margin-left:0}
.nav .signout{display:inline; margin:0 0 0 22px}
.nav .signout button{background:transparent; border:1px solid var(--border); color:var(--muted); border-radius:8px; padding:5px 11px; font:inherit; font-size:.85rem; cursor:pointer}
.nav .signout button:hover{border-color:var(--accent); color:var(--text)}

/* ── console / tool ── */
.console{max-width:760px; margin:0 auto; padding:8px 0 56px}
.scanbox{background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:18px; box-shadow:var(--shadow)}
.scanbox .row{display:flex; gap:10px}
.scanbox input[name=url]{flex:1; padding:13px 14px; border-radius:10px; border:1px solid var(--border); background:var(--bg); color:var(--text); font-size:.95rem}
.scanbox input[name=url]:focus{outline:2px solid var(--accent); outline-offset:1px}
.egress{display:flex; align-items:center; gap:10px; margin-top:12px; flex-wrap:wrap; font-size:.85rem}
.egress .lbl{color:var(--muted)}
.seg{display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border:1px solid var(--border); border-radius:999px; cursor:pointer}
.seg b{color:var(--accent); font-size:.78rem}
.seg i{color:var(--muted); font-style:normal; font-size:.72rem; opacity:.7}
.seg.off{opacity:.5; cursor:not-allowed}
.seg input{accent-color:var(--accent)}
.sec{font-size:.8rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); margin:30px 0 12px}
.scanlist{display:flex; flex-direction:column; gap:8px}
.scan{display:flex; align-items:center; gap:12px; padding:11px 14px; background:var(--panel); border:1px solid var(--border); border-radius:12px; text-decoration:none; color:var(--text)}
.scan:hover{border-color:var(--accent)}
.scan .u{flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.88rem}
.scan .meta{color:var(--muted); font-size:.8rem; white-space:nowrap}
.empty{color:var(--muted); font-size:.9rem; padding:16px; text-align:center; border:1px dashed var(--border); border-radius:12px}
.st{font-size:.72rem; font-weight:600; padding:3px 9px; border-radius:999px; border:1px solid var(--border); text-transform:capitalize}
.st-done{color:#3ddc97; border-color:#1e6f4f}
.st-running,.st-queued{color:#f5c451; border-color:#6f5a1e}
.st-failed{color:#fca5a5; border-color:#7f3b3b}
.st-partial{color:#fbbf77; border-color:#7a4f1e}
.result{margin-top:18px; background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:18px}
.result .rhead{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px}
.result .cloak{color:#f5c451; font-size:.8rem; font-weight:600}
.result .meta{color:var(--muted); font-size:.82rem; margin-left:auto}
.result .working{color:var(--muted); font-size:.9rem; padding:8px 0}
.result .shot{max-width:100%; border-radius:10px; border:1px solid var(--border); display:block}
.err{background:rgba(220,80,80,.12); color:#fca5a5; border:1px solid rgba(220,80,80,.3); padding:9px 12px; border-radius:9px; font-size:.85rem; margin:10px 0}

/* ── account / dashboard ── */
.account{max-width:820px; margin:0 auto; padding:8px 0 56px}
.balcard{background:linear-gradient(135deg, rgba(61,220,151,.14), var(--panel)); border:1px solid var(--border); border-radius:16px; padding:24px; box-shadow:var(--shadow)}
.balcard .n{font-size:2.6rem; font-weight:800; line-height:1}
.balcard .l{color:var(--muted); font-size:.88rem; margin-top:5px}
.balhead{display:flex; justify-content:space-between; align-items:flex-start; gap:16px}
.bucket{margin-top:16px}
.bk-row{display:flex; justify-content:space-between; font-size:.84rem; margin-bottom:6px}
.bk-l{color:var(--muted)}
.bk-v{color:var(--text); font-variant-numeric:tabular-nums}
.meter{height:8px; border-radius:99px; background:var(--border); overflow:hidden}
.meter>span{display:block; height:100%; background:var(--accent); border-radius:99px; transition:width .3s}
.meter.near>span{background:#f5a623}
.tbl{width:100%; border-collapse:collapse; font-size:.86rem}
.tbl th,.tbl td{text-align:left; padding:9px 10px; border-bottom:1px solid var(--border)}
.tbl th{color:var(--muted); font-weight:600; font-size:.76rem; text-transform:uppercase; letter-spacing:.04em}
.tbl code{font-family:ui-monospace,monospace; color:var(--accent)}
.pos{color:#3ddc97}.neg{color:#fca5a5}

/* ── splash long-form sections ── */
.sec.center,.center{text-align:center}
.nav .navcta{color:var(--accent); font-weight:600}
.prose{max-width:760px; margin:0 auto 48px}
.prose h2{font-size:1.5rem; margin:0 0 14px}
.prose p{color:var(--muted); margin:0 0 14px; line-height:1.65}
.lead{max-width:740px; margin:0 auto 26px; text-align:center; color:var(--muted); line-height:1.6}
.how{max-width:820px; margin:0 auto 52px}
.steps{list-style:none; margin:0; padding:0; display:grid; gap:14px}
.steps li{display:flex; gap:16px; background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:18px 20px}
.steps .n{flex:none; width:30px; height:30px; border-radius:50%; background:var(--accent); color:#06140d; font-weight:800; display:flex; align-items:center; justify-content:center}
.steps h3{margin:0 0 4px; font-size:1.02rem}
.steps p{margin:0; color:var(--muted); font-size:.92rem; line-height:1.55}
.steps code,.prose code{background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:1px 6px; color:var(--accent)}
.featwrap{margin:0 auto 52px}
.egresswrap{max-width:960px; margin:0 auto 52px}
.tiers{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px}
/* BYO enterprise callout */
.byo{max-width:760px; margin:24px auto 0; background:linear-gradient(135deg, rgba(61,220,151,.09), var(--panel)); border:1px solid var(--accent); border-radius:16px; padding:22px 26px; text-align:left}
.byo-tag{display:inline-block; font-size:.66rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--accent); border:1px solid var(--accent); border-radius:999px; padding:3px 10px; margin-bottom:10px}
.byo h3{margin:0 0 8px; font-size:1.25rem}
.byo p{color:var(--muted); line-height:1.6; margin:0 0 16px}
.byo-foot{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap}
.byo-price{font-size:.95rem; color:var(--muted)}
.byo-price b{color:var(--accent)}
.tier{background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:20px}
.tier .th{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px}
.tier h3{margin:0; font-size:1.05rem}
.tier .cost{font-size:.72rem; font-weight:700; color:var(--muted); border:1px solid var(--border); border-radius:999px; padding:3px 9px; white-space:nowrap}
.tier .cost.free{color:var(--accent); border-color:var(--accent)}
.tier p{margin:0; color:var(--muted); font-size:.9rem; line-height:1.5}
.pricing{max-width:720px; margin:0 auto 52px}
.pricing .card{background:linear-gradient(135deg, rgba(61,220,151,.10), var(--panel)); border:1px solid var(--border); border-radius:18px; padding:30px; box-shadow:var(--shadow)}
.pricing h2{margin:0 0 12px; font-size:1.4rem}
.pricing p{color:var(--muted); line-height:1.6; margin:0 0 10px}
.finalcta{max-width:640px; margin:0 auto 64px; text-align:center}
.finalcta h2{font-size:1.5rem; margin:0 0 10px}
.finalcta p{color:var(--muted); line-height:1.6; margin:0 0 20px}
.faq{max-width:760px; margin:0 auto 52px}
.qa{background:var(--panel); border:1px solid var(--border); border-radius:12px; margin-bottom:10px; overflow:hidden}
.qa summary{cursor:pointer; padding:15px 18px; font-weight:600; font-size:.98rem; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{content:'+'; color:var(--accent); font-weight:700; font-size:1.2rem}
.qa[open] summary::after{content:'–'}
.qa p{margin:0; padding:0 18px 16px; color:var(--muted); line-height:1.6; font-size:.93rem}
.qa code{background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:1px 6px; color:var(--accent)}

/* ── app shell (left-sidebar tool launcher) ── */
body.app{display:grid; grid-template-columns:240px 1fr; min-height:100vh}
.sidebar{display:flex; flex-direction:column; gap:6px; padding:18px 14px; border-right:1px solid var(--border); background:var(--panel); position:sticky; top:0; height:100vh}
.side-brand{display:flex; align-items:center; justify-content:center; text-decoration:none; color:var(--text); padding:8px 8px 16px}
.side-brand img{height:72px; width:auto}
.side-brand b{font-size:1.05rem; letter-spacing:-.01em}
.side-brand .dot{color:var(--accent)}
.navlabel{font-size:.7rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); padding:6px 10px 4px}
.tools{display:flex; flex-direction:column; gap:3px}
.toolitem{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 11px; border-radius:9px; text-decoration:none; color:var(--text); font-size:.92rem; border:1px solid transparent}
.toolitem:hover{background:var(--bg)}
.toolitem.active{background:var(--bg); border-color:var(--border)}
.toolitem.active .tl{color:var(--accent); font-weight:600}
.side-foot{margin-top:auto; display:flex; flex-direction:column; gap:8px; padding-top:14px; border-top:1px solid var(--border)}
.side-signout{margin:0}
.side-signout button{width:100%; text-align:left; background:transparent; border:1px solid var(--border); color:var(--muted); border-radius:9px; padding:9px 11px; font:inherit; font-size:.9rem; cursor:pointer}
.side-signout button:hover{border-color:var(--accent); color:var(--text)}
.sidebar .theme-flip{justify-content:flex-start; width:100%}
.tag{font-size:.64rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:2px 7px; border-radius:999px; border:1px solid var(--border)}
.tag-free{color:var(--accent); border-color:var(--accent)}
.tag-premium{color:#f5c451; border-color:#6f5a1e}
.appwrap{display:flex; flex-direction:column; min-width:0}
.apptop{display:flex; align-items:center; justify-content:space-between; padding:16px 28px; border-bottom:1px solid var(--border)}
.apptop .ptitle{font-size:1.15rem; margin:0}
.apptop .bal{color:var(--accent); font-weight:700; font-family:ui-monospace,monospace; font-size:.92rem}
/* live scan ticker (free-tier token bucket + credit balance) */
.ticker{display:flex; align-items:center; gap:14px; font-size:.86rem}
.tk-free{display:flex; align-items:center; gap:8px; color:var(--muted)}
.tk-ico{color:var(--accent)}
.tk-cnt b{color:var(--text); font-variant-numeric:tabular-nums}
.tk-bar{display:inline-block; width:64px; height:7px; border-radius:99px; background:var(--border); overflow:hidden; vertical-align:middle}
.tk-bar>i{display:block; height:100%; width:100%; background:var(--accent); border-radius:99px; transition:width .4s ease}
.tk-bar>i.warn{background:#f5a623}
.tk-bar>i.danger{background:#e5484d}
.tk-next{color:var(--muted); font-size:.74rem; min-width:58px}
.tk-bal{color:var(--accent); font-weight:700; font-family:ui-monospace,monospace; padding-left:14px; border-left:1px solid var(--border)}
@media (max-width:640px){.tk-next{display:none} .tk-bar{width:42px} .ticker{gap:9px}}
/* ── wadmin operator console ──────────────────────────────────────────── */
.tiles{display:flex; flex-wrap:wrap; gap:14px; margin:4px 0 22px}
.tile{flex:1 1 160px; background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:16px 18px}
.tile .n{font-size:1.7rem; font-weight:800; line-height:1}
.tile .l{color:var(--muted); font-size:.82rem; margin-top:4px}
.cols{display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:8px}
@media (max-width:760px){.cols{grid-template-columns:1fr}}
.inline{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 14px}
.inline input,.inline select,.filterbar input,.filterbar select,.formgrid input{padding:8px 10px; border-radius:9px; border:1px solid var(--border); background:var(--panel); color:var(--text); font-size:.88rem}
.inline label,.formgrid label{display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:.82rem}
.filterbar{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px}
.formgrid{display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding:12px 0 4px}
.newacct{margin:0 0 16px; border:1px solid var(--border); border-radius:12px; padding:10px 14px; background:var(--panel)}
.newacct summary{cursor:pointer; color:var(--accent); font-weight:600}
.rowacts{display:flex; gap:6px; flex-wrap:wrap}
.rowacts form{display:inline}
.btn.sm{padding:5px 10px; font-size:.78rem}
.btn.danger{border-color:#e5484d; color:#e5484d}
.btn.danger:hover{background:#e5484d; color:#fff; border-color:#e5484d}
.trunc{max-width:340px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.st-paused{background:rgba(245,166,35,.16); color:#f5a623}
.st-closed,.st-revoked{background:rgba(229,72,77,.15); color:#e5484d}
/* scan result: redirect/TDS chain + cloaking flags */
.chain{margin-top:14px; border:1px solid var(--border); border-radius:12px; padding:12px 14px; background:var(--panel)}
.chl{font-size:.74rem; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin-bottom:8px}
.hop{display:flex; align-items:center; gap:9px; padding:3px 0; font-size:.84rem}
.hs{display:inline-block; min-width:36px; text-align:center; padding:2px 6px; border-radius:6px; font-weight:700; font-size:.74rem; font-family:ui-monospace,monospace}
.hs.ok{background:rgba(61,220,151,.16); color:var(--accent)}
.hs.warn{background:rgba(245,166,35,.16); color:#f5a623}
.hs.bad{background:rgba(229,72,77,.16); color:#e5484d}
.flag{margin-top:10px; border-left:3px solid #f5a623; background:rgba(245,166,35,.08); padding:9px 12px; border-radius:0 8px 8px 0; font-size:.86rem; line-height:1.5}
/* multi-egress tool */
.seg.toggle{cursor:pointer}
.seg.toggle input{margin-right:6px; vertical-align:middle}
.mout{margin-top:18px}
.mhead{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px}
.mhead .mono{word-break:break-all; font-size:.85rem}
.mdiv{padding:10px 14px; border-radius:10px; background:var(--panel); border:1px solid var(--border); font-size:.88rem; line-height:1.5; margin-bottom:14px; color:var(--muted)}
.mdiv.hit{border-left:3px solid var(--accent); background:rgba(61,220,151,.08); color:var(--text)}
.mgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px}
.mpanel{border:1px solid var(--border); border-radius:14px; padding:12px; background:var(--panel)}
.mph{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.megr{font-weight:700; text-transform:capitalize; font-size:.92rem}
.mshot{width:100%; aspect-ratio:16/10; object-fit:cover; object-position:top left; border-radius:8px; border:1px solid var(--border); background:#fff; display:block}
.mshot.blank{display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:.82rem; background:var(--bg)}
.mmeta{color:var(--muted); font-size:.78rem; margin:8px 0; font-variant-numeric:tabular-nums}
.mchain{font-size:.8rem}
.mchain .chl{margin:6px 0}
.mchain .hop{font-size:.78rem}
.mchain .trunc{max-width:200px}
.appbody{display:block; padding:24px 28px; max-width:820px; width:100%}  /* display:block defeats the global main{justify-content:center} so app/admin content top-aligns */
.appbody a{color:var(--link); text-decoration:none}
.appbody a:hover{text-decoration:underline}
.toolintro{color:var(--muted); margin:0 0 16px; font-size:.95rem}
.toolintro a{color:var(--link)}
.premiumpane{background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:30px; max-width:620px}
.premiumpane h2{margin:12px 0 10px; font-size:1.3rem}
.premiumpane p{color:var(--muted); line-height:1.6; margin:0 0 12px}
/* ── dedicated marketing pages ── */
.page{max-width:860px; margin:0 auto; padding:8px 0 56px}
.page h1{font-size:clamp(1.7rem,4vw,2.3rem); margin:0 0 12px; letter-spacing:-.02em}
.page>.lead{text-align:left; max-width:none; margin:0 0 28px}
.page h2{font-size:1.2rem; margin:28px 0 10px}
.page .prose{max-width:none}
.morelink{margin-top:18px}
.morelink a{color:var(--accent); font-weight:600; text-decoration:none}
.pagecta{margin-top:34px; display:flex; gap:12px; flex-wrap:wrap}
.code{background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:16px 18px; overflow-x:auto; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.85rem; line-height:1.55; color:var(--text); margin:0 0 8px; white-space:pre}

/* ── hero polish (overrides earlier .hero rules; appears last = wins) ── */
.hero{position:relative; max-width:640px; padding:52px 0 58px}
.hero::before{content:''; position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  width:560px; height:560px; max-width:94vw; border-radius:50%; z-index:0; pointer-events:none;
  background:radial-gradient(circle, rgba(61,220,151,.13), transparent 60%)}
.hero>*{position:relative; z-index:1}
.hero .mark{width:clamp(188px,38vw,244px); margin:0 auto 6px; filter:drop-shadow(0 14px 46px rgba(61,220,151,.22))}
.hero .headline{font-size:clamp(1.95rem,5.2vw,2.9rem); line-height:1.07; letter-spacing:-.025em; font-weight:800; margin:.4rem 0 .6rem}
.hero .sub{color:var(--muted); max-width:528px; margin:.5rem auto 0; font-size:1.08rem; line-height:1.6}
.hero .sub b{color:var(--text); font-weight:600}
.cta{margin:30px 0 10px}
.hero .prompt{display:inline-block; margin-top:24px; background:var(--panel); border:1px solid var(--border); border-radius:9px; padding:8px 16px; font-size:.85rem; color:var(--muted)}
.hero .prompt b{color:var(--accent)}

/* ── waitlist ── */
.ok{background:rgba(61,220,151,.12); color:var(--accent); border:1px solid rgba(61,220,151,.35); padding:11px 14px; border-radius:10px; font-size:.9rem; margin:4px 0}
.chk{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.85rem; margin-top:10px; cursor:pointer}
.chk input{accent-color:var(--accent); width:auto}
.signin form input + input{margin-top:10px}
/* consolidated closing CTA (waitlist) */
.closer{max-width:620px; margin:6px auto 64px; text-align:center}
.closer h2{font-size:clamp(1.5rem,4vw,2.05rem); margin:0 0 12px; letter-spacing:-.02em}
.closer p{color:var(--muted); line-height:1.6; margin:0 auto 22px; max-width:560px}
.waitform{max-width:500px; margin:0 auto}
.wf-row{display:flex; gap:10px}
.wf-row input{flex:1; padding:13px 14px; border-radius:10px; border:1px solid var(--border); background:var(--panel); color:var(--text); font-size:.95rem}
.wf-row input:focus{outline:2px solid var(--accent); outline-offset:1px}
.wf-row .btn{white-space:nowrap}
.closer .chk{justify-content:center; margin-top:12px}
.closer .ok,.closer .err{max-width:500px; margin:0 auto 4px}
@media (max-width:540px){.wf-row{flex-direction:column}}
@media (max-width:760px){
  body.app{grid-template-columns:1fr}
  .sidebar{position:static; height:auto; flex-direction:row; flex-wrap:wrap; align-items:center; border-right:0; border-bottom:1px solid var(--border)}
  .side-brand{padding:4px 8px}
  .side-brand img{height:34px}
  .tools{flex-direction:row; flex-wrap:wrap; flex:1}
  .navlabel{display:none}
  .side-foot{margin:0; border-top:0; flex-direction:row; padding-top:0; flex-wrap:wrap}
  .side-signout button{width:auto}
  .appbody,.apptop{padding-left:18px; padding-right:18px}
}

/* ── BYO (bring-your-own egress) config + status ── */
.byo-flash{background:var(--panel); border:1px solid var(--accent); border-radius:10px; padding:10px 14px; margin:0 0 14px; font-size:.9rem}
.byo-reveal{background:var(--panel); border:1px solid #e6a700; border-radius:14px; padding:16px 18px; margin:0 0 16px}
.byo-reveal-h{color:#e6a700; font-weight:600; margin-bottom:8px}
.byo-cmd{display:flex; gap:8px; align-items:center; background:var(--bg); border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin:8px 0; overflow:auto}
.byo-cmd code{font-size:.82rem; white-space:nowrap}
.byo-card{margin-top:4px}
.byo-status{display:flex; align-items:center; gap:10px; margin-bottom:12px}
.byo-dot{width:11px; height:11px; border-radius:50%; background:var(--muted); flex:none; box-shadow:0 0 0 3px rgba(127,127,127,.15)}
.byo-dot.online{background:#3ad07a; box-shadow:0 0 0 3px rgba(58,208,122,.18)}
.byo-dot.off{background:#e5484d; box-shadow:0 0 0 3px rgba(229,72,77,.18)}
.byo-dot.disabled{background:#e6a700; box-shadow:0 0 0 3px rgba(230,167,0,.18)}
.byo-state{font-weight:600}
.byo-form{display:flex; gap:10px; margin-top:10px}
.byo-form input{flex:1; padding:11px 12px; border-radius:10px; border:1px solid var(--border); background:var(--bg); color:var(--text)}
.byo-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.byo-actions form{display:inline}
.byo-overlay{position:fixed; inset:0; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; z-index:50; padding:20px}
.byo-overlay[hidden]{display:none}
.byo-dialog{background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:22px; max-width:460px; width:100%; box-shadow:var(--shadow)}
.byo-dialog h3{margin:0 0 10px}
.byo-dialog p{color:var(--muted); font-size:.92rem; margin:0 0 12px}
.byo-pre{background:var(--bg); border:1px solid var(--border); border-radius:10px; padding:12px; font-size:.82rem; overflow:auto; margin:0 0 14px; white-space:pre}
.byo-confirm{display:flex; gap:8px; align-items:center; font-size:.9rem; margin-bottom:14px; cursor:pointer}
.byo-dialog-foot{display:flex; gap:10px; justify-content:flex-end; align-items:center}
.byo-dialog-foot form{display:inline}
.small{font-size:.82rem}

/* ── branded error pages (404 / 500) ── */
.errpage{text-align:center; padding:48px 0 40px}
.errpage .errcode{font-size:5.5rem; line-height:1; font-weight:800; letter-spacing:-.03em; color:var(--accent); margin-bottom:6px}
.errpage h1{margin:0 0 8px}
.errpage .lead{color:var(--muted); max-width:36rem; margin:0 auto 22px}
.errpage .pagecta{display:flex; gap:10px; justify-content:center}

/* ── legal pages + contact form + footer links ── */
.legal{max-width:52rem}
.legal h2{font-size:1.15rem; margin:26px 0 8px}
.legal ul{padding-left:20px; margin:8px 0}
.legal li{margin:5px 0; color:var(--text)}
.legal p{margin:10px 0}
.footlinks{display:flex; gap:16px; font-size:.85rem}
.footlinks a{color:var(--muted); text-decoration:none}
.footlinks a:hover{color:var(--accent)}
.contactpage{max-width:42rem}
.contactform{margin-top:14px}
.contactform .hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
.contactform .fld{display:block; margin:0 0 14px; font-size:.85rem; color:var(--muted)}
.contactform .fld input,.contactform .fld textarea{display:block; width:100%; margin-top:5px; padding:11px 12px; border-radius:10px; border:1px solid var(--border); background:var(--bg); color:var(--text); font-size:.95rem; font-family:inherit}
.contactform .fld input:focus,.contactform .fld textarea:focus{outline:2px solid var(--accent); outline-offset:1px}

/* ── auth (login / signup / reset) ── */
.authform input{display:block; width:100%; margin:0 0 10px; padding:11px 12px; border-radius:10px; border:1px solid var(--border); background:var(--bg); color:var(--text); font-size:.95rem; font-family:inherit}
.authform input:focus{outline:2px solid var(--accent); outline-offset:1px}
.authbtn{display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:11px; border:1px solid var(--border); border-radius:10px; background:var(--panel); color:var(--text); text-decoration:none; font-weight:600; margin-bottom:14px}
.authbtn:hover{border-color:var(--accent)}
.authbtn .g{display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:3px; background:#fff; color:#4285f4; font-weight:800; font-family:Arial,Helvetica,sans-serif; font-size:.9rem}
.orline{display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.78rem; margin:4px 0 14px}
.orline:before,.orline:after{content:""; flex:1; height:1px; background:var(--border)}
.authlinks{margin-top:12px}
.authlinks a{color:var(--accent)}
.devkey{margin-top:16px; border-top:1px solid var(--border); padding-top:12px}
.devkey summary{cursor:pointer; color:var(--muted); font-size:.85rem}
.devkey form{margin-top:10px}

/* ── investigation commitment hashes (splash "Why we built it") ── */
.commit{margin-top:18px; padding:16px 18px; background:var(--panel); border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:12px}
.commit-label{font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:12px}
.commit-hash{display:block; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.82rem; color:var(--text); word-break:break-all; line-height:1.7; letter-spacing:.02em}
.commit-hash + .commit-hash{margin-top:4px}
.prose code,.commit-note code{background:var(--bg); border:1px solid var(--border); padding:1px 6px; border-radius:5px; font-size:.9em; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
