/* Rosta home page styles (built from options/options.css, dark.css, demo.css and formal.css). */
/* Home screen options. Uses the tokens and components in /assets/site.css. */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.opt-label{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);margin:0;background:#111;color:#fff;font:600 13px/1 var(--f-body);padding:9px 14px;border-radius:999px;z-index:30;opacity:.88}

/* ---------- A: the board ---------- */
.top-band{background:color-mix(in srgb,var(--band) 92%,transparent);border-bottom-color:var(--band-line)}
.top-band .mark,.top-band .top-nav a{color:var(--on-band)}
.top-band .top-nav a{color:var(--band-muted)}
.top-band .btn-ghost{color:var(--on-band);border-color:color-mix(in srgb,var(--on-band) 35%,transparent)}
.a-hero{background:var(--band);color:var(--on-band);padding:40px 0 56px;overflow:hidden}
@media (min-width:920px){.a-hero{padding:72px 0 88px}}
.a-copy{max-width:760px}
.a-hero h1{color:var(--on-band);font-weight:800;font-size:clamp(48px,12vw,104px);line-height:.94;letter-spacing:-.045em;margin-top:20px}
.a-hero .lede{color:var(--band-muted);max-width:40ch}
.a-hero .btn-ghost{color:var(--on-band);border-color:color-mix(in srgb,var(--on-band) 35%,transparent)}
.a-hero .btn-ghost:hover{background:color-mix(in srgb,var(--on-band) 8%,transparent)}
.a-tag{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--on-band);border:1px solid var(--band-line);padding:6px 12px 6px 10px;border-radius:999px;margin:0}
.a-board{margin:44px 0 0;background:var(--surface);color:var(--text);border-radius:22px;padding:18px 0 0;box-shadow:0 30px 60px -30px rgba(0,0,0,.55)}
.a-board-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 18px 14px;flex-wrap:wrap}
.a-board-head b{display:block;font-family:var(--f-display);font-weight:800;font-size:20px;color:var(--ink);letter-spacing:-.02em;margin-top:2px}
.a-publish{background:var(--band);color:var(--on-band);font-weight:600;font-size:14px;padding:9px 14px;border-radius:999px;white-space:nowrap}
.a-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-top:1px solid var(--line)}
.a-scroll:focus-visible{outline-offset:-3px}
.a-grid{border-collapse:collapse;width:100%;min-width:860px;font-variant-numeric:tabular-nums}
.a-grid th,.a-grid td{padding:6px 5px;text-align:left}
.a-grid thead th{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-top:12px}
.a-grid tbody th{position:sticky;left:0;background:var(--surface);padding-left:18px;min-width:132px;z-index:1}
.a-grid tbody th b{display:block;font-weight:600;color:var(--ink);font-size:14.5px}
.a-grid tbody th small,.c small{display:block;font-size:12px;color:var(--muted);font-weight:500}
.a-grid td:last-child{padding-right:18px}
.c{display:block;background:#E3EEEC;color:var(--ink);border-radius:10px;padding:7px 9px;font-size:13.5px;font-weight:600;line-height:1.25}
.c-off{background:transparent;border:1px dashed var(--line);color:var(--muted);font-weight:500;padding:13px 9px}
.c-leave{background:var(--amber-bg);color:var(--amber-text);padding:13px 9px}
.a-checks{list-style:none;margin:0;padding:14px 18px 18px;display:flex;flex-wrap:wrap;gap:8px 18px;border-top:1px solid var(--line)}
.a-checks li{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--good)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .c:not(.c-off):not(.c-leave){background:#1C3A40;color:#E5EDEB}}

/* ---------- B: phone first ---------- */
.b-hero{padding:48px 0 0;overflow:hidden;background:linear-gradient(var(--bg) 55%,var(--surface) 55%)}
@media (min-width:920px){.b-hero{padding:84px 0 0}}
.b-in{text-align:center;display:flex;flex-direction:column;align-items:center}
.b-hero h1{font-weight:800;font-size:clamp(46px,10.5vw,104px);line-height:.95;letter-spacing:-.045em;margin-top:22px}
.b-hero .lede{margin:20px auto 0;max-width:34ch}
.b-stage{position:relative;width:100%;max-width:980px;margin:52px auto 0;display:flex;justify-content:center;align-items:flex-end;min-height:420px}
.b-desk{display:none}
@media (min-width:820px){
  .b-stage{min-height:520px}
  .b-desk{display:block;position:absolute;left:0;right:150px;bottom:0;background:var(--surface);border-radius:18px 18px 0 0;box-shadow:0 -1px 0 var(--line),0 30px 60px -30px rgba(10,16,18,.35);overflow:hidden;text-align:left}
}
.b-desk-bar{display:flex;gap:6px;padding:12px 14px;border-bottom:1px solid var(--line)}
.b-desk-bar span{width:10px;height:10px;border-radius:50%;background:var(--line)}
.b-desk-body{display:grid;grid-template-columns:150px 1fr;min-height:420px}
.b-side{background:var(--band);color:var(--band-muted);padding:18px 16px;display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.b-side b{font-family:var(--f-display);font-weight:800;font-size:20px;color:var(--on-band);margin-bottom:12px;letter-spacing:-.03em}
.b-side b i{font-style:normal;color:var(--accent)}
.b-side span{padding:7px 10px;border-radius:9px}
.b-side .on{background:color-mix(in srgb,var(--on-band) 12%,transparent);color:var(--on-band)}
.b-main{padding:24px 28px 28px 28px;padding-right:230px}
.b-main-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.b-main-head small{display:block;color:var(--muted);font-size:13px;font-weight:600}
.b-main-head b{font-family:var(--f-display);font-weight:800;font-size:24px;color:var(--ink);letter-spacing:-.02em}
.b-btn{background:var(--accent);color:var(--accent-ink);font-weight:600;font-size:14px;padding:9px 14px;border-radius:999px;white-space:nowrap}
.b-bars{display:flex;align-items:flex-end;gap:12px;height:180px;margin-top:26px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.b-bars div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}
.b-bars span{width:100%;border-radius:8px 8px 4px 4px;background:color-mix(in srgb,var(--good) 80%,var(--surface))}
.b-bars div:nth-child(1) span{height:70%}.b-bars div:nth-child(2) span{height:64%}.b-bars div:nth-child(3) span{height:58%}.b-bars div:nth-child(4) span{height:66%}.b-bars div:nth-child(5) span{height:88%}.b-bars div:nth-child(6) span{height:100%}.b-bars div:nth-child(7) span{height:74%}
.b-bars small{font-size:12px;color:var(--muted);font-weight:600}
.b-flags{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.b-phone{position:relative;z-index:2;width:290px;height:560px;margin-bottom:-140px;border-radius:46px;background:#0B1214;padding:12px;box-shadow:0 40px 80px -30px rgba(10,16,18,.55)}
@media (min-width:820px){.b-phone{margin-left:auto;margin-right:20px}}
.b-notch{position:absolute;top:22px;left:50%;transform:translateX(-50%);width:92px;height:26px;border-radius:20px;background:#0B1214;z-index:2}
.b-screen{height:100%;border-radius:36px;background:var(--bg);overflow:hidden;text-align:left;color:var(--text)}
.b-ph-head{background:var(--band);color:var(--on-band);padding:56px 18px 16px;display:flex;justify-content:space-between;align-items:baseline}
.b-ph-head span{font-family:var(--f-display);font-weight:800;font-size:20px;letter-spacing:-.03em}
.b-ph-head i{font-style:normal;color:var(--accent)}
.b-ph-head small{color:var(--band-muted);font-size:12.5px;font-weight:600}
.b-hello{font-family:var(--f-display);font-weight:800;font-size:22px;color:var(--ink);padding:16px 18px 6px;letter-spacing:-.02em}
.b-shifts{list-style:none;margin:0;padding:0 12px;display:grid;gap:8px}
.b-shifts li{display:flex;gap:12px;align-items:center;background:var(--surface);border-radius:14px;padding:9px 12px}
.b-shifts .d{width:34px;text-align:center;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;line-height:1.1}
.b-shifts .d b{display:block;font-family:var(--f-display);font-size:19px;color:var(--ink);letter-spacing:-.02em}
.b-shifts .t{font-weight:600;font-size:14.5px;color:var(--ink);font-variant-numeric:tabular-nums}
.b-shifts .t small{display:block;font-weight:500;font-size:12px;color:var(--muted)}
.b-shifts .lv{background:var(--amber-bg)}.b-shifts .lv .t,.b-shifts .lv .t small{color:var(--amber-text)}
.b-shifts .off{background:transparent;border:1px dashed var(--line)}.b-shifts .off .t{color:var(--muted);font-weight:500}
.b-note{display:flex;align-items:center;gap:7px;margin:12px;font-size:12.5px;font-weight:600;color:var(--good);background:var(--good-bg);padding:9px 12px;border-radius:12px}

/* ---------- C: the refrain ---------- */
.c-hero{padding:44px 0 64px}
@media (min-width:980px){.c-hero{padding:80px 0 96px}}
.c-in{display:grid;gap:40px;align-items:end}
@media (min-width:980px){.c-in{grid-template-columns:1.25fr .75fr;gap:64px}}
.c-kicker{font-family:var(--f-display);font-weight:800;font-size:20px;color:var(--ink);letter-spacing:-.02em}
.c-kicker i{font-style:normal;color:var(--accent)}
.c-h1{font-weight:800;letter-spacing:-.04em;line-height:1;margin-top:18px}
.c-lead,.c-tail{display:block;font-size:clamp(44px,9vw,92px);line-height:.95}
.c-tail{margin-top:10px}
.c-lines{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:0;font-family:var(--f-body);letter-spacing:0}
.c-lines li{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.c-lines li:last-child{border-bottom:1px solid var(--line)}
.c-lines b{display:block;font-family:var(--f-display);font-weight:800;font-size:clamp(22px,3.4vw,34px);line-height:1.08;letter-spacing:-.025em;color:var(--ink)}
.c-lines small{display:block;font-size:15px;color:var(--muted);font-weight:500;margin-top:3px}
.c-tick{width:34px;height:34px;border-radius:50%;background:var(--good-bg);color:var(--good);display:grid;place-items:center;flex:none}
.c-tick svg{width:16px;height:16px}
.c-right .lede{margin-top:0}
.c-film{display:block;position:relative;margin-top:28px;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);text-decoration:none}
.c-film img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.c-play{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:8px;background:var(--band);color:var(--on-band);font-weight:600;font-size:14px;padding:9px 14px 9px 11px;border-radius:999px}
@media (min-width:920px){
  .a-copy{max-width:none;display:grid;grid-template-columns:1.1fr .9fr;gap:24px 56px;align-items:end}
  .a-copy .a-tag{grid-column:1/-1;justify-self:start}
  .a-copy h1{margin-top:0}
  .a-copy .lede{margin-top:0}
  .a-side{display:block}
}
.c-display{font-family:var(--f-display);color:var(--ink)}
.c-display .c-tail i{font-style:normal;color:var(--accent)}
h1.c-kicker{font-size:20px;line-height:1.2;letter-spacing:-.02em;margin:0}

/* ---------- D: opening time ---------- */
.top-clear{position:absolute;left:0;right:0;background:transparent;border-bottom:0;-webkit-backdrop-filter:none;backdrop-filter:none}
.top-clear .btn-ghost{background:color-mix(in srgb,#fff 55%,transparent);border-color:color-mix(in srgb,var(--ink) 18%,transparent)}
.top-clear .top-nav a{color:#13343B}
.opt-d .top-clear .mark{color:#13343B}
.d-hero{position:relative;padding-bottom:40px}
.d-scene{position:relative;height:clamp(340px,58vh,600px);overflow:hidden}
.d-art{position:absolute;inset:0;width:100%;height:100%}
.d-scene::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 60%,color-mix(in srgb,var(--bg) 65%,transparent) 80%,var(--bg) 97%)}
.d-sign{font-family:var(--f-body);font-weight:700;font-size:17px;letter-spacing:3px;fill:#F7F1E6}
.d-copy{position:relative;margin-top:clamp(-90px,-8vh,-40px);text-align:center;display:flex;flex-direction:column;align-items:center}
.d-hero h1{font-weight:800;font-size:clamp(46px,9.4vw,100px);line-height:.95;letter-spacing:-.045em}
.d-hero .lede{margin:18px auto 0;max-width:36ch;color:var(--text)}
.d-hero .cta{align-items:center;gap:22px}
.d-link{font-weight:600;color:var(--ink);text-decoration:none;font-size:16px;padding:12px 4px}
.d-link:hover{text-decoration:underline;text-underline-offset:4px}
.d-facts{list-style:none;margin:48px 0 0;padding:22px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(2,1fr);gap:20px 0;width:100%;max-width:880px}
@media (min-width:760px){.d-facts{grid-template-columns:repeat(4,1fr)}.d-facts li+li{border-left:1px solid var(--line)}}
.d-facts li{padding:0 14px}
.d-facts b{display:block;font-family:var(--f-display);font-weight:800;font-size:clamp(22px,2.6vw,28px);color:var(--ink);letter-spacing:-.02em;line-height:1.1}
.d-facts small{display:block;color:var(--muted);font-size:14px;margin-top:4px}

.d-statement{background:var(--surface);padding:72px 0 0;overflow:hidden;text-align:center}
.d-statement h2{font-weight:800;font-size:clamp(30px,4.6vw,48px);line-height:1.05;max-width:20ch;margin:0 auto}
.d-phone-wrap{display:flex;justify-content:center;margin-top:44px;height:430px;clip-path:inset(-80px -80px 0 -80px)}
.d-phone-wrap .b-phone{margin:0;flex:none}

.d-features{padding:72px 0 96px}
.d-features h2{font-weight:800;font-size:clamp(28px,4vw,40px);line-height:1.08;max-width:24ch}
.d-cols{list-style:none;margin:36px 0 0;padding:0;display:grid;gap:28px}
@media (min-width:640px){.d-cols{grid-template-columns:repeat(2,1fr);gap:32px 40px}}
@media (min-width:1040px){.d-cols{grid-template-columns:repeat(4,1fr)}}
.d-cols svg{width:26px;height:26px;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.d-cols h3{font-weight:800;font-size:19px;margin-top:14px}
.d-cols p{color:var(--muted);font-size:15.5px;margin-top:6px}
.d-test{margin-top:44px;color:var(--muted);font-size:15px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* Option D, dark theme: white type on deep ink, amber primary accent, mint and jacaranda supporting accents. */
.theme-dark{
  --bg:#0B2227;--surface:#13343B;--soft:#102B31;--ink:#FFFFFF;--text:rgba(255,255,255,.86);--muted:#C3D6D3;--line:rgba(255,255,255,.12);--chip:rgba(255,255,255,.08);
  --band:#071A1E;--on-band:#FFFFFF;--band-muted:#C3D6D3;--band-line:rgba(255,255,255,.1);
  --accent:#E3A23B;--accent-ink:#1F1404;
  --mint:#86D9AE;--lilac:#B9A3E8;
  --good:#86D9AE;--good-bg:rgba(134,217,174,.14);--amber-text:#F2C36B;--amber-bg:rgba(227,162,59,.16);--bad:#F08A7E;--bad-bg:rgba(240,138,126,.14);
  --shadow:0 1px 2px rgba(0,0,0,.3),0 24px 48px -24px rgba(0,0,0,.6);
  color-scheme:dark;background:var(--bg);color:var(--text)
}
.theme-dark h1 i,.theme-dark h2 i{color:var(--accent)}

/* header over the night sky */
.theme-dark .top-clear .mark,.theme-dark .top-clear .top-nav a{color:#fff}
.theme-dark .top-clear .top-nav a{opacity:.8}
.theme-dark .top-clear .top-nav a:hover{opacity:1}
.theme-dark .top-clear .btn-ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.3);color:#fff}
.theme-dark .btn-ghost{color:#fff;border-color:rgba(255,255,255,.3)}
.theme-dark .btn-ghost:hover{background:rgba(255,255,255,.08)}

/* hero */
.theme-dark .d-scene{height:clamp(360px,62vh,640px)}
.theme-dark .d-scene::after{background:linear-gradient(to bottom,transparent 58%,rgba(11,34,39,.7) 80%,var(--bg) 97%)}
.theme-dark .d-sign{fill:#F4E6CC}
.d-eyebrow{font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--mint);margin-bottom:16px}
.theme-dark .d-hero h1{color:#fff}
.theme-dark .d-hero .lede{color:var(--text);max-width:40ch}
.theme-dark .d-link{color:#fff}
.theme-dark .d-facts{border-top-color:var(--line)}
.theme-dark .d-facts li+li{border-left-color:var(--line)}
.theme-dark .d-facts b{color:#fff}

/* lifecycle strip */
.d-life{padding:24px 0 72px}
.d-life-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
@media (min-width:720px){.d-life-list{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1040px){.d-life-list{grid-template-columns:repeat(4,1fr)}}
.d-life-list li{background:var(--surface);border-radius:20px;padding:22px 22px 24px;--c:var(--accent)}
.d-life-list li:nth-child(2){--c:var(--mint)}
.d-life-list li:nth-child(3){--c:var(--lilac)}
.d-life-list li:nth-child(4){--c:#fff}
.d-life-list li::before{content:"";display:block;width:28px;height:4px;border-radius:2px;background:var(--c);margin-bottom:14px}
.d-life-n{font-weight:700;font-size:13px;letter-spacing:.1em;color:var(--c)}
.d-life-list h3{font-weight:800;font-size:26px;margin-top:6px;color:#fff}
.d-life-list p{color:var(--muted);font-size:15.5px;margin-top:6px}

/* modules */
.theme-dark .eyebrow{color:var(--mint)}
.theme-dark .d-features{background:var(--surface);padding:88px 0 96px}
.theme-dark .d-features h2{color:#fff;font-size:clamp(32px,5vw,52px);max-width:18ch;margin-top:10px}
.d-sub{color:var(--muted);font-size:18px;max-width:56ch;margin-top:16px}
.d-sub-c{margin-left:auto;margin-right:auto}
.d-mods{list-style:none;margin:40px 0 0;padding:0;display:grid;gap:12px}
@media (min-width:640px){.d-mods{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1040px){.d-mods{grid-template-columns:repeat(4,1fr)}}
.d-mods .m{background:var(--bg);border-radius:20px;padding:22px 22px 24px;border:1px solid var(--line)}
.d-mods svg{width:28px;height:28px;fill:none;stroke:var(--accent);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.d-mods .m:nth-child(4n+2) svg{stroke:var(--mint)}
.d-mods .m:nth-child(4n+3) svg{stroke:var(--lilac)}
.d-mods .m:nth-child(4n) svg{stroke:#fff}
.d-mods h3{font-weight:800;font-size:20px;margin-top:14px;color:#fff;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.d-mods p{color:var(--muted);font-size:15px;margin-top:8px}
.m-soon{border-style:dashed!important;background:transparent!important}
.m-tag{font-family:var(--f-body);font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--lilac);border:1px solid color-mix(in srgb,var(--lilac) 50%,transparent);border-radius:999px;padding:3px 8px}

/* labour rules */
.d-rules{padding:96px 0;background:radial-gradient(70% 60% at 85% 30%,rgba(227,162,59,.12),transparent 70%),var(--bg)}
.d-rules-in{display:grid;gap:48px;align-items:start}
@media (min-width:980px){.d-rules-in{grid-template-columns:1.15fr .85fr;gap:72px}}
.d-rules h2{font-weight:800;font-size:clamp(32px,4.6vw,48px);line-height:1.04;color:#fff;margin-top:10px;max-width:20ch}
.d-rule-list{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:0}
@media (min-width:640px){.d-rule-list{grid-template-columns:repeat(2,1fr);column-gap:32px}}
.d-rule-list li{display:flex;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.r-tick{width:26px;height:26px;border-radius:50%;background:var(--good-bg);color:var(--mint);display:grid;place-items:center;flex:none;margin-top:2px}
.d-rule-list b{display:block;color:#fff;font-weight:700;font-size:16px}
.d-rule-list small{display:block;color:var(--muted);font-size:14.5px;margin-top:2px}
.d-fine{margin-top:24px;font-size:14px;color:var(--muted);max-width:60ch}
.d-flags{margin:0;background:var(--surface);border-radius:24px;padding:22px 20px 10px;box-shadow:var(--shadow);border:1px solid var(--line)}
@media (min-width:980px){.d-flags{position:sticky;top:96px}}
.d-flags-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:12px}
.d-flags-head b{color:#fff;font-family:var(--f-display);font-weight:800;font-size:20px}
.d-flags ul{list-style:none;margin:0;padding:0}
.d-flags li{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--line)}
.d-flags b{display:block;color:#fff;font-weight:600;font-size:15.5px}
.d-flags small{display:block;color:var(--muted);font-size:13.5px;margin-top:2px}
.f-dot{width:10px;height:10px;border-radius:50%;margin-top:7px;flex:none}
.f-warn .f-dot{background:var(--accent)}.f-bad .f-dot{background:var(--bad)}.f-good .f-dot{background:var(--mint)}

/* phone statement */
.theme-dark .d-statement{background:linear-gradient(var(--surface),#0F2E34)}
.theme-dark .d-statement h2{color:#fff;max-width:22ch}
.theme-dark .b-phone{background:#050D0F;box-shadow:0 40px 80px -30px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.08)}
.theme-dark .b-notch{background:#050D0F}
/* the phone shows the app as it is: light */
.theme-dark .b-screen{--bg:#EDF1EF;--surface:#FFFFFF;--ink:#13343B;--text:#13262B;--muted:#5C6C6E;--line:#D8E0DD;--band:#13343B;--on-band:#F1F5F3;--band-muted:#9FB7B5;--amber-bg:#FBEFD9;--amber-text:#8A5A0F;--good:#256B42;--good-bg:#E1F1E7;--accent:#E3A23B}

/* security band, close and footer */
.theme-dark .security{background:var(--band)}
.theme-dark .fact-ic{background:rgba(255,255,255,.07)}
.theme-dark .close{background:var(--accent);color:var(--accent-ink)}
.theme-dark .close-in h2{color:var(--accent-ink)}
.theme-dark .close-in h2 i{color:#13343B}
.theme-dark .close-in p{color:#3A2808}
.theme-dark .close .btn-primary{background:var(--accent-ink);color:#fff}
.theme-dark .close .btn-primary:hover{background:#000}
.theme-dark .close .btn-ghost{color:var(--accent-ink);border-color:rgba(31,20,4,.35)}
.theme-dark .close .btn-ghost:hover{background:rgba(31,20,4,.06)}
.theme-dark .foot{border-top-color:var(--line);background:var(--band)}
.theme-dark .foot .mark{color:#fff}
.theme-dark .pill-test{background:var(--amber-bg);color:var(--amber-text)}
.theme-dark .note{color:#fff}

/* ---------- Liquid glass: only where colour moves behind it ---------- */
.theme-dark{--glass-bg:linear-gradient(135deg,rgba(255,255,255,.16),rgba(255,255,255,.05) 55%,rgba(255,255,255,.08));--glass-edge:rgba(255,255,255,.22);
  --glass-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 1px 0 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.25),0 12px 32px -12px rgba(0,0,0,.55)}

/* floating glass navigation */
.theme-dark .top-clear{position:fixed;top:0;left:0;right:0;padding:12px max(12px,env(safe-area-inset-left)) 0;z-index:20;pointer-events:none}
.theme-dark .top-clear .top-in{pointer-events:auto;max-width:1080px;height:58px;padding:0 10px 0 18px;border-radius:999px;
  background:var(--glass-bg);-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);
  border:1px solid var(--glass-edge);box-shadow:var(--glass-shadow)}
.theme-dark .top-clear .btn-ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28)}

/* glass "Sign in" pill in the hero */
.theme-dark .d-hero .d-link{padding:0 22px;min-height:48px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;
  background:var(--glass-bg);-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
  border:1px solid var(--glass-edge);box-shadow:var(--glass-shadow)}
.theme-dark .d-hero .d-link:hover{text-decoration:none;background:rgba(255,255,255,.16)}

/* colour fields behind the lifecycle cards */
.d-life{position:relative;isolation:isolate;overflow:hidden}
.d-life::before{content:"";position:absolute;inset:-10% -5%;z-index:-1;filter:blur(40px);opacity:.9;
  background:radial-gradient(28% 55% at 14% 60%,rgba(227,162,59,.55),transparent 70%),
             radial-gradient(26% 55% at 40% 45%,rgba(134,217,174,.42),transparent 70%),
             radial-gradient(26% 55% at 64% 62%,rgba(185,163,232,.5),transparent 70%),
             radial-gradient(24% 50% at 88% 45%,rgba(255,255,255,.18),transparent 70%)}
@media (max-width:1039px){.d-life::before{background:radial-gradient(60% 18% at 20% 12%,rgba(227,162,59,.5),transparent 70%),radial-gradient(60% 18% at 80% 38%,rgba(134,217,174,.4),transparent 70%),radial-gradient(60% 18% at 25% 64%,rgba(185,163,232,.45),transparent 70%),radial-gradient(60% 18% at 75% 88%,rgba(255,255,255,.16),transparent 70%)}}
.d-life-list li{background:var(--glass-bg);-webkit-backdrop-filter:blur(24px) saturate(170%);backdrop-filter:blur(24px) saturate(170%);
  border:1px solid var(--glass-edge);box-shadow:var(--glass-shadow)}

/* glass flags card over the amber glow */
.d-rules{background:radial-gradient(42% 46% at 82% 30%,rgba(227,162,59,.38),transparent 72%),radial-gradient(30% 36% at 95% 70%,rgba(185,163,232,.22),transparent 70%),var(--bg)}
.d-flags{background:var(--glass-bg);-webkit-backdrop-filter:blur(26px) saturate(170%);backdrop-filter:blur(26px) saturate(170%);
  border:1px solid var(--glass-edge);box-shadow:var(--glass-shadow)}

/* fallbacks: no blur support, or the viewer asked for less transparency */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .theme-dark .top-clear .top-in,.theme-dark .d-hero .d-link,.d-life-list li,.d-flags{background:#163A41}
}
@media (prefers-reduced-transparency:reduce){
  .theme-dark .top-clear .top-in,.theme-dark .d-hero .d-link,.d-life-list li,.d-flags{background:#163A41;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* hero and closing buttons: same size side by side, stacked full width on phones */
.theme-dark .cta{display:grid;grid-template-columns:repeat(2,minmax(0,232px));gap:12px;justify-content:center}
.theme-dark .cta > a{justify-content:center;min-height:54px;padding:0 20px;font-size:16.5px;width:100%}
.theme-dark .d-hero .cta .btn-primary{border:1px solid transparent}
@media (max-width:520px){.theme-dark .cta{grid-template-columns:minmax(0,340px);width:100%}}
/* seam at the bottom of the scene, and the glass Sign in matching the primary button height */
.theme-dark .d-scene::after{inset:0 0 -2px 0;background:linear-gradient(to bottom,transparent 58%,rgba(11,34,39,.7) 78%,var(--bg) 92%)}
.theme-dark .d-hero .cta .d-link{min-height:54px}

/* launch film */
.d-film{padding:24px 0 88px}
.theme-dark .d-film .sec-head h2{color:#fff}
.theme-dark .film-frame{background:#EEF2F6;border-radius:24px;box-shadow:0 30px 70px -30px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.1)}

/* Click-through phone demo. The screen uses the app's own light palette. */
.d-try{background:linear-gradient(var(--surface),#0F2E34);padding:88px 0 96px;overflow:hidden}
.d-try-in{display:grid;gap:44px;align-items:center}
@media (min-width:920px){.d-try-in{grid-template-columns:minmax(0,1fr) 310px;gap:72px}}
.d-try h2{font-weight:800;font-size:clamp(30px,4.6vw,48px);line-height:1.05;color:#fff;max-width:18ch;margin-top:10px}
.d-try-jump{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.d-try-jump button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;font:600 15px/1 var(--f-body);color:#fff;cursor:pointer;
  background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.d-try-jump button:hover{background:rgba(255,255,255,.16)}
.d-try-jump svg{width:18px;height:18px;fill:none;stroke:var(--mint);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.dm-phone{position:relative;justify-self:center;width:310px;max-width:100%;height:630px;border-radius:50px;background:#050D0F;padding:12px;
  box-shadow:0 40px 80px -30px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.1)}
.dm-notch{position:absolute;top:22px;left:50%;transform:translateX(-50%);width:96px;height:28px;border-radius:20px;background:#050D0F;z-index:5}
.dm-screen{--bg:#EDF1EF;--surface:#FFFFFF;--ink:#13343B;--text:#13262B;--muted:#56676A;--line:#D8E0DD;--good:#256B42;--good-bg:#E1F1E7;--amber-text:#7E520C;--amber-bg:#FBEFD9;--accent:#E3A23B;--accent-ink:#2B1A02;
  position:relative;height:100%;border-radius:39px;background:var(--bg);overflow:hidden;display:flex;flex-direction:column;color:var(--text);font-family:var(--f-body)}
.dm-head{background:#13343B;color:#F1F5F3;padding:58px 20px 14px;display:flex;justify-content:space-between;align-items:baseline;flex:none}
.dm-head span{font-family:var(--f-display);font-weight:800;font-size:21px;letter-spacing:-.03em}
.dm-head small{color:#B5CCC9;font-size:13px;font-weight:600}
.dm-views{flex:1;min-height:0;position:relative}
.dm-view{position:absolute;inset:0;overflow-y:auto;padding:16px 14px 18px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.dm-view[hidden]{display:none}
.dm-h{font-family:var(--f-display);font-weight:800;font-size:22px;color:var(--ink);letter-spacing:-.02em;margin:0 4px}
.dm-sub{font-size:12.5px;color:var(--muted);margin:2px 4px 12px}
.dm-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.dm-shift,.dm-row{display:flex;gap:12px;align-items:center;width:100%;background:var(--surface);border:0;border-radius:15px;padding:10px 12px;text-align:left;font:inherit;color:inherit}
.dm-shift{cursor:pointer}
.dm-shift:hover{background:#F7FAF9}
.dm-shift:focus-visible,.dm-btn:focus-visible,.dm-tabs button:focus-visible,.dm-seg button:focus-visible,.dm-pill:focus-visible,.dm-link:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.dm-shift .chev{margin-left:auto;color:var(--muted);font-size:20px;line-height:1}
.dm-list .d{width:34px;text-align:center;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;line-height:1.1;flex:none}
.dm-list .d b{display:block;font-family:var(--f-display);font-size:19px;color:var(--ink);letter-spacing:-.02em}
.dm-list .t{font-weight:600;font-size:14.5px;color:var(--ink);font-variant-numeric:tabular-nums;min-width:0}
.dm-list .t small{display:block;font-weight:500;font-size:12px;color:var(--muted)}
.dm-leave .dm-row{background:var(--amber-bg)}.dm-leave .t,.dm-leave .t small{color:var(--amber-text)}
.dm-off .dm-row{background:transparent;border:1px dashed #C9D4D0}.dm-off .t{color:var(--muted);font-weight:500}
.dm-pending .dm-row{border:1px solid #EBD9B4}

.dm-clock{background:var(--surface);border-radius:18px;padding:20px 16px;text-align:center}
.dm-state{display:inline-block;font-size:12.5px;font-weight:700;color:var(--muted);background:#E8EEEC;border-radius:999px;padding:4px 10px}
.dm-state.is-in{color:var(--good);background:var(--good-bg)}
.dm-state.is-break{color:var(--amber-text);background:var(--amber-bg)}
.dm-timer{font-family:var(--f-display);font-weight:800;font-size:48px;letter-spacing:-.04em;color:var(--ink);margin:10px 0 14px;font-variant-numeric:tabular-nums}
.dm-clock-btns{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.dm-btn{min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:600 15px/1 var(--f-body);cursor:pointer}
.dm-btn[hidden]{display:none}
.dm-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.dm-dark{background:#13343B;border-color:#13343B;color:#fff}
.dm-block{width:100%;margin-top:14px}
.dm-note{font-size:12.5px;color:var(--muted);margin:14px 0 0;line-height:1.45}

.dm-bal{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.dm-bal div{background:var(--surface);border-radius:14px;padding:10px 8px;text-align:center}
.dm-bal b{display:block;font-family:var(--f-display);font-weight:800;font-size:22px;color:var(--ink);letter-spacing:-.02em}
.dm-bal small{font-size:11.5px;color:var(--muted);font-weight:600}
.dm-form{background:var(--surface);border-radius:16px;padding:12px;margin-bottom:10px}
.dm-label{font-size:12px;font-weight:700;color:var(--muted);margin:4px 2px 6px}
.dm-seg{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.dm-seg button{flex:1;min-height:38px;border-radius:11px;border:1px solid var(--line);background:#F5F8F7;color:var(--ink);font:600 13.5px/1.2 var(--f-body);cursor:pointer;padding:6px 8px}
.dm-seg button[aria-pressed="true"]{background:#13343B;border-color:#13343B;color:#fff}
.dm-seg-col{flex-direction:column}
.dm-hint{font-size:12.5px;color:var(--amber-text);background:var(--amber-bg);border-radius:10px;padding:8px 10px;margin:6px 0 0}
.dm-hint[hidden]{display:none}
.dm-link{border:0;background:none;padding:0;font:inherit;font-weight:700;color:var(--ink);text-decoration:underline;cursor:pointer}

.dm-doc{justify-content:space-between}
.dm-pill{flex:none;font:700 12.5px/1 var(--f-body);padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:#F5F8F7;color:var(--ink)}
button.dm-pill{cursor:pointer;min-height:34px}
.dm-good{background:var(--good-bg);border-color:transparent;color:var(--good)}
.dm-amber{background:var(--amber-bg);border-color:transparent;color:var(--amber-text)}
.dm-signbox{background:var(--surface);border-radius:16px;padding:12px;margin-top:10px}
.dm-signbox[hidden]{display:none}
.dm-input{width:100%;min-height:44px;border:1px solid var(--line);border-radius:11px;padding:0 12px;font:500 16px var(--f-body);color:var(--ink);background:#F5F8F7;margin-bottom:10px;font-style:italic}

.dm-sheet{position:absolute;inset:0;background:rgba(10,20,22,.38);display:flex;align-items:flex-end;z-index:4}
.dm-sheet[hidden]{display:none}
.dm-sheet-card{background:var(--surface);width:100%;border-radius:24px 24px 0 0;padding:18px 16px 92px;box-shadow:0 -10px 30px rgba(0,0,0,.2)}
.dm-kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:12px 4px 16px;font-size:13.5px}
.dm-kv dt{color:var(--muted);font-weight:600}
.dm-kv dd{margin:0;color:var(--ink);font-weight:600}

.dm-toast{position:absolute;left:14px;right:14px;bottom:88px;background:#13343B;color:#fff;font-size:13px;font-weight:600;line-height:1.35;padding:11px 14px;border-radius:14px;
  opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none;z-index:6}
.dm-toast.on{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.dm-toast{transition:none}}

.dm-tabs{flex:none;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.92);border-top:1px solid var(--line);padding:6px 6px 18px;z-index:5}
.dm-tabs button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;font:600 11px/1 var(--f-body);color:var(--muted);cursor:pointer;border-radius:12px}
.dm-tabs svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dm-tabs button[aria-current="page"]{color:#13343B}
.dm-tabs button[aria-current="page"] svg{stroke:#13343B}

/* Formal pass (Ro-style): no liquid glass, neutral charcoal and white instead of teal, mint and amber,
   Inter Tight headings and Inter text at calmer weights. Loaded last, so it overrides dark.css and demo.css. */
.theme-dark{
  --f-display:"Inter Tight","Inter",ui-sans-serif,system-ui,-apple-system,sans-serif;
  --f-body:"Inter",ui-sans-serif,system-ui,-apple-system,sans-serif;
  --bg:#0E1113;--surface:#161A1D;--soft:#121518;--ink:#FFFFFF;--text:rgba(255,255,255,.84);--muted:#A3A9AE;--line:rgba(255,255,255,.1);--chip:rgba(255,255,255,.07);
  --band:#0A0C0E;--on-band:#FFFFFF;--band-muted:#A3A9AE;--band-line:rgba(255,255,255,.09);
  --accent:#FFFFFF;--accent-ink:#0E1113;--mint:#C3C8CC;--lilac:#8E969D;
  --good:#C3C8CC;--good-bg:rgba(255,255,255,.08);--amber-text:#D9D4CB;--amber-bg:rgba(255,255,255,.08);--bad:#E5484D;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 20px 40px -24px rgba(0,0,0,.6);
  font-family:var(--f-body);font-size:16.5px;letter-spacing:-.005em
}
/* type: calmer weights, tighter tracking */
.theme-dark h1,.theme-dark h2{font-family:var(--f-display);font-weight:500;letter-spacing:-.03em}
.theme-dark h3,.theme-dark .d-facts b,.theme-dark .d-flags-head b,.theme-dark .d-life-list h3,.theme-dark .d-mods h3,.theme-dark .facts h3{font-family:var(--f-display);font-weight:600;letter-spacing:-.015em}
.theme-dark .d-hero h1{font-size:clamp(46px,8.6vw,92px);line-height:1;letter-spacing:-.04em}
.theme-dark .close-in h2{font-weight:500;letter-spacing:-.035em}
.theme-dark .mark,.theme-dark .dm-head span{font-family:"Bricolage Grotesque",var(--f-display);font-weight:800}
.theme-dark .eyebrow,.d-eyebrow{color:#9DA4AA;letter-spacing:.1em;font-weight:600}
.theme-dark .btn{font-family:var(--f-body);font-weight:500}

/* buttons: white on dark, black on light, no tinted fills */
.theme-dark .btn-primary{background:#FFFFFF;color:#0E1113}
.theme-dark .btn-primary:hover{background:#E6E8EA}
.theme-dark .btn-ghost,.theme-dark .d-hero .d-link{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.32);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.theme-dark .btn-ghost:hover,.theme-dark .d-hero .d-link:hover{background:rgba(255,255,255,.06)}

/* no liquid glass: solid navigation, cards and panels */
.theme-dark .top-clear .top-in{background:#15191C;border:1px solid rgba(255,255,255,.1);box-shadow:0 10px 30px -18px rgba(0,0,0,.8);-webkit-backdrop-filter:none;backdrop-filter:none}
.theme-dark .top-clear .btn-ghost{background:transparent;border-color:rgba(255,255,255,.28)}
.d-life::before{display:none}
.d-life-list li{background:var(--surface);border:1px solid var(--line);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;--c:#FFFFFF}
.d-life-list li::before{opacity:.5}
.d-life-n{color:#9DA4AA}
.d-flags{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);-webkit-backdrop-filter:none;backdrop-filter:none}
.d-rules{background:var(--bg)}
.d-try-jump button{background:transparent;border:1px solid rgba(255,255,255,.24);box-shadow:none}
.d-try-jump button:hover{background:rgba(255,255,255,.06)}
.d-try-jump svg{stroke:#C3C8CC}

/* neutral backgrounds in place of teal */
.theme-dark .d-scene::after{background:linear-gradient(to bottom,transparent 58%,rgba(14,17,19,.7) 78%,var(--bg) 92%)}
.theme-dark .d-sign{fill:#E4E7E9}
.theme-dark .d-features{background:var(--surface)}
.d-mods .m{background:var(--bg)}
.d-mods svg,.d-mods .m:nth-child(n) svg{stroke:#D5D9DC}
.m-tag{color:#C3C8CC;border-color:rgba(255,255,255,.24)}
.r-tick{background:rgba(255,255,255,.08);color:#FFFFFF}
.f-warn .f-dot{background:#B9BFC4}.f-good .f-dot{background:#5E676E}.f-bad .f-dot{background:var(--bad)}
.d-try{background:linear-gradient(var(--surface),var(--bg))}
.theme-dark .security{background:var(--band)}
.theme-dark .fact-ic{background:rgba(255,255,255,.06);color:#FFFFFF}
.theme-dark .note{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.14)}

/* closing band: light, black button, like the reference */
.theme-dark .close{background:#F4F4F2;color:#0E1113}
.theme-dark .close-in h2{color:#0E1113}
.theme-dark .close-in p{color:#5A6166}
.theme-dark .close .btn-primary{background:#0E1113;color:#fff}
.theme-dark .close .btn-primary:hover{background:#000}
.theme-dark .close .btn-ghost{color:#0E1113;border-color:rgba(14,17,19,.3)}
.theme-dark .close .btn-ghost:hover{background:rgba(14,17,19,.05)}
.theme-dark .pill-test{background:rgba(255,255,255,.08);color:#D9D4CB}

