/* Dark mode for the public site and client portal: the studio's dark colours.
   Turned on by html[data-theme="dark"] (the moon button in the header, see /assets/js/theme.js). Loaded last. */

/* the moon/sun button (same as the studio) */
.theme-btn{width:44px;height:44px;flex:none;border-radius:999px;border:1px solid var(--line,#DCDFE6);background:var(--surface,#FFFFFF);color:var(--ink,#0C0D11);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:border-color .15s,background .2s,color .2s}
@media (hover:hover) and (pointer:fine){.theme-btn:hover{border-color:var(--ink,#0C0D11)}}
.theme-btn svg{width:19px;height:19px}
.theme-btn .ic-sun{display:none}
html[data-theme="dark"] .theme-btn .ic-sun{display:block}html[data-theme="dark"] .theme-btn .ic-moon{display:none}
.theme-btn:focus-visible{outline:2px solid var(--ink,#0C0D11);outline-offset:2px}
/* public header: brand on the left, then menu, theme button and (on phones) the menu button */
.oxh{justify-content:flex-start}
.oxh > .oxh-brand{margin-right:auto}
.oxh > .oxh-nav{order:1}.oxh > .theme-btn{order:2}.oxh > .mm-burger{order:3}
@media (max-width:760px){.oxh > .theme-btn{width:46px;height:46px}}

html[data-theme="dark"]{color-scheme:dark;
  --sky:#0B0C10; --cream:#0B0C10; --cloud:#15171D; --haze:#262A33; --night:#F2F3F6; --mist:#9AA0AE; --oxygen:#9DB0FF; --sun:#F59A2E; --dawn:#1D2452; --horizon:#2E2119;
  --on-ink:#0C0D11; --frost:rgba(11,12,16,.74); --frost-card:rgba(21,23,29,.8);
  --bg:#0B0C10; --surface:#15171D; --ink:#F2F3F6; --ink-2:#DCE0E8; --body:#C3C8D2; --body-2:#AEB3BF; --muted:#9AA0AE; --muted-2:#8A90A0;
  --line:#262A33; --line-2:#363B47; --line-3:#22252D; --soft:#1D2028; --soft-2:#252932; --field:#0F1116; --link-hover:#A9B6FF;
  --ok:#7DE3A6; --ok-soft:#123321; --warn:#FFC777; --warn-soft:#3A2A10; --bad:#FF8F85; --bad-soft:#3B1614; --info:#B4C2FF; --info-soft:#1D2452;
  --accent:#9DB0FF; --apricot:#3A4A78; --sage:#4A5566; --olive:#9AA0AE; --forest:#9DB0FF;
  --mm-bg:#0B0C10; --mm-surface:#15171D; --mm-ink:#F2F3F6; --mm-line:#262A33; --mm-muted:#9AA0AE;
  background:#0B0C10!important}
html[data-theme="dark"] body{background:#0B0C10;color:var(--ink)}
/* no cream sky at night: a plain dark page with a faint glow at the top */
html[data-theme="dark"]::before,html[data-theme="dark"] .sky{background:radial-gradient(120% 60% at 50% -10%,rgba(91,123,255,.10),transparent 60%),#0B0C10!important}
/* links: kept low-specificity (:where) so button links keep their own colours */
:where(html[data-theme="dark"]) a{color:var(--ink)}
@media (hover:hover) and (pointer:fine){:where(html[data-theme="dark"]) a:hover{color:var(--link-hover)}}
html[data-theme="dark"] .btn-white,html[data-theme="dark"] .btn-white:hover{color:#0C0D11}
/* shared header and menu (menu.css uses fixed light colours) */
html[data-theme="dark"] .oxh-brand,html[data-theme="dark"] .oxh-nav a{color:var(--ink)}
html[data-theme="dark"] .oxh-nav a{color:var(--muted)}
html[data-theme="dark"] .oxh-nav a[aria-current="page"]{color:var(--ink)}
@media (hover:hover) and (pointer:fine){html[data-theme="dark"] .oxh-brand:hover{color:var(--ink)}html[data-theme="dark"] .oxh-nav a:hover{color:var(--ink)}}
html[data-theme="dark"] .oxh-nav .oxh-cta{background:var(--ink);color:var(--on-ink)}
html[data-theme="dark"] .mm-burger{border-color:var(--line);color:var(--ink);box-shadow:none}
/* home page */
html[data-theme="dark"] .cloud{background:radial-gradient(closest-side,rgba(91,123,255,.07),rgba(91,123,255,0))}
html[data-theme="dark"] [style*="--tone-ink"]{--tone-ink:#9DB0FF}
html[data-theme="dark"] .p5-win{border-color:var(--line);box-shadow:0 30px 60px -30px rgba(0,0,0,.7)}
html[data-theme="dark"] .p5-win video{filter:brightness(.9)}
html[data-theme="dark"] .hero12-glow{opacity:.35}
/* login / sign up */
html[data-theme="dark"] .side{background:#15171D;border:1px solid var(--line)}
html[data-theme="dark"] .side .perks .ic{background:#1F222B}
html[data-theme="dark"] .steps li.on .n{color:#0C0D11}
html[data-theme="dark"] .box .lede,html[data-theme="dark"] .switch{color:var(--muted)}
/* Sip n Dip quote page */
html[data-theme="dark"] .btn.dark{color:#0C0D11}
html[data-theme="dark"] .btn.dark:hover{background:#DCE0E8;color:#0C0D11}
html[data-theme="dark"] .pkg.best{background:#15171D;border-color:#363B47}
html[data-theme="dark"] .ho-price{color:#9DB0FF!important}
/* portal header on phones: room for the theme button */
.p-brand b{white-space:nowrap}
@media (max-width:440px){.p-brand .tag{display:none}}
/* dark pill buttons on public pages (site.css gives them white text) */
html[data-theme="dark"] .btn-dark,html[data-theme="dark"] .btn-dark:hover{color:var(--on-ink,#0C0D11)}
