/* Malhaya Beauty. White, pink and gold, chosen by the owner on 16 Oct 2026 ("happier colours").
   Polish pass (Oct 2026): one type scale, one spacing scale, Bodoni only at display sizes,
   gold kept to the logo, the hero illustration and a few hairlines. */
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #3A2230;          /* text, 14:1 on white */
  --muted: #6E5560;        /* secondary text, 6.7:1 on white */
  --accent: #C2386F;       /* rose: buttons, headline, selected options; white text 5.1:1 */
  --accent-hover: #A82E5F;
  --soft: #FDECF1;         /* blush: hero, bands, selected tints */
  --soft-2: #FFF7FA;       /* lightest tint */
  --line: #F1D9E2;         /* hairlines and borders */
  --line-strong: #E3B9C9;
  --gold: #B98B33;         /* logo, illustration and fine lines only (3.1:1, never for small text) */
  --paper: #ffffff;
  --ok: #1d6b45; --ok-bg: #e6f4ec;
  --warn: #7a4300; --warn-bg: #fff3dc;
  --error: #a3261b; --error-bg: #fbe7e4;

  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --body: "Jost", "Futura", system-ui, sans-serif;

  /* Type scale */
  --t-sm: .875rem; --t-base: 1rem; --t-md: 1.125rem; --t-lg: 1.375rem;
  --t-xl: 1.75rem; --t-2xl: 2.25rem; --t-3xl: clamp(2.75rem, 9vw, 4.75rem);

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  --shadow: 0 1px 2px rgba(58, 34, 48, .05), 0 8px 24px rgba(58, 34, 48, .07);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s4); }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 var(--s4); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 500; }
.page-title, main > h1 { font-family: var(--display); font-size: var(--t-2xl); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 var(--s3); }
h2 { font-family: var(--display); font-size: var(--t-xl); line-height: 1.15; margin: 0 0 var(--s4); }
h3 { font-family: var(--body); font-size: var(--t-md); line-height: 1.35; }
.sub { color: var(--muted); font-size: var(--t-md); max-width: 36em; margin-bottom: var(--s5); }
.muted { color: var(--muted); font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
.placeholder { color: var(--muted); font-style: italic; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: var(--s3) var(--s4); font-size: .95rem; }
.error { color: var(--error); font-weight: 500; margin: var(--s3) 0; }
.error:empty { display: none; }

/* ---------- Preview banner (only until launch) ---------- */
.preview-bar { background: var(--ink); color: #fff; font-size: var(--t-sm); text-align: center; padding: var(--s2) var(--s4); line-height: 1.45; }

/* ---------- Header ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.bar { max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); }
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 76px; }
.logo { display: block; width: 120px; height: 56px; background: var(--gold);
  -webkit-mask: url("/brand/lockup-peach.png") left center / contain no-repeat; mask: url("/brand/lockup-peach.png") left center / contain no-repeat; }
.site-head nav { display: flex; align-items: center; gap: var(--s1); position: relative; }
.site-head nav a { text-decoration: none; font-weight: 500; padding: var(--s2) var(--s3); border-radius: 999px; }
.inline-link { display: none; }
.inline-link[aria-current="page"] { color: var(--accent); }
.site-head nav a.nav-book { background: var(--accent); color: #fff; padding: var(--s2) var(--s4); margin-left: var(--s2); }
.site-head nav a.nav-book:hover { background: var(--accent-hover); color: #fff; }
details.menu > summary { list-style: none; cursor: pointer; font-weight: 500; padding: var(--s2) var(--s3); border-radius: 999px; display: flex; align-items: center; gap: var(--s2); }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover, details.menu[open] > summary { background: var(--soft); }
details.menu ul { position: absolute; right: 0; top: calc(100% + var(--s2)); z-index: 10; list-style: none; margin: 0; padding: var(--s2);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 240px; box-shadow: var(--shadow); }
.site-head details.menu li a { display: block; padding: var(--s3); border-radius: var(--r-sm); }
.site-head details.menu li a:hover { background: var(--soft-2); color: var(--ink); }
.site-head details.menu li a[aria-current="page"] { background: var(--soft); }
@media (min-width: 900px) {
  .inline-link { display: inline-block; }
  details.menu { display: none; }
  .site-head .logo { width: 140px; height: 66px; }
}

/* ---------- Hero: the one bold moment ---------- */
.site-head.has-hero { background: var(--soft); border-bottom: 0; }
.hero { max-width: 1120px; margin: 0 auto; padding: var(--s6) var(--s4) 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s4); }
.hero-text { padding-bottom: var(--s7); }
.hero h1 { font-family: var(--display); font-size: var(--t-3xl); line-height: 1; letter-spacing: -.015em; color: var(--accent); margin: 0 0 var(--s5); max-width: 9em; }
.hero p { font-size: var(--t-md); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 0; }
.hero-art { width: 92px; aspect-ratio: 520 / 812; align-self: end; background: var(--gold);
  -webkit-mask: url("/brand/figure-line.png") center bottom / contain no-repeat; mask: url("/brand/figure-line.png") center bottom / contain no-repeat; }
@media (min-width: 600px) { .hero-art { width: 150px; } }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.4fr 1fr; padding-top: var(--s8); }
  .hero-art { width: 240px; justify-self: center; }
  .hero-text { padding-bottom: var(--s8); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p, .hero-actions { animation: rise .8s var(--ease) both; }
  .hero p { animation-delay: .08s; } .hero-actions { animation-delay: .16s; }
  .hero-art { animation: fade 1.2s .2s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Page width ---------- */
main { margin: 0 auto; padding: var(--s6) var(--s4) var(--s8); }
main.w-narrow { max-width: 712px; }
main.w-wide { max-width: 1120px; }
.split > .services, .split > .faq { margin-bottom: 0; }
.page-intro { max-width: 680px; margin-bottom: var(--s6); }
.page-intro p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.button, button.primary { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); padding: 14px 28px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.button:hover, button.primary:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }
.button:active, button.primary:active:not(:disabled) { transform: translateY(1px); }
.button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.button.secondary:hover:not(:disabled) { background: var(--accent); color: #fff; }
.button.secondary:disabled { opacity: .4; cursor: not-allowed; }
.button.danger { background: var(--error); }
.button.danger:hover { background: #82190f; }
button.primary { width: 100%; font-size: var(--t-md); padding: 16px 24px; }
button.primary:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
/* Quiet buttons (admin rows, stepper) */
button:not(.primary):not(.button):not(.opt-btn):not(.link):not(.change) { font: inherit; font-size: var(--t-sm); font-weight: 500; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; cursor: pointer; white-space: nowrap; }
button:not(.primary):not(.button):not(.opt-btn):not(.link):not(.change):hover { border-color: var(--accent); color: var(--accent); }
button.link, button.change { font: inherit; font-size: var(--t-sm); font-weight: 500; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
button.link:hover, button.change:hover { text-decoration-color: currentColor; }

/* ---------- Forms ---------- */
label { display: block; font-size: .95rem; font-weight: 500; margin: 0 0 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; color: var(--ink); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(194, 56, 111, .15); }
input:disabled { background: var(--soft-2); color: var(--muted); }
.fields { display: grid; gap: var(--s4); }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 400; margin: var(--s4) 0 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check-cell { display: flex; align-items: flex-end; }
.check-cell .check { margin: 0 0 12px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); margin: 0 0 var(--s4); background: var(--paper); }
fieldset > select, fieldset > textarea, fieldset > input, fieldset > .muted { margin-bottom: var(--s4); }
legend { font-family: var(--body); font-weight: 500; font-size: var(--t-lg); padding: 0; float: left; width: 100%; margin-bottom: var(--s4); }
legend + * { clear: both; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { background: var(--ok-bg); color: var(--ok); border-radius: var(--r-md); padding: var(--s4) var(--s5); font-weight: 500; }
.row { display: flex; gap: var(--s3); } .row > * { flex: 1; }

details.policy { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s4) 0; margin: var(--s5) 0 0; font-size: .95rem; }
details.policy summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
details.policy summary::-webkit-details-marker { display: none; }
details.policy summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; }
details.policy[open] summary::after { content: "\2212"; }
details.policy h3 { font-size: var(--t-base); margin: var(--s4) 0 var(--s1); }
details.policy ul { padding-left: 1.2em; margin: var(--s3) 0 0; }
details.policy li { margin-bottom: 6px; }

/* ---------- Sections ---------- */
.block { margin: 0 0 var(--s8); }
.split { display: grid; gap: var(--s5); }
.split-head p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
  .split-head { position: sticky; top: var(--s5); }
}
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.service h3 { font-family: var(--display); font-size: var(--t-lg); line-height: 1.2; }
.service p { margin: var(--s1) 0 0; }
.service .price { font-family: var(--display); font-size: var(--t-lg); color: var(--accent); white-space: nowrap; margin: 0; }

.press { display: grid; gap: var(--s5); background: var(--soft); border-radius: var(--r-lg); padding: var(--s6) var(--s5); }
.press p:last-child { margin-bottom: 0; }
.press-card { background: var(--paper); border-radius: var(--r-md); padding: var(--s5); }
.press-card h3 { margin-bottom: var(--s3); }
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.press-list .from { color: var(--muted); white-space: nowrap; }
@media (min-width: 900px) { .press { grid-template-columns: 1fr 1fr; gap: var(--s7); padding: var(--s7); align-items: center; } }

.photos { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.photos img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); width: 100%; }
@media (min-width: 900px) { .photos { grid-template-columns: repeat(4, 1fr); } }
.empty { background: var(--soft-2); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: var(--s6) var(--s5); text-align: center; margin-bottom: var(--s5); }
.empty p:last-child { margin: 0; }

.faq { border-top: 1px solid var(--line); margin-bottom: var(--s5); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s4) 0; font-weight: 500; font-size: var(--t-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 var(--s4); color: var(--muted); max-width: 40em; }

.band { text-align: center; border-top: 1px solid var(--gold); padding-top: var(--s7); margin-bottom: 0; }
.band-line { font-family: var(--display); font-size: var(--t-xl); color: var(--accent); margin-bottom: var(--s2); }

ol.steps { padding-left: 1.3em; }
ol.steps li { margin-bottom: var(--s3); padding-left: var(--s1); }
ol.steps li::marker { color: var(--accent); font-weight: 500; }
.specials { list-style: none; padding: 0; }
.specials li { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4) var(--s5); margin-bottom: var(--s3); background: var(--soft-2); }
.specials h3 { font-family: var(--display); font-size: var(--t-lg); color: var(--accent); margin-bottom: var(--s1); }
.policy-section { margin: 0 0 var(--s7); }
.policy-section h3 { font-size: var(--t-base); margin: var(--s5) 0 var(--s1); }
.policy-section ul { padding-left: 1.2em; }
.policy-section li { margin-bottom: 6px; }
.after-faq { margin-top: var(--s5); }

/* ---------- Guided booking and shop ---------- */
.book-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) {
  .book-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s7); align-items: start; }
}
.flow { display: grid; gap: var(--s3); }
.step { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.step-head { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); }
.step-head > div { flex: 1; min-width: 0; }
.step-head h2 { font-family: var(--body); font-size: var(--t-md); line-height: 1.3; margin: 0; }
.step-head h2:focus { outline: none; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: var(--t-sm); font-weight: 500;
  border: 1px solid var(--line-strong); color: var(--muted); }
.step-value { margin: 0; color: var(--muted); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-value:empty { display: none; }
.step-body { padding: 0 var(--s5) var(--s5); }
.step[data-status="open"] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.step[data-status="open"] .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.step[data-status="done"] .step-n { background: var(--soft); border-color: var(--soft); color: var(--accent); font-size: 0; }
.step[data-status="done"] .step-n::before { content: ""; width: 10px; height: 6px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.step[data-status="todo"] h2 { color: var(--muted); }
.step:not([data-status="open"]) .step-body { display: none; }
.page-shop .step .step-n { background: var(--soft); border-color: var(--soft); color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .page-book .step[data-status="open"] .step-body { animation: open .3s var(--ease); }
  @keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
.hint { margin-bottom: var(--s4); }

.options { display: grid; gap: var(--s2); }
.services-opt, .designs-opt { grid-template-columns: 1fr; }
@media (min-width: 600px) { .services-opt, .designs-opt { grid-template-columns: 1fr 1fr; } }
.dates-opt { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.times-opt { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.lengths-opt { grid-template-columns: repeat(3, 1fr); }
.opt-btn { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--s3) var(--s4);
  cursor: pointer; text-align: left; transition: border-color .15s, background .15s, color .15s; }
.opt-btn:hover { border-color: var(--accent); }
.opt-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt-btn[aria-pressed="true"] .o-meta, .opt-btn[aria-pressed="true"] .d-wk, .opt-btn[aria-pressed="true"] .d-mon { color: rgba(255, 255, 255, .88); }
.opt-btn.svc { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s3); padding: var(--s4); }
.o-name { font-weight: 500; }
.o-meta { color: var(--muted); font-size: var(--t-sm); grid-column: 1; }
.o-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 500; }
.opt-btn.day { text-align: center; padding: var(--s3) var(--s1); display: grid; line-height: 1.2; }
.d-wk, .d-mon { font-size: var(--t-sm); color: var(--muted); }
.d-num { font-family: var(--display); font-size: var(--t-lg); line-height: 1.3; }
.opt-btn.time, .opt-btn.len { text-align: center; padding: var(--s3) var(--s2); font-weight: 500; }
.opt-btn.len { display: grid; }
.opt-btn.len .o-meta { font-weight: 400; }
.time-group + .time-group { margin-top: var(--s4); }
.time-group h3 { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s2); font-weight: 500; }
.empty-msg { color: var(--muted); background: var(--soft-2); border-radius: var(--r-md); padding: var(--s4); margin: 0; }

.skel { display: block; border-radius: var(--r-md); background: linear-gradient(90deg, var(--soft-2), var(--soft), var(--soft-2)); background-size: 200% 100%; }
.skel-svc { height: 72px; } .skel-date { height: 76px; } .skel-time { height: 48px; }
@media (prefers-reduced-motion: no-preference) {
  .skel { animation: shimmer 1.2s linear infinite; }
  @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
}

.add-row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin-top: var(--s4); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.stepper button:not(.x) { border: 0; border-radius: 0; width: 44px; height: 46px; padding: 0; font-size: 1.2rem; background: var(--paper); }
.stepper button:not(.x):hover { background: var(--soft); color: var(--accent); }
.stepper input { width: 48px; border: 0; border-radius: 0; text-align: center; padding: 10px 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.stepper:focus-within { border-color: var(--accent); }
#pick { margin: var(--s3) 0 0; }

/* Summary: sticky card on desktop, a bar along the bottom on phones */
.tally { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(58, 34, 48, .08); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s1) var(--s4); }
.tally h2, .tally dl, .tally #cart { display: none; }
.tally-pay { min-width: 0; }
.tally-total { margin: 0; display: flex; align-items: baseline; gap: var(--s2); }
.tally-total span { color: var(--muted); font-size: var(--t-sm); }
.tally-total strong { font-size: var(--t-lg); font-weight: 500; }
.tally-note { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.35; display: none; }
.tally .error { grid-column: 1 / -1; margin: 0 0 var(--s1); font-size: var(--t-sm); order: -1; }
.tally button.primary { width: auto; font-size: var(--t-base); padding: 13px 22px; }
@media (min-width: 900px) {
  .tally { position: sticky; top: var(--s5); left: auto; right: auto; bottom: auto; display: block; border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--s5); }
  .tally h2, .tally dl, .tally #cart { display: block; }
  .tally h2 { font-size: var(--t-lg); margin-bottom: var(--s4); }
  .tally .error { margin: var(--s3) 0; }
  .tally-note { display: block; margin-top: var(--s1); font-size: var(--t-sm); }
  .tally-pay { border-top: 1px solid var(--line); padding-top: var(--s4); margin: var(--s4) 0; }
  .tally-pay:has(.tally-total:empty) { display: none; }
  .tally button.primary { width: 100%; }
}
.tally dl { margin: 0; }
.tally dl > div { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; font-size: .95rem; }
.tally dt { color: var(--muted); }
.tally dd { margin: 0; text-align: right; font-weight: 500; }
.tally dd.unset, p.unset { color: var(--muted); font-weight: 400; }
p.unset { margin: 0; }
.cart-list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.cart-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.cart-list li:last-child { border-bottom: 0; }
.cart-list li > span:nth-child(2) { font-weight: 500; }
.cart-list .link { justify-self: start; padding: 0; }
.cart-del { color: var(--muted); }

/* ---------- Tables and admin ---------- */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--muted); font-size: var(--t-sm); }
td.actions { white-space: nowrap; text-align: right; }
td.actions button + button { margin-left: var(--s2); }
tr.new td { background: var(--soft-2); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--t-sm); background: #eee; }
.tag.confirmed { background: var(--ok-bg); color: var(--ok); }
.tag.held { background: var(--warn-bg); color: var(--warn); }
.tag.conflict_refunded, .tag.cancelled { background: var(--error-bg); color: var(--error); }
.login { max-width: 420px; }
.login h2 { font-family: var(--body); font-size: var(--t-lg); }
.login label { margin-top: var(--s2); }
.login button { margin-top: var(--s4); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s6); }
.admin-tabs a { padding: 6px 14px; border-radius: 999px; background: var(--soft-2); border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: var(--t-sm); }
#app section { margin-bottom: var(--s7); }
#app section > h3 { margin: var(--s6) 0 var(--s2); }
.flash { border-radius: var(--r-md); padding: var(--s3) var(--s4); font-weight: 500; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
tr.panel-row > td { padding: 0 0 var(--s3); border-bottom: 1px solid var(--line); }
.panel { background: var(--soft-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4) var(--s5); }
.panel h3 { margin-bottom: var(--s3); }
.panel label { margin-bottom: var(--s3); }
.panel label input, .panel label select { margin-top: 6px; }
.panel-actions { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin: var(--s3) 0 0; }
.radios { border: 0; padding: 0; margin: 0; background: none; border-radius: 0; }
.radio { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 400; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); margin-bottom: var(--s2); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--accent); }
.radio input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
@media (max-width: 700px) {
  #app table, #app tbody, #app tr, #app td, #app th { display: block; }
  #app tr:first-child:has(th) { display: none; }
  #app tr { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
  #app td { border: 0; padding: var(--s1) 0; }
  #app td.actions { text-align: left; padding-top: var(--s2); }
  #app tr.panel-row { border: 0; padding-top: 0; }
}

/* ---------- Footer ---------- */
.site-foot { background: var(--soft-2); border-top: 1px solid var(--gold); font-size: .95rem; }
.site-foot .bar { display: grid; gap: var(--s5); padding-top: var(--s7); padding-bottom: var(--s7); }
.foot-brand .logo { width: 110px; height: 52px; margin-bottom: var(--s3); }
.foot-brand p { color: var(--muted); max-width: 26em; margin-bottom: var(--s3); }
.foot-brand p:last-child { margin-bottom: 0; }
.foot-brand p a { font-weight: 500; color: var(--ink); }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s5); align-content: start; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links.small { font-size: var(--t-sm); }
.foot-links.small a { color: var(--muted); }
@media (min-width: 900px) {
  .site-foot .bar { grid-template-columns: 2fr 2fr 1fr; gap: var(--s7); }
  .foot-links.small { grid-template-columns: 1fr; }
}
.whatsapp { font-weight: 500; color: var(--accent); }

/* Phones: leave room for the booking and shop bar */
@media (max-width: 899px) { .page-book .site-foot, .page-shop .site-foot { padding-bottom: 88px; } }

/* ---------- Shop: nail sizes (17 Oct 2026) ---------- */
.gold-word { color: var(--gold); }
.sizing-choice { display: grid; gap: var(--s2); margin: var(--s4) 0 var(--s5); }
@media (min-width: 600px) { .sizing-choice { grid-template-columns: 1fr 1fr; } }
.sizing-choice .radio { margin: 0; }
.measure-anim { margin: 0 0 var(--s4); background: var(--soft-2); border-radius: var(--r-md); padding: var(--s4) var(--s4) var(--s2); text-align: center; }
.measure-anim svg { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; overflow: hidden; }
.anim-toggle { margin-top: var(--s1); }
.measure-steps li { margin-bottom: var(--s2); }
.nail-grid { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); gap: var(--s2) 6px; align-items: center; margin: var(--s4) 0 var(--s5); }
.nail-grid input { padding: 10px 4px; text-align: center; }
.ng-h { font-size: .8rem; color: var(--muted); text-align: center; }
.ng-row { font-size: var(--t-sm); font-weight: 500; }
.notes-label { margin-top: var(--s5); }
#photo .steps { margin-top: 0; }

/* The measuring loop: tape on, mark both edges, measure on a ruler (10 s). */
.m-finger, .m-tape, .m-ruler, .m-result { transform-box: view-box; }
.m-mark { stroke-dasharray: 24; stroke-dashoffset: 0; }
.m-ruler, .m-result { opacity: 1; }
.m-finger { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .m-finger { animation: m-finger 10s infinite; }
  .m-tape { animation: m-tape 10s infinite; }
  .m-mark-l { animation: m-mark-l 10s infinite; }
  .m-mark-r { animation: m-mark-r 10s infinite; }
  .m-ruler { animation: m-ruler 10s infinite; }
  .m-result { animation: m-result 10s infinite; }
  .measure-steps li { animation: m-step 10s infinite; }
  .measure-steps li:nth-child(2) { animation-name: m-step2; }
  .measure-steps li:nth-child(3) { animation-name: m-step3; }
  .measure-anim.paused *, .measure-anim.paused ~ .measure-steps li { animation-play-state: paused; }
  @keyframes m-finger { 0%, 58% { opacity: 1; } 64%, 96% { opacity: 0; } 100% { opacity: 1; } }
  @keyframes m-tape { 0%, 4% { transform: translateY(-120px); opacity: 1; } 18%, 95% { transform: translateY(0); opacity: 1; } 99% { transform: translateY(0); opacity: 0; } 100% { transform: translateY(-120px); opacity: 0; } }
  @keyframes m-mark-l { 0%, 28% { stroke-dashoffset: 24; } 36%, 100% { stroke-dashoffset: 0; } }
  @keyframes m-mark-r { 0%, 40% { stroke-dashoffset: 24; } 48%, 100% { stroke-dashoffset: 0; } }
  @keyframes m-ruler { 0%, 60% { opacity: 0; } 68%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
  @keyframes m-result { 0%, 72% { opacity: 0; } 78%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
  @keyframes m-step  { 0%, 25% { color: var(--ink); } 27%, 100% { color: var(--muted); } }
  @keyframes m-step2 { 0%, 25% { color: var(--muted); } 27%, 57% { color: var(--ink); } 59%, 100% { color: var(--muted); } }
  @keyframes m-step3 { 0%, 57% { color: var(--muted); } 59%, 98% { color: var(--ink); } 100% { color: var(--muted); } }
}
@media (prefers-reduced-motion: reduce) { .anim-toggle { display: none; } }

/* Admin: email alert copies */
details.email { border-bottom: 1px solid var(--line); }
details.email summary { cursor: pointer; display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; font-weight: 500; }
details.email pre { white-space: pre-wrap; font: inherit; font-size: .95rem; background: var(--soft-2); border-radius: var(--r-sm); padding: var(--s4); margin: 0 0 var(--s3); }

/* Booking: deposit or pay in full */
.pay-choice { margin: var(--s5) 0 0; display: grid; gap: var(--s2); }
@media (min-width: 600px) { .pay-choice { grid-template-columns: 1fr 1fr; } }
.pay-choice .radio { margin: 0; }
.pay-legend { font-size: var(--t-base); margin-bottom: var(--s3); grid-column: 1 / -1; }

/* Shop: nail shapes and size checks (17 Oct 2026) */
.pick-label { font-size: var(--t-sm); color: var(--muted); font-weight: 500; margin: var(--s4) 0 var(--s2); }
.pick-label:first-child { margin-top: 0; }
.shapes-opt { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 600px) { .shapes-opt { grid-template-columns: repeat(6, 1fr); } }
.opt-btn.shape { display: grid; justify-items: center; gap: var(--s1); padding: var(--s3) var(--s1) var(--s2); text-align: center; }
.opt-btn.shape .o-name { font-size: var(--t-sm); }
.shape-icon { width: 26px; height: 40px; }
.shape-icon path { fill: #F6D5DF; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.opt-btn.shape[aria-pressed="true"] .shape-icon path { fill: #fff; stroke: #fff; }
.nail-grid input[aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); box-shadow: 0 0 0 3px rgba(163, 38, 27, .12); }

/* Photo animation: hand settles flat, coin slides in beside it, phone lowers to directly above,
   shutter, "Photo taken". 10 s loop; the step being shown is highlighted in the list below. */
.p-hand, .p-coin, .p-phone, .p-flash, .p-done { transform-box: view-box; transform-origin: 160px 110px; }
.p-flash { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .p-hand, .p-coin, .p-phone, .p-flash, .p-done, .photo-steps li { animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
  .p-hand { animation-name: p-hand; }
  .p-coin { animation-name: p-coin; }
  .p-phone { animation-name: p-phone; }
  .p-flash { animation-name: p-flash; animation-timing-function: ease-out; }
  .p-done { animation-name: p-done; }
  .photo-steps li:nth-child(1) { animation-name: ps-1; }
  .photo-steps li:nth-child(2) { animation-name: ps-2; }
  .photo-steps li:nth-child(3) { animation-name: ps-3; }
  .photo-anim.paused *, .photo-anim.paused ~ .photo-steps li { animation-play-state: paused; }
  @keyframes p-hand { 0% { opacity: 0; transform: translateY(14px) scale(1.02); } 12%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
  @keyframes p-coin { 0%, 14% { opacity: 0; transform: translateX(-26px); } 26%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
  @keyframes p-phone { 0%, 30% { opacity: 0; transform: scale(1.45); } 48%, 93% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
  @keyframes p-flash { 0%, 54% { opacity: 0; } 55% { opacity: .95; } 62%, 100% { opacity: 0; } }
  @keyframes p-done { 0%, 62% { opacity: 0; transform: translateY(8px); } 68%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
  @keyframes ps-1 { 0%, 28% { color: var(--ink); } 30%, 100% { color: var(--muted); } }
  @keyframes ps-2 { 0%, 28% { color: var(--muted); } 30%, 64% { color: var(--ink); } 66%, 100% { color: var(--muted); } }
  @keyframes ps-3 { 0%, 64% { color: var(--muted); } 66%, 97% { color: var(--ink); } 100% { color: var(--muted); } }
}

/* Shop: hand photo upload (17 Oct 2026) */
.photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: var(--s4) 0; }
.photo-slot { display: grid; gap: 2px; justify-items: center; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  padding: var(--s2) var(--s2) var(--s3); cursor: pointer; background: var(--paper); font-weight: 400; margin: 0; transition: border-color .15s; }
.photo-slot:hover, .photo-slot:focus-within { border-color: var(--accent); }
.photo-slot:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ps-img { width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r-sm); background: var(--soft-2) center / cover no-repeat;
  display: grid; place-items: center; }
.photo-slot:not(.has) .ps-img::before { content: "+"; font-size: 1.8rem; color: var(--accent); }
.ps-label { font-weight: 500; font-size: var(--t-sm); margin-top: var(--s1); }
.ps-action { font-size: .8rem; color: var(--accent); }
.photo-slot.has { border-style: solid; }
.photo-slot.busy { opacity: .6; }
.photo-slot.missing { border-color: var(--error); background: var(--error-bg); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s3); margin: var(--s3) 0; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); }
.photo-grid figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s1); }
.skel-photo { aspect-ratio: 3 / 4; }

/* No step numbers (18 Oct 2026): a tick appears only on finished booking steps. */
.step-n { display: none; }
.step[data-status="done"] .step-n { display: grid; }

/* Booking: free call-out note (18 Oct 2026) */
.area-note { margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--soft-2); color: var(--muted); font-size: .95rem; }
.area-note.free { background: var(--ok-bg); color: var(--ok); font-weight: 500; }
/* Messages inside option grids span the full width */
.options > .empty-msg { grid-column: 1 / -1; }
/* Turnstile bot check (only shows when Cloudflare needs the visitor to tick a box) */
.turnstile { margin: 12px 0; }
.turnstile:empty { display: none; }

/* Admin: reply to a message on WhatsApp, and the cancelled/refunded booking history (22 Oct 2026) */
a.btn.wa { display: inline-block; font-size: var(--t-sm); font-weight: 500; color: #fff; background: #1f8f4e; border-radius: 999px;
  padding: 6px 14px; text-decoration: none; white-space: nowrap; margin-right: var(--s2); }
a.btn.wa:hover { background: #18733e; }
.closed-list { margin-top: var(--s5); }
.closed-list summary { cursor: pointer; font-weight: 500; color: var(--muted); padding: var(--s3) 0; }
.closed-list table { opacity: .85; }
/* Contact page: send the typed message on WhatsApp instead (22 Oct 2026) */
.wa-alt { margin-top: var(--s4); text-align: center; color: var(--muted); }
.button.wa-send { background: #1f8f4e; color: #fff; padding: 10px 20px; margin-left: var(--s2); }
.button.wa-send:hover { background: #18733e; }

/* Ways to pay (Yoco / PayFast), 23 Oct 2026 */
.method-choice { margin-top: var(--s4); display: block; }
.method-opts { display: grid; gap: var(--s2); }
@media (min-width: 600px) { .method-opts { grid-template-columns: 1fr 1fr; } }
.method-opts .radio { margin: 0; }
#bal-methods { margin: var(--s3) 0; }

/* Booking page: keep the link (WhatsApp / calendar) */
.keep { margin: var(--s6) 0 var(--s5); padding: var(--s5); background: var(--soft-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.keep h2 { font-size: var(--t-lg); margin: 0 0 var(--s2); }
.keep-btns { display: grid; gap: var(--s3); margin: var(--s4) 0 var(--s3); }
@media (min-width: 600px) { .keep-btns { grid-template-columns: 1fr 1fr; } }
.keep-btns .button { text-align: center; }
.small { font-size: var(--t-sm); }

/* Opening sale (24 Oct 2026) */
.sale-banner { background: var(--soft); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: var(--s4) var(--s5); margin: var(--s5) 0; }
.sale-banner p { margin: 0; }
.sale-banner .sale-title { font-family: var(--display); font-size: var(--t-xl); color: var(--accent); line-height: 1.2; margin-bottom: var(--s2); }
.split .sale-banner { margin-top: 0; }
s.was { color: var(--muted); font-family: var(--body); font-size: .7em; margin-right: .25em; text-decoration-thickness: 1px; }
.opt-btn.svc:has(.o-was) .o-price { grid-row: 1; align-self: end; }
.o-was { grid-column: 2; grid-row: 2; font-size: var(--t-sm); color: var(--muted); text-align: right; }
.opt-btn[aria-pressed="true"] .o-was, .opt-btn[aria-pressed="true"] s.was { color: rgba(255, 255, 255, .88); }
.d-sale { font-size: .7rem; font-weight: 500; color: var(--accent); }
.opt-btn[aria-pressed="true"] .d-sale { color: #fff; }
.sale-hint { grid-column: 1 / -1; margin: 0; }
#where-choice { margin-bottom: var(--s5); }
.when-where { margin: var(--s4) 0; border-top: 1px solid var(--line); max-width: 36rem; }
.when-where div { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.when-where dt { font-weight: 500; }
.when-where dd { margin: 0; color: var(--muted); }
.foot-credit { text-align: center; font-size: var(--t-sm); color: var(--muted); margin: 0; padding: var(--s3) var(--s4) var(--s5); border-top: 1px solid var(--line); }
.foot-credit a { color: inherit; }
s.o-was { font-size: var(--t-sm); }
.method-choice[hidden], #where-choice[hidden] { display: none; }
