/* The Barber Room — mobile-first styles */

@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans-greek-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/sofia-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/sofia-sans-extra-condensed-greek-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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;
}

:root {
  --concrete: #E4E5E1;
  --chalk: #F6F6F3;
  --white: #FFFFFF;
  --graphite: #1F2221;
  --steel: #5B615E;
  --rule: #C9CCC6;
  --oxblood: #8E2B24;
  --oxblood-deep: #73211B;
  --oxblood-wash: #F1DEDA;

  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --r-card: 20px;
  --r-field: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --topbar: 64px;
}
@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 12px); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; background: var(--concrete); color: var(--graphite);
  font: 400 1rem/1.5 var(--body); font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
@media (min-width: 960px) { body { padding-bottom: 0; } }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--steel); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--graphite); color: var(--chalk); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
.display {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.6rem, 17vw, 8.4rem); line-height: .86; letter-spacing: -.005em;
  text-wrap: balance;
}
.display-sm {
  font-family: var(--display); font-weight: 780;
  font-size: clamp(2.5rem, 9vw, 3.75rem); line-height: .92;
}

/* Wordmark: two slanted bars (a minimal barber pole) + the name */
.wordmark {
  display: inline-flex; align-items: center; gap: .32em; white-space: nowrap; text-decoration: none;
  font-family: var(--display); font-weight: 820; font-size: 1.55rem; line-height: 1; letter-spacing: .005em;
}
.wm-the { font-weight: 480; }
.wm-mark { display: inline-flex; gap: .1em; height: .9em; transform: skewX(-22deg); }
.wm-mark i { display: block; width: .17em; height: 100%; border-radius: .05em; background: currentColor; }
.wm-mark i + i { background: var(--oxblood); }
.wordmark-sm { font-size: 1.3rem; }
@media (max-width: 380px) { .topbar .wordmark { font-size: 1.32rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; letter-spacing: .005em; text-decoration: none;
  transition: background-color .18s, color .18s, transform .18s var(--ease), opacity .18s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; }
.btn-primary { background: var(--oxblood); color: var(--chalk); }
.btn-primary:hover:not(:disabled) { background: var(--oxblood-deep); }
.btn-dark { background: var(--graphite); color: var(--chalk); }
.btn-dark:hover:not(:disabled) { background: #000; }
.btn-quiet { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--graphite); }
.btn-quiet:hover:not(:disabled) { background: var(--graphite); color: var(--chalk); }
.btn-block { width: 100%; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.link-btn { color: var(--oxblood); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; min-height: 44px; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: rgb(31 34 33 / .07); }
.icon-btn-spacer { width: 44px; flex: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgb(228 229 225 / .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar .wordmark { margin-right: auto; }
.topnav { display: none; gap: 28px; font-weight: 550; }
.topnav a { text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent; }
.topnav a:hover, .topnav a[aria-current] { border-color: currentColor; }
.topbar-book { display: none; min-height: 44px; padding: 0 20px; font-size: .95rem; }
@media (min-width: 960px) { .topbar-book { display: inline-flex; } .topbar { gap: 20px; } }
@media (min-width: 760px) { .topnav { display: flex; } }
.lang-btn {
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  color: var(--steel); box-shadow: inset 0 0 0 1px var(--rule);
}
.lang-btn:hover { color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--graphite); }
@media (max-width: 759px) { .topbar { gap: 10px; } }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 4px 14px 4px 4px; border-radius: 999px; font-weight: 600; background: var(--chalk);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.account-btn:hover { box-shadow: inset 0 0 0 1.5px var(--graphite); }
#account-label { white-space: nowrap; }
@media (max-width: 400px) { .account-btn.signed-in { padding: 4px; } .account-btn.signed-in #account-label { display: none; } }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--concrete); font: 800 1.15rem/1 var(--display);
}
.avatar svg { width: 22px; height: 22px; }
.account-btn.signed-in .avatar { background: var(--graphite); color: var(--chalk); }

/* Hero */
.hero { display: grid; gap: 28px; padding: 20px 0 8px; }
.hero-copy { padding: 0 var(--gutter); display: grid; gap: 20px; align-content: start; }
/* Headline sized so "Cut. Clean." fills the line on phones */
.hero-title { font-size: min(24.5vw, 8.5rem); line-height: .84; }
.hero-accent { color: var(--oxblood); }
.lede { font-size: 1.125rem; line-height: 1.5; color: var(--steel); max-width: 34ch; }
.hero-more { justify-self: start; }
.hero-photo { margin: 0 var(--gutter); border-radius: var(--r-card); overflow: hidden; background: var(--graphite); aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 60%; }
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px;
    min-height: calc(100svh - var(--topbar)); padding: 24px var(--gutter) var(--gutter);
  }
  .hero-copy { padding: 0 0 4vh; gap: 28px; align-content: center; }
  .hero .display { font-size: clamp(4rem, 9vw, 10rem); }
  .hero-photo { margin: 0; aspect-ratio: auto; height: 100%; min-height: 560px; border-radius: 28px; }
}

/* Phones and tablets: the chair photo sits behind the headline, under a transparent top bar. */
@media (max-width: 959px) {
  .hero { position: relative; padding-top: 0; gap: 20px; }
  .hero-photo {
    position: absolute; top: calc(var(--topbar) * -1); left: 0; right: 0; height: calc(var(--topbar) + 452px);
    margin: 0; aspect-ratio: auto; border-radius: 0 0 28px 28px; z-index: 0;
  }
  .hero-photo img { object-position: 42% 55%; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 22 21 / .35) 0%, rgb(20 22 21 / .45) 35%, rgb(20 22 21 / .88) 100%); }
  .hero-copy { position: relative; z-index: 1; padding-top: 84px; }
  .hero .display { color: var(--chalk); }
  .hero .hero-accent { color: #E8735F; }
  .hero .lede { color: #DADCD7; }
  .topbar.over-photo { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar.over-photo .wordmark { color: var(--chalk); }
  .topbar.over-photo .wm-mark i + i { background: #E8735F; }
  .topbar.over-photo .lang-btn { color: var(--chalk); box-shadow: inset 0 0 0 1px rgb(246 246 243 / .45); }
  .topbar { transition: background-color .2s; }
}

/* Ticket: the next free chair. Notches are cut with a mask; the wrapper carries the shadow. */
.ticket-wrap { filter: drop-shadow(0 12px 22px rgb(31 34 33 / .16)) drop-shadow(0 1px 1px rgb(31 34 33 / .08)); max-width: 460px; }
.ticket {
  --notch: 11px; --nx1: 0px; --ny1: calc(100% - 80px); --nx2: 100%; --ny2: calc(100% - 80px);
  position: relative; display: grid; background: var(--chalk); border-radius: var(--r-card);
  -webkit-mask: radial-gradient(circle var(--notch) at var(--nx1) var(--ny1), #0000 98%, #000), radial-gradient(circle var(--notch) at var(--nx2) var(--ny2), #0000 98%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at var(--nx1) var(--ny1), #0000 98%, #000), radial-gradient(circle var(--notch) at var(--nx2) var(--ny2), #0000 98%, #000);
  mask-composite: intersect;
}
.ticket-body { padding: 18px 20px 20px; display: grid; gap: 2px; }
.ticket-label { font-size: .875rem; color: var(--steel); font-weight: 550; }
.ticket-when { font: 780 2.1rem/1.05 var(--display); margin-top: 4px; }
.ticket-who { color: var(--steel); }
.ticket .btn { margin: 18px 14px 14px; }
.ticket::before { content: ""; position: absolute; left: calc(var(--notch) + 6px); right: calc(var(--notch) + 6px); bottom: 79px; border-top: 2px dashed var(--rule); }
.ticket.is-empty .ticket-when { font-size: 1.5rem; }
.ticket.is-empty::before { display: none; }
@media (min-width: 520px) {
  .ticket { grid-template-columns: 1fr auto; align-items: center; --nx1: calc(100% - 160px); --ny1: 0px; --nx2: calc(100% - 160px); --ny2: 100%; }
  .ticket .btn { margin: 0 18px 0 22px; width: 120px; padding: 0 12px; }
  .ticket::before { left: auto; right: 159px; top: calc(var(--notch) + 6px); bottom: calc(var(--notch) + 6px); border-top: 0; border-left: 2px dashed var(--rule); }
}

.skeleton { display: inline-block; height: .8em; border-radius: 6px; background: linear-gradient(90deg, #E6E7E3, #F0F1EE, #E6E7E3); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Sections */
.block { padding: 64px var(--gutter) 8px; display: grid; gap: 24px; }
.block-head { display: grid; gap: 10px; align-content: start; }
.block-head p { color: var(--steel); max-width: 44ch; }
@media (min-width: 960px) {
  .block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding-top: 96px; }
  .block-head { position: sticky; top: calc(var(--topbar) + 24px); align-self: start; }
}

/* How it works */
.how-wrap { padding: 40px var(--gutter) 0; }
.how { display: grid; gap: 10px; counter-reset: how; }
.how li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-card); background: var(--chalk); }
.how-n {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--oxblood-wash); color: var(--oxblood); font: 800 1.5rem/1 var(--display);
}
.how strong { display: block; font-weight: 700; }
.how p { color: var(--steel); font-size: .92rem; }
@media (min-width: 760px) {
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .how li { padding: 20px; align-items: flex-start; }
}
@media (min-width: 960px) { .how-wrap { padding-top: 24px; } }

/* Price board */
.price-list { border-top: 1.5px solid var(--graphite); }
.price-row { border-bottom: 1px solid var(--rule); }
.price-row.is-loading { padding: 26px 0; }
.price-btn {
  width: 100%; text-align: left; display: grid; gap: 4px; padding: 20px 0; min-height: 64px;
  transition: padding .2s var(--ease);
}
.price-line { display: flex; align-items: baseline; gap: 10px; }
.price-name { font: 760 1.75rem/1.05 var(--display); }
.price-leader { flex: 1; border-bottom: 2px dotted #A9ADA7; transform: translateY(-.3em); min-width: 24px; }
.price-amount { font: 780 1.9rem/1 var(--display); font-variant-numeric: tabular-nums; }
.price-meta { color: var(--steel); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.price-book { color: var(--oxblood); font-weight: 650; margin-left: auto; white-space: nowrap; }
.price-book::after { content: " →"; }
@media (max-width: 599px) { .price-meta { display: grid; justify-items: start; gap: 6px; } .price-book { margin-left: 0; } }
@media (hover: hover) {
  .price-book { opacity: 0; transition: opacity .2s; }
  .price-btn:hover .price-book, .price-btn:focus-visible .price-book { opacity: 1; }
  .price-btn:hover { padding-left: 10px; padding-right: 10px; }
}

/* Barbers */
.barber-list { display: grid; gap: 12px; }
@media (min-width: 600px) { .barber-list { grid-template-columns: 1fr 1fr; } }
.barber { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--chalk); border-radius: var(--r-card); }
.barber-face {
  width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--graphite); color: var(--chalk); font: 800 2rem/1 var(--display);
}
.barber-info { flex: 1; min-width: 0; }
.barber h3 { font: 760 1.6rem/1.05 var(--display); }
.barber-book {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 16px;
  border-radius: 999px; font-weight: 650; font-size: .95rem; color: var(--oxblood); box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color .18s, color .18s;
}
.barber-book svg { width: 18px; height: 18px; }
.barber-book:hover { background: var(--oxblood); color: var(--chalk); }
.barber:has(.barber-book) { transition: box-shadow .18s; }
.barber:hover { box-shadow: 0 10px 24px -16px rgb(31 34 33 / .45); }
.barber p { color: var(--steel); font-size: .95rem; }

/* Visit facts */
.facts { display: grid; gap: 0; border-top: 1.5px solid var(--graphite); }
.facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--steel); }
.visit-body { display: grid; gap: 20px; justify-items: start; }
.visit-body .facts { width: 100%; }
.directions svg { width: 20px; height: 20px; }
@media (max-width: 420px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

.footer { margin-top: 80px; padding: 28px var(--gutter) 36px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--rule); color: var(--steel); font-size: .875rem; }
.footer .wordmark { color: var(--graphite); }
.footer-link { color: var(--graphite); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding: 12px 0; margin: -12px 0; }
.footer-link:hover { color: var(--oxblood); }

/* Mobile dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgb(228 229 225 / .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgb(31 34 33 / .08);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.dock.visible { transform: none; }
@media (min-width: 960px) { .dock { display: none; } }

/* Sheets (dialog) */
.sheet {
  margin: auto 0 0; padding: 0; border: 0; width: 100%; max-width: 100%;
  max-height: calc(100dvh - 24px); height: min(760px, calc(100dvh - 24px));
  border-radius: 24px 24px 0 0; background: var(--chalk); color: var(--graphite);
  overflow: hidden; box-shadow: 0 -10px 40px rgb(0 0 0 / .18);
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .38s var(--ease); }
.sheet.closing { animation: sheet-out .24s ease-in forwards; }
.sheet::backdrop { background: rgb(31 34 33 / .42); animation: fade-in .3s ease; }
.sheet.closing::backdrop { animation: fade-out .24s ease-in forwards; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (min-width: 760px) {
  .sheet { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(500px, 100%); border-radius: 28px 0 0 28px; }
  @keyframes sheet-in { from { transform: translateX(100%); } }
  @keyframes sheet-out { to { transform: translateX(100%); } }
}
.sheet-grip { height: 22px; flex: none; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-grip::before { content: ""; width: 40px; height: 5px; border-radius: 99px; background: var(--rule); }
@media (min-width: 760px) { .sheet-grip { display: none; } }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; flex: none; touch-action: none; }
@media (min-width: 760px) { .sheet-head { padding-top: 16px; } }
.sheet-title { flex: 1; text-align: center; min-width: 0; }
.sheet-title h2 { font: 760 1.6rem/1.05 var(--display); }
.sheet-title p { font-size: .85rem; color: var(--steel); min-height: 1.2em; }
.progress { height: 3px; margin: 0 20px; background: var(--rule); border-radius: 99px; overflow: hidden; flex: none; }
.progress span { display: block; height: 100%; width: 25%; background: var(--graphite); border-radius: inherit; transition: width .35s var(--ease); }
.crumbs { display: flex; gap: 6px; padding: 12px 20px 0; overflow-x: auto; scrollbar-width: none; flex: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs:empty { display: none; }
.crumb {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border-radius: 999px; background: var(--concrete); font-size: .875rem; font-weight: 600; white-space: nowrap;
}
.crumb:hover { background: #D8DAD5; }
.crumb svg { width: 14px; height: 14px; color: var(--steel); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 28px; }
.sheet-foot { flex: none; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--chalk); }
.step-anim { animation: step-in .32s var(--ease); }
.step-anim.back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-18px); } }

.q { font: 760 1.9rem/1.02 var(--display); margin-bottom: 16px; }
.q-sub { color: var(--steel); margin: -8px 0 16px; }

/* Option rows */
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px; min-height: 72px; border-radius: 16px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .15s, background .15s;
}
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--graphite); }
.opt-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.opt-title { font-weight: 700; font-size: 1.06rem; }
.opt-sub { color: var(--steel); font-size: .92rem; }
.opt-end { font: 780 1.6rem/1 var(--display); }
.opt-face { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--graphite); color: var(--chalk); font: 800 1.5rem/1 var(--display); }
.opt-face.any { background: var(--concrete); color: var(--graphite); }
.opt-face.any svg { width: 26px; height: 26px; }
.opt .tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--oxblood-wash); color: var(--oxblood); font-size: .78rem; font-weight: 700; vertical-align: 2px; }

/* Day strip */
.days-wrap { margin: 0 -20px 22px; position: relative; }
.days { -webkit-mask: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.days-nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .days-nav {
    position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -21px; border-radius: 50%;
    display: grid; place-items: center; background: var(--white); color: var(--graphite);
    box-shadow: 0 2px 8px rgb(31 34 33 / .18), inset 0 0 0 1px var(--rule); transition: opacity .15s;
  }
  .days-nav svg { width: 20px; height: 20px; }
  .days-nav:hover:not(:disabled) { box-shadow: 0 2px 8px rgb(31 34 33 / .18), inset 0 0 0 1.5px var(--graphite); }
  .days-nav:disabled { opacity: 0; pointer-events: none; }
  .days-nav.prev { left: 4px; }
  .days-nav.next { right: 4px; }
}
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 6px; scroll-snap-type: x proximity; scrollbar-width: none; scroll-padding: 0 20px; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start; width: 62px; min-height: 84px; border-radius: 16px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule); display: grid; place-content: center; gap: 2px; text-align: center;
}
.day:hover { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.day small { font-size: .78rem; color: var(--steel); font-weight: 600; }
.day strong { font: 780 1.7rem/1 var(--display); }
.day[aria-pressed="true"] { background: var(--graphite); color: var(--chalk); box-shadow: none; }
.day[aria-pressed="true"] small { color: #C9CCC6; }
.month-label { font-size: .85rem; font-weight: 650; color: var(--steel); padding: 0 0 8px; }

.slot-group + .slot-group { margin-top: 18px; }
.slot-group h3 { font-size: .9rem; font-weight: 650; color: var(--steel); margin-bottom: 8px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time {
  min-height: 48px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule);
  font-weight: 650; font-variant-numeric: tabular-nums;
}
.time:hover { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.time[aria-pressed="true"] { background: var(--graphite); color: var(--chalk); box-shadow: none; }

.notice { padding: 16px; border-radius: 14px; background: var(--concrete); display: grid; gap: 10px; justify-items: start; }
.notice.error { background: var(--oxblood-wash); color: var(--oxblood-deep); }
.notice p { margin: 0; }
.banner { margin-bottom: 16px; }

/* Summary */
.summary { background: var(--white); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rule); padding: 4px 16px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--steel); }
.summary-row dd { font-weight: 650; text-align: right; }
.summary-total dd { font: 780 1.7rem/1 var(--display); }
.fine { font-size: .875rem; color: var(--steel); }
.signed-as { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--concrete); margin-bottom: 4px; }
.signed-as .avatar { background: var(--graphite); color: var(--chalk); }
.signed-as div { flex: 1; min-width: 0; }
.signed-as div > strong, .signed-as div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signed-as div > span { color: var(--steel); font-size: .9rem; }

/* Auth form */
.auth { display: grid; gap: 14px; }
.auth h3 { font: 760 1.5rem/1.05 var(--display); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--concrete); }
.seg button { min-height: 40px; border-radius: 999px; font-weight: 650; color: var(--steel); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--graphite); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field-input { position: relative; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: var(--r-field); background: var(--white);
  border: 1px solid var(--rule); font-size: 1rem; /* ≥16px avoids iOS zoom */
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgb(31 34 33 / .12); }
.field input[aria-invalid="true"] { border-color: var(--oxblood); }
.field .hint { font-size: .85rem; color: var(--steel); }
.field-input input[type="password"], .field-input input.pw { padding-right: 84px; }
.reveal { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px; border-radius: 8px; font-size: .875rem; font-weight: 650; color: var(--steel); }
.reveal:hover { background: var(--concrete); color: var(--graphite); }
.form-error { color: var(--oxblood-deep); font-weight: 600; font-size: .95rem; min-height: 0; }
.field-error { color: var(--oxblood-deep); font-weight: 600; font-size: .875rem; }
.field-error:empty { display: none; }
.form-error:empty { display: none; }

/* Success */
.done { text-align: center; display: grid; gap: 14px; justify-items: center; padding-top: 12px; }
.done-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--graphite); color: var(--chalk); display: grid; place-items: center; }
.done-mark svg { width: 40px; height: 40px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font: 800 2.6rem/1 var(--display); }
.done .when { font: 760 1.6rem/1.1 var(--display); }
.done p { color: var(--steel); }
.done .summary { width: 100%; text-align: left; }
.stack { display: grid; gap: 10px; width: 100%; }

/* Account */
.account-top { margin-bottom: 4px; }
.section-label { font-weight: 650; color: var(--steel); font-size: .9rem; margin: 26px 0 10px; }
.appt-list { display: grid; gap: 10px; }
.appt { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; background: var(--white); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rule); }
.appt-date { border-radius: 12px; background: var(--graphite); color: var(--chalk); display: grid; place-content: center; text-align: center; min-height: 72px; }
.appt-date strong { font: 800 1.9rem/1 var(--display); }
.appt-date small { font-size: .78rem; font-weight: 600; color: #C9CCC6; }
.appt h3 { font-size: 1.05rem; font-weight: 700; }
.appt p { color: var(--steel); font-size: .92rem; }
.appt-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.appt-actions .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.appt-actions .confirm-text { margin-right: auto; font-weight: 600; font-size: .95rem; }
.appt.is-past { box-shadow: none; background: transparent; padding: 10px 0; border-bottom: 1px solid var(--rule); border-radius: 0; grid-template-columns: 52px 1fr; }
.appt.is-past .appt-date { background: var(--concrete); color: var(--graphite); min-height: 56px; }
.appt.is-past .appt-date small { color: var(--steel); }
.status { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--concrete); color: var(--steel); }
.status.ok { background: #DDEBDF; color: #24502E; }
.status.off { background: var(--oxblood-wash); color: var(--oxblood); }
details.past summary { cursor: pointer; font-weight: 650; color: var(--steel); min-height: 44px; display: flex; align-items: center; margin-top: 18px; }
.empty { padding: 28px 18px; text-align: center; border-radius: 18px; background: var(--concrete); display: grid; gap: 12px; justify-items: center; }
.empty h3 { font: 760 1.7rem/1.05 var(--display); }
.empty p { color: var(--steel); }
.account-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Toast */
.toast {
  inset: auto; margin: 0; border: 0; width: auto; height: auto; overflow: visible;
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--graphite); color: var(--chalk); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 10px 30px rgb(0 0 0 / .2); transition: opacity .25s, transform .25s var(--ease);
  width: max-content; max-width: calc(100% - 32px); text-align: center;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
