/* VOS brand tokens - taken from the live brand site (anydayagency/voscollection-brand-site,
   frontend/app/globals.css + components), which supersedes the Figma values. */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canela";
  src: url("fonts/Canela-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Canela";
  src: url("fonts/Canela-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  --vos-black: #0b0b0b;      /* --color-black */
  --vos-white: #fff;
  --ink: #1f1f1f;            /* body copy on light sections */
  --grey-50: #4f4f4f;        /* secondary text */
  --grey-subtle: #757575;    /* placeholders, tertiary */
  --navy: #1f283f;           /* "Book now" buttons */
  --hydrate-blue: #234e87;   /* active filter tag */
  --cryo-blue: #c3d0ef;      /* primary button / highlight */

  --page-bg: var(--vos-white);
  --bg: #f6f5fa;             /* subtle fills: chips, empty states, hovers */
  --surface: var(--vos-white);
  --text: var(--vos-black);
  --muted: var(--grey-50);
  --line: #e6e6e6;
  --line-strong: #d9d9d9;
  --accent: var(--navy);
  --accent-soft: #eef1f8;
  --radius-pill: 500px;      /* buttons, chips */
  --radius-tag: 24px;        /* small badges */
  --warn: #8a5a00;
  --warn-soft: #fbf4e6;
  --danger: #a3261b;
  --danger-soft: #fbeceb;
  --ok: #2f7a4f;

  --font-display: "Canela", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page-bg); color: var(--text);
  font: 16px/24px var(--font-body);
  font-feature-settings: "ss01", "ss02", "ss03", "ss04", "ss06";
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
.muted { color: var(--muted); font-size: 14px; line-height: 18px; }

/* ---------------------------------------------------------------- type */
.eyebrow {
  font-weight: 500; font-size: 14px; line-height: 20px;
  letter-spacing: .7px; text-transform: uppercase;
}
.display {
  font-family: var(--font-display); font-weight: 300;
  font-size: 42px; line-height: 44px; letter-spacing: -.42px; margin: 0;
}
.display-md { font-size: 34px; line-height: 38px; }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 18px; max-width: 46ch; }

/* -------------------------------------------------------------- chrome */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.badge {
  font-size: 12px; line-height: 16px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent); font-weight: 500; letter-spacing: .3px;
}
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }

.layout {
  max-width: 1240px; margin: 0 auto; padding: 48px 40px 140px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start;
}
.intro { margin-bottom: 32px; }

/* ---------------------------------------------------------------- steps */
.flow { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step {
  scroll-margin-top: 84px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.step.is-active { border-color: var(--line-strong); box-shadow: 0 12px 40px -24px rgba(0,0,0,.18); }
.step-head {
  width: 100%; display: flex; align-items: baseline; gap: 16px;
  padding: 24px 32px; background: none; border: 0; text-align: left; cursor: default;
}
.step-num { font-size: 14px; line-height: 20px; letter-spacing: .7px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-title { font-family: var(--font-display); font-weight: 300; font-size: 26px; line-height: 30px; letter-spacing: -.2px; }
.step-value {
  margin-left: auto; color: var(--text); font-size: 14px; line-height: 20px;
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.step-edit {
  display: none; font-size: 14px; line-height: 20px; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; flex: 0 0 auto;
}
.step.is-done .step-head { cursor: pointer; }
.step.is-done .step-edit { display: inline; }
.step.is-done .step-head:hover .step-title { color: var(--accent); }
.step.is-locked { opacity: .45; }
.step.is-locked .step-head { padding-block: 18px; }
.step.is-locked .step-title { font-size: 22px; }

.step-body { display: none; padding: 0 32px 32px; }
.step.is-active .step-body { display: block; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-scroll {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  margin: 0 -32px 20px; padding: 0 32px;
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 27px; padding: 0 12px; border-radius: var(--radius-pill); border: 0;
  background: var(--bg); color: rgba(0,0,0,.6); cursor: pointer;
  font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: .7px; text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: #ebebe8; }
/* Active tag matches the site's ScrollableTagFilter (navy variant). */
.chip[aria-pressed="true"] { background: var(--hydrate-blue); color: var(--vos-white); }

/* Location chips are larger cards with a subtitle */
.chips-lg { gap: 10px; }
.loc-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 16px 20px; min-width: 200px; flex: 1 1 200px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.loc-card:hover { border-color: var(--text); }
.loc-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.loc-card .t { font-size: 16px; line-height: 24px; }
.loc-card .s { font-size: 14px; line-height: 18px; color: var(--muted); }

/* --------------------------------------------------------------- inputs */
.line-input {
  width: 100%; border: 0; border-bottom: 1px solid var(--vos-black); border-radius: 0;
  padding: 8px 0 10px; background: transparent; color: var(--text);
  font: inherit; outline: none; resize: vertical;
  transition: border-color .2s var(--ease);
}
.line-input::placeholder { color: var(--grey-subtle); }
.line-input:focus { border-bottom-color: var(--text); }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.field-label { font-size: 16px; line-height: 24px; }
.search-row { margin-bottom: 8px; }

/* -------------------------------------------------------------- buttons */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 48px; padding: 12px 24px; border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer; font-weight: 500;
  background: var(--accent); color: var(--vos-white); white-space: nowrap;
  font-size: 16px; line-height: 24px;
  transition: background .2s var(--ease), transform .15s var(--ease), opacity .2s;
}
/* Same hover as the site's "Book now" button: invert to white with a hairline. */
.btn-pill:hover:not(:disabled) { background: var(--vos-white); color: var(--vos-black); border-color: var(--line-strong); }
.btn-pill:active:not(:disabled) { transform: scale(.98); }
.btn-pill:disabled { opacity: .35; cursor: not-allowed; }
.btn-pill.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-pill.ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  display: inline-grid; place-items: center;
  background: var(--surface); cursor: pointer; font-size: 16px;
  transition: border-color .2s var(--ease);
}
.icon-btn:hover:not(:disabled) { border-color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.text-link {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; font-size: 14px;
}

/* ------------------------------------------------------ treatment tiles */
/* Modelled on the brand site's solid treatment cards (MatchaSolidCard): a flat brand
   colour per family, uppercase label, Canela title, arrow. --tile is set per card. */
.service-list { margin-top: 8px; }
.treat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.treat {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 210px; padding: 20px; border: 0; text-align: left; cursor: pointer;
  background: var(--tile, var(--bg)); color: var(--vos-black);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.treat:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(11, 11, 11, .4); }
.treat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.treat[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--vos-black); }
.treat-top { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.treat-label { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .7px; text-transform: uppercase; }
.treat-check {
  width: 24px; height: 24px; border-radius: var(--radius-pill); display: grid; place-items: center;
  background: var(--vos-black); color: var(--vos-white); font-size: 12px;
  opacity: 0; transform: scale(.6); transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.treat[aria-pressed="true"] .treat-check { opacity: 1; transform: none; }
.treat-name {
  margin-top: 14px; font-family: var(--font-display); font-weight: 300;
  font-size: 26px; line-height: 30px; letter-spacing: -.26px; text-wrap: balance;
}
.treat-line {
  font-size: 14px; line-height: 20px; color: rgba(11, 11, 11, .72);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.treat-internal { font-size: 12px; color: rgba(11, 11, 11, .55); }
.treat-foot {
  margin-top: auto; padding-top: 14px; width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid rgba(11, 11, 11, .12);
}
.treat-meta { font-size: 14px; font-variant-numeric: tabular-nums; }
.treat-go {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--radius-pill); display: grid; place-items: center;
  background: rgba(255, 255, 255, .65); transition: background .2s var(--ease), color .2s var(--ease);
}
.treat:hover .treat-go, .treat[aria-pressed="true"] .treat-go { background: var(--vos-black); color: var(--vos-white); }
.treat-sk {
  min-height: 210px;
  background: linear-gradient(90deg, #f0f0ee 0%, #f7f7f5 50%, #f0f0ee 100%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.show-all { width: 100%; justify-content: center; gap: 10px; margin-top: 12px; }
.list-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }

/* ------------------------------------------------------- provider cards */
.provider-row {
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.provider {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.provider:hover { border-color: var(--text); }
.provider[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.avatar {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--radius-pill);
  display: grid; place-items: center; background: var(--cryo-blue);
  font-family: var(--font-display); font-weight: 300; font-size: 20px; letter-spacing: .5px;
}
.avatar.any { background: var(--accent); color: var(--vos-white); font-family: var(--font-body); font-size: 18px; }
.provider .t { font-size: 16px; line-height: 22px; }
.provider .s { font-size: 13px; line-height: 18px; color: var(--muted); }

/* ------------------------------------------------------------- guest */
.guest-form { display: flex; align-items: flex-end; gap: 16px; }
.guest-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.guest {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; text-align: left;
}
.guest:hover { border-color: var(--text); }
.guest .avatar { width: 40px; height: 40px; font-size: 16px; }
.welcome { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--accent-soft); }

/* ------------------------------------------------------- week + slots */
.week-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.month-label { font-size: 16px; }
.week-nav { display: flex; gap: 8px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 28px; }
.day {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; max-width: 64px; justify-self: center; border-radius: var(--radius-pill);
  padding: 12px 0 16px; border: 0; background: transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.day .dow { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.day .num { font-size: 20px; line-height: 24px; font-variant-numeric: tabular-nums; }
.day:hover:not(:disabled) { background: var(--bg); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--vos-white); }
.day[aria-pressed="true"] .dow { color: rgba(255,255,255,.75); }
.day:disabled { opacity: .3; cursor: not-allowed; }
.day.today .dow { color: var(--accent); font-weight: 500; letter-spacing: .3px; }
.day.today[aria-pressed="true"] .dow { color: var(--vos-white); }
.day .dot { position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ok); }
.day[aria-pressed="true"] .dot { background: var(--vos-white); }

.slot-group + .slot-group { margin-top: 20px; }
.slot-group-title { font-size: 12px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot {
  height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 15px; font-variant-numeric: tabular-nums;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--text); }
.slot[aria-pressed="true"] { background: var(--cryo-blue); border-color: var(--accent); color: var(--accent); }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot-skeleton { height: 44px; border-radius: var(--radius-pill); }

.empty { padding: 28px 24px; text-align: center; background: var(--bg); color: var(--muted); font-size: 14px; line-height: 20px; }
.empty strong { display: block; color: var(--text); font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.empty .btn-pill { margin-top: 16px; }

.waitlist { margin-top: 20px; padding: 20px; background: var(--warn-soft); }
.waitlist .eyebrow { color: var(--warn); font-size: 12px; display: block; margin-bottom: 8px; }
.waitlist .row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.08); font-size: 14px; }

/* ------------------------------------------------------------ summary */
.summary-panel {
  position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.summary-rows { display: flex; flex-direction: column; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.summary-row span:first-child { color: var(--muted); flex: 0 0 auto; }
.summary-row span:last-child { text-align: right; min-width: 0; }
.summary-row.empty-val span:last-child { color: var(--line-strong); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; }
.summary-total strong { font-family: var(--font-display); font-weight: 300; font-size: 28px; }
.hint { margin: -8px 0 0; text-align: center; }

/* ------------------------------------------------------------ book bar */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px -20px rgba(0,0,0,.25);
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.book-bar.show { transform: none; }
.book-bar-text { display: flex; flex-direction: column; min-width: 0; }
.book-bar-text strong { font-weight: 500; font-size: 15px; }
.book-bar-text .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* -------------------------------------------------------------- modal */
.modal { border: 0; padding: 0; background: transparent; max-width: 756px; width: calc(100% - 40px); }
.modal::backdrop { background: rgba(144,144,144,.85); backdrop-filter: blur(2px); }
.modal[open] { animation: rise .3s var(--ease); }
.modal-panel { position: relative; background: var(--surface); padding: 40px; }
.modal-close {
  position: absolute; top: 34px; right: 40px; width: 24px; height: 24px; padding: 0;
  display: grid; place-items: center; background: none; border: 0; cursor: pointer;
}
#confirmView .display { margin-top: 20px; }
.confirm-rows { margin: 32px 0 28px; display: flex; flex-direction: column; }
.confirm-rows .summary-row { font-size: 16px; line-height: 24px; padding: 12px 0; }
#confirmView .field { margin-bottom: 28px; }
.result { margin-top: 16px; padding: 14px 16px; font-size: 14px; line-height: 20px; }
.result.ok { background: var(--accent-soft); }
.result.err { background: var(--danger-soft); color: var(--danger); }
.success { text-align: left; }
.success .tick {
  width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--cryo-blue); color: var(--accent);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 24px;
}

/* --------------------------------------------------------- skeletons */
.skeleton-row, .slot-skeleton, .sk {
  background: linear-gradient(90deg, #f0f0ee 0%, #f7f7f5 50%, #f0f0ee 100%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.skeleton-row { height: 76px; width: 100%; }
.sk { height: 57px; margin: 0 8px 1px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--vos-black); color: var(--vos-white); padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 14px; max-width: 90vw;
}

/* ------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .layout { grid-template-columns: 1fr; padding: 32px 24px 140px; }
  .summary-panel { display: none; }
  .book-bar { display: flex; }
}
@media (max-width: 600px) {
  .topbar { padding: 16px 20px; }
  .layout { padding: 28px 16px 140px; }
  .display { font-size: 38px; line-height: 40px; }
  .step-head { padding: 20px; flex-wrap: wrap; gap: 4px 12px; }
  .step-value { flex-basis: 100%; order: 3; margin-left: 32px; text-align: left; color: var(--muted); }
  .step-edit { margin-left: auto; }
  .step-body { padding: 0 20px 24px; }
  .chips-scroll { margin: 0 -20px 16px; padding: 0 20px; }
  .guest-form { flex-direction: column; align-items: stretch; }
  .week-strip { gap: 2px; }
  .day .num { font-size: 17px; }
  .provider-row { grid-template-columns: 1fr; }
  .treat-grid { grid-template-columns: 1fr; }
  .treat, .treat-sk { min-height: 180px; }
  .treat-name { font-size: 22px; line-height: 26px; }
  .modal { width: 100%; max-width: none; margin: auto 0 0; }
  .modal-panel { padding: 40px 20px calc(32px + env(safe-area-inset-bottom)); }
  .modal-close { top: 38px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Arrows are drawn, not typed: arrow characters sit at a different height in every
   font, so they never line up with the label next to them. */
.arrow { position: relative; display: inline-block; flex: none; width: 16px; height: 1px; background: currentColor; vertical-align: middle; }
.arrow::after {
  content: ''; position: absolute; right: 0; top: 50%; width: 5px; height: 5px;
  border: solid currentColor; border-width: 1px 1px 0 0; transform: translateY(-50%) rotate(45deg);
}
.arrow.left { transform: scaleX(-1); }
