/* Same tokens as the rest of studio-arva.com: ink, paper, one accent (ridge amber). Heebo for Hebrew, Montserrat for the wordmark.
   On wide screens the booking sits inside a drawn iPhone; on phones the frame steps aside and the card fills the screen. */
:root {
  --ink: #0d1317; --paper: #f5f4f1; --paper-2: #ebe9e4;
  --text: #16191b; --text-2: #5b6166; --mist: #a9b4b9;
  --ridge: #efa35b; --ridge-deep: #a0561d;
  --rule: rgba(13, 19, 23, .12);
  --px: max(20px, 5vw);
  --out: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; min-height: 100dvh; background: var(--ink); color: #fff; font: 400 17px/1.6 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ridge); outline-offset: 3px; border-radius: 8px; }

.top { height: 68px; padding-inline: var(--px); display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin-inline: auto; }
.mark { display: inline-flex; align-items: center; text-decoration: none; color: #fff; --logo-h: 30px; }
.logo { display: block; height: var(--logo-h, 26px); aspect-ratio: 2.88; background: currentColor; -webkit-mask: url(/img/logo-arva.svg) center / contain no-repeat; mask: url(/img/logo-arva.svg) center / contain no-repeat; }
.top-link { font-size: 15px; color: var(--mist); text-decoration: none; }
.top-link:hover { color: #fff; }

.wrap { max-width: 1120px; margin-inline: auto; padding: clamp(16px, 3vw, 40px) var(--px) 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }

/* ---------- who and what ---------- */
.who { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.who b { display: block; font-weight: 500; font-size: 17px; line-height: 1.3; }
.who span { color: var(--mist); font-size: 15px; }
h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 18px; }
h1 em { font-style: normal; color: var(--ridge); }
.lede { color: #d5dcdf; font-size: 18px; max-width: 36ch; }

/* ---------- the iPhone ---------- */
.phone { position: relative; width: 392px; height: 812px; padding: 13px; border-radius: 66px; background: #050607;
  box-shadow: 0 0 0 1.5px #4a4f54, 0 0 0 3.5px #1c1f22, 0 0 0 4.5px #55595e, 0 50px 90px -30px rgba(0, 0, 0, .75), 0 20px 40px -20px rgba(0, 0, 0, .6); }
.phone .side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2d31, #4b5055); }
.phone .s-action { left: -8px; top: 132px; height: 32px; }
.phone .s-up { left: -8px; top: 190px; height: 62px; }
.phone .s-down { left: -8px; top: 266px; height: 62px; }
.phone .s-power { right: -8px; top: 212px; height: 98px; }
.screen { position: relative; height: 100%; border-radius: 53px; background: var(--paper); color: var(--text); overflow: hidden; display: flex; flex-direction: column; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 3; }
.island::after { content: ''; position: absolute; right: 22px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3a52, #0b0f16 60%); }
.status { flex: none; height: 54px; padding: 16px 32px 0 36px; display: flex; justify-content: space-between; align-items: center; direction: ltr; font: 600 16px/1 -apple-system, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif; letter-spacing: -0.01em; color: var(--text); background: var(--paper); position: relative; z-index: 2; }
.status .icons { display: flex; gap: 6px; align-items: center; }
.home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: var(--text); z-index: 3; }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px 34px; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ---------- booking inside the screen ---------- */
.app-title { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; }
.app-sub { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.step + .step { margin-top: 22px; }
.step h2 { font-size: 17px; line-height: 1.3; font-weight: 700; margin-bottom: 10px; }

.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin-inline: -2px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; min-width: 64px; padding: 8px 10px 10px; white-space: nowrap; border-radius: 16px; border: 1px solid var(--rule); background: #fff; text-align: center; scroll-snap-align: start; transition: border-color 160ms ease-out, background-color 160ms ease-out, transform 120ms ease-out; }
.day:hover { border-color: rgba(13, 19, 23, .32); }
.day:active { transform: scale(.97); }
.day .dn { display: block; font-size: 13px; color: var(--text-2); }
.day .dd { display: block; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-pressed="true"] .dn { color: var(--mist); }
.week-gap { flex: none; width: 1px; background: var(--rule); margin-inline: 2px; }

.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time { height: 42px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; direction: ltr; transition: border-color 160ms ease-out, background-color 160ms ease-out, transform 120ms ease-out; }
.time:hover { border-color: var(--ridge-deep); }
.time:active { transform: scale(.97); }
.time[aria-pressed="true"] { background: var(--ridge); border-color: var(--ridge); color: var(--ink); }

.fields { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 14px; font-weight: 500; }
.field input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(13, 19, 23, .2); background: #fff; font-size: 16px; transition: border-color 160ms ease-out; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(239, 163, 91, .35); }
.field input[dir="ltr"] { text-align: right; }
.field .err { color: #b23b1e; font-size: 13px; }
.field.bad input { border-color: #b23b1e; }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.go { margin-top: 18px; display: grid; gap: 8px; }

/* four screens: name, business, phone, then the day and time */
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 8px; }
.progress span { height: 4px; border-radius: 2px; background: var(--paper-2); transition: background-color 240ms ease-out; }
.progress span.on { background: var(--ridge); }
.of { color: var(--text-2); font-size: 13px; margin-bottom: 4px; }
.of b { font-weight: 500; color: var(--text); }
.pane > .field input { height: 52px; font-size: 17px; }
.go .chosen { margin-bottom: 4px; }
.chosen[hidden] { display: none; }
#f > .privacy { margin-top: 18px; }
.pane[hidden] { display: none; }
.pane.in { animation: slide 380ms var(--out) both; }
.pane.in-back { animation: slide-back 380ms var(--out) both; }
@keyframes slide { from { opacity: 0; transform: translateX(-28px); } }
@keyframes slide-back { from { opacity: 0; transform: translateX(28px); } }
.back { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 14px; margin: 2px -6px 12px 0; border: 0; border-radius: 999px; background: none; color: var(--ridge-deep); font-size: 15px; font-weight: 500; }
.back:hover { background: rgba(160, 86, 29, .08); }
.chosen { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; border-radius: 16px; background: var(--ink); color: #fff; }
.chosen span { color: var(--mist); font-size: 14px; }
.chosen b { font-weight: 500; font-size: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 17px; text-decoration: none; transition: transform 120ms ease-out, background-color 160ms ease-out, opacity 160ms ease-out; }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--ridge); color: var(--ink); width: 100%; }
.btn-accent:hover { background: #f4b475; }
.btn-accent[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1d262c; }
.btn-line { border-color: rgba(13, 19, 23, .22); color: var(--text); }
.btn-line:hover { border-color: rgba(13, 19, 23, .5); }
.picked { color: var(--text-2); font-size: 14px; text-align: center; }
.picked b { color: var(--text); font-weight: 500; }
.formerr { color: #b23b1e; font-size: 14px; text-align: center; }
.empty { color: var(--text-2); font-size: 15px; padding: 6px 0; }
.skel { height: 72px; width: 100%; border-radius: 16px; background: linear-gradient(90deg, var(--paper-2), #f1efea, var(--paper-2)); background-size: 200% 100%; animation: sh 1.2s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }

.done { padding-top: 40px; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--ridge); display: grid; place-items: center; margin-bottom: 20px; }
.done h2 { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.done .when { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.done p { color: var(--text-2); margin-bottom: 22px; }
.done .row { display: grid; gap: 10px; }

.reveal { animation: up 420ms var(--out) both; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

.foot { max-width: 1120px; margin-inline: auto; padding: 0 var(--px) 40px; color: var(--mist); font-size: 14px; }
.privacy { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.privacy a { color: inherit; text-underline-offset: 3px; }

/* phones and narrow windows: the text stacks on top, the drawn iPhone shrinks to the screen width */
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 28px; }
  .lede { max-width: none; }
  .phone { justify-self: center; width: min(392px, 100% - 8px); height: auto; aspect-ratio: 392 / 812; padding: 11px; border-radius: 56px; }
  .screen { border-radius: 45px; }
  .island { width: 108px; height: 32px; }
  .status { padding-inline: 26px 30px; font-size: 15px; }
  .scroll { padding: 8px 16px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* English booking page (studio-arva.com/book/): same page, left-to-right */
[dir="ltr"] body { font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; }
[dir="ltr"] .field input[dir="ltr"] { text-align: left; }
[dir="ltr"] .back { padding: 0 14px 0 12px; margin: 2px 0 12px -6px; }
[dir="ltr"] .back svg { transform: scaleX(-1); }
