/* Heebo, served from this site (one connection less than Google Fonts, cached for good). Variable 400–800. */
@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/heebo-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/heebo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Light and simple: warm off-white page, white cards, black for actions, one sand accent. One font (Heebo). */
:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #17171a;
  --muted: #6b6b70;
  --faint: #9a9aa0;
  --line: #e8e4dd;
  --soft: #f1ede6;
  --accent: #b08a5a;
  --ok: #1f7a4d;   --ok-bg: #e7f4ec;
  --warn: #8a5a00; --warn-bg: #fbf1dc;
  --err: #b42318;  --err-bg: #fdecea;
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
  --r: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 23, 26, .04), 0 6px 20px rgba(23, 23, 26, .05);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --paper: var(--card);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a { color: inherit; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 243, 238, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner {
  max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; min-width: 0; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; line-height: 1.2; }
.top-actions { margin-inline-start: auto; display: flex; gap: 8px; }

main {
  max-width: 600px; margin: 0 auto;
  padding: 8px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 28px;
}

/* ---------- hero ---------- */
.hero { padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.hero-sub { color: var(--muted); font-size: 1.05rem; }
.hero-info { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.info-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 99px; background: var(--card); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
button.info-chip { cursor: pointer; }
.info-chip .ico { color: var(--accent); }
.info-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.info-chip .dot.closed { background: var(--faint); }

/* ---------- layout ---------- */
.stack { display: flex; flex-direction: column; gap: 28px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-head { display: flex; align-items: center; gap: 10px; }
.step-head h2 { flex: 1; }
.step-no {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 700;
}
.label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.hint { color: var(--muted); font-size: .92rem; }
.grow { flex: 1 1 auto; min-width: 0; }
.card, .panel {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.list { display: flex; flex-direction: column; gap: 10px; }

/* service choice */
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: start;
  background: var(--card); border: 1.5px solid transparent; border-radius: var(--r);
  padding: 16px 18px; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .15s, transform .1s;
}
.choice:active { transform: scale(.99); }
.choice[aria-pressed="true"] { border-color: var(--ink); }
.choice .name { font-weight: 600; font-size: 1.05rem; }
.choice .meta { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.choice .price { margin-inline-start: auto; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.choice .radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; transition: all .15s; }
.choice[aria-pressed="true"] .radio { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px #fff; }
.nis { font-size: .85em; font-weight: 500; margin-inline-start: 1px; }

/* ---------- when: one card with the day strip and the times ---------- */
.when-card {
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid rgba(232, 228, 221, .7);
  padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 14px;
}
.when-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.when-month { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.days-nav { display: flex; gap: 6px; }
.nav-arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, opacity .15s;
}
.nav-arrow:hover:not(:disabled) { background: var(--soft); }
.nav-arrow:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .days-nav { display: none; } }

/* days */
.days {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px;
  margin-inline: -16px; padding: 2px 16px 4px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 54px; scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 4px 8px; border-radius: 16px; border: 1.5px solid transparent;
  background: var(--soft); color: var(--ink); cursor: pointer;
  transition: background .18s, color .18s, transform .12s, border-color .18s;
}
.day:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--line); background: #ece6dc; }
.day:active:not(:disabled) { transform: scale(.96); }
.day .dname { font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.day .dnum { font-size: 1.3rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.day .dfree { font-size: .66rem; font-weight: 600; white-space: nowrap; line-height: 1.4; color: var(--muted); }
.day .dfree-dot { width: 6px; height: 6px; margin: 4px 0 3px; border-radius: 50%; background: #34a26b; }
.day.few .dfree { color: #b26a00; }
.day.full .dfree { color: var(--warn); }
.day:disabled { background: transparent; cursor: default; }
.day:disabled .dnum { color: #c5c3c0; font-weight: 500; }
.day:disabled .dname, .day:disabled .dfree { color: var(--faint); font-weight: 500; }
.day[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(23, 23, 26, .22); }
.day[aria-pressed="true"] .dname { color: rgba(255,255,255,.7); }
.day[aria-pressed="true"] .dfree { color: #f0c987; }
.day[aria-pressed="true"] .dfree-dot { background: #6fd39d; }
/* a new month starts: a thin line before the 1st (the month's name is in the header above) */
.day.new-month { margin-inline-start: 14px; }
.day.new-month::before {
  content: ""; position: absolute; inset-inline-start: -12px; top: 18%; bottom: 18%; width: 1.5px; border-radius: 2px;
  background: var(--accent); opacity: .45; pointer-events: none;
}

.when-day {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.when-day b { font-size: 1.02rem; }
.when-day span { color: var(--ok); font-size: .85rem; font-weight: 600; }

/* time slots, grouped by part of day */
.slots { display: flex; flex-direction: column; gap: 18px; }
.slots .spinner { margin: 22px auto; }
.slot-group { display: flex; flex-direction: column; gap: 10px; }
.slot-head { display: flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.slot-head .ico { color: var(--accent); width: 17px; height: 17px; }
.slot-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--soft);
  display: inline-grid; place-items: center; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 480px) { .slot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.slot {
  padding: 12px 0; border-radius: 14px; border: 1.5px solid transparent; background: var(--soft); color: var(--ink);
  font-size: 1rem; font-variant-numeric: tabular-nums; font-weight: 600; cursor: pointer; direction: ltr;
  transition: background .15s, color .15s, transform .12s, border-color .15s, box-shadow .15s;
  animation: slot-in .32s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i, 0) * 14ms);
}
@keyframes slot-in { from { opacity: 0; transform: translateY(6px); } }
.slot:hover { background: #ece6dc; border-color: var(--line); }
.slot:active { transform: scale(.96); }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(23, 23, 26, .22); }

/* "none of these times suits me?" under the card */
.wait-link {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 13px 16px; border-radius: 16px; border: 1.5px dashed #d9d2c6; background: rgba(255,255,255,.55);
  color: var(--muted); font-size: .93rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.wait-link b { color: var(--ink); font-weight: 600; }
.wait-link .ico { color: var(--accent); }
.wait-link:hover { border-color: var(--faint); background: var(--card); }

/* forms */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .92rem; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--card); font-weight: 400; min-width: 0; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
input.ltr { direction: ltr; text-align: right; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; min-width: 0; }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }

/* buttons: black = do it, outlined = secondary, .red = "are you sure?" */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 99px; border: 1.5px solid var(--ink); cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: opacity .15s, transform .1s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--faint); }
.btn.small { padding: 7px 14px; font-size: .88rem; white-space: nowrap; }
.btn.block { width: 100%; }
.btn.lg { padding: 15px 20px; font-size: 1.05rem; }
.btn.red, .btn.ghost.red { background: var(--err-bg); border-color: var(--err-bg); color: var(--err); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .92rem; font-weight: 500; }
.linkbtn.muted { color: var(--muted); }
#logoutBtn { align-self: center; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }

/* summary */
.summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 400 !important; }

/* banners */
.banner, .notice { padding: 12px 16px; border-radius: var(--r-sm); font-size: .93rem; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.banner.warn, .notice.dev, .notice.warn { background: var(--warn-bg); color: var(--warn); box-shadow: none; }
.banner.err, .notice.err { background: var(--err-bg); color: var(--err); box-shadow: none; }
.banner.ok, .notice.ok { background: var(--ok-bg); color: var(--ok); box-shadow: none; }

/* rows inside cards ("my appointments", waitlist, messages) */
.appt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft); }
.appt .when { font-weight: 700; }
.appt .what { color: var(--muted); font-size: .92rem; }
.appt .grow { flex: 1 1 180px; }
.msg { padding: 12px 16px; border-radius: var(--r-sm); background: var(--soft); display: flex; flex-direction: column; gap: 2px; }
.msg-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msgs { display: flex; flex-direction: column; gap: 8px; }

/* done */
.done { align-items: center; text-align: center; padding: 32px 20px; }
.done-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  display: grid; place-items: center; font-size: 28px; font-weight: 700; animation: pop .35s ease-out;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done h2 { font-size: 1.5rem; }
.done-text { color: var(--muted); }
.remind-card { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; padding: 16px; border-radius: var(--r-sm); background: var(--soft); }
.remind-card:empty { display: none; }

.empty { color: var(--muted); text-align: center; padding: 20px 8px; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; margin: 14px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pills and chips */
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); margin-inline-start: 6px; vertical-align: 2px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--err-bg); color: var(--err); }
.pill.accent { background: #f4ebdf; color: #7d5c33; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 15px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 500; font-size: .92rem; font-variant-numeric: tabular-nums; }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* waitlist offer */
.wait-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.wait-head { display: flex; gap: 12px; align-items: flex-start; }
.wait-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--warn-bg); color: var(--warn); display: grid; place-items: center; flex: none; }
.wait-ico .ico { width: 20px; height: 20px; }
.center-row { display: flex; justify-content: center; }

/* signed-in customer */
.me-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.shot { padding: 0; border: 0; background: var(--soft); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-sm); cursor: zoom-in; position: relative; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.shot:hover img { transform: scale(1.03); }
.shot .del { position: absolute; top: 6px; inset-inline-end: 6px; }
.lightbox { position: fixed; inset: 0; background: rgba(20,20,22,.9); display: grid; place-items: center; z-index: 50; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--r-sm); }

footer {
  max-width: 600px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
}
footer a.hint { text-decoration: none; }

/* bottom sheets */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(23,23,26,.35); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 520px; background: var(--card); color: var(--ink);
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; gap: 16px;
  padding: 10px max(20px, env(safe-area-inset-left, 0px)) calc(22px + env(safe-area-inset-bottom, 0px));
  animation: sheet-up .28s cubic-bezier(.2,.9,.3,1); max-height: 92vh; overflow: auto;
}
.sheet-handle { width: 40px; height: 5px; border-radius: 99px; background: var(--line); align-self: center; flex: none; }
@keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 22px; padding-top: 22px; } .sheet-handle { display: none; } }
.sheet-head { display: flex; gap: 14px; align-items: center; }
.app-icon { border-radius: 14px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.steps { margin: 0; padding-inline-start: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.nav-app {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--soft); text-decoration: none; font-weight: 600;
}
.nav-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; }
.nav-logo .ico { width: 20px; height: 20px; }
.nav-app .go { margin-inline-start: auto; color: var(--faint); }

.toast {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 32px); width: max-content; text-align: center;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; z-index: 60; font-weight: 500; font-size: .95rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); animation: toast-in .22s ease-out;
}
@keyframes toast-in { from { transform: translate(-50%, 14px); opacity: 0; } }

/* Google: Google's light button styling. Apple: black (Apple's guidelines). */
.gbtn, .abtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 16px; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 1rem;
}
.gbtn { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.abtn { background: #000; color: #fff; border: 1px solid #000; }
.gbtn:disabled, .abtn:disabled { opacity: .6; cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Room for the sticky top bar when the page scrolls to a step. */
.step, .card, .banner { scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px)); }
/* The shop name sits in the hero; the bar shows it only once the hero has scrolled away. */
.topbar .brand span.shop-name { opacity: 0; transition: opacity .2s; }
.topbar.scrolled .brand span.shop-name { opacity: 1; }
#doneActions .info-chip { flex-basis: 100%; justify-content: center; border: 0; background: var(--soft); }
.next-open { margin: -6px 2px 0; font-size: .85rem; }

/* Sign in with email: a code instead of a redirect, so it works inside Instagram too. */
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.email-row { display: flex; gap: 8px; }
.email-row input { flex: 1 1 auto; min-width: 0; }
.email-row .btn { flex: none; }
.code-input { text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: .3em; font-variant-numeric: tabular-nums; padding: 12px; }
.code-input::placeholder { font-size: 1rem; letter-spacing: normal; font-weight: 400; }
.link-row { gap: 20px; }
.ltr-inline { direction: ltr; unicode-bidi: isolate; }
details.inapp { border-top: 1px solid var(--line); padding-top: 12px; }
details.inapp > summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
details.inapp[open] > summary { margin-bottom: 10px; }
details.account { border-top: 1px solid var(--line); padding-top: 12px; }
details.account > summary { cursor: pointer; color: var(--muted); font-size: .9rem; text-align: center; list-style: none; }
details.account > summary::-webkit-details-marker { display: none; }
details.account[open] > summary { margin-bottom: 12px; }
.dev-code { display: block; margin-top: 4px; color: var(--warn); font-weight: 600; }

/* ---------- barber pattern in the background (scissors, comb, razor, pole) ---------- */
body {
  background:
    linear-gradient(180deg, var(--bg) 0, rgba(246, 243, 238, .55) 220px, rgba(246, 243, 238, .7) 100%),
    url(/bg.svg) 0 0 / 240px 240px repeat,
    var(--bg);
  background-attachment: fixed, fixed, fixed;
}
.hero h1 { position: relative; }
.hero-ornament { display: flex; align-items: center; gap: 10px; color: var(--accent); margin-top: 2px; }
.hero-ornament::before, .hero-ornament::after { content: ""; height: 1px; flex: 0 0 34px; background: currentColor; opacity: .5; }
.hero-ornament .ico { width: 18px; height: 18px; }
a.info-chip { text-decoration: none; }
.wa-chip { background: #e9f8ef; border-color: #bfe8cf; color: #12663b; font-weight: 600; }
.wa-chip .ico { color: #1fa855; }

/* ---------- reminders card + install guide ---------- */
.remind-card { align-items: stretch; text-align: start; border: 1px solid var(--line); background: var(--card); }
.remind-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.remind-title .ico { color: var(--accent); width: 20px; height: 20px; }
.hint.small { font-size: .82rem; text-align: center; }
.guide { list-style: none; margin: 0; padding: 0; counter-reset: g; display: flex; flex-direction: column; gap: 10px; }
.guide li {
  counter-increment: g; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft);
}
.guide li::before {
  content: counter(g); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem;
}
.guide-text { font-size: .95rem; line-height: 1.45; }
.guide-text .hint { font-size: .82rem; }
.guide-pic { display: flex; justify-content: center; min-width: 48px; }
.mock-bar { display: flex; justify-content: center; padding: 6px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.mock-btn { display: grid; place-items: center; color: #0a7aff; }
.mock-btn svg, .mock-row svg { width: 22px; height: 22px; }
.mock-row {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; white-space: nowrap;
  background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: .8rem; color: #0a7aff; font-weight: 600;
}
.mock-icon { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 360px) { .guide li { grid-template-columns: 28px 1fr; } .guide-pic { grid-column: 2; justify-content: flex-start; } }

/* ---------- WhatsApp check ---------- */
.wa-btn { background: #1fa855; border-color: #1fa855; color: #fff; text-decoration: none; gap: 10px; }
.wa-btn .ico { width: 22px; height: 22px; }
.wa-wait { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: #e9f8ef; border: 1px solid #bfe8cf; }
.wa-wait-head { display: flex; align-items: center; gap: 10px; color: #12663b; }
.wa-wait-head .spinner { margin: 0; width: 18px; height: 18px; border-top-color: #1fa855; }
.wa-steps { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; }
.send-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1fa855; color: #fff; font-size: .7rem; vertical-align: middle; }
.linkbtn.center { align-self: center; }

/* ---------- recent work: story strip + full-screen viewer ---------- */
.works { display: flex; flex-direction: column; gap: 10px; margin-top: -8px; }
.works-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.works-head h2 { font-size: 1rem; }
.works-strip {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
}
.works-strip::-webkit-scrollbar { display: none; }
.work {
  flex: 0 0 auto; width: clamp(118px, 33vw, 150px); aspect-ratio: 9 / 16; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 18px; overflow: hidden; background: var(--soft); scroll-snap-align: start; position: relative;
  box-shadow: 0 1px 2px rgba(23,23,26,.08), 0 8px 22px rgba(23,23,26,.10);
}
.work img, .work video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; pointer-events: none; }
.work.is-video::before { content: ""; position: absolute; z-index: 1; inset-inline-start: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.work::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); pointer-events: none; }
.work:active img { transform: scale(1.04); }
.viewer { position: fixed; inset: 0; z-index: 60; background: #0d0d0f; }
.viewer-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 12px calc(24px + env(safe-area-inset-bottom, 0px)); }
.viewer-slide img, .viewer-slide video { max-width: 100%; max-height: 100%; border-radius: 18px; object-fit: contain; }
.viewer-top {
  position: absolute; top: 0; inset-inline: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; color: #fff; font-weight: 600; font-size: .9rem;
  background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none;
}
.viewer-close { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ---------- reminders card: the path in three chips ---------- */
.remind-path { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; color: var(--faint); font-size: .85rem; }
.remind-path span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: var(--soft); color: var(--ink); font-weight: 600; }
.remind-path svg { width: 16px; height: 16px; color: #0a7aff; }

/* ---------- first launch of the installed app ---------- */
.setup-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.setup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.setup-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft); color: var(--muted); }
.setup-list li.active { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--ink); }
.setup-list li.ok { color: var(--ok); }
.setup-mark { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; font-size: .8rem; font-weight: 700; }
.setup-list li.ok .setup-mark { background: var(--ok); border-color: var(--ok); color: #fff; }

.blue { color: #0a7aff; font-weight: 700; }
.faint { color: #9a9aa0; }
#viewerCount { direction: ltr; unicode-bidi: isolate; }
@media (prefers-reduced-motion: reduce) { .install-arrow { animation: none; } }

/* install guide: look-alike buttons, and an arrow at the browser's own button */
.key { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; margin: 2px 0; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; font-size: .88em; white-space: normal; vertical-align: middle; }
.key .ico { width: 16px; height: 16px; color: #0a7aff; flex: none; }
.guide .hint .key { font-size: .95em; }
.sheet-backdrop.sheet-top { align-items: flex-start; }
.sheet-backdrop.sheet-top .sheet { border-radius: 0 0 22px 22px; padding-top: max(16px, env(safe-area-inset-top)); max-height: 78vh; }
.sheet-backdrop.sheet-top .sheet-handle { display: none; }
.install-arrow { position: fixed; z-index: 41; display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 34px; font-weight: 800; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.45); pointer-events: none; animation: nudge 1s ease-in-out infinite; }
.install-arrow span { font-size: 15px; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; text-shadow: none; margin-bottom: 2px; }
.install-arrow.ios-more { bottom: calc(env(safe-area-inset-bottom) + 4px); right: 14px; }
.install-arrow.ios-share { bottom: calc(env(safe-area-inset-bottom) + 4px); left: 50%; margin-left: -24px; }
.install-arrow b { font-weight: 800; }
.install-arrow.top-menu { top: 4px; right: 8px; flex-direction: column-reverse; animation-name: nudge-up; }
.install-arrow.top-menu b { transform: rotate(180deg); }
.install-arrow.top-menu span { margin: 2px 0 0; }
.install-arrow.ui-rtl.ios-more, .install-arrow.ui-rtl.top-menu { right: auto; left: 8px; }
@keyframes nudge { 50% { transform: translateY(6px); } }
@keyframes nudge-up { 50% { transform: translateY(-6px); } }

/* admin: connecting a phone */
.pair-qr { width: 200px; padding: 8px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.pair-qr svg { display: block; width: 100%; height: auto; }
.pair-code { font-size: 2rem; font-weight: 800; letter-spacing: .12em; margin: 0; }
.pair-login { margin-top: 6px; }
.pair-login summary { cursor: pointer; color: var(--faint); font-size: .92rem; padding: 4px 0; }
.pair-login .row { margin-top: 8px; }


/* install guide: the step you're on stands out, done ones get a tick */
.guide li { transition: background .2s, box-shadow .2s, opacity .2s; cursor: default; }
.guide li.now { background: var(--card, #fff); box-shadow: 0 0 0 2px var(--ink); }
.guide li.ok { opacity: .55; }
.guide li.ok::before { content: "✓"; background: var(--ok, #1f8a4c); }
/* little drawings of the phone screen, the thing to tap ringed in red */
.mk { width: 124px; padding: 7px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 14px rgba(23,23,26,.08);
  font-size: 9.5px; line-height: 1.25; color: #1d1d20; display: flex; flex-direction: column; gap: 4px; text-align: start; }
.mk.dark { background: #2c2c2e; color: #fff; }
.mk.pale { background: #f2f2f5; }
.mk.wall { background: linear-gradient(160deg, #3a4a6b, #8a6f8f); }
.mk img { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.mk svg { width: 12px; height: 12px; flex: none; }
.mk b { font-weight: 700; }
.mk small { color: #8a8a90; font-size: 9px; }
.mk-bar { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-bottom: 4px; border-bottom: 1px solid #eee; }
.mk-bar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mk-page { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.mk-page i { height: 6px; border-radius: 3px; background: #eceae6; } .mk-page i + i { width: 60%; }
.mk-row { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 7px; background: rgba(127,127,127,.12); }
.mk-head { display: flex; align-items: center; gap: 5px; }
.mk-apps { display: flex; gap: 5px; } .mk-apps i { width: 15px; height: 15px; border-radius: 50%; background: #d6d6db; }
.mk-toggle { display: flex; align-items: center; justify-content: space-between; } .mk-toggle .on { width: 20px; height: 12px; border-radius: 99px; background: #34c759; }
.mk-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px; }
.mk-home i { aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,.3); }
.mk-home .hit, .mk-home img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; display: block; }
.mk-dialog { display: flex; flex-direction: column; gap: 5px; }
.mk-btns { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.mk .blue { color: #0a7aff; font-weight: 700; }
.mk .hit { outline: 2px solid #ff3b30; outline-offset: 2px; border-radius: 6px; animation: mk-hit 1.2s ease-in-out infinite; }
@keyframes mk-hit { 50% { outline-offset: 4px; outline-color: rgba(255,59,48,.35); } }
@media (prefers-reduced-motion: reduce) { .mk .hit { animation: none; } }
.mk-bar.bottom { border-bottom: 0; border-top: 1px solid #eee; padding: 4px 0 0; margin-top: auto; }
.mk-circles { display: flex; justify-content: space-between; gap: 4px; }
.mk-circles span { flex: 1; display: grid; place-items: center; text-align: center; min-height: 30px; padding: 2px; border-radius: 50%; aspect-ratio: 1; background: #d9d9de; font-size: 7.5px; line-height: 1.1; }

/* ---------- hero: rating chip ---------- */
.rating-chip { gap: 6px; }
.rating-chip .ico { color: #e0a526; fill: #f2b632; stroke: #e0a526; }
.rating-chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rating-count { color: var(--muted); font-weight: 500; }

/* ---------- reviews ---------- */
.reviews { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px)); }
.reviews .works-head h2 { font-size: 1.15rem; }
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; white-space: nowrap; font-size: 15px; }
.stars-bg { color: #e4ded3; }
.stars-fg { position: absolute; inset-block-start: 0; inset-inline-start: 0; overflow: hidden; color: #f2b632; }
.stars.lg { font-size: 20px; letter-spacing: 2px; }
.stars.sm { font-size: 13px; }
.rv-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  padding: 20px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow);
}
.rv-score { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-inline-end: 22px; border-inline-end: 1px solid var(--line); }
.rv-avg { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rv-score .hint { font-size: .82rem; }
.rv-bars { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rv-bar { display: grid; grid-template-columns: 26px 1fr 22px; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-bar-k { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--ink); }
.rv-star { color: #f2b632; font-size: .8rem; }
.rv-bar-track { height: 7px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.rv-bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f2b632, #e0a526); transition: width .6s cubic-bezier(.2,.8,.3,1); }
.rv-bar-n { text-align: start; }
@media (max-width: 380px) { .rv-summary { gap: 16px; padding: 18px 16px; } .rv-score { padding-inline-end: 16px; } .rv-avg { font-size: 2.5rem; } }
.rv-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 0; }
.rv-empty-stars { color: #e4ded3; font-size: 24px; letter-spacing: 3px; }
.rv-empty .btn { margin-top: 6px; }
.rv-list { display: flex; flex-direction: column; gap: 10px; }
.rv { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.rv-head { display: flex; align-items: flex-start; gap: 12px; }
.rv-head .stars { margin-top: 4px; }
.rv-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.05rem; }
.rv-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-verified { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 600; color: var(--ok); }
.rv-verified .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.rv-meta { color: var(--muted); font-size: .82rem; }
.rv-text { white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv-text.open { display: block; -webkit-line-clamp: unset; }
.rv-more { align-self: flex-start; margin-top: -4px; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-tag { font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: #f4ebdf; color: #7d5c33; }
.rv-reply { padding: 10px 14px; border-radius: 12px; background: var(--soft); border-inline-start: 3px solid var(--accent); font-size: .92rem; display: flex; flex-direction: column; gap: 2px; }
.rv-reply b { font-size: .82rem; }
.rv-reply p { white-space: pre-line; overflow-wrap: anywhere; }

/* in "my appointments" */
.rv-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-sm); background: linear-gradient(135deg, #fbf4e6, #f6ecdc); }
.rv-ask-stars { display: flex; gap: 2px; direction: ltr; }
.rv-ask-stars button { border: 0; background: none; padding: 2px; font-size: 28px; line-height: 1; color: #d9c8aa; cursor: pointer; transition: color .1s, transform .1s; }
/* hovering a star lights it and the ones before it (left to right, like everywhere) */
.rv-ask-stars:hover button { color: #f2b632; }
.rv-ask-stars button:hover ~ button { color: #d9c8aa; }
.rv-ask-stars button:active { transform: scale(.9); }
.rv-mine { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-sm); background: var(--soft); }

/* the review sheet */
.rv-sheet-head { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.rv-pick { display: flex; justify-content: center; gap: 4px; direction: ltr; margin-top: 4px; }
.rv-pick button {
  width: 52px; height: 52px; border: 0; background: none; cursor: pointer; font-size: 42px; line-height: 1;
  color: #e4ded3; transition: color .12s, transform .12s;
}
.rv-pick button.on { color: #f2b632; }
.rv-pick button:active { transform: scale(.88); }
.rv-pick button.pop { animation: star-pop .32s ease-out; }
@keyframes star-pop { 50% { transform: scale(1.25); } }
.rv-word { text-align: center; font-weight: 700; font-size: 1.05rem; min-height: 1.6em; margin-top: -6px; }
.rv-word.muted { color: var(--faint); font-weight: 500; font-size: .92rem; }
.rv-chips .chip { font-size: .86rem; padding: 7px 13px; }
.rv-text-wrap { position: relative; }
.rv-text-wrap textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.rv-counter { position: absolute; bottom: 8px; inset-inline-end: 12px; font-size: .75rem; }
.rv-thanks { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 0; }
.rv-thanks .done-mark { background: #fbf1dc; color: #e0a526; }
.rv-google { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: var(--soft); font-size: .93rem; }

/* ---------- on/off switch ---------- */
.switch { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; width: auto; cursor: pointer; user-select: none; font-size: .9rem; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 44px; height: 26px; border-radius: 99px; background: #d6d1c8; transition: background .2s; flex: none; }
.switch-ui::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s cubic-bezier(.2,.9,.3,1); }
.switch input:checked + .switch-ui { background: var(--ok); }
.switch input:checked + .switch-ui::after { transform: translateX(-18px); }
[dir="ltr"] .switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch input:disabled + .switch-ui { opacity: .5; }

/* ---------- products ---------- */
.pr-price { display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.pr-price b { font-weight: 800; }
.pr-price s { color: var(--faint); font-size: .85em; }
.products { display: flex; flex-direction: column; gap: 14px; }
.products-sub { color: var(--muted); font-size: .92rem; margin-top: -8px; }
.pr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pr-card { display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; text-align: start; cursor: pointer; font: inherit; color: inherit; transition: transform .2s, box-shadow .2s; }
.pr-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23,23,26,.05), 0 12px 28px rgba(23,23,26,.09); }
.pr-card:active { transform: scale(.985); }
.pr-img { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, #f4f0ea, #ebe5db); display: grid; place-items: center; color: #c5b9a6; overflow: hidden; }
.pr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pr-card:hover .pr-img img { transform: scale(1.04); }
.pr-img svg { width: 40%; height: 40%; }
.pr-card.out .pr-img img { filter: grayscale(.85) opacity(.7); }
.pr-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pr-badge.sale { background: var(--ink); color: #fff; }
.pr-badge.out { background: rgba(23,23,26,.72); color: #fff; }
.pr-body { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px 13px; min-width: 0; }
.pr-brand { color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-title { font-weight: 700; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-body .pr-price { margin-top: 4px; }
.pr-stock { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ok); font-weight: 600; }
.pr-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pr-stock.out { color: var(--faint); }
.pr-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.pr-cats::-webkit-scrollbar { display: none; }
.pr-cats .chip { flex: none; }
.pr-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); color: var(--muted); font-size: .86rem; }
.pr-note .ico { color: var(--accent); width: 18px; height: 18px; }
.pr-sheet .pr-hero { margin: -10px calc(-1 * max(20px, env(safe-area-inset-left, 0px))) 0; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #f4f0ea, #ebe5db); display: grid; place-items: center; color: #c5b9a6; overflow: hidden; }
@media (min-width: 600px) { .pr-sheet .pr-hero { margin-top: -22px; border-radius: 22px 22px 0 0; } }
.pr-sheet .pr-hero img { width: 100%; height: 100%; object-fit: cover; }
.pr-sheet .pr-hero svg { width: 30%; height: 30%; }
.pr-sheet h2 { font-size: 1.4rem; font-weight: 800; }
.pr-sheet .pr-price { font-size: 1.3rem; }
.pr-desc { white-space: pre-line; color: #3b3b40; line-height: 1.65; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gsi-btn { display: flex; justify-content: center; min-height: 44px; transition: opacity .2s; }
.gsi-btn.busy { opacity: .45; pointer-events: none; }

/* install guide: why it's worth it, and how far along */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.perks li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 6px; border-radius: var(--r-sm); background: linear-gradient(180deg, #faf7f2, var(--soft)); font-size: .78rem; font-weight: 600; line-height: 1.3; }
.perks .ico { width: 22px; height: 22px; color: var(--accent); }
.install-progress { display: flex; flex-direction: column; gap: 6px; }
.ip-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .9rem; }
.ip-top .hint { font-size: .76rem; }
.ip-track { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.ip-track span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .4s cubic-bezier(.2,.9,.3,1); }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; }
.install-qr { width: 200px; min-height: 200px; display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.install-qr svg { display: block; width: 100%; height: auto; }

/* service descriptions (what's included) */
.choice .desc { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 6px; text-wrap: pretty; }
.choice > div:nth-child(2) { min-width: 0; flex: 1; }

/* cancellation & lateness rules: one row per case, the fee in a tinted pill */
.policy { display: grid; gap: 6px; }
.policy-h { font-size: .8rem; font-weight: 600; color: var(--faint); letter-spacing: .02em; margin: 8px 0 2px; }
.policy-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; background: var(--soft); border-radius: var(--r-sm); }
.policy-row .when { min-width: 0; font-size: .93rem; line-height: 1.4; }
.policy-row .fee { font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.policy-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tone-free .fee { background: var(--ok-bg); color: var(--ok); }   .tone-free .dot { background: var(--ok); }
.tone-half .fee { background: var(--warn-bg); color: var(--warn); } .tone-half .dot { background: #c98a12; }
.tone-full .fee { background: var(--err-bg); color: var(--err); }  .tone-full .dot { background: var(--err); }
.policy-note { font-size: .88rem; color: var(--muted); padding: 2px 2px 0; }


/* "before you book" box on the confirm step */
.rules-box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; margin-top: 4px; }
.rules-box summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.rules-box summary::-webkit-details-marker { display: none; }
.rules-box summary .chev { margin-inline-start: auto; transition: transform .2s; color: var(--faint); }
.rules-box[open] summary .chev { transform: rotate(180deg); }
.rules-box .sub { font-weight: 400; color: var(--muted); font-size: .85rem; }
.agree { font-size: .82rem; color: var(--muted); text-align: center; }
.agree a, .rules-box a { color: var(--ink); }
.cancel-warn { flex-basis: 100%; font-size: .85rem; padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); }
.cancel-warn.tone-free { background: var(--ok-bg); color: var(--ok); }
.cancel-warn.tone-full { background: var(--err-bg); color: var(--err); }
.cancel-warn a { color: inherit; }
.rules-box .policy-row { padding: 9px 12px; } .rules-box .policy-row .when { font-size: .88rem; }

/* ---------- simpler start: "book" right away, the next appointment up top, a bar that keeps "book" in reach ---------- */
.hero-cta { margin-top: 14px; }
.hero-cta::after { content: "←"; font-weight: 400; }
#installBtn .ico { width: 16px; height: 16px; }
.next-appt {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 12px 16px; text-align: start; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
}
.next-appt > .ico { width: 24px; height: 24px; color: var(--accent); flex: none; }
.next-appt .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.next-appt small { color: var(--muted); font-size: .8rem; }
.next-appt b { font-size: 1.02rem; }
.next-more { font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.book-bar {
  position: fixed; inset: auto 0 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(246,243,238,0), rgba(246,243,238,.94) 30%); animation: fade .2s;
}
.book-bar .btn { max-width: 568px; margin: 0 auto; box-shadow: 0 8px 24px rgba(23,23,26,.18); }
#installLater { align-self: center; padding: 6px 12px; }
/* long service descriptions: two lines until that service is picked */
.choice .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.choice[aria-pressed="true"] .desc { -webkit-line-clamp: unset; display: block; }

/* One file, two pages: "/" (home) and "/book" (booking). The page is set in index.html's head. */
html[data-page="home"] .book-only, html[data-page="book"] .home-only { display: none !important; }
.book-head { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.book-head h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: .95rem; align-self: flex-start; }
.back-link .ico { width: 16px; height: 16px; }
html[data-page="book"] .topbar .brand span.shop-name { opacity: 1; }
a.btn { text-decoration: none; text-align: center; }
