/* A salon treatment menu, alone on white. Elements moved by GSAP (the ticks, the strip pieces, the rolling numbers,
   the button face) never get a transform from the CSS: colours and edges live on classes. */
:root {
  --page: #ffffff;          /* the page */
  --ink: #1b1716;           /* titles, prices */
  --muted: #8f8784;         /* durations, notes */
  --line: #ece7e4;          /* row dividers, the empty strip */
  --row-hover: #faf6f3;     /* a row under the pointer */
  --accent: #8a4b3c;        /* the chosen ticks, the session */
  --accent-soft: #f4e9e4;   /* the chosen row */
  --button: #1b1716;        /* Book */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.menu {
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: clamp(8px, 1.8vh, 14px);
}

.menu__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.menu__title { font-size: clamp(15px, min(4.4vw, 3.6vh), 18px); font-weight: 640; letter-spacing: -0.01em; white-space: nowrap; }
.menu__note { font-size: clamp(11px, min(3.2vw, 2.7vh), 13px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.item { border-bottom: 1px solid var(--line); }
.row {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  width: 100%;
  min-height: clamp(38px, 8.6vh, 52px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.25s ease;
}
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) { .row:hover { background: var(--row-hover); } }
.row.is-on { background: var(--accent-soft); }

.tick { width: clamp(18px, 4.2vh, 22px); height: clamp(18px, 4.2vh, 22px); display: block; }
.tick__ring { fill: #fff; stroke: #d6cfcb; stroke-width: 1.4; transition: stroke 0.25s ease; }
.tick__fill { fill: var(--accent); }
.tick__mark { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .row:hover .tick__ring { stroke: #b9aea9; } }

.row__text { display: grid; gap: 1px; min-width: 0; }
.row__name { font-size: clamp(13px, min(3.8vw, 3.1vh), 15px); font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__time { font-size: clamp(10.5px, min(3vw, 2.5vh), 12px); color: var(--muted); }
.row__price { font-size: clamp(13px, min(3.8vw, 3.1vh), 15px); font-weight: 600; color: var(--muted); transition: color 0.25s ease; }
.row.is-on .row__price { color: var(--ink); }

.session { display: grid; gap: 6px; }
.session__labels { display: flex; justify-content: space-between; font-size: clamp(10.5px, min(3vw, 2.5vh), 12px); color: var(--muted); }
.strip { position: relative; height: clamp(18px, 4.2vh, 24px); }
.strip__ticks { position: absolute; inset: 0; }
.strip__tick { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--line); }
.strip__track {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 2px;
  border-radius: 7px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(27, 23, 22, 0.035) 6px 7px), #f6f2ef;
  overflow: hidden;
}
.piece {
  height: 100%;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 7px;
  color: #fff;
  font-size: clamp(9.5px, min(2.7vw, 2.2vh), 11px);
  font-weight: 560;
  white-space: nowrap;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; }
.roll__in { display: inline-block; white-space: nowrap; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 2px; }
.sum { display: grid; gap: 1px; }
.sum__time { font-size: clamp(11px, min(3.2vw, 2.7vh), 13px); color: var(--muted); }
.sum__price { font-size: clamp(20px, min(6vw, 5vh), 26px); font-weight: 660; letter-spacing: -0.02em; line-height: 1.1; }

.book {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  flex: none;
}
.book:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.book__face {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(46px, 10vh, 56px);
  min-width: clamp(128px, 36vw, 150px);
  padding: 0 22px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-size: clamp(14px, min(4vw, 3.3vh), 16px);
  font-weight: 600;
  box-shadow: 0 12px 22px -12px rgba(27, 23, 22, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.book:disabled { cursor: default; }
.book:disabled .book__face { background: #efebe8; color: #b5ada9; box-shadow: none; }
.book__label, .book__done { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.book__done { opacity: 0; }
.book__done svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.book.is-done .book__face { background: var(--accent); }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #1b1716;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: 0;
  z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}
