/* ═══════════════════════════════════════════════════════════════
   Kucha Nzuri — the app layer: short pages, a phone tab bar, segmented
   tabs, a "More" sheet, tiles. Patterns from the Astra Design Shop
   (phone-01 glass tab bar, nav-261 centre-action tab bar, phone-05 bottom
   sheet, phone-06 action sheet, phone-07 segmented control, form-31
   appointment slots), rebuilt here in plain CSS/JS on the Kucha palette.
   ═══════════════════════════════════════════════════════════════ */

/* page-to-page: a soft cross-fade where the browser supports it, chrome stays put */
@view-transition{navigation:auto}
.nav{view-transition-name:kn-nav}
.tabbar{view-transition-name:kn-tabbar}
::view-transition-old(root),::view-transition-new(root){animation-duration:.28s}

.skip{position:absolute;left:-999px;top:.5rem;z-index:100;background:#fff;padding:.5rem 1rem;border-radius:999px}
.skip:focus{left:.5rem}
svg use{pointer-events:none}

/* ── icons inside buttons and badges ── */
.btn svg,.hero-badges svg,.visit-facts svg,.book-look svg{width:1.1em;height:1.1em;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.btn svg use[href="#i-wa"],.visit-facts svg:has(use[href="#i-wa"]){fill:currentColor;stroke:none}
.btn:has(use[href="#i-wa"]) svg{fill:currentColor;stroke:none}
.hero-badges li{display:inline-flex;align-items:center;gap:.45rem}
.hero-badges svg{color:var(--rose-deep)}
.btn-wa{background:#1f9d55;color:#fff;box-shadow:0 10px 24px rgba(31,157,85,.3)}
.btn-wa:hover{transform:translateY(-2px)}

/* ── desktop nav: where am I ── */
.nav-links a[aria-current="page"]{color:var(--rose-deep)}
.nav-links a[aria-current="page"]::after{width:100%}
.nav-wa svg{fill:#25a35a}

/* ── sub-pages: a compact head, then straight to the content ── */
.page{padding-top:clamp(1.6rem,4vw,3rem)}
.page .section-head{margin-bottom:1.4rem}
.page-title{font-size:clamp(2.1rem,5vw,3.3rem)}
.premium .page-title em{font-style:italic;background:linear-gradient(100deg,var(--rose) 20%,var(--gold) 50%,var(--rose-deep) 80%);background-size:200% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer 6s ease-in-out infinite}
.panel-sub{text-align:center;max-width:40rem;margin:0 auto 1.3rem;color:#7d6371}
.page-next{display:flex;flex-wrap:wrap;gap:1rem 1.6rem;align-items:center;justify-content:center;margin-top:1.8rem}
.next-link{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;text-decoration:none;color:var(--rose-deep)}
.next-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.next-link:hover svg{transform:translateX(4px)}
[hidden]{display:none!important}

/* ── segmented control (design shop phone-07): a sliding pill under the chosen tab ── */
.seg{position:relative;display:flex;gap:2px;padding:4px;margin:0 auto 1.4rem;width:fit-content;max-width:100%;
  background:rgba(255,255,255,.7);border:1px solid rgba(230,115,159,.22);border-radius:999px;
  box-shadow:0 6px 18px rgba(92,37,64,.07);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.seg button{position:relative;z-index:1;flex:1 1 auto;border:0;background:none;cursor:pointer;white-space:nowrap;
  font:500 .9rem var(--sans);color:var(--plum);padding:.55rem 1.05rem;border-radius:999px;min-height:40px;transition:color .25s}
.seg button[aria-selected="true"]{color:#fff}
.seg button:focus-visible{outline:2px solid var(--rose-deep);outline-offset:2px}
.seg-thumb{position:absolute;z-index:0;left:0;top:4px;bottom:4px;width:0;border-radius:999px;
  background:linear-gradient(120deg,#ef8db3,var(--rose) 40%,var(--rose-deep));box-shadow:0 6px 16px rgba(201,79,127,.35);
  transition:transform .45s cubic-bezier(.34,1.4,.64,1),width .45s cubic-bezier(.34,1.4,.64,1)}
.seg-thumb.no-anim{transition:none}
.seg-wide{width:min(100%,560px)}
.seg-wide button{flex:1 1 0}
@media (max-width:420px){.seg button{padding:.5rem .55rem;font-size:.82rem}}

/* the hero stage: one row of controls at a time (Shade · Shape · Finish · Skin tone) */
.stage-seg{margin:.4rem auto .7rem}
.stage-seg button{padding:.45rem .85rem;font-size:.84rem;min-height:36px}
.hero-stage .polish-rack,.hero-stage .style-rows .chip-row,.hero-stage .tone-row{display:none}
.hero-stage[data-active="shade"] .polish-rack{display:flex}
.hero-stage[data-active="shape"] .style-rows .chip-row:first-child{display:flex}
.hero-stage[data-active="finish"] .style-rows .chip-row:last-child{display:flex}
.hero-stage[data-active="skin"] .tone-row{display:flex}
.hero-stage .chip-label{display:none}
.hero-stage .polish-rack,.hero-stage .chip-row,.hero-stage .tone-row{min-height:56px;align-items:center;margin-top:0;margin-bottom:0}
.hero-stage:has(img.hand-canvas) .stage-seg{display:none}

/* ── home: what are you here for? (an app-style grid, one tap to every page) ── */
.quick{padding-top:clamp(2rem,5vw,4rem);padding-bottom:clamp(1.5rem,4vw,3rem)}
.quick .section-head{margin-bottom:1.6rem}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;max-width:880px;margin:0 auto}
.tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;text-decoration:none;color:var(--plum);
  background:rgba(255,255,255,.82);border:1px solid rgba(230,115,159,.14);border-radius:22px;padding:1.1rem 1.1rem 1rem;
  box-shadow:var(--shadow-soft);transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .3s;overflow:hidden}
.tile:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.tile svg{width:30px;height:30px;fill:none;stroke:var(--rose-deep);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;margin-bottom:.45rem}
.tile strong{font-family:var(--serif);font-size:1.3rem;font-weight:600;line-height:1.1}
.tile small{font-size:.82rem;color:#8d7080;line-height:1.3}
.tile-hero{background:linear-gradient(140deg,#ef8db3,var(--rose) 45%,var(--rose-deep));color:#fff;border:0}
.tile-hero svg{stroke:#fff}
.tile-hero small{color:rgba(255,255,255,.85)}
.premium .tile::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s;
  background:radial-gradient(220px circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.55),transparent 60%)}
.premium .tile:hover::after{opacity:1}

.promise-n{display:block;font-family:var(--serif);font-size:1rem;color:var(--gold);letter-spacing:.1em;margin-bottom:.3rem}

/* ── prices: one category at a time ── */
#menuGrid{display:block;max-width:640px}
.menu-card-title{font-size:1.45rem;margin-bottom:.7rem}
.menu-item .mi-price.tbd,.look-meta strong.tbd{color:#a5889a;font-weight:500;font-size:.9rem;letter-spacing:.02em}
.menu-card-foot{margin-top:.8rem;font-size:.86rem;color:#8d7080}
.menu-note{text-align:center;max-width:40rem;margin:1.3rem auto 0;font-size:.95rem}

/* ── booking: segmented "where", time slots, a look chip ── */
.page-book .book-form{max-width:640px}
.seg-radio{display:flex;gap:2px;padding:4px;border:1px solid rgba(230,115,159,.25);border-radius:999px;margin:0 0 1.2rem;background:var(--pearl)}
.seg-radio label{flex:1;position:relative;cursor:pointer}
.seg-radio input{position:absolute;opacity:0;inset:0;cursor:pointer}
.seg-radio span{display:grid;place-items:center;min-height:40px;border-radius:999px;font-size:.88rem;font-weight:500;color:var(--plum);text-align:center;padding:0 .4rem;transition:background .3s,color .3s}
.seg-radio input:checked+span{background:linear-gradient(120deg,#ef8db3,var(--rose) 40%,var(--rose-deep));color:#fff;box-shadow:0 6px 16px rgba(201,79,127,.3)}
.seg-radio input:focus-visible+span{outline:2px solid var(--rose-deep);outline-offset:2px}
.slots{border:0;margin:0 0 1.1rem}
.slots legend{font-size:.92rem;font-weight:600;color:var(--plum);margin-bottom:.45rem}
.slot-row{display:flex;flex-wrap:wrap;gap:.45rem}
.slot{position:relative}
.slot input{position:absolute;opacity:0;inset:0;cursor:pointer}
.slot span{display:inline-grid;place-items:center;min-width:64px;min-height:40px;padding:0 .8rem;border-radius:14px;border:1.5px solid rgba(230,115,159,.3);
  background:#fff;font-weight:500;font-size:.9rem;color:var(--plum);transition:all .25s cubic-bezier(.34,1.56,.64,1)}
.slot input:checked+span{background:var(--plum);border-color:var(--plum);color:#fff;transform:scale(1.04)}
.slot input:focus-visible+span{outline:2px solid var(--rose-deep);outline-offset:2px}
.notes{display:flex;flex-direction:column;gap:.4rem;font-size:.92rem;font-weight:600;color:var(--plum);margin-bottom:1rem}
.book-look{display:flex;align-items:center;gap:.5rem;background:var(--blush);border-radius:14px;padding:.6rem .8rem;margin-bottom:1rem;color:var(--plum);font-size:.92rem}
.book-look svg{color:var(--rose-deep)}
.book-look span{flex:1}
.book-look button{border:0;background:none;font-size:1.3rem;line-height:1;color:#9b7f8d;cursor:pointer;width:32px;height:32px;border-radius:50%}
.book-quote{display:grid;grid-template-columns:1fr auto;gap:.1rem .8rem;color:var(--plum);font-weight:500}
.book-quote:not(:empty){background:var(--pearl);border-radius:16px;padding:.8rem 1rem}
.book-quote strong{color:var(--rose-deep)}
.book-quote small{grid-column:1/-1;color:#8d7080;font-weight:400;font-size:.84rem}

/* ── club & gift ── */
.stamp svg{width:20px;height:20px;fill:currentColor}
.stamp.reward svg{fill:none;stroke:currentColor;stroke-width:1.7}
.stamp.reward{color:var(--gold)}
.gift-seal svg{width:28px;height:28px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.loyalty-card{margin-left:auto;margin-right:auto}
.perk svg.perk-ico{width:28px;height:28px;margin:0 auto .35rem;fill:none;stroke:var(--rose-deep);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* ── care: cards are buttons ── */
.care-card{font:inherit;color:inherit;text-align:left;border:0;width:100%}
.care-card:focus-visible{outline:2px solid var(--rose-deep);outline-offset:3px}

/* ── find us ── */
.visit-facts{list-style:none;margin:1rem 0 1.4rem;display:grid;gap:.6rem}
.visit-facts li{display:flex;align-items:center;gap:.6rem}
.visit-facts svg{width:20px;height:20px;color:var(--rose-deep)}
.visit-btns{display:flex;flex-wrap:wrap;gap:.7rem;margin-bottom:1.2rem}
.review-ask{font-size:.92rem}

/* ── Nuru: a link to the right page instead of jumping there ── */
.msg-go{display:flex;width:fit-content;align-items:center;gap:.35rem;margin-top:.55rem;padding:.4rem .85rem;border-radius:999px;
  background:var(--plum);color:#fff!important;text-decoration:none;font-size:.85rem;font-weight:500}
.msg-go svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-fab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ── phone tab bar (design shop phone-01 glass tab bar + nav-261 raised centre action) ── */
.tabbar{display:none}
.sheet,.sheet-scrim{display:none}
@media (max-width:940px){
  .nav{gap:.8rem}
  .nav-links,.nav-book{display:none!important}
  .nav-wa{margin-left:auto}
  body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}

  .tabbar{display:flex;position:fixed;z-index:390;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));
    align-items:flex-end;justify-content:space-around;padding:6px 6px;border-radius:28px;
    background:rgba(255,250,251,.78);backdrop-filter:blur(18px) saturate(1.6);-webkit-backdrop-filter:blur(18px) saturate(1.6);
    border:1px solid rgba(255,255,255,.7);box-shadow:0 12px 34px rgba(92,37,64,.18),inset 0 1px 0 rgba(255,255,255,.8)}
  .tabbar a,.tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:52px;justify-content:center;
    border:0;background:none;font:500 .7rem var(--sans);color:#8a6a7b;text-decoration:none;border-radius:20px;position:relative;cursor:pointer;
    -webkit-tap-highlight-color:transparent}
  .tabbar svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .tabbar [aria-current="page"]{color:var(--rose-deep)}
  .tabbar [aria-current="page"]:not(.tab-book)::before{content:'';position:absolute;inset:2px 8px;border-radius:18px;background:rgba(230,115,159,.12);z-index:-1}
  .tabbar a:active,.tabbar button:active{transform:scale(.94)}
  .tab-book{margin-top:-22px}
  .tab-book-pill{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;color:#fff;
    background:linear-gradient(140deg,#ef8db3,var(--rose) 45%,var(--rose-deep));box-shadow:0 10px 22px rgba(201,79,127,.45),0 0 0 5px rgba(255,250,251,.9)}
  .tab-book-pill svg{width:25px;height:25px}
  .tab-book span:last-child{color:var(--rose-deep);font-weight:600}

  /* the "More" sheet (design shop phone-05/06) */
  .sheet-scrim{display:block;position:fixed;inset:0;z-index:395;background:rgba(53,20,42,.35);opacity:0;transition:opacity .3s}
  .sheet-scrim.open{opacity:1}
  .sheet{display:block;position:fixed;z-index:396;left:0;right:0;bottom:0;padding:0 1.1rem calc(1.2rem + env(safe-area-inset-bottom));
    background:rgba(255,250,251,.96);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
    border-radius:28px 28px 0 0;box-shadow:0 -18px 50px rgba(92,37,64,.22);
    transform:translateY(105%);transition:transform .42s cubic-bezier(.22,1,.36,1)}
  .sheet.open{transform:translateY(0)}
  .sheet-grab{display:grid;place-items:center;height:30px;touch-action:none;cursor:grab}
  .sheet-grab span{width:42px;height:5px;border-radius:3px;background:rgba(92,37,64,.22)}
  .sheet-title{font-family:var(--serif);font-size:1.35rem;color:var(--plum);text-align:center;margin-bottom:.9rem}
  .sheet-title em{color:var(--rose-deep)}
  .sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem}
  .sheet-grid a,.sheet-grid button{display:flex;flex-direction:column;align-items:center;gap:.35rem;padding:.85rem .3rem;border-radius:18px;
    background:#fff;border:1px solid rgba(230,115,159,.14);color:var(--plum);text-decoration:none;font:500 .82rem var(--sans);cursor:pointer}
  .sheet-grid svg{width:26px;height:26px;fill:none;stroke:var(--rose-deep);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.9rem}
  .sheet-actions .btn{padding:.75rem .8rem;font-size:.92rem}
  .sheet-actions .btn-ghost svg{fill:none;stroke:currentColor}
  .sheet-open body{overflow:hidden}
  .sheet-open .chat-fab,.sheet-open .chat-panel{display:none!important}

  /* Nuru sits above the tab bar, as a round button */
  .chat-fab{bottom:calc(96px + env(safe-area-inset-bottom))!important;right:14px!important;padding:0!important;width:52px;height:52px;justify-content:center}
  .chat-fab-label{display:none}
  .chat-panel{bottom:calc(158px + env(safe-area-inset-bottom))!important;right:10px!important;height:min(480px,calc(100vh - 230px))!important}
  .toast{bottom:calc(100px + env(safe-area-inset-bottom))!important;opacity:0;visibility:hidden;transition:transform .45s cubic-bezier(.34,1.56,.64,1),opacity .3s,visibility .3s}
  .toast.show{opacity:1;visibility:visible}
  .footer{padding-bottom:3rem!important}
}

/* ── phones: tighter, shorter, nothing stacked that could sit side by side ── */
@media (max-width:700px){
  .hero{padding-top:1.6rem;gap:1.4rem}
  .premium .hero h1{font-size:clamp(2.6rem,12vw,3.4rem)}
  .premium .hero .lede{font-size:1.02rem;margin:.9rem 0 1.2rem}
  .hero-ctas{gap:.6rem}
  .hero-ctas .btn{flex:1 1 auto;padding:.8rem 1rem}
  .hero-badges{gap:.45rem;margin-top:1.1rem}
  .hero-badges li{font-size:.8rem;padding:.35rem .7rem}
  .tiles{gap:.55rem}
  .tile{padding:.85rem .7rem .8rem;border-radius:18px;align-items:center;text-align:center}
  .tile svg{width:26px;height:26px;margin-bottom:.3rem}
  .tile strong{font-size:1.08rem}
  .tile small{display:none}
  .promises{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:.8rem;padding:0 1rem 2rem;scrollbar-width:none}
  .promises::-webkit-scrollbar{display:none}
  .promise{flex:0 0 82%;scroll-snap-align:center;padding:1.2rem 1.2rem}
  .section{padding-left:1rem;padding-right:1rem}
  .page{padding-top:1.2rem;padding-bottom:2rem}
  .page .section-head{margin-bottom:1rem}
  .page .section-sub{font-size:.95rem}
  .menu-card{padding:1.2rem}
  .look-grid{grid-template-columns:1fr 1fr;gap:.7rem}
  .look-card{padding:1rem .9rem}
  .look-card h3{font-size:1.1rem}
  .look-card p{display:none}
  .look-card .look-book{padding:.5rem .7rem;font-size:.82rem;width:100%}
  .look-meta{flex-direction:column;align-items:flex-start;gap:.1rem;font-size:.82rem}
  .page-book .book-form{padding:1.2rem;border-radius:22px}
  .page-book .form-grid{grid-template-columns:1fr 1fr}
  .page-book .form-grid .form-wide{grid-column:1/-1}
  .page-book .form-grid input,.page-book .form-grid select{min-width:0}
  .seg-radio span{font-size:.8rem}
  .form-grid{gap:.8rem;margin-bottom:1rem}
  .slot span{min-width:0;padding:0 .7rem}
  .split{gap:1.2rem}
  .split-art{min-height:170px!important}
  .split-copy h2{font-size:1.7rem}
  .perk-grid{grid-template-columns:1fr 1fr 1fr;gap:.5rem}
  .perk{padding:.8rem .5rem}
  .perk p{font-size:.78rem}
  .perk h3{font-size:.95rem}
  .care-grid{gap:.7rem}
  .care-card{padding:1rem 1.1rem}
  .care-card>p{display:none}
  .care-card.open>p{display:block}
  .care-card .care-sw{margin-bottom:.2rem}
  .visit-btns{flex-wrap:nowrap}
  .visit-btns .btn{flex:1;padding:.8rem .6rem;font-size:.92rem}
  .visit-map{min-height:240px}
  .gift-card-art{display:none}
  .gift-amounts{display:grid!important;grid-template-columns:repeat(3,1fr);gap:.45rem}
  .gift-amt span{display:block;text-align:center;padding:.65rem .3rem!important;font-size:.92rem!important}
  .footer-mark{font-size:3rem!important}
  .footer-nav{gap:.3rem 1rem;font-size:.9rem}
}
@media (max-width:360px){.tiles{grid-template-columns:repeat(3,1fr)}.tile strong{font-size:.98rem}}
@media (prefers-reduced-motion:reduce){.seg-thumb,.sheet{transition:none}}
