/* Fix My Hair kit (2026-11-25): homepage patterns as k- classes for inner pages. Contract: docs/DESIGN_SYSTEM.md 9.
   Stamped by tools/apply-theme.mjs on pages with a k- class. Tokens only, ASCII. FROZEN: changes via the kit owner. */
/* the homepage display face (assets/fonts/fonts-home.css loads it only there) */
@font-face{font-family:'Bricolage Grotesque';font-weight:200 800;font-display:swap;src:url(/assets/fonts/BricolageGrotesque-latin.woff2) format('woff2')}
html:root body .k-page:not(#_){--k-g:10px;--k-r:var(--r-lg);--k-pad:clamp(1.25rem,2.4vw,2.4rem);display:block;padding-bottom:var(--sp-8);background:var(--c-bg);color:var(--c-text)}
html:root body:has(.k-page) .section-divider:not(#_){display:none!important}
html:root body :is(.k-sec,.k-hero,.k-wrap,.k-final):not(#_){box-sizing:border-box;width:min(1440px,100%);margin:0 auto;padding:0 clamp(12px,2vw,28px);background:none}
html:root body .k-sec:not(#_){padding-top:clamp(3.5rem,8vw,7rem)}
/* heads */
html:root body .k-eye:not(#_){display:flex;align-items:center;gap:.9rem;margin:0;font:600 var(--fs-xs)/1.2 var(--font-body);letter-spacing:.24em;text-transform:uppercase;color:var(--c-tan)}
html:root body :is(.k-eye,.k-quote):not(#_)::before{content:"";flex:none;width:44px;height:5px;border-radius:3px;background:var(--c-accent)}
html:root body .k-head:not(#_){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,26rem);gap:1rem 3rem;align-items:end;margin-bottom:clamp(1.8rem,3vw,2.6rem)}
html:root body .k-head:not(:has(>p:not(.k-eye))):not(#_){grid-template-columns:minmax(0,1fr)}
html:root body .k-head:not(#_) h2{margin:.9rem 0 0;max-width:20ch;font:500 clamp(2.2rem,3.8vw,3.4rem)/1.1 var(--font-display);font-weight:500!important;letter-spacing:-.05em}
html:root body :is(.k-head,.k-hero-txt):not(#_) em{font-style:normal;color:var(--c-accent)}
html:root body :is(.k-head>p:not(.k-eye),.k-lead):not(#_){margin:0;max-width:40rem;font-size:var(--fs-lg);line-height:1.55;color:var(--c-muted)!important}
html:root body .k-page:not(#_) :is(.fmh-word,.fmh-ch){font-family:inherit!important}
html:root body .k-small:not(#_){font-size:var(--fs-sm);line-height:1.5;color:var(--c-dim)}
/* 12-column bento */
html:root body .k-grid:not(#_){display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--k-g)}
html:root body .k-c4:not(#_){grid-column:span 4}html:root body .k-c5:not(#_){grid-column:span 5}html:root body .k-c6:not(#_){grid-column:span 6}html:root body .k-c7:not(#_){grid-column:span 7}html:root body .k-c8:not(#_){grid-column:span 8}html:root body .k-c9:not(#_){grid-column:span 9}html:root body .k-c10:not(#_){grid-column:span 10}html:root body .k-c11:not(#_){grid-column:span 11}html:root body .k-c12:not(#_){grid-column:span 12}
/* box: dark / tan / gold; text on tan and gold is --c-on-accent; buttons there flip to black + gold label */
html:root body .k-box:not(#_){position:relative;box-sizing:border-box;min-width:0;margin:0;padding:var(--k-pad);border-radius:var(--k-r);overflow:hidden;background:var(--c-surface);color:var(--c-text);font-style:normal}
html:root body .k-box:not(#_) :is(h2,h3):not(.k-tab){margin:0 0 .7rem;font:700 clamp(1.3rem,2vw,1.75rem)/1.12 var(--font-display);font-weight:700!important;letter-spacing:-.015em}
html:root body .k-box:not(#_) p{margin:0 0 .9rem;max-width:62ch;line-height:1.55;color:var(--c-muted)}
html:root body .k-box:not(#_)>:last-child{margin-bottom:0}
html:root body :is(.k-box--tan,.k-box--gold,.k-steps--end-tan>:where(li:last-child)):not(#_){background:var(--c-tan);color:var(--c-on-accent)}
html:root body .k-box--gold:not(#_){background:var(--c-accent)}
html:root body :is(.k-box--tan,.k-box--gold,.k-steps--end-tan>li:last-child):not(#_) :is(h2,h3,h4,p,li,dd,address,small,a:not([class]),.k-more,:is(h2,h3,p)>:is(em,b)):not(.k-tab,.k-tab *){color:var(--c-on-accent)!important}
html:root body :is(.k-box--tan,.k-box--gold,.k-steps--end-tan>li:last-child):not(#_) .k-tab :is(em,b){color:var(--c-accent)!important}
html:root body :is(.k-box--tan,.k-box--gold):not(#_) .k-more::after{box-shadow:inset 0 0 0 1.5px rgba(10,10,10,.5);color:var(--c-on-accent)}
html:root body :is(.k-box--tan,.k-box--gold):not(#_) .btn-gold{background:var(--c-bg)!important;color:var(--c-accent)!important}
html:root body :is(.k-box--tan,.k-box--gold):not(#_) :is(.fmx-shim,.fmx-layer),html:root body :is(.k-box--tan,.k-box--gold):not(#_) .btn-gold::after{display:none!important}
html:root body :is(.k-box--tan,.k-box--gold):not(#_) :is(.btn-line,.btn-ghost,.btn-wa){border-color:rgba(10,10,10,.5)!important;box-shadow:none!important;background:none!important;color:var(--c-on-accent)!important}
html:root body :is(.k-box--tan,.k-box--gold):not(#_) :is(.btn-line,.btn-ghost,.btn-wa):hover{background:var(--c-bg)!important;color:var(--c-accent)!important}
html:root body :is(.k-box--tan,.k-box--gold):not(#_) :is(.btn-gold,.btn-line,.btn-ghost,.btn-wa) *{color:inherit!important}
html:root body :is(.k-box,[data-k-rv]):not(#_){animation:none!important;transition:opacity var(--dur-base) var(--ease) calc(var(--i,0) * 50ms),translate var(--dur-base) var(--ease) calc(var(--i,0) * 50ms),transform var(--dur-fast) var(--ease),background-color var(--dur-fast) var(--ease),box-shadow var(--dur-fast) var(--ease)}
@media (hover:hover){
html:root body .k-box:not(.k-box--tan):not(.k-box--gold):not(#_):is(:hover,:focus-within){background-color:var(--c-surface-hover);box-shadow:inset 0 0 0 1px var(--c-edge-accent)}
html:root body .k-box--tan:not(#_):is(:hover,:focus-within){background-color:color-mix(in srgb,var(--c-tan) 86%,var(--c-text))}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){html:root body .k-box:not(#_):is(:hover,:focus-within){transform:translateY(-4px)}}
/* notched title tab, big numeral */
html:root body .k-tab.k-tab:not(#_){position:relative;display:block;width:fit-content;max-width:calc(100% - 2.5rem);box-sizing:border-box;margin:calc(var(--k-pad) * -1) 0 1.3rem calc(var(--k-pad) * -1);padding:16px 26px 17px var(--k-pad);background:var(--c-bg);border-bottom-right-radius:var(--k-r);font:600 clamp(1.3rem,2.2vw,2.1rem)/1.1 var(--font-display);font-family:var(--font-display)!important;font-weight:600!important;letter-spacing:-.02em;color:var(--c-text)!important;overflow:visible}
html:root body .k-tab:not(#_)::before,html:root body .k-tab:not(#_)::after{content:"";position:absolute;left:0;top:calc(100% - .5px);width:var(--k-r);height:var(--k-r);background:radial-gradient(circle at 100% 100%,transparent calc(var(--k-r) - .5px),var(--c-bg) var(--k-r))}
html:root body .k-tab:not(#_)::before{left:calc(100% - .5px);top:0}
html:root body .k-tab--num.k-tab:not(#_){padding:10px 22px 14px var(--k-pad);font:800 clamp(2.2rem,3.4vw,3rem)/1 var(--font-display);font-weight:800!important;color:var(--c-accent)!important}
/* tan circle badge */
html:root body .k-badge:not(#_){display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:220px;aspect-ratio:1;padding:var(--sp-5);border-radius:50%;background:var(--c-tan);text-align:center;text-decoration:none;font-weight:600;line-height:1.2}
html:root body :is(.k-badge,.k-badge *):not(#_){color:var(--c-on-accent)!important}
html:root body .k-badge-big:not(#_){font:800 4.2rem/.9 var(--font-display);letter-spacing:-.06em}
/* hero */
html:root body .k-hero:not(#_){display:grid;grid-template-columns:minmax(0,1fr);gap:var(--k-g);padding-top:calc(var(--nav-h,64px) + var(--sp-6))}
html:root body .k-hero:has(>.k-badge):not(#_){grid-template-columns:minmax(0,1fr) auto}
html:root body .k-hero:not(#_)>.k-badge{align-self:end}
html:root body .k-hero-card:not(#_){display:grid;border-radius:var(--k-r);background:var(--c-surface) linear-gradient(135deg,var(--c-accent-soft),transparent 45%);overflow:hidden}
html:root body .k-hero-card:has(.k-hero-media):not(#_){grid-template-columns:1fr 1fr;background:var(--c-surface)}
html:root body .k-hero-txt:not(#_){display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-5);padding:clamp(1.5rem,4vw,4rem)}
html:root body .k-hero-txt:not(#_) h1{margin:0;max-width:16ch;font:600 var(--fs-display)/1 var(--font-display);font-weight:600!important;letter-spacing:-.02em}
html:root body .k-hero-media:not(#_){border-radius:0}
/* chips, ticks */
html:root body :is(.k-chips,.k-ticks,.k-prices,.k-steps):not(#_){margin:0;padding:0;list-style:none}
html:root body .k-chips:not(#_){display:flex;flex-wrap:wrap;gap:.5rem}
html:root body .k-chips:not(#_) li{margin:0;padding:.5rem .85rem;border-radius:var(--r-pill);font-size:.85rem;line-height:1.2;box-shadow:inset 0 0 0 1px rgba(240,237,232,.25)}
html:root body :is(.k-box--tan,.k-box--gold):not(#_) .k-chips li{box-shadow:inset 0 0 0 1px rgba(10,10,10,.4)}
html:root body .k-ticks:not(#_){display:grid;gap:.85rem}
html:root body .k-ticks:not(#_) li{position:relative;padding-left:34px;line-height:1.4;font-weight:500}
html:root body .k-ticks:not(#_) li::before{content:"";position:absolute;left:0;top:-1px;width:22px;height:22px;border-radius:50%;background:var(--c-bg)}
html:root body .k-ticks:not(#_) li::after{content:"";position:absolute;left:8px;top:4px;width:5px;height:9px;border:solid var(--c-accent);border-width:0 2px 2px 0;rotate:45deg}
/* prices, slider */
html:root body .k-prices:not(#_){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html:root body .k-pick:not(#_){display:block;width:100%;min-height:44px;padding:1.3rem 1.2rem;border:0;border-radius:var(--k-r);background:var(--c-surface-2);color:var(--c-text);font:inherit;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 1px var(--c-line)}
html:root body .k-pick:not(#_)[aria-pressed="true"]{background:var(--c-accent);color:var(--c-on-accent);box-shadow:none}
html:root body .k-pick:not(#_)[aria-pressed="false"]:hover{box-shadow:inset 0 0 0 1px var(--c-edge-accent)}
html:root body .k-pick:not(#_)>span:not(.k-price){display:block;margin-top:.5rem;font-size:.9rem}
html:root body .k-price:not(#_){display:block;margin:0;font:800 clamp(2rem,3.4vw,3rem)/1 var(--font-display);letter-spacing:-.04em}
html:root body .k-finder:not(#_){margin-top:var(--sp-5);padding:1.3rem 1.4rem;border-radius:var(--k-r);background:var(--c-bg);box-shadow:inset 0 0 0 1px var(--c-line)}
html:root body .k-range:not(#_){display:block;width:100%;height:44px;accent-color:var(--c-accent)}
html:root body .k-finder:not(#_) output{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem 1.2rem}
/* accordion; .k-qa styles schema-locked <p><b>Q</b>A</p> runs without markup change */
html:root body .k-acc:not(#_){display:grid;gap:var(--k-g)}
html:root body :is(.k-acc details,.k-qa>p):not(#_){margin:0;border-radius:var(--r-md);background:var(--c-surface-2);color:var(--c-muted);line-height:1.55}
html:root body .k-acc:not(#_) details[open]{box-shadow:inset 0 0 0 1px var(--c-edge-accent)}
html:root body .k-acc:not(#_) summary{display:flex;align-items:center;gap:.8rem;min-height:44px;padding:.85rem 1.1rem;list-style:none;cursor:pointer;font-weight:600;color:var(--c-text)}
html:root body .k-acc:not(#_) summary::-webkit-details-marker{display:none}
html:root body .k-acc-n:not(#_){font-size:.85rem;font-weight:700;color:var(--c-accent)}
html:root body .k-acc-x:not(#_){position:relative;flex:none;width:26px;height:26px;margin-left:auto;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(240,237,232,.4);transition:rotate var(--dur-fast) var(--ease)}
html:root body .k-acc-x:not(#_)::before,html:root body .k-acc-x:not(#_)::after{content:"";position:absolute;inset:12px 7px auto;height:1.5px;background:currentColor}
html:root body .k-acc-x:not(#_)::after{rotate:90deg}
html:root body .k-acc details[open] .k-acc-x:not(#_){rotate:45deg}
html:root body .k-acc-b:not(#_){padding:0 1.1rem 1rem}
html:root body .k-acc-b:not(#_) p{margin:0 0 .7rem;color:var(--c-muted)!important}
html:root body .k-qa:not(#_)>p{margin-bottom:var(--k-g);padding:1.1rem 1.3rem}
html:root body .k-qa:not(#_)>p>b:first-child{display:block;margin-bottom:.35rem;color:var(--c-text)}
/* steps (--end-tan: last card tan) */
html:root body .k-steps:not(#_){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:var(--k-g)}
html:root body .k-steps:not(#_)>li{display:flex;flex-direction:column;min-height:15rem}
html:root body .k-steps:not(#_)>li>.k-tab--num{margin-bottom:auto}
html:root body .k-steps:not(#_)>li>h3{margin-top:var(--sp-5)}
/* photo + pill, quote */
html:root body .k-photo:not(#_){position:relative;margin:0;border-radius:var(--k-r);overflow:hidden;background:var(--c-surface)}
html:root body .k-photo:not(#_) img{display:block;width:100%;height:100%;object-fit:cover;transition:scale var(--dur-fast) var(--ease)}
@media (hover:hover) and (prefers-reduced-motion:no-preference){html:root body :is(.k-photo,.k-box):hover .k-photo:not(#_) img,html:root body .k-photo:not(#_):hover img{scale:1.05}}
html:root body .k-pill:not(#_){position:absolute;left:14px;bottom:14px;margin:0;padding:.35rem .7rem;border-radius:var(--r-pill);background:rgba(10,10,10,.72);font-size:var(--fs-xs);font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--c-text)}
html:root body .k-quote:not(#_){margin:0}
html:root body .k-quote:not(#_)::before{display:block;margin-bottom:1.2rem}
html:root body .k-quote:not(#_) p{margin:0;font:500 clamp(1.15rem,1.6vw,1.4rem)/1.45 var(--font-body);color:var(--c-text)}
html:root body .k-quote:not(#_) footer{margin-top:1.2rem;font-size:var(--fs-sm);color:var(--c-dim)}
/* round arrow link; link card with arrow in a page-black notch */
html:root body .k-more:not(#_){display:inline-flex;align-items:center;gap:16px;font-size:.8rem;font-weight:600;letter-spacing:.24em;text-transform:uppercase;text-decoration:none;color:var(--c-tan)}
html:root body .k-more:not(#_)::after,html:root body .k-go:not(#_){display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;font-size:1.1rem;letter-spacing:0;line-height:1;transition:rotate var(--dur-fast) var(--ease),background-color var(--dur-fast) var(--ease)}
html:root body .k-more:not(#_)::after{content:"\2192";box-shadow:inset 0 0 0 1.5px rgba(240,237,232,.4);color:var(--c-text)}
html:root body .k-more:not(#_):hover{color:var(--c-accent)}
html:root body .k-more:hover:not(#_)::after,html:root body :is(.k-card:hover,.k-card:focus-visible) .k-go:not(#_){rotate:-45deg;background:var(--c-accent);color:var(--c-on-accent);box-shadow:none}
html:root body .k-card:not(#_){display:block;min-height:7rem;padding-bottom:calc(var(--k-pad) + 40px);text-decoration:none;color:var(--c-text)}
html:root body .k-go:not(#_){position:absolute;right:8px;bottom:8px;background:var(--c-text);box-shadow:0 0 0 8px var(--c-bg);color:var(--c-bg)}
/* table (--stack: one card per row on phones), versus pair, map card */
html:root body .k-table:not(#_){width:100%;border-collapse:collapse}
html:root body .k-table:not(#_) :is(th,td){padding:.9rem 1rem;border-bottom:1px solid var(--c-line);text-align:left;vertical-align:top;background:none}
html:root body :is(.k-table thead th,.k-finder label):not(#_){font-size:var(--fs-xs);letter-spacing:.16em;text-transform:uppercase;color:var(--c-tan)}
html:root body .k-vs:not(#_){display:grid;grid-template-columns:1fr 1fr;gap:var(--k-g)}
html:root body .k-map:not(#_){display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3)}
html:root body .k-map:not(#_)>*{flex:1 1 100%;margin:0}
html:root body .k-map:not(#_)>:is(.k-tab,.btn){flex:0 1 auto}
html:root body .k-map:not(#_)>.btn{margin-top:var(--sp-3)}
html:root body .k-map:not(#_) address{font-style:normal;font-size:var(--fs-lg);line-height:1.45}
/* closing: .cn-final (page.css) beside a side column */
html:root body .k-final:not(#_){display:grid;grid-template-columns:1.3fr 1fr;gap:var(--k-g);margin-top:var(--sp-8)}
html:root body .k-final:not(#_)>.cn-final{margin:0!important}
html:root body .k-final-side:not(#_){display:flex;flex-direction:column;gap:var(--k-g)}
/* reveal (fmh-fx.js adds .k-js and .is-in): 10px sideways, first in a row from the left, heads and phones drop */
html:root.k-js body [data-k-rv]:not(.is-in):not(#_){opacity:0;translate:10px 0}
html:root.k-js body :is(.k-grid,.k-steps,.k-vs,.k-final)>[data-k-rv]:first-child:not(.is-in):not(#_){translate:-10px 0}
html:root.k-js body .k-head[data-k-rv]:not(.is-in):not(#_){translate:0 -10px}
@media (max-width:899px){
html:root body :is(.k-c4,.k-c5,.k-c6,.k-c7,.k-c8,.k-c9,.k-c10,.k-c11):not(#_){grid-column:span 12}
html:root body :is(.k-head,.k-vs,.k-final,.k-hero,.k-hero-card:has(.k-hero-media)):not(#_){grid-template-columns:minmax(0,1fr)}
html:root body .k-hero:not(#_){padding-top:calc(var(--nav-h,64px) + var(--sp-4))}
html:root body .k-hero:not(#_)>.k-badge{display:none}
html:root body .k-hero-media:not(#_){aspect-ratio:4/3}
html:root body .k-hero-txt:not(#_){padding:var(--sp-6) var(--sp-5)}
html:root body .k-hero-txt:not(#_) h1{font-size:clamp(2.5rem,12vw,3.4rem)}
html:root body .k-prices:not(#_){grid-template-columns:1fr}
html:root body .k-steps:not(#_)>li{min-height:0}
html:root body .k-page:not(#_) :is(.btn,.btn-gold,.btn-line,.btn-wa){width:100%;min-height:48px;box-sizing:border-box}
html:root body .k-map:not(#_)>.btn{flex:1 1 100%}
html:root body .k-card:not(#_){min-height:0;padding:var(--k-pad) 76px var(--k-pad) var(--k-pad)}
html:root.k-js body [data-k-rv]:not(.is-in):not(#_),html:root.k-js body :is(.k-grid,.k-steps,.k-vs,.k-final)>[data-k-rv]:first-child:not(.is-in):not(#_){translate:0 -10px}
}
@media (max-width:720px){
html:root body .k-table--stack:not(#_) :is(thead,tbody,tr,th,td){display:block}
html:root body .k-table--stack:not(#_) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html:root body .k-table--stack:not(#_) tr{margin-bottom:var(--k-g);padding:var(--sp-2) 0;border-radius:var(--r-md);background:var(--c-surface)}
html:root body .k-table--stack:not(#_) :is(th,td){border:0;padding:.5rem 1.1rem}
html:root body .k-table--stack:not(#_) th{font-size:var(--fs-xs);letter-spacing:.16em;text-transform:uppercase;color:var(--c-tan)}
html:root body .k-table--stack:not(#_) td[data-k]::before{content:attr(data-k);display:block;font-size:var(--fs-xs);font-weight:600;color:var(--c-dim)}
}
@media (prefers-reduced-motion:reduce){
html:root body :is(.k-box,[data-k-rv],.k-photo img,.k-go,.k-acc-x):not(#_),html:root body .k-more:not(#_)::after{transition:none!important;transform:none!important}
html:root.k-js body :is([data-k-rv],:is(.k-grid,.k-steps,.k-vs,.k-final)>[data-k-rv]):not(#_){opacity:1;translate:none}
}
