/* FrizzDay — a beauty-magazine weather report. Warm blush paper, deep plum ink, one berry accent.
   The score color walks from calm sage (great hair) to berry (full frizz). */
:root{
  --bg:#fbf3ef; --card:#ffffff; --sunk:#f6ebe6; --ink:#2b1d2a; --muted:#7a6874; --line:#eedfd8;
  --berry:#b8336a; --berry-soft:#f8e1ea;
  --l0:#2f8f7a; --l1:#79a85b; --l2:#d99a2b; --l3:#e0663a; --l4:#b8336a;
  --shadow:0 1px 2px rgba(43,29,42,.05),0 10px 30px rgba(43,29,42,.06);
  --f-display:"Instrument Serif",Georgia,"Times New Roman",serif;
  --f-body:"Plus Jakarta Sans","Segoe UI",system-ui,sans-serif; --r:22px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#171016;--card:#221820;--sunk:#1c141b;--ink:#f4eaf0;--muted:#b19fab;--line:#33262f;--berry:#ec6f9f;--berry-soft:#3a1d2a;--l0:#5cc2a8;--l1:#9ccc7b;--l2:#efb64c;--l3:#f28a5c;--l4:#ec6f9f;--shadow:none;color-scheme:dark}}
:root[data-theme="dark"]{--bg:#171016;--card:#221820;--sunk:#1c141b;--ink:#f4eaf0;--muted:#b19fab;--line:#33262f;--berry:#ec6f9f;--berry-soft:#3a1d2a;--l0:#5cc2a8;--l1:#9ccc7b;--l2:#efb64c;--l3:#f28a5c;--l4:#ec6f9f;--shadow:none;color-scheme:dark}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;padding:0 max(16px,env(safe-area-inset-left,0px)) 48px max(16px,env(safe-area-inset-right,0px))}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);background:var(--bg);z-index:10}
.wrap{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--berry);outline-offset:2px}
h1,h2,h3{margin:0;font-weight:400}

/* header */
.top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0 2px}
.logo{font-family:var(--f-display);font-size:30px;line-height:1;letter-spacing:-.01em;color:var(--ink);text-decoration:none;display:flex;align-items:baseline}
.logo em{color:var(--berry)}
.logo svg{width:20px;height:12px;margin-left:4px;color:var(--berry)}
.place{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--card);border-radius:999px;padding:7px 12px;font-weight:700;font-size:13.5px;max-width:58%;overflow:hidden}
.place span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.card{background:var(--card);border-radius:var(--r);padding:22px;box-shadow:var(--shadow);border:1px solid var(--line)}
@media (prefers-color-scheme:light){.card{border-color:transparent}}
.label{font-size:13px;font-weight:700;color:var(--muted);letter-spacing:.02em}

/* onboarding */
.intro h1{font-family:var(--f-display);font-size:clamp(42px,12vw,60px);line-height:1.02;letter-spacing:-.015em}
.intro h1 em{color:var(--berry)}
.intro p{margin:12px 0 0;color:var(--muted);font-size:17px;max-width:42ch}
.setup{display:flex;flex-direction:column;gap:18px}
.setup h2{font-size:15px;font-weight:800;font-family:var(--f-body)}
.hairs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hair{display:flex;flex-direction:column;align-items:center;gap:6px;border:1.5px solid var(--line);background:var(--card);border-radius:16px;padding:12px 4px 10px;font-weight:700;font-size:13.5px}
.hair svg{width:40px;height:40px;color:var(--muted)}
.hair[aria-checked="true"]{border-color:var(--berry);background:var(--berry-soft)}
.hair[aria-checked="true"] svg{color:var(--berry)}
.toggle-row{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;cursor:pointer}
.toggle-row input{width:20px;height:20px;accent-color:var(--berry);margin:2px 0 0;flex:none}
.toggle-row small{display:block;color:var(--muted);font-size:13px}
.locrow{display:flex;flex-direction:column;gap:8px}
.btn{border:0;border-radius:14px;padding:14px;font-weight:800;font-size:16px;background:var(--ink);color:var(--card);text-align:center}
.btn.soft{background:var(--sunk);color:var(--ink)}
.btn.berry{background:var(--berry);color:#fff}
.search{position:relative}
.search input{width:100%;font:inherit;font-size:16px;color:var(--ink);background:var(--sunk);border:0;border-radius:14px;padding:13px 14px}
.sugg{list-style:none;margin:6px 0 0;padding:0;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.sugg button{display:block;width:100%;text-align:left;border:0;background:none;padding:11px 14px;font-size:15px;border-top:1px solid var(--line)}
.sugg li:first-child button{border-top:0}
.sugg small{color:var(--muted)}
.or{text-align:center;color:var(--muted);font-size:13px}
.err{color:var(--l4);font-weight:700;font-size:14px;margin:0}

/* score hero */
.hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:26px 22px 22px;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(120% 70% at 50% 0%,var(--lvsoft),transparent 70%);pointer-events:none}
.hero > *{position:relative}
.ring{width:190px;height:190px;position:relative}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .num{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring .num b{font-size:66px;font-weight:800;line-height:1;letter-spacing:-.03em;color:var(--lv)}
.ring .num span{font-size:13px;font-weight:700;color:var(--muted)}
.lvname{font-family:var(--f-display);font-size:34px;line-height:1.05;color:var(--lv)}
.verdict{font-size:17px;max-width:30ch;margin:0}
.chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:4px}
.chip{font-size:13px;font-weight:700;border-radius:999px;padding:6px 11px;background:var(--sunk);color:var(--ink)}
.dewinfo{background:none;border:0;padding:0;font-size:13px;color:var(--muted);text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.daytabs{display:flex;gap:6px;background:var(--sunk);border-radius:999px;padding:4px;align-self:center}
.daytabs button{border:0;background:transparent;border-radius:999px;padding:7px 14px;font-weight:700;font-size:14px;color:var(--muted)}
.daytabs button[aria-selected="true"]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}

/* hourly */
.hours{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:3px;align-items:end;height:120px;margin-top:10px}
.hcol{display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}
.hbar{width:100%;max-width:18px;border-radius:6px 6px 3px 3px;min-height:4px}
.hcol small{font-size:10px;color:var(--muted);font-weight:700}
.hcol.now small{color:var(--ink)}
.hcol.now .hbar{outline:2px solid var(--ink);outline-offset:1px}
.legend{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:8px}

/* tips */
.tips{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.tip{display:grid;grid-template-columns:28px 1fr;gap:10px}
.tip i{width:26px;height:26px;border-radius:50%;background:var(--berry-soft);color:var(--berry);display:grid;place-items:center;font-style:normal;font-weight:800;font-size:13px}
.tip b{display:block;font-size:15px}
.tip span{font-size:14.5px;color:var(--muted)}

/* next days */
.days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.dcard{border-radius:16px;background:var(--sunk);padding:12px;display:flex;flex-direction:column;gap:2px;border:0;text-align:left}
.dcard b{font-size:26px;font-weight:800;line-height:1.1;color:var(--lv)}
.dcard span{font-size:12.5px;color:var(--muted);font-weight:700}

/* rate */
.rate{display:flex;flex-direction:column;gap:12px}
.rate h2{font-family:var(--f-display);font-size:26px;line-height:1.1}
.rates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rates button{border:1.5px solid var(--line);background:var(--card);border-radius:16px;padding:12px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:700;font-size:14px}
.rates button span{font-size:26px;line-height:1}
.rates button[aria-pressed="true"]{border-color:var(--berry);background:var(--berry-soft)}
.tuned{margin:0;font-size:14.5px;color:var(--muted)}
.tuned b{color:var(--ink)}

/* remind + misc */
.row{display:flex;justify-content:space-between;align-items:center;gap:14px}
.row h2{font-family:var(--f-display);font-size:24px;line-height:1.1}
.row p{margin:4px 0 0;font-size:14px;color:var(--muted)}
.switch{flex:none;width:52px;height:31px;border-radius:999px;border:0;background:var(--line);position:relative;padding:0}
.switch span{position:absolute;top:3px;left:3px;width:25px;height:25px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .18s}
.switch[aria-checked="true"]{background:var(--berry)}
.switch[aria-checked="true"] span{left:24px}
select{font:inherit;font-size:15px;color:var(--ink);background:var(--sunk);border:0;border-radius:10px;padding:8px 10px}
.note{margin:0;font-size:13.5px;color:var(--muted)}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
details{font-size:15px}
details summary{cursor:pointer;font-weight:800;list-style:none}
details summary::after{content:" +";color:var(--berry)}
details[open] summary::after{content:" –"}
details p{color:var(--muted);margin:10px 0 0}
.link{background:none;border:0;padding:0;color:var(--berry);font-weight:700;text-decoration:underline;text-underline-offset:3px;font-size:inherit}
footer{font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:6px;text-align:center}
footer p{margin:0}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:40;background:var(--ink);color:var(--card);padding:10px 18px;border-radius:999px;font-weight:700;font-size:14px;max-width:calc(100% - 32px);text-align:center}
.sheetback{position:fixed;inset:0;background:rgba(23,16,22,.4);z-index:30}
.sheet{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom,0px));width:min(520px,calc(100% - 24px));background:var(--card);border-radius:22px;padding:20px;z-index:31;box-shadow:0 20px 50px -12px rgba(0,0,0,.35)}
.sheet h3{font-family:var(--f-display);font-size:24px}
.sheet ol{margin:10px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.x{float:right;border:0;background:var(--sunk);border-radius:50%;width:32px;height:32px}
@media (prefers-reduced-motion:no-preference){.hero,.card{animation:up .35s ease both}@keyframes up{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.ring circle.arc{transition:stroke-dashoffset .8s ease}}

/* rating check-in */
.ratesub{margin:-4px 0 0;font-size:15px;color:var(--muted)}
.rate.ask{border:2px solid var(--berry);box-shadow:0 10px 30px -12px color-mix(in srgb,var(--berry) 45%,transparent)}
.rate.ask h2{font-size:30px}
.rate.ask .rates button{padding:16px 4px}
.rate.ask .rates button span{font-size:34px}
.rate.done .rates button:not([aria-pressed="true"]){opacity:.55}
.learn{display:flex;flex-direction:column;gap:6px}
.learn .dots{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.learn .dots i{height:8px;border-radius:99px;background:var(--sunk);border:1px solid var(--line)}
.learn .dots i.on{background:var(--berry);border-color:var(--berry)}
.learn small{font-size:13px;color:var(--muted);font-weight:600}

/* trip */
.trip{display:flex;flex-direction:column;gap:12px}
.trip h2{font-family:var(--f-display);font-size:26px;line-height:1.1;margin:0}
.tripsub{margin:-4px 0 0;font-size:15px;color:var(--muted)}
.tripdates{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tripdates label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:700;color:var(--muted)}
.tripdates input{font:inherit;font-size:16px;color:var(--ink);background:var(--sunk);border:0;border-radius:14px;padding:12px;min-width:0;width:100%}
.tripdays{margin-top:0}
.pack{background:var(--sunk);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:6px}
.pack p{margin:0;font-size:14.5px}
.trip .row{justify-content:flex-start;gap:18px}
.tripdates label{min-width:0}
.tripdates input{-webkit-appearance:none;appearance:none;box-sizing:border-box;max-width:100%}
.trip .btn{width:100%}

.tripdates select{font:inherit;font-size:16px;color:var(--ink);background:var(--sunk);border:0;border-radius:14px;padding:12px;min-width:0;width:100%}
.invite{margin:14px 0 0;background:var(--berry-soft);border-radius:16px;padding:12px 14px;font-size:15px;color:var(--ink)}
