/* Your Bad Days Plan — styles. Colours are tokens on :root; dark mode redefines the tokens only. */
/* Fonts are hosted here, not on Google, so visitors' browsers never contact a third party. (SIL Open Font Licence, see fonts/) */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-display:swap;font-weight:200 800;src:url(fonts/bricolage-grotesque.woff2) format("woff2-variations"),url(fonts/bricolage-grotesque.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-display:swap;font-weight:400;src:url(fonts/atkinson-hyperlegible-400.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-display:swap;font-weight:700;src:url(fonts/atkinson-hyperlegible-700.woff2) format("woff2")}
:root{
  --bg:#eef2f1; --surface:#ffffff; --surface-2:#e3eae8;
  --ink:#16252b; --ink-2:#4a5d63; --line:#c9d5d2;
  --teal:#1f6f63; --teal-ink:#ffffff; --teal-soft:#d4ebe5;
  --floor:#f0cf4a; --floor-ink:#2a2305;
  --warn:#9a4a1c;
  --display:"Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body:"Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --bg:#0f1a1d; --surface:#172529; --surface-2:#1f3035;
    --ink:#e7efed; --ink-2:#a4b6b3; --line:#2f4449;
    --teal:#5cc2ae; --teal-ink:#0b1a17; --teal-soft:#1d3a35;
    --floor:#e6c443; --floor-ink:#221c03; --warn:#e79a6d;
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0f1a1d; --surface:#172529; --surface-2:#1f3035;
  --ink:#e7efed; --ink-2:#a4b6b3; --line:#2f4449;
  --teal:#5cc2ae; --teal-ink:#0b1a17; --teal-soft:#1d3a35;
  --floor:#e6c443; --floor-ink:#221c03; --warn:#e79a6d;
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.55;padding-inline:16px;padding-block:24px 64px}
.wrap{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:24px}
h1,h2,h3{font-family:var(--display);text-wrap:balance;margin:0;line-height:1.1}
h1{font-size:clamp(2.2rem,7vw,3.4rem);font-weight:800;letter-spacing:-.02em}
h2{font-size:clamp(1.5rem,4.5vw,2rem);font-weight:700;letter-spacing:-.01em}
h3{font-size:1.15rem;font-weight:700}
p{margin:0;max-width:62ch}
.muted{color:var(--ink-2)}
.eyebrow{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);font-weight:700}

/* bar/floor motif */
.levels{position:relative;height:74px;border-radius:14px;background:var(--surface-2);overflow:hidden}
.levels .bar,.levels .flr{position:absolute;left:14px;right:14px;height:0;border-top:3px solid}
.levels .bar{top:22px;border-color:var(--teal);border-top-style:dashed}
.levels .flr{bottom:16px;border-color:var(--floor);border-top-width:6px}
.levels span{position:absolute;right:18px;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
.levels .lb{top:4px;color:var(--teal)}
.levels .lf{bottom:24px;color:var(--ink-2)}
@media (prefers-reduced-motion:no-preference){
  .levels.merge .bar{animation:drop 2.4s ease-in-out infinite alternate}
}
@keyframes drop{to{top:52px}}

.btn{font:inherit;font-weight:700;border:0;border-radius:12px;padding:14px 22px;cursor:pointer;background:var(--teal);color:var(--teal-ink);font-size:1rem}
.btn.ghost{background:transparent;color:var(--ink);border:2px solid var(--line)}
.btn.small{padding:8px 14px;font-size:.9rem;border-radius:10px}
.btn:focus-visible,.chip:focus-visible,input:focus-visible,textarea:focus-visible,[contenteditable]:focus-visible{outline:3px solid var(--floor);outline-offset:2px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}

.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:16px}
.inshort{background:var(--teal-soft);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.inshort b{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--teal)}

/* question screens */
.progress{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.progress i{display:block;height:100%;background:var(--teal);width:0;transition:width .3s}
.qmeta{display:flex;justify-content:space-between;font-size:.9rem;color:var(--ink-2)}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{font:inherit;font-size:.98rem;padding:10px 16px;border-radius:999px;border:2px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;text-align:left}
.chip[aria-pressed="true"]{background:var(--teal);border-color:var(--teal);color:var(--teal-ink)}
input[type=text],input[type=email],textarea{font:inherit;width:100%;padding:12px 14px;border-radius:12px;border:2px solid var(--line);background:var(--surface);color:var(--ink)}
textarea{min-height:88px;resize:vertical}
.nav{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.skip{background:none;border:0;color:var(--ink-2);font:inherit;text-decoration:underline;cursor:pointer;padding:8px}
.hint{font-size:.92rem;color:var(--ink-2)}

/* results */
.emailbox{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:2px solid var(--teal);border-radius:18px;padding:20px}
.emailbox .row input{flex:1 1 220px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:.95rem}
.check input{width:20px;height:20px;margin-top:3px;flex:none}
.sent{color:var(--teal);font-weight:700}
.floors{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.floor{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:8px;border-bottom:6px solid var(--floor)}
.floor .area{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--ink-2);display:flex;justify-content:space-between;gap:8px}
.floor .act{font-family:var(--display);font-weight:700;font-size:1.12rem;line-height:1.25;border-radius:6px;padding:2px 4px;margin:-2px -4px}
.floor .act:hover{background:var(--surface-2)}
.floor .why{font-size:.92rem;color:var(--ink-2)}
.tag{font-size:.7rem;padding:2px 8px;border-radius:99px;background:var(--floor);color:var(--floor-ink);letter-spacing:.06em}
.tag.lift{background:var(--teal);color:var(--teal-ink)}
ul.clean{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:6px}
.twocol{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:620px){.twocol{grid-template-columns:1fr}}
.col h3{margin-bottom:8px}
.status{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px;vertical-align:middle}
.prompt{background:var(--surface-2);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.prompt p{font-size:.95rem;white-space:pre-wrap}

/* lock-screen card */
.cardwrap{display:flex;gap:24px;flex-wrap:wrap;align-items:center}
.phone{width:230px;max-width:100%;aspect-ratio:9/19;border-radius:34px;background:#12211f;color:#eef6f3;padding:30px 20px;display:flex;flex-direction:column;gap:10px;border:6px solid #2a3b39;flex:none}
.phone .time{font-family:var(--display);font-size:2.6rem;font-weight:700;text-align:center;line-height:1}
.phone .date{text-align:center;font-size:.72rem;opacity:.7;margin-bottom:8px}
.phone .ttl{font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:#f0cf4a;font-weight:700}
.phone .fl{font-size:.74rem;line-height:1.3;border-left:3px solid #f0cf4a;padding-left:8px}
.phone .fl b{display:block;font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;opacity:.7}
.phone .foot{margin-top:auto;font-size:.62rem;opacity:.7;text-align:center}
.cardwrap .txt{flex:1 1 240px;display:flex;flex-direction:column;gap:12px}

.levelup{background:var(--ink);color:var(--bg);border-radius:18px;padding:26px;display:flex;flex-direction:column;gap:14px}
.levelup h2{color:var(--bg)}
.levelup .sub{opacity:.8}
.levelup ul{margin:0;padding-left:1.2em}
.levelup .levels{background:rgba(255,255,255,.08)}
.dl{display:flex;gap:12px;flex-wrap:wrap}
.note{font-size:.85rem;color:var(--ink-2)}
.gen{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding-block:40px}
footer{font-size:.85rem;color:var(--ink-2);display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line);padding-top:16px}

/* errors and small states */
.errorbox{background:var(--surface);border:2px solid var(--warn);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
footer a{color:inherit}


/* business picker */
.search{display:flex;flex-direction:column;gap:14px}
.search .grp{display:flex;flex-direction:column;gap:8px}
.search .grp h4{margin:0;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.search .empty{color:var(--ink-2)}
.picklist{max-height:52vh;overflow-y:auto;display:flex;flex-direction:column;gap:16px;padding-right:4px}

/* prompts that fill gaps in the plan */
.gap{border:2px dashed var(--teal);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;background:var(--surface)}
.gap .lab{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--teal)}
.gap p{font-size:.95rem;white-space:pre-wrap}
.gap details summary{cursor:pointer;color:var(--ink-2);font-size:.9rem}
.tailor{background:var(--teal-soft);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:14px}
.tailor pre{white-space:pre-wrap;font-family:var(--body);font-size:.92rem;margin:0;background:var(--surface);border-radius:12px;padding:14px 16px;max-height:260px;overflow:auto}

/* logo */
.brand{display:block;align-self:flex-start;line-height:0;width:min(260px,72vw)}
.brand img{display:block;width:100%;max-width:none;height:auto}
