/* Vocal Loft: client pages (booking, manage, accounts). "Ticket" style, matching the emails.
   Mobile first. tokens.css is shared with the admin, so the Ticket colours live here instead. */
@import url('/css/tokens.css');

:root {
  --vl-bg: #E7EEEC;          /* page background (same as the emails) */
  --vl-card: #FFFFFF;
  --vl-teal: #2F5F62;        /* stubs, primary buttons, picked states */
  --vl-teal-hover: #264F52;
  --vl-ink: #1F3F41;         /* headings and values */
  --vl-body: #3E4C4D;        /* paragraph text */
  --vl-muted: #4F6260;       /* labels, small print */
  --vl-line: #D3DFDC;        /* card borders and dividers */
  --vl-field: #C3D1CE;       /* input borders */
  --vl-on-teal: #FFFFFF;
  --vl-on-teal-2: #E6F0EE;   /* secondary text on teal */
  --vl-on-teal-3: #CFE1DE;   /* small labels on teal */
  --vl-free: #E7EEEC;        /* day with times, picked fills */
  --vl-off: #A9B6B4;         /* day with no lessons (decorative) */
  --vl-step-line: #A9BFBB;
  --vl-taken-bg: #F6F7F8;  --vl-taken-ink: #6E7C7A;
  --vl-disabled-bg: #CFDBD8;
  --vl-sand: #FDF3E1;  --vl-sand-ink: #3D2900;   /* holds, bank transfer, notes */
  --vl-ok-bg: #E5F2EA;  --vl-ok-ink: #1F5133;
  --vl-err-bg: #FBE9E9; --vl-err-ink: #8A1C1C;
  --vl-radius-card: 20px;  --vl-radius-small: 16px;  --vl-radius-field: 12px;
  --vl-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --vl-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;   /* same fonts as the emails */
}

*, *::before, *::after { box-sizing: border-box; }
/* Short pages stay still on phones: the page is exactly the visible screen (100dvh, not 100vh,
   which counts the space behind the browser's toolbars), and there's no rubber-band bounce. */
html { -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body { position: relative; margin: 0; min-height: 100vh; min-height: 100dvh; overscroll-behavior-y: none; background: var(--vl-bg); color: var(--vl-body); font-family: var(--vl-sans); font-size: 15px; line-height: 1.5; overflow-x: hidden; }
a { color: var(--vl-teal); }
a:hover { color: var(--vl-teal-hover); }
h1, h2 { font-family: var(--vl-serif); font-weight: 400; color: var(--vl-ink); letter-spacing: 0; }
strong { color: var(--vl-ink); font-weight: 600; }
button, input, textarea { font-family: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--vl-teal) 45%, white); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header: no bar, just the wordmark on the page ---------- */
.site-head-in { max-width: 1080px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; }
.brand-wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; flex: 1; min-width: 0; padding-left: 8px; }
.brand { font-family: var(--vl-serif); font-weight: 400; font-size: 22px; line-height: 44px; color: var(--vl-teal); }
.brand-link, .brand-link:hover { color: var(--vl-teal); text-decoration: none; }
.tagline { display: none; font-size: 14px; color: var(--vl-muted); }
.step-count { font-size: 13px; color: var(--vl-muted); white-space: nowrap; }
.head-links { display: flex; align-items: center; gap: 16px; }
.home-link, .login-btn { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--vl-teal); text-decoration: none; }
.home-link:hover, .login-btn:hover { color: var(--vl-teal-hover); text-decoration: underline; text-underline-offset: 3px; }
.hi { font-size: 14px; color: var(--vl-muted); }
/* Booking page: the wordmark is the way home. Step count and a 4-part progress line on phones. */
.booking .home-link { display: none; }
.progress { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 8px; }
.progress span { height: 4px; border-radius: 999px; background: var(--vl-line); transition: background .2s; }
.progress span.on { background: var(--vl-teal); }

/* ---------- Layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); }
/* Room under the content for the Continue bar fixed at the bottom of phones, only where there is one. */
main:has(.action-bar) { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.steps { display: none; }
h1 { margin: 14px 8px 6px; font-size: 30px; line-height: 1.12; }
.lead { margin: 0 8px 18px; font-size: 15px; line-height: 1.6; color: var(--vl-body); }
.sub { margin: 0 8px 14px; font-size: 13px; color: var(--vl-muted); }
.small { font-size: 13px; color: var(--vl-muted); line-height: 1.55; }
.center { text-align: center; }
.card { background: var(--vl-card); border-radius: var(--vl-radius-card); padding: 18px; }
.card h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.25; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.stack .btn { width: 100%; }
.note { margin-top: 12px; padding: 12px 16px; border-radius: var(--vl-radius-small); background: var(--vl-sand); color: var(--vl-sand-ink); font-size: 14px; line-height: 1.55; }
.note strong { color: var(--vl-sand-ink); }
.msg { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--vl-radius-field); font-size: 14px; font-weight: 500; line-height: 1.45; }
.msg-ok { background: var(--vl-ok-bg); color: var(--vl-ok-ink); display: flex; gap: 10px; align-items: flex-start; }
.msg-ok svg { flex: none; margin-top: 3px; }
.msg-error { background: var(--vl-err-bg); color: var(--vl-err-ink); }

/* Back: a round button in the header on phones (booking page), a plain "‹ label" link elsewhere. */
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 4px; padding: 0 8px; border: 0; background: none; font: 600 14px var(--vl-sans); color: var(--vl-teal); cursor: pointer; }
.back svg { width: 16px; height: 16px; stroke-width: 2.4; }
.back:hover { color: var(--vl-teal-hover); }
.booking .back { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 16px; width: 44px; height: 44px; padding: 0; margin: 0; justify-content: center; border-radius: var(--vl-radius-field); background: var(--vl-card); }
.booking .back svg { width: 20px; height: 20px; }
.booking .back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.booking:has(#app .back) .brand-wrap { padding-left: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: var(--vl-radius-field); border: 1px solid var(--vl-line); background: var(--vl-card); color: var(--vl-ink);
  font: 600 16px var(--vl-sans); text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--vl-field); color: var(--vl-ink); }
.btn-primary { min-height: 54px; background: var(--vl-teal); border-color: var(--vl-teal); color: var(--vl-on-teal); }
.btn-primary:hover { background: var(--vl-teal-hover); border-color: var(--vl-teal-hover); color: var(--vl-on-teal); }
.btn:disabled, .btn:disabled:hover { background: var(--vl-disabled-bg); border-color: transparent; color: var(--vl-muted); font-weight: 500; cursor: not-allowed; }
.btn-block { width: 100%; }
.link-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; font: 600 14px var(--vl-sans); color: var(--vl-teal); cursor: pointer; text-decoration: underline; text-decoration-color: var(--vl-line); text-underline-offset: 3px; }
.link-btn:hover { color: var(--vl-teal-hover); text-decoration-color: currentColor; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--vl-radius-field); border: 1px solid var(--vl-line); background: var(--vl-card); color: var(--vl-teal); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:disabled { color: var(--vl-line); border-color: #EEF0F2; cursor: default; }

/* Action bar: the main button, kept at the bottom of the screen on phones. */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, color-mix(in srgb, var(--vl-bg) 0%, transparent), var(--vl-bg) 14px);
}
.action-bar .summary-text { display: none; }
.action-bar .btn { width: 100%; }

/* ---------- Dividers: plain solid lines ---------- */
.tear { border-top: 1px solid var(--vl-line); }
.tear.v { border-top: 0; border-left: 1px solid var(--vl-line); align-self: stretch; }
.bk .tear, .mini .tear { display: none; }   /* the teal head / stub already marks the edge */

.bk { background: var(--vl-card); border-radius: var(--vl-radius-card); overflow: hidden; }
.bk-head { background: var(--vl-teal); padding: 18px 20px; }
.bk-head small { display: block; margin-bottom: 4px; font-size: 12px; color: var(--vl-on-teal-3); }
.bk-head b { display: block; font-family: var(--vl-serif); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--vl-on-teal); }
.bk-head span { display: block; margin-top: 4px; font-size: 15px; color: var(--vl-on-teal-2); }
.bk-body { padding: 12px 20px 18px; }

.mini { display: flex; background: var(--vl-card); border-radius: var(--vl-radius-small); margin-top: 12px; }
.mini .stub { flex: none; min-width: 76px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; background: var(--vl-teal); color: var(--vl-on-teal); border-radius: var(--vl-radius-small) 0 0 var(--vl-radius-small); }
.mini .stub small { font-size: 11px; color: var(--vl-on-teal-3); }
.mini .stub b { font-family: var(--vl-serif); font-weight: 400; font-size: 22px; line-height: 1.1; white-space: nowrap; }
.mini .rest { flex: 1; min-width: 0; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }
.mini .rest b { font-size: 15px; font-weight: 500; color: var(--vl-ink); }
.mini .rest span { font-size: 13px; color: var(--vl-muted); }
.mini .rest .pay-price { margin-top: 4px; font-weight: 500; }

/* Rows (label on the left, value on the right) */
.summary { margin: 0; display: flex; flex-direction: column; }
.summary > div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 14px; }
.summary dt { color: var(--vl-muted); white-space: nowrap; }
.summary dd { margin: 0; color: var(--vl-ink); text-align: right; }
.summary .total { border-top: 1px solid var(--vl-line); margin-top: 6px; padding-top: 10px; font-weight: 600; }
.summary .total dt { color: var(--vl-ink); }
.summary .lesson-row dd { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.lesson-acts { display: inline-flex; gap: 14px; }
.add-lesson { margin-top: 8px; min-height: 44px; text-decoration: none; }
.ref { letter-spacing: 0.06em; white-space: nowrap; }

/* ---------- Step 1: lesson choice (plain white boxes) ---------- */
.types { display: grid; grid-template-columns: 1fr; gap: 12px; }
.type {
  display: flex; padding: 0; overflow: hidden; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--vl-card); border: 2px solid var(--vl-card); border-radius: var(--vl-radius-card);
}
.type:hover { border-color: var(--vl-line); }
.type-body { flex: 1; min-width: 0; padding: 20px; display: flex; flex-direction: column; }
.type-name { font-family: var(--vl-serif); font-size: 19px; line-height: 1.2; color: var(--vl-ink); }
.type-desc { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--vl-body); }
.type-cta { display: none; margin-top: auto; padding-top: 14px; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; color: var(--vl-teal); }
.type-cta svg { width: 16px; height: 16px; }
.type[aria-pressed='true'] { border-color: var(--vl-teal); }
.after-types { margin: 18px 8px 0; }

/* ---------- Step 2: calendar ---------- */
.cal-card { padding: 12px 12px 14px; }
.cal-empty { padding: 18px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-nav h2 { margin: 0; font-size: 20px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; justify-items: center; }
.dow { font-size: 11px; font-weight: 600; color: var(--vl-muted); padding: 2px 0 4px; }
.date-plain, .date-btn { width: min(44px, 100%); aspect-ratio: 1; height: auto; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--vl-radius-field); font-size: 14px; }
.date-plain { color: var(--vl-off); }
.date-btn { border: 0; background: var(--vl-free); color: var(--vl-ink); font: 600 14px var(--vl-sans); cursor: pointer; }
.date-btn:hover { box-shadow: inset 0 0 0 1px var(--vl-teal); }
.date-btn[aria-pressed='true'] { background: var(--vl-teal); color: var(--vl-on-teal); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--vl-muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; background: transparent; border: 1px solid var(--vl-line); }
.sw-on { background: var(--vl-free); border-color: var(--vl-free); }
.release-note { margin-top: 12px; }

/* ---------- Step 2: times ---------- */
.times-box { padding: 18px; }
.times-box .small { margin: 0; }
.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.time { min-height: 46px; padding: 0 6px; border-radius: var(--vl-radius-field); border: 1px solid var(--vl-line); background: var(--vl-card); color: var(--vl-ink); font: 500 15px var(--vl-sans); cursor: pointer; }
.time:hover { border-color: var(--vl-teal); }
.time[aria-pressed='true'] { background: var(--vl-teal); border-color: var(--vl-teal); color: var(--vl-on-teal); }
.time-taken { min-height: 46px; padding: 4px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--vl-radius-field); border: 1px dashed var(--vl-line); background: var(--vl-taken-bg); color: var(--vl-taken-ink); font-size: 14px; line-height: 1.15; text-align: center; }
.time-taken small { font-size: 11px; }
.time-taken.mine { background: var(--vl-free); border-color: var(--vl-teal); color: var(--vl-ink); }
.hold-note { margin: 12px 8px 0; }
.times-card h2 { margin: 0 0 12px; font-size: 20px; }
.times-left { margin: 0 0 2px; }

/* ---------- Step 3: details ---------- */
.phone-lessons { margin-bottom: 12px; }
.details-row { gap: 12px; }
.main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.aside { flex: 1 1 320px; min-width: 0; }
.aside-acts { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.aside-acts .btn { width: 100%; }
.form-card { display: flex; flex-direction: column; gap: 14px; }
.form-card > .msg { margin: 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--vl-ink); }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--vl-field); border-radius: var(--vl-radius-field); background: #fff; color: var(--vl-ink); font: 400 16px var(--vl-sans); }
textarea.input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--vl-teal); }
.input[aria-invalid='true'] { border-color: var(--vl-err-ink); }
.field-error { color: var(--vl-err-ink); font-size: 13px; font-weight: 500; }
.account-line { margin: 0; font-size: 14px; color: var(--vl-body); }
.account-line .link-btn { min-height: 0; font-size: 14px; vertical-align: baseline; display: inline; }
.inline-login { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--vl-radius-small); background: var(--vl-free); }
.inline-login-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inline-login-acts .btn { min-height: 46px; min-width: 110px; }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--vl-ink); cursor: pointer; }
.check-line input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--vl-teal); }
.check-line > span { display: flex; flex-direction: column; gap: 2px; }
.check-line .small { font-size: 13px; }
.timer-wrap { margin-top: 12px; }
.hold-timer { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--vl-radius-field); background: var(--vl-card); border: 1px solid var(--vl-teal); color: var(--vl-ink); font-size: 13px; line-height: 1.4; }
.hold-timer svg { flex: none; color: var(--vl-teal); }
.hold-timer strong { font-variant-numeric: tabular-nums; }

/* ---------- Step 4: payment ---------- */
.pay-stack { display: flex; flex-direction: column; gap: 12px; }
.pay-stack > .msg, .pay-stack > .note, .pay-stack > .pay-summary .mini { margin: 0; }
.pay-options { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pay-options legend { padding: 0; margin-bottom: 10px; font-family: var(--vl-serif); font-size: 20px; color: var(--vl-ink); }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--vl-radius-small); border: 1px solid var(--vl-line); background: var(--vl-card); cursor: pointer; }
.pay-option input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--vl-teal); }
.pay-option > span { display: flex; flex-direction: column; gap: 2px; }
.pay-option strong { font-size: 15px; color: var(--vl-ink); }
.pay-option > span > span { font-size: 13px; color: var(--vl-muted); line-height: 1.45; }
.pay-option:has(input:checked) { border: 2px solid var(--vl-teal); background: var(--vl-free); padding: 13px 15px; }
.card-box h2 { margin: 0 0 14px; }
.card-slot { min-height: 120px; }
.wallet-slot { min-height: 50px; }
.card-box .msg-error { margin: 14px 0 0; }
.secure-note { margin: 12px 0 0; display: flex; gap: 8px; align-items: center; font-size: 12px; }
.secure-note svg { flex: none; }

/* ---------- Endings: confirmed, held, processing, failed, hold ran out ---------- */
.done.card { margin: 14px 0 0; padding: 0; overflow: hidden; text-align: left; }
.done-top { padding: 22px 20px 18px; }
.done-icon { width: 48px; height: 48px; margin: 0 0 14px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--vl-free); color: var(--vl-teal); }
.done-icon.wait { background: var(--vl-sand); color: var(--vl-teal); }
.done-icon.bad { background: var(--vl-err-bg); color: var(--vl-err-ink); }
.done.card h1 { margin: 0 0 8px; font-size: 30px; }
.done-top .msg { margin: 12px 0 0; }
.done-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--vl-body); }
.done-bottom { padding: 0 20px 20px; }
.done-ticket { border: 1px solid var(--vl-line); }
.done-ticket .bk-head { border-radius: 0; }
.done-ticket .bk-body { padding-top: 14px; }
.done-hint { margin-top: 14px; }
.done-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.account-note { margin-top: 14px; }
/* "Your slot is held": Pay now, Add to calendar and Cancel straight under the text. */
.held-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.held-actions .btn { width: 100%; }
.held-error { margin: 12px 0 0; }
.done-more { margin-top: 14px; }
.done-more .btn { min-height: 46px; font-size: 15px; }
/* Terms & conditions tick box on the details page, and the terms page itself. */
.terms-wrap { display: flex; flex-direction: column; gap: 6px; }
.terms-line a { font-weight: 600; }
.terms-line input[aria-invalid='true'] { outline: 2px solid var(--vl-err-ink); outline-offset: 2px; }
.terms .card h2 { margin: 22px 0 6px; font-size: 19px; }
.terms .card h2:first-of-type { margin-top: 18px; }
.terms .card p { margin: 0 0 10px; line-height: 1.6; }

/* ---------- Laptop and up ---------- */
@media (min-width: 761px) {
  .site-head-in { padding: 28px 32px 0; flex-wrap: nowrap; }
  .brand-wrap { padding-left: 0; }
  .brand { font-size: 26px; }
  .tagline { display: inline; }
  .step-count, .progress { display: none !important; }
  .booking:has(#app .back) .brand-wrap { padding-left: 0; }
  .booking .back { position: static; width: auto; height: auto; min-height: 32px; padding: 0; margin: 0 0 10px; background: none; border-radius: 0; }
  .booking .back svg { width: 14px; height: 14px; }
  .booking .back-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .back { padding: 0; }

  main { padding: 32px 32px 56px; }
  main:has(.action-bar) { padding-bottom: 56px; }
  h1 { margin: 0 0 10px; font-size: 44px; }
  .lead { margin: 0 0 28px; font-size: 17px; }
  .sub { margin: 0 0 24px; font-size: 15px; }
  .card { padding: 28px; }

  .steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--vl-muted); }
  .steps li + li::before { content: ""; width: 28px; border-top: 2px solid var(--vl-step-line); margin-right: 4px; }
  .steps .n { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--vl-step-line); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
  .steps .now { color: var(--vl-ink); font-weight: 600; }
  .steps .now .n { background: var(--vl-teal); border-color: var(--vl-teal); color: #fff; }
  .steps .done .n { background: var(--vl-on-teal-3); border-color: var(--vl-on-teal-3); color: var(--vl-ink); }

  .action-bar { position: static; margin-top: 20px; padding: 0; background: none; display: flex; align-items: center; gap: 16px; }
  .action-bar:has(.summary-text) { padding: 8px 8px 8px 24px; border-radius: var(--vl-radius-small); background: var(--vl-card); }
  .action-bar .summary-text { display: block; flex: 1; font-size: 15px; color: var(--vl-ink); }
  .action-bar:has(.summary-text) .btn { width: 220px; flex: none; }
  .action-bar.no-desktop { display: none; }

  .bk-head { padding: 24px 28px; }
  .bk-head b { font-size: 26px; }
  .bk-body { padding: 18px 28px 28px; }

  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .type-body { padding: 28px; }
  .type-name { font-size: 24px; }
  .type-desc { font-size: 15px; margin-bottom: 14px; }
  .type-cta { display: inline-flex; }
  .after-types { margin: 24px 0 0; }

  .date-time { display: flex; flex-wrap: wrap; background: var(--vl-card); border-radius: var(--vl-radius-card); }
  .date-time .cal-card { flex: 3 1 360px; min-width: 0; padding: 28px; border-radius: var(--vl-radius-card) 0 0 var(--vl-radius-card); }
  .date-time .times-card { flex: 2 1 240px; min-width: 0; padding: 28px; }
  .cal { gap: 6px; }
  .date-plain, .date-btn { font-size: 15px; }
  .times { grid-template-columns: 1fr; }
  .times-card .times { gap: 8px; }
  .time-taken { flex-direction: row; gap: 6px; }
  .time-taken small { font-size: 13px; }
  .time-taken small::before { content: '· '; }
  .release-note { margin-top: 12px; }

  .details-row { gap: 24px; margin-top: 14px; }
  .timer-wrap { margin-top: 16px; }

  .narrow { max-width: 536px; margin: 0 auto; }
  main:has(.narrow) .steps, main:has(.done.card) .steps { justify-content: center; }
  .narrow .action-bar .btn { width: 100%; }
  .narrow h1 { margin-bottom: 14px; }

  .done.card { max-width: 536px; margin: 0 auto; }
  .done-top { padding: 32px 32px 22px; }
  .done.card h1 { font-size: 40px; }
  .done-bottom { padding: 0 32px 28px; }
  .done-actions { flex-direction: row; flex-wrap: wrap; }
  .done-actions .btn { width: auto; }
  .held-actions { flex-direction: row; }
  .held-actions .btn { width: auto; flex: 1 1 0; padding: 0 14px; white-space: nowrap; }
  .held-actions .btn-primary { flex-grow: 1.3; }
  .done-hint { text-align: left; }
  /* Held time ran out: line up on the left, like the lesson step. */
  .done.card.expired { margin: 0; }
  main:has(.done.card.expired) .steps { justify-content: flex-start; }

  /* Booking page: less space above the content, so each step fits on a laptop screen. */
  .booking main, .booking main:has(.action-bar) { padding-top: 22px; padding-bottom: 36px; }
  .booking .steps { margin-bottom: 18px; }

  /* Step links: the earlier steps take you back to them. */
  .step-link { display: inline-flex; align-items: center; gap: 10px; margin: -4px; padding: 4px; border: 0; border-radius: 999px; background: none; font: inherit; color: inherit; cursor: pointer; }
  .step-link:hover { color: var(--vl-teal); text-decoration: underline; text-underline-offset: 3px; }
  .step-link:hover .n { border-color: var(--vl-teal); }

  /* Step 1: the choice sits halfway down the screen (still lined up on the left). */
  .lesson-step { min-height: calc(100vh - 200px); min-height: calc(100dvh - 200px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 12vh; }

  /* Step 2: a slightly smaller calendar (smaller again on short screens) so Continue fits on screen. */
  .date-time .cal-card, .date-time .times-card { padding: 22px 28px; }
  .date-time .cal-nav { margin-bottom: 4px; }
  .date-time .cal { gap: 4px 6px; }
  .date-time .date-plain, .date-time .date-btn { width: clamp(28px, calc((100vh - 460px) / 8), 40px); font-size: 14px; }
  .date-time .legend { margin-top: 8px; }
  .date-step .release-note { margin-top: 10px; padding: 10px 16px; }
  .date-step + .action-bar { margin-top: 12px; }

  /* Step 3: the booking summary on the right is shorter, with the choice of how to pay inside it. */
  .bk-compact .bk-head { padding: 16px 22px; }
  .bk-compact .bk-head b { font-size: 22px; }
  .bk-compact .bk-head span { font-size: 14px; }
  .bk-compact .bk-body { padding: 8px 22px 20px; }
  .bk-compact .summary > div { padding: 4px 0; }
  .bk-compact .summary .total { margin-top: 4px; padding-top: 8px; }
  .bk-compact .add-lesson { margin-top: 2px; min-height: 32px; font-size: 13px; }
  .bk-compact .aside-acts { margin-top: 12px; gap: 10px; }
  .bk-compact .hold-timer { padding: 8px 12px; font-size: 12px; }
  .bk-compact .aside-acts .small { font-size: 12px; }
  .aside-pay { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--vl-line); }
  .pay-short { gap: 8px; }
  .pay-short legend { margin-bottom: 8px; font-size: 17px; }
  .pay-short .pay-option { gap: 10px; padding: 9px 12px; border-radius: var(--vl-radius-field); }
  .pay-short .pay-option:has(input:checked) { padding: 8px 11px; }
  .pay-short .pay-option input { width: 18px; height: 18px; }
  .pay-short .pay-option strong { font-size: 14px; }
  .pay-short .pay-option > span > span { font-size: 12px; line-height: 1.35; }
  .details-row .form-card { gap: 12px; }
  .details-row { margin-top: 0; }
  .details-title h1 { margin: 0; }
  .details-title + .form-card { margin-top: -4px; }
  .details-row textarea.input { min-height: 64px; }
  /* The form and the booking summary end on the same line (whichever is longer sets it). */
  .details-row { align-items: stretch; }
  .details-row .form-card { flex: 1; }
  /* When the summary is the taller one, the note box grows to fill the space (no empty gap under the form). */
  .details-row .form-card .field:has(#note) { flex: 1; }
  .details-row .form-card #note { flex: 1; }
  .details-row .aside { display: flex; flex-direction: column; }
  .details-row .aside > .bk { flex: 1; display: flex; flex-direction: column; }
  .details-row .aside > .bk > .bk-body { flex: 1; }
}

/* Laptops with short screens (e.g. 1280 × 800): tighter spacing so each booking step still fits. */
@media (min-width: 761px) and (max-height: 760px) {
  .booking .site-head-in { padding-top: 16px; }
  .booking main, .booking main:has(.action-bar) { padding-top: 12px; padding-bottom: 24px; }
  .booking .steps { margin-bottom: 12px; }
  .booking .steps .n { width: 34px; height: 34px; }
  .booking h1 { font-size: 36px; margin-bottom: 6px; }
  .booking .back { min-height: 28px; margin-bottom: 4px; }
  .date-time .cal-card, .date-time .times-card { padding: 16px 24px; }
  .date-time .icon-btn { width: 38px; height: 38px; }
  .date-time .time, .date-time .time-taken { min-height: 40px; }
  .date-step .release-note { margin-top: 8px; padding: 8px 14px; font-size: 13px; }
  .date-step + .action-bar { margin-top: 10px; }
  .action-bar:has(.summary-text) { padding: 6px 6px 6px 20px; }
  .action-bar .btn-primary { min-height: 48px; }
  .lesson-step { min-height: calc(100vh - 150px); min-height: calc(100dvh - 150px); }
}

/* ---------- Manage my booking ---------- */
.manage { max-width: 620px; }
.lesson-card { margin: 18px 0 16px; }
.lc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.lc-head h2 { margin: 0 !important; font-size: 22px; }
.lc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--vl-ink); }
.lc-list li { display: flex; align-items: center; gap: 14px; }
.lc-list svg { color: var(--vl-teal); flex: none; }
.pill-badge { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-badge.ok { background: var(--vl-ok-bg); color: var(--vl-ok-ink); }
.pill-badge.warn { background: var(--vl-sand); color: var(--vl-sand-ink); }
.pill-badge.muted { background: var(--vl-free); color: var(--vl-muted); }
.manage .note { margin: 0 0 16px; }
.manage h1, .account h1 { margin-left: 0; margin-right: 0; }
.manage .lead, .manage .sub, .account .lead, .account .sub { margin-left: 0; margin-right: 0; }
.manage .card + .card { margin-top: 12px; }
.past { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--vl-line); }
.past h2 { font-size: 15px; color: var(--vl-muted); margin: 0 0 10px; font-family: var(--vl-sans); font-weight: 600; }
.past ul { list-style: none; margin: 0; padding: 0; }
.past li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.past li span:last-child { color: var(--vl-muted); }
.manage .msg-ok { margin-top: 12px; }
@media (min-width: 761px) {
  .manage, main.account { padding-top: 40px; }
  .manage .action-bar .btn { width: 100%; }
}

/* Unsubscribe page */
.unsub h1 { margin: 0 0 6px; font-size: 28px; }
.unsub p { line-height: 1.55; }
.unsub .small { margin: 0 0 14px; }
.unsub form { margin-top: 18px; }

/* ---------- Client accounts: Log in, Choose a password, My lessons ---------- */
.account h1 { margin-top: 4px; }
.account .card { margin-bottom: 16px; }
.account .card h2 { margin: 0 0 12px; }
.account .form-card .btn { width: 100%; }
.account .form-card .link-btn { align-self: center; }
.account-alt p { margin: 0 0 14px; }
.my-lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.my-lesson { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--vl-line); }
.my-lesson:first-child { border-top: 0; padding-top: 2px; }
.ml-when { display: flex; flex-direction: column; color: var(--vl-ink); }
.ml-when span { color: var(--vl-muted); font-size: 14px; }
.ml-pay { font-size: 13px; color: var(--vl-muted); }
.ml-due { font-size: 14px; background: var(--vl-sand); color: var(--vl-sand-ink); border-radius: var(--vl-radius-field); padding: 8px 12px; margin-top: 4px; }
.ml-acts { display: flex; gap: 18px; flex-wrap: wrap; }
.change-pw summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--vl-teal); }

/* "Add Vocal Loft to your phone" (phones only; see /js/pwa.js) */
.install-card { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 24px 0 8px; padding: 16px 44px 16px 16px;
  background: var(--vl-card); border-radius: var(--vl-radius-card); }
.install-card img { flex: none; border-radius: 11px; border: 1px solid var(--vl-line); }
.install-body { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--vl-muted); line-height: 1.45; }
.install-body strong { color: var(--vl-ink); font-size: 15px; }
.install-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: none; background: none; font-size: 24px; line-height: 1; color: var(--vl-muted); cursor: pointer; border-radius: 999px; }
.install-steps { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.install-steps strong { font-size: 14px; }
.install-card .btn { margin-top: 8px; align-self: flex-start; min-height: 44px; }

/* Terms & conditions: numbered clauses */
.terms-kicker { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vl-muted); }
.terms-updated { margin: 6px 0 18px; font-size: 14px; color: var(--vl-muted); }
.terms-card { padding: 8px 28px; }
.terms-list { list-style: none; margin: 0; padding: 0; counter-reset: clause; }
.terms-list li { counter-increment: clause; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 22px 0; border-top: 1px solid var(--vl-line); }
.terms-list li:first-child { border-top: 0; }
.terms-list li::before { content: counter(clause) "."; grid-row: 1 / span 2; font-family: var(--vl-serif); font-size: 19px; line-height: 1.3; color: var(--vl-teal); }
.terms .card .terms-list h2, .terms .card .terms-list h2:first-of-type { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.terms .terms-list p { margin: 0; line-height: 1.65; color: var(--vl-body); }
@media (max-width: 560px) { .terms-card { padding: 4px 18px; } .terms-list li { grid-template-columns: 30px 1fr; padding: 18px 0; } }

/* Drop-downs (Your details: Age) */
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232F5F62' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
select.input:invalid { color: var(--vl-muted); }
select.input option { color: var(--vl-ink); }

/* Terms page: left-aligned with the "Vocal Loft" heading above it, instead of centred */
main.terms { max-width: 1080px; }
main.terms > * { max-width: 720px; }
@media (min-width: 761px) { main.terms { padding-left: 32px; padding-right: 32px; } }

/* Privacy notice (same look as the Terms page) */
.privacy-card { padding: 22px 28px 18px; }
.terms .privacy-card h2, .terms .card.privacy-card h2:first-of-type { margin: 24px 0 8px; font-size: 19px; }
.privacy-card ul { margin: 0 0 10px; padding-left: 20px; }
.privacy-card li { margin: 0 0 6px; line-height: 1.6; color: var(--vl-body); }
.privacy-card p { color: var(--vl-body); }
.privacy-card a, .terms-also a { font-weight: 600; }
.terms-also { margin: 6px 0 16px; padding-top: 14px; border-top: 1px solid var(--vl-line); }
.privacy-also { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--vl-line); }
@media (max-width: 560px) { .privacy-card { padding: 18px 18px 14px; } }
