/* Site skin: every regular page (settings, plans, My AI, help, legal, checkout, post pages...) wears the same
   visual system as the audio-native screens (app_preview.css): night background, warm ink, glass sheets,
   serif titles, monospace brand, pill buttons, gold for "on", ember for recording, and the floating dock.
   Loaded after hotspoken.css and mobile.css, so it only re-points their tokens and restyles shared parts.
   Members' own My Pages use their own template and never load this file. */
:root{--bg:#050409;--surface:rgba(18,16,24,.62);--ink:#f4efe6;--ink-2:rgba(244,239,230,.62);--line:rgba(255,255,255,.12);
 --dark:#050409;--disc:rgba(255,255,255,.06);--disc-dark:rgba(255,255,255,.1);--tint0:rgba(246,197,107,.08);--tint1:rgba(246,197,107,.14);--tint2:rgba(246,197,107,.3);
 --accent:#f6c56b;--accent-dark:#f39a4c;--on-accent:#1a1208;--link:#f6c56b;--badge-ink:#f6c56b;--err-bg:rgba(255,90,70,.14);--err-ink:#ff8a7a;
 --glass:rgba(18,16,24,.62);--chip:rgba(255,255,255,.08);--gold:#f6c56b;--gold2:#f39a4c;--gold-ink:#f6c56b;--sel-bg:#ffe97a;--sel-ink:#c2003d;--ember:#ff5a46;--rec1:#ff8a5c;--rec2:#e2354a;
 --serif:Georgia,"EB Garamond",serif;--mono:ui-monospace,Menlo,monospace;--navh:62px;--safe:env(safe-area-inset-bottom,0px);--dock:calc(var(--navh) + var(--safe) + 22px);color-scheme:dark}
html,body{background:var(--bg);color:var(--ink)}
body{font-family:"Helvetica Neue",Inter,"HS Noto",system-ui,sans-serif;-webkit-font-smoothing:antialiased;padding-bottom:calc(var(--dock) + 16px)}
h1,h2{font-family:Poppins,Inter,system-ui,sans-serif;font-weight:600;letter-spacing:-.01em}
h3,h4{font-family:Poppins,Inter,system-ui,sans-serif;font-weight:600}
a{color:var(--link)}a:hover{color:var(--ink)}
:focus-visible{outline-color:var(--gold)}
/* header: one quiet line, brand left, account right (the dock does the navigating) */
header.site{position:sticky;top:0;z-index:50;background:rgba(5,4,9,.72);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:none;border-bottom:1px solid var(--line)}
header.site .bar{height:60px}
header.site .logo img{width:30px;height:30px}
header.site .logo .wordmark{color:var(--ink)}
header.site .logo .wm-hot{background:linear-gradient(90deg,var(--flame-1),var(--flame-2),var(--flame-3));-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:800}
header.site nav>a,header.site details>summary{color:var(--ink)}
header.site nav>a.on{color:var(--gold-ink)}
header.site .btn,.btn{border-radius:24px}
header.site details>div,header.site details>ul,header.site details nav,header.site .menu{background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);border:1px solid var(--line);border-radius:22px;z-index:60}
header.site .rec-link{color:var(--ember)}
/* surfaces */
.card,article,.box,.panel,fieldset,details.box,.plan,.sheet,.msg,dialog,table{background:var(--glass);border-color:var(--line)!important;border-radius:22px}
.hero{background:transparent;color:var(--ink)}.hero h2,.hero p{color:var(--ink)}
.msg.warning,.msg.error{background:var(--err-bg);color:var(--err-ink)}
/* controls */
.btn,button:not(.plain):not(.ap-icon):not(.tagchip-x),input[type=submit]{border-radius:24px;border:1px solid var(--line);background:var(--chip);color:var(--ink)}
.btn.primary,button.primary,.btn.imm,input[type=submit].primary{background:linear-gradient(90deg,var(--gold),var(--gold2));color:#1a1208;border:0;font-weight:600}
.btn.danger{background:rgba(255,90,70,.18);color:var(--err-ink)}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{background:rgba(255,255,255,.05);color:var(--ink);border:1px solid var(--line);border-radius:14px}
input::placeholder,textarea::placeholder{color:var(--ink-2)}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--gold)}
.meta,small,.small,.helptext{color:var(--ink-2)}
footer.site{background:transparent;border-top:1px solid var(--line);color:var(--ink-2);font-size:12px}
footer.site a{color:var(--ink-2)}
.speak-fab{display:none}
.app-player{bottom:calc(var(--dock) + 4px);border-radius:24px;inset-inline:12px;background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);border:1px solid var(--line)}
.toasts{bottom:calc(var(--dock) + 12px)}
/* maps keep Leaflet's panes (z 400-1000) inside their own box, so header, menus and sheets stay on top */
#hs-map,.leaflet-container{position:relative;z-index:0;isolation:isolate}
/* the dock (same as the audio screens) */
.ap-dock{position:fixed;left:12px;right:12px;bottom:calc(10px + var(--safe));z-index:30;height:var(--navh);max-width:640px;margin:0 auto;border-radius:31px;background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);border:1px solid var(--line);box-shadow:0 18px 50px rgba(0,0,0,.45)}
.ap-dock ul{list-style:none;margin:0;padding:0 6px;height:100%;display:grid;grid-template-columns:repeat(3,1fr) 70px repeat(3,1fr);align-items:center}
.ap-dock li a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;text-decoration:none;font-size:10px;letter-spacing:.06em;color:var(--ink-2)}
.ap-dock .ico{font-size:18px;line-height:1;height:20px;display:grid;place-items:center}
.ap-dock img{border-radius:50%;width:20px;height:20px}
.ap-dock a[aria-current]{color:var(--ink)}.ap-dock a[aria-current] .ico{color:var(--gold-ink);text-shadow:0 0 14px rgba(246,197,107,.8)}
.ap-dock li a.orb{display:grid;place-items:center;margin:-26px auto 0;width:58px;height:58px;min-height:0}
.ap-dock .rec{width:58px;height:58px;border-radius:50%;display:block;background:radial-gradient(circle at 35% 30%,var(--rec1),var(--rec2));box-shadow:0 0 0 6px rgba(226,53,74,.18),0 0 40px rgba(255,90,70,.5)}
.ap-dock .ap-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
header.site nav>a.desk,header.site nav>.btn.desk,header.site .rec-link{display:none}
.ap-dock-ad{width:min(calc(100% - 24px),320px);margin:12px auto;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--glass);box-shadow:0 10px 30px rgba(0,0,0,.35)}
.ap-dock-ad img{display:block;width:100%;height:auto;max-height:64px;object-fit:contain}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
/* no titles that repeat the nav: the lit dock tab says where you are (still read by screen readers) */
main#main>h1:first-of-type,main#main>:is(div,section,form,header):first-of-type>h1:first-of-type,main#main>header>h1:first-child{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* error pages: a big quiet number, one line, one way back */
.hs-err{text-align:center;padding:12vh 0 4vh}.hs-err-code{font:300 72px/1 var(--mono);color:var(--gold-ink);opacity:.6;margin:0}
.hs-err h1{position:static!important;width:auto!important;height:auto!important;clip:auto!important;font-size:24px;margin:12px 0 24px}
.ap-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
main#main>:is(h1,h2):first-child,main#main>:is(div,section,header,form):first-child>:is(h1,h2):first-child{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
main#main>.studio>:is(h1,h2):first-child{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ap-dock-ad-house a{display:flex;align-items:center;justify-content:center;min-height:52px;font-weight:600;text-decoration:none;color:var(--ink,#fff);background:linear-gradient(90deg,rgba(255,77,109,.18),rgba(255,159,67,.18),rgba(124,92,255,.18))}
.link-fee{display:none;color:var(--hot,#ff4d6d);font-size:.9em}form:has(#id_with_link:checked) .link-fee{display:block}form:has(#id_with_link):not(:has(#id_with_link:checked)) :is(p,.ad-field):has(#id_link_url){display:none}
/* Classic post cards, sweep pass: quiet meta row, secondary actions behind ⋯, notes only when relevant */
.meta:has(>.item-more){display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .4rem}
.item-more{display:inline-block;position:relative;margin-inline-start:auto;border:0;background:none;padding:0}
.item-more>summary{list-style:none;cursor:pointer;min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:50%;font-size:1.2rem;opacity:.7}
.item-more>summary::-webkit-details-marker{display:none}
.item-more[open]>summary{opacity:1;background:rgba(255,255,255,.08)}
.item-more-menu{position:absolute;inset-inline-end:0;z-index:20;min-width:12rem;display:grid;gap:.2rem;padding:.4rem;border-radius:14px;background:#17121c;border:1px solid rgba(255,255,255,.1);box-shadow:0 12px 30px rgba(0,0,0,.5)}
.item-more-menu a,.item-more-menu button{display:block;width:100%;text-align:start;padding:.6rem .7rem;border-radius:10px;color:var(--flame-3,#ffb238);background:none;border:0;min-height:44px;box-sizing:border-box}
.item-more-menu form{display:grid;gap:.2rem;margin:0}
.item-more-menu a:hover,.item-more-menu button:hover{background:rgba(255,255,255,.06)}
a.onchain{display:inline-grid;place-items:center;min-width:1.6rem;height:1.6rem;border-radius:50%;text-decoration:none;background:linear-gradient(135deg,var(--flame-1,#ff3d6e),var(--flame-3,#ffb238));color:#120a0a;font-weight:700}
.r-form .r-note{display:none}.r-form:has(.r-btn.on) .r-note{display:inline}
@media (max-width:700px){footer.site .wrap>p:first-child{display:none}footer.site{padding-block:.5rem;font-size:.8rem}}
/* Less blank space between the site header and the page (it was 24px on phones, 32px on desktop): half. */
header.site+.wrap{padding-top:12px}
@media (min-width:720px){header.site+.wrap{padding-top:16px}}
/* the dark/light switch in the site header (theme.js) */
header.site .hs-theme{flex:none;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--chip);color:var(--ink);display:grid;place-items:center;font-size:15px;line-height:1;cursor:pointer;height:36px;opacity:1}
/* the search magnifier in the site header: the same 36px circle, on the switch's right */
header.site .hs-search{flex:none;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--chip);color:var(--ink);display:grid;place-items:center;font-size:17px;line-height:1;cursor:pointer;text-decoration:none;opacity:1}
/* Immortalize is always one golden infinity icon, no text (Nov 2026). */
.imm-ico{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border-radius:50%!important;border:0!important;background:linear-gradient(90deg,var(--gold),var(--gold2))!important;color:#1a1208!important;font-size:20px;cursor:pointer;text-decoration:none}

/* Dark theme only: specks of dust in the background, like a night sky (Nov 2026). CSS only, painted into the
   body's own background so the dots sit behind all content. The specks drift, each layer in its own direction
   like satellites: one 240s loop, each layer moving a whole number of its own tiles so the loop is seamless
   (layer 1 down-right 1 tile, layer 2 down-left 2 tiles, layer 3 up-right 1 tile, layer 4 up-left 2 tiles).
   Some of them blink, too: two sparse star layers (body::before white, body::after gold), each gently
   pulsing on its own timing (6s / 9s), like real stars. Opacity only, so it is cheap. Light theme is untouched. */
html:not([data-theme=light]) body{background-image:radial-gradient(circle,rgba(255,255,255,.5) 1px,transparent 1.5px),radial-gradient(circle,rgba(246,197,107,.45) 1.3px,transparent 1.8px),radial-gradient(circle,rgba(255,255,255,.28) 1px,transparent 1.5px),radial-gradient(circle,rgba(178,198,255,.38) 1px,transparent 1.5px);background-size:149px 113px,233px 179px,89px 157px,307px 251px;background-position:0 0,53px 31px,29px 71px,101px 139px;animation:hs-dust-drift 240s linear infinite}
@keyframes hs-dust-drift{from{background-position:0 0,53px 31px,29px 71px,101px 139px}to{background-position:149px 113px,-413px 389px,118px -86px,-513px -363px}}
html:not([data-theme=light]) body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(circle,rgba(255,255,255,.55) 1.2px,transparent 1.8px);background-size:211px 173px;background-position:37px 59px;animation:hs-star-blink-a 6s ease-in-out infinite alternate}
html:not([data-theme=light]) body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(circle,rgba(246,197,107,.5) 1.3px,transparent 1.9px);background-size:263px 197px;background-position:101px 43px;animation:hs-star-blink-b 9s ease-in-out infinite alternate}
@keyframes hs-star-blink-a{from{opacity:.15}to{opacity:1}}
@keyframes hs-star-blink-b{from{opacity:.2}to{opacity:1}}
@media (prefers-reduced-motion:reduce){html:not([data-theme=light]) body,html:not([data-theme=light]) body::before,html:not([data-theme=light]) body::after{animation:none}}
/* Light theme only: a golden-hour wash — soft warm light from the top and bottom. No speckles:
   the specks live in the dark theme only (Nov 2026). CSS only, painted into the body's own
   background so it sits behind all content. Dark theme is untouched. */
html[data-theme=light] body{background-image:radial-gradient(ellipse 90% 55% at 18% -6%,rgba(255,157,0,.28),transparent 70%),radial-gradient(ellipse 70% 50% at 88% 4%,rgba(245,45,0,.20),transparent 70%),radial-gradient(ellipse 60% 45% at 55% 110%,rgba(224,0,77,.16),transparent 70%);background-size:auto,auto,auto;background-position:0 0,0 0,0 0}
