/* Hair Schedule in the browser: the look of the iOS app (AppPalette.swift "Lavanda & Perola", light scheme = the app's default;
   FlowTheme.swift purple gradient for onboarding / quiz / schedule choice). Everything lives under .gs-hair; the page behind it
   follows the app through body:has(.gs-hair). No storage of any kind: the shell only holds the visit in memory. Shadows are black only. */
body:has(.gs-hair){--bg:#FAF7FF;--surface:#fff;--surface-2:#F0EBFA;--raised:#F0EBFA;--soft:#F5F0FD;--line:rgba(43,36,64,.10);--line-2:rgba(43,36,64,.18);
--ink:#2B2440;--ink-2:#4a4263;--muted:#6C6485;--title:#2B2440;--accent:#7C3AED;--accent-rgb:124,58,237;--on-accent:#fff;--tint:rgba(124,58,237,.10);--texture:none;
--ok:#2f8a5c;--ok-bg:rgba(61,168,115,.12);--bad:#D05656;--bad-bg:rgba(208,86,86,.1);--warn:#8a5a00;--warn-bg:rgba(217,155,46,.14)}
html:has(.gs-hair){background:#FAF7FF}
body:has(.gs-hair) .hero-band{background:#F0EBFA;border-bottom:1px solid var(--line)}
body:has(.gs-hair) header.top{background:#fff;border-bottom:1px solid var(--line)}
body:has(.gs-hair) footer,body:has(.gs-hair) .faq-band,body:has(.gs-hair) .cta-band{background:#F0EBFA}

.gs-hair{--bg:#FAF7FF;--surface:#fff;--surface2:#F0EBFA;--primary:#7C3AED;--accent:#B8A4E3;--sand:#F4E4D7;--tx:#2B2440;--tx2:#6C6485;--tx3:#9890A8;--ok:#3DA873;--err:#D05656;--warn:#D99B2E;
--g1:#614DE0;--g2:#4733B8;--g3:#2E1F85;--pad:20px;
position:relative;display:flex;flex-direction:column;width:100%;max-width:430px;height:clamp(560px,calc(100dvh - 128px),820px);margin:6px auto 22px;overflow:hidden;
border-radius:30px;border:1px solid rgba(43,36,64,.14);background:var(--bg);color:var(--tx);box-shadow:0 18px 50px rgba(0,0,0,.18);
font:16px/1.4 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;isolation:isolate}
.gs-hair *{box-sizing:border-box}
@media (max-width:520px){.gs-hair{border-radius:22px}}
.gs-hair button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0;text-align:inherit;line-height:1.3;white-space:normal;-webkit-tap-highlight-color:transparent}
.gs-hair button:focus-visible,.gs-hair input:focus-visible,.gs-hair textarea:focus-visible{outline:3px solid rgba(124,58,237,.55);outline-offset:2px}
.gs-hair h2,.gs-hair h3,.gs-hair h4,.gs-hair p,.gs-hair ul,.gs-hair ol{margin:0;padding:0;font-family:inherit;letter-spacing:0;text-transform:none;color:inherit}
.gs-hair [tabindex="-1"]:focus{outline:none}
.gs-hair ul,.gs-hair ol{list-style:none}
.gs-hair li{margin:0;line-height:1.4}
.gs-hair h2,.gs-hair h3,.gs-hair h4,.gs-hair p,.gs-hair span,.gs-hair strong,.gs-hair li{overflow-wrap:anywhere;min-width:0}
.gs-hair img{display:block;max-width:100%;height:auto}
.gs-hair .gh-ic{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.gs-hair .gh-ic.fill{fill:currentColor}
.gs-hair .gh-loading,.gs-hair .gh-err{margin:auto;padding:24px;text-align:center;color:var(--tx2)}

/* shell: scrolling screen + tab bar */
.gs-hair .gh-view{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.gs-hair .gh-pad{padding:0 var(--pad) 28px}
.gs-hair .gh-nav{display:flex;align-items:center;gap:6px;min-height:52px;padding:4px 8px;background:var(--bg);position:sticky;top:0;z-index:3}
.gs-hair .gh-nav h2{flex:1;text-align:center;font-size:17px;font-weight:600;line-height:1.25;padding:6px 0}
.gs-hair .gh-nav .gh-sp{width:44px;flex:none}
.gs-hair .gh-nav .gh-back{display:grid;place-items:center;width:44px;height:44px;flex:none;color:var(--primary);font-size:22px}
.gs-hair .gh-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:none;background:var(--surface);border-top:1px solid rgba(43,36,64,.10);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
.gs-hair .gh-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;padding:4px 2px;font-size:11px;font-weight:500;color:var(--tx3);text-align:center;border-radius:10px}
.gs-hair .gh-tabs button .gh-ic{width:24px;height:24px;font-size:24px}
.gs-hair .gh-tabs button[aria-current=page]{color:var(--primary);font-weight:600}

/* cards and type */
.gs-hair .gh-card{background:var(--surface);border-radius:20px;padding:20px;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.gs-hair .gh-h{font-size:20px;font-weight:600;line-height:1.25;color:var(--tx);margin:24px 0 12px}
.gs-hair .gh-sub{font-size:13px;color:var(--tx2)}
.gs-hair .gh-stack>*+*{margin-top:20px}
.gs-hair .gh-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:50px;padding:12px 16px;border-radius:14px;background:var(--primary);color:#fff;font-size:16px;font-weight:600;text-align:center}
.gs-hair .gh-btn.ghost{background:rgba(124,58,237,.10);color:var(--primary)}
.gs-hair .gh-btn.white{background:#fff;color:var(--g3);font-weight:700;box-shadow:0 6px 12px rgba(0,0,0,.2)}
.gs-hair .gh-btn[disabled]{opacity:.45;cursor:not-allowed}
.gs-hair .gh-link{display:inline-flex;align-items:center;min-height:44px;color:var(--primary);font-size:15px;font-weight:600}

/* home */
.gs-hair .gh-greet{display:flex;align-items:flex-end;gap:8px;padding:0 8px 0 24px;border-radius:24px;color:#fff;background:linear-gradient(135deg,#8B5CF6,#6D28D9);box-shadow:0 4px 10px rgba(0,0,0,.08);margin-top:16px;overflow:hidden}
.gs-hair .gh-greet>div{flex:1;padding:24px 0}
.gs-hair .gh-greet h2{font-size:25px;font-weight:700;line-height:1.2}
.gs-hair .gh-greet p{font-size:14px;font-weight:500;margin-top:6px;color:rgba(255,255,255,.92)}
.gs-hair .gh-greet img{width:128px;height:128px;flex:none}
.gs-hair .gh-pill{display:inline-flex;align-items:center;gap:4px;margin-top:10px;padding:5px 10px;border-radius:999px;background:rgba(124,58,237,.10);color:var(--primary);font-size:13px;font-weight:600}
.gs-hair .gh-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin-top:12px}
.gs-hair .gh-wd{display:grid;justify-items:center;gap:6px;font-size:11px;font-weight:500;color:var(--tx2)}
.gs-hair .gh-dot{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--surface2);color:var(--primary);font-size:16px}
.gs-hair .gh-dot.on{background:rgba(124,58,237,.14)}
.gs-hair .gh-dot.today{box-shadow:0 0 0 2px var(--primary)}

/* calendar */

/* tutorials */
.gs-hair .gh-search{display:flex;align-items:center;gap:8px;min-height:44px;margin:4px var(--pad) 8px;padding:0 12px;border-radius:12px;background:rgba(43,36,64,.07);color:var(--tx2)}
.gs-hair .gh-search input{flex:1;min-width:0;min-height:44px;border:0;background:none;font:inherit;font-size:16px;color:var(--tx);outline:none}
.gs-hair .gh-search:focus-within{box-shadow:0 0 0 2px rgba(124,58,237,.5)}
.gs-hair .gh-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px var(--pad) 10px}
.gs-hair .gh-chips::-webkit-scrollbar{display:none}
.gs-hair .gh-chip{display:inline-flex;align-items:center;gap:6px;flex:0 1 auto;min-height:44px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid rgba(152,144,168,.25);font-size:14px;font-weight:600;color:var(--tx);white-space:normal!important;box-shadow:0 2px 4px rgba(0,0,0,.05)}
.gs-hair .gh-chip .gh-ic{color:var(--primary);font-size:13px}
.gs-hair .gh-chip[aria-pressed=true]{background:var(--primary);color:#fff;border-color:transparent;box-shadow:0 2px 4px rgba(0,0,0,.12)}
.gs-hair .gh-chip[aria-pressed=true] .gh-ic{color:#fff}
.gs-hair .gh-sech{display:flex;align-items:center;gap:8px;margin:20px 0 12px}
.gs-hair .gh-sech:first-child{margin-top:4px}
.gs-hair .gh-sech>.gh-ic{display:grid;place-items:center;width:28px;height:28px;padding:6px;border-radius:8px;background:rgba(124,58,237,.12);color:var(--primary)}
.gs-hair .gh-sech h3{flex:1;font-size:17px;font-weight:600}
.gs-hair .gh-sech b{padding:3px 10px;border-radius:999px;background:var(--surface2);font-size:13px;font-weight:600;color:var(--tx2)}
.gs-hair .gh-tcard{position:relative;display:flex;align-items:center;gap:14px;width:100%;margin-bottom:12px;padding:16px 16px 16px 20px;border-radius:16px;background:var(--surface);box-shadow:0 2px 8px rgba(0,0,0,.12);min-height:44px}
.gs-hair .gh-tcard::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:4px;border-radius:2px;background:var(--primary)}
.gs-hair .gh-em{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:14px;background:rgba(124,58,237,.15);font-size:28px;line-height:1}
.gs-hair .gh-tcard.test .gh-em{width:44px;height:44px;border-radius:12px;font-size:22px;background:rgba(124,58,237,.12)}
.gs-hair .gh-tcard.test::before{display:none}
.gs-hair .gh-tcard.test{padding:16px;box-shadow:none}
.gs-hair .gh-tcard>div{flex:1;min-width:0}
.gs-hair .gh-tcard strong{display:block;font-size:16px;font-weight:600}
.gs-hair .gh-tcard span.d{display:block;font-size:13px;color:var(--tx2);margin-top:4px}
.gs-hair .gh-tcard span.m{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:500;color:var(--tx3);margin-top:4px}
.gs-hair .gh-tcard .gh-chev{font-size:16px;color:var(--tx3);flex:none}
.gs-hair .gh-tcard.test .gh-min{font-size:12px;font-weight:600;color:var(--primary);flex:none}
.gs-hair .gh-empty{text-align:center;padding:36px 8px;display:grid;justify-items:center;gap:8px}
.gs-hair .gh-empty h3{font-size:18px;font-weight:600}
.gs-hair .gh-empty p{color:var(--tx2);font-size:14px}
.gs-hair .gh-empty .gh-btn{width:auto;margin-top:8px}

/* procedure / test detail */
.gs-hair .gh-sum{display:flex;align-items:center;gap:14px}
.gs-hair .gh-sum img{width:84px;height:96px;object-fit:contain;flex:none}
.gs-hair .gh-sum .gh-em{width:64px;height:64px;font-size:34px}
.gs-hair .gh-sum p{font-size:15px;color:var(--tx2)}
.gs-hair .gh-steps>li{position:relative;display:flex;gap:14px;padding:16px;margin-bottom:12px;border-radius:16px;background:var(--surface);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.gs-hair .gh-num{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:rgba(124,58,237,.14);color:var(--primary);font-size:14px;font-weight:700}
.gs-hair .gh-steps>li>div{flex:1;min-width:0}
.gs-hair .gh-steps strong{display:block;font-size:16px;font-weight:600}
.gs-hair .gh-steps .gh-min{font-size:12px;font-weight:600;color:var(--primary);margin-left:6px;white-space:nowrap}
.gs-hair .gh-steps p{font-size:14px;color:var(--tx2);margin-top:4px}
.gs-hair .gh-steps .use{font-size:13px;font-weight:600;color:var(--primary)}
.gs-hair .gh-bul li{position:relative;padding:3px 0 3px 18px;font-size:15px;color:var(--tx)}
.gs-hair .gh-bul li::before{content:"";position:absolute;left:4px;top:.85em;width:6px;height:6px;border-radius:50%;background:var(--primary)}
.gs-hair .gh-timer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px}
.gs-hair .gh-clock{font-size:26px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--primary)}
.gs-hair .gh-timer .gh-btn{width:auto;min-height:44px;padding:8px 16px;font-size:15px}
.gs-hair .gh-opts{display:grid;gap:10px;margin:12px 0}
.gs-hair .gh-opt{display:flex;align-items:center;gap:12px;min-height:56px;padding:14px 16px;border-radius:14px;background:var(--surface);border:1.5px solid transparent;font-size:15px;font-weight:600;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.gs-hair .gh-opt[aria-checked=true]{border-color:var(--primary);background:rgba(124,58,237,.08)}
.gs-hair .gh-res h4{font-size:15px;font-weight:700;margin:14px 0 4px;color:var(--primary)}
.gs-hair .gh-res p{font-size:15px;color:var(--tx)}
.gs-hair .gh-note{font-size:13px;color:var(--tx2);margin-top:14px}

/* products: label reader */
.gs-hair textarea{display:block;width:100%;min-height:150px;padding:14px;border-radius:14px;border:1px solid rgba(152,144,168,.35);background:var(--surface);color:var(--tx);font:inherit;font-size:16px;line-height:1.45;resize:vertical}
.gs-hair textarea::placeholder{color:var(--tx3)}
.gs-hair .gh-two{display:grid;gap:10px;margin-top:12px}
.gs-hair .gh-verdict li{display:flex;flex-wrap:wrap;gap:4px 8px;padding:10px 0;border-bottom:1px solid var(--surface2);font-size:15px}
.gs-hair .gh-verdict li:last-child{border:0}
.gs-hair .gh-verdict b{font-weight:700}
.gs-hair .gh-verdict .alert{color:#9a6a12;font-weight:600}
.gs-hair .gh-ing li{padding:12px 0;border-bottom:1px solid var(--surface2)}
.gs-hair .gh-ing li:last-child{border:0}
.gs-hair .gh-ing .h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.gs-hair .gh-ing strong{font-size:15px;font-weight:600}
.gs-hair .gh-tag{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:rgba(124,58,237,.12);color:var(--primary);font-size:12px;font-weight:600}
.gs-hair .gh-tag.k{background:var(--surface2);color:var(--tx2)}
.gs-hair .gh-ing p{font-size:14px;color:var(--tx2);margin-top:4px}
.gs-hair .gh-unk{font-size:13px;color:var(--tx2);margin-top:10px}

/* setup flow (FlowTheme gradient) */
.gs-hair .gh-flow{flex:1;min-height:0;display:flex;flex-direction:column;color:#fff;background:linear-gradient(135deg,var(--g1),#4733B8 55%,var(--g3));position:relative;overflow:hidden}
.gs-hair .gh-flow::before{content:"";position:absolute;left:-90px;top:-80px;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.16);filter:blur(80px);pointer-events:none}
.gs-hair .gh-flow::after{content:"";position:absolute;right:-90px;bottom:-60px;width:280px;height:280px;border-radius:50%;background:rgba(97,77,224,.5);filter:blur(90px);pointer-events:none}
.gs-hair .gh-flow>*{position:relative;z-index:1}
.gs-hair .gh-fscroll{flex:1;min-height:0;overflow-y:auto;padding:0 var(--pad) 12px}
.gs-hair .gh-fbar{flex:none;padding:8px var(--pad) 22px}
.gs-hair .gh-dots{display:flex;justify-content:center;gap:8px;margin-bottom:16px}
.gs-hair .gh-dots i{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.35)}
.gs-hair .gh-dots i.on{width:22px;border-radius:4px;background:#fff}
.gs-hair .gh-prog{display:flex;align-items:center;gap:8px;padding:8px var(--pad)}
.gs-hair .gh-prog .gh-back{display:grid;place-items:center;width:44px;height:44px;flex:none;color:#fff;font-size:20px}
.gs-hair .gh-prog .gh-back[hidden]{display:block;visibility:hidden}
.gs-hair .gh-track{flex:1;height:6px;border-radius:3px;background:rgba(255,255,255,.25);overflow:hidden}
.gs-hair .gh-track i{display:block;height:100%;background:#fff;border-radius:3px;transition:width .3s ease-out}
.gs-hair .gh-prog .gh-sp{width:32px;flex:none}
.gs-hair .gh-intro h2{font-size:20px;font-weight:700}
.gs-hair .gh-intro p{font-size:14px;color:rgba(255,255,255,.85);margin-top:4px}
.gs-hair .gh-q{font-size:24px;font-weight:700;line-height:1.28;margin:28px 0 28px}
.gs-hair .gh-intro+.gh-q{margin-top:24px}
.gs-hair .gh-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.gs-hair .gh-tiles.one{grid-template-columns:minmax(0,1fr);gap:12px}
.gs-hair .gh-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:120px;padding:10px;border-radius:16px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:14px;font-weight:500;text-align:center}
.gs-hair .gh-tiles.one .gh-tile{flex-direction:row;justify-content:flex-start;gap:16px;min-height:72px;padding:16px;text-align:left}
.gs-hair .gh-tile .ico{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:50%;background:rgba(255,255,255,.18);font-size:24px}
.gs-hair .gh-tile[aria-checked=true]{background:#fff;color:var(--g3);font-weight:600;border-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.gs-hair .gh-tile[aria-checked=true] .ico{background:rgba(46,31,133,.15);color:var(--g3)}
.gs-hair .gh-helper{margin-top:20px}
.gs-hair .gh-helper p{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.72);margin-bottom:8px}
.gs-hair .gh-hchips{display:flex;flex-wrap:wrap;gap:8px}
.gs-hair .gh-hchip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:999px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);font-size:13px;font-weight:600;color:#fff}
.gs-hair .gh-fhead{text-align:center;display:grid;justify-items:center;gap:12px;padding-top:16px;margin-bottom:24px}
.gs-hair .gh-fhead .gh-ic{font-size:44px}
.gs-hair .gh-fhead h2{font-size:24px;font-weight:700;line-height:1.2}
.gs-hair .gh-fhead p{font-size:14px;color:rgba(255,255,255,.85)}
.gs-hair .gh-fhead.ready img{width:min(48%,180px);filter:drop-shadow(0 6px 12px rgba(0,0,0,.18))}
.gs-hair .gh-fhead.ready h2{font-size:28px}
.gs-hair .gh-fhead.ready p{font-size:16px}
.gs-hair .gh-pat{display:block;width:100%;margin-bottom:12px;padding:16px;border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff;text-align:left}
.gs-hair .gh-pat[aria-checked=true]{border-color:#fff;background:rgba(255,255,255,.2)}
.gs-hair .gh-pat .t{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.gs-hair .gh-pat .t span{padding:4px 10px;border-radius:8px;background:rgba(255,255,255,.2);font-size:12px;font-weight:600}
.gs-hair .gh-pat .t .gh-ic{font-size:22px}
.gs-hair .gh-pdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.gs-hair .gh-pdays div{display:grid;justify-items:center;gap:4px;font-size:11px;font-weight:500;color:rgba(255,255,255,.72)}
.gs-hair .gh-pdays b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.15);color:var(--g3);font-size:14px}
.gs-hair .gh-pdays b.on{background:#fff}
.gs-hair .gh-close{display:flex;justify-content:flex-end}
.gs-hair .gh-close button{display:grid;place-items:center;width:44px;height:44px;color:#fff;font-size:18px}
.gs-hair .gh-flow .gh-nojs{display:none}
@media (max-width:360px){.gs-hair{--pad:16px}.gs-hair .gh-tiles{gap:10px}}
@media (prefers-reduced-motion:reduce){.gs-hair *{transition:none!important;animation:none!important}}
@media print{.gs-hair{height:auto;box-shadow:none;border:0}.gs-hair .gh-view{overflow:visible}.gs-hair .gh-tabs{display:none}}

/* feature list of the article below the app (server-rendered text) */
.hap-feats{list-style:none;padding:0;margin:0 0 18px}
.hap-feats li{margin:0 0 10px}
.hap-feats strong{display:block}

/* Cronograma result: one card per week, wash days in order, each treatment opens its procedure */
.gs-hair .gh-wlist{margin-top:10px;display:grid;gap:2px}
.gs-hair .gh-wrow{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:6px 4px;border-radius:12px;font-size:15px}
.gs-hair button.gh-wrow:active{background:var(--surface2)}
.gs-hair .gh-wrow b{width:84px;flex:none;font-size:13px;font-weight:600;color:var(--tx2)}
.gs-hair .gh-wrow .gh-ic{font-size:20px;color:var(--primary);flex:none}
.gs-hair .gh-wrow strong{flex:1;font-weight:500}
.gs-hair .gh-wrow .gh-chev{font-size:14px;color:var(--tx3)}
.gs-hair .gh-range{font-size:13px;font-weight:500;color:var(--tx3);margin-left:6px}
@media print{body *{visibility:hidden}.gs-hair,.gs-hair *{visibility:visible}.gs-hair{position:absolute;left:0;top:0;width:100%}.gs-hair .gh-print,.gs-hair [data-act="washdays"]{display:none}}
