:root {
  --bg: #efe9e1;
  --card: #fbf8f3;
  --ink: #2a2520;
  --soft: #8a8177;
  --accent: #b9683f;
  --accent-2: #e2a56a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 0%, #f7f3ed, var(--bg));
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px;
}

.card {
  position: relative;
  width: min(332px, 100%);
  padding: 16px 14px 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdfa, var(--card));
  box-shadow:
    inset 0 0 0 1px rgba(42, 37, 32, 0.06),
    0 1px 2px rgba(42, 37, 32, 0.05),
    0 18px 36px -18px rgba(110, 70, 40, 0.3),
    0 44px 80px -44px rgba(110, 70, 40, 0.4);
  overflow: hidden;
  isolation: isolate;
}
/* the warmth of the card grows with the length of the treatment */
.card__warm {
  position: absolute;
  left: 50%;
  top: 60px;
  width: 360px;
  height: 260px;
  margin-left: -180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 70%, transparent), transparent);
  opacity: 0.3;
  z-index: -1;
}

.head { padding: 0 6px; }
.head__place { font-size: 11.5px; font-weight: 560; color: var(--soft); letter-spacing: 0.02em; }
.head__title { font-size: 20px; line-height: 25px; font-weight: 680; font-stretch: 106%; letter-spacing: -0.015em; }

/* ---- the arc of the length ---- */
.dial { position: relative; width: 260px; max-width: 100%; margin: 2px auto 0; touch-action: none; cursor: grab; }
.dial.is-held { cursor: grabbing; }
.dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial__track, .dial__fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.dial__track { stroke: rgba(42, 37, 32, 0.08); }
.dial__fill { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 0.5; }
.dial__marks path { fill: none; stroke: rgba(42, 37, 32, 0.3); stroke-width: 1.6; stroke-linecap: round; }
.dial__halo { fill: var(--accent); opacity: 0.16; }
.dial__knob { fill: #ffffff; stroke: rgba(42, 37, 32, 0.12); stroke-width: 1; filter: drop-shadow(0 3px 4px rgba(110, 70, 40, 0.4)); }
.dial__pin { fill: var(--accent); }
.stop { position: absolute; width: 34px; height: 26px; border: 0; border-radius: 99px; background: none; color: var(--soft); font: inherit; font-size: 12.5px; font-weight: 620; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s ease; }
.stop.is-on { color: var(--ink); }
.stop:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.stop--a { left: -4.5%; bottom: -7%; }
.stop--b { left: 50%; top: -9%; margin-left: -17px; }
.stop--c { right: -4.5%; bottom: -7%; }
.dial__read { position: absolute; left: 0; right: 0; bottom: 4%; display: grid; justify-items: center; pointer-events: none; }
.dial__min { display: flex; align-items: baseline; gap: 4px; font-size: 40px; line-height: 44px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; }
.dial__min small { font-size: 14px; font-weight: 600; color: var(--soft); letter-spacing: 0; }
.dial__price { height: 22px; overflow: hidden; font-size: 16px; line-height: 22px; font-weight: 640; color: var(--accent); }
.dial__price span { display: block; }

/* ---- the free slots ---- */
.slots { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding: 4px; border-radius: 99px; background: rgba(42, 37, 32, 0.05); box-shadow: inset 0 0 0 1px rgba(42, 37, 32, 0.05); }
.slots__pill { position: absolute; left: 0; top: 4px; bottom: 4px; width: 33%; border-radius: 99px; background: #ffffff; box-shadow: 0 0 0 1px rgba(42, 37, 32, 0.07), 0 3px 8px -3px rgba(110, 70, 40, 0.4); }
.slots button { position: relative; height: 32px; border: 0; border-radius: 99px; background: none; color: var(--soft); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s ease; }
.slots button[aria-pressed="true"], .slots button.is-hot { color: var(--ink); }
@media (hover: hover) { .slots button:hover { color: var(--ink); } }
.slots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.book {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, #3a332c, #2a2520);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 20px -10px rgba(42, 37, 32, 0.7);
  color: #fffdfa;
  font: inherit;
  font-size: 15px;
  font-weight: 620;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.book:active { transform: scale(0.98); }
.book:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.book__in { display: block; height: 22px; overflow: hidden; line-height: 22px; }
.book__in span { display: block; white-space: nowrap; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #14151a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(20, 21, 26, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (max-height: 420px) {
  .card { padding-top: 12px; padding-bottom: 10px; }
  .dial { width: 236px; }
  .slots { margin-top: 12px; }
  .book { height: 42px; margin-top: 8px; }
}
@media (min-width: 900px) and (min-height: 680px) {
  .card { zoom: 1.3; }
}
