/* ---------- Fonts (self-hosted, latin subset, SIL OFL — see /fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  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;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #111418;
  --accent: #B84444;
  --accent-hover: #A33A3A;
  --panel: #F1F2F4;
  --paper: #FFFFFF;
  --muted: #4B5058;
  --muted-on-dark: #C9CDD3;
  --line: #D5D8DD;
  --focus: #2F6FEB;

  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: 24px;
  --content: 640px;
  --radius: 4px;
  --tap: 48px;
  --dur: 200ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, .h-display {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
h2 { font-size: 34px; margin-bottom: 28px; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #8FB3FF; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--paper); color: var(--ink);
  font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

.nowrap { white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.section { padding: 48px 0; }
.wrap { padding: 0 var(--gutter); max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Buttons (reusable by the booking sheet) ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 14px 20px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 17px/1.2 var(--font-body);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--panel); }
.btn-text { background: none; border: 0; color: var(--ink); text-decoration: underline; width: auto; min-height: var(--tap); padding: 0 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- Tick list ---------- */
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.ticks .icon { width: 18px; height: 18px; margin-top: 3px; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 40px 0 36px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted-on-dark); margin-bottom: 14px; line-height: 1.4; }
.hero-title { font-size: 54px; line-height: .98; margin-bottom: 20px; }
.lead { font-size: 19px; line-height: 1.5; color: #E6E8EB; margin-bottom: 24px; }
.hero .ticks { margin-bottom: 32px; }
.hero .small-print { margin-top: 12px; font-size: 13px; color: var(--muted-on-dark); }

.byline { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.byline picture { flex: none; }
.byline-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.byline p { display: grid; gap: 2px; line-height: 1.45; }
.byline strong { font-size: 16px; font-weight: 600; }
.byline span { font-size: 14px; color: var(--muted-on-dark); }

/* ---------- How it works ---------- */
.how { padding-top: 52px; }
.steps { position: relative; margin-bottom: 36px; }
.step { position: relative; padding-left: 58px; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
/* vertical connecting line, centred on the 36px circle */
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 36px; bottom: 0;
  width: 1.5px; background: var(--line);
}
.step-num {
  position: absolute; left: 0; top: -5px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 600 15px/1 var(--font-body);
}
.step.is-first .step-num { background: var(--ink); color: #fff; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); }

/* ---------- Data safety ---------- */
.safe { background: var(--panel); padding: 32px 0; }
.safe-row { display: flex; gap: 16px; align-items: flex-start; }
.icon-lock { width: 22px; height: 22px; margin-top: 2px; }
.safe p { color: var(--muted); }
.safe strong { color: var(--ink); font-weight: 600; }

/* ---------- About ---------- */
.about { padding-bottom: 0; }
.about-photo { width: 160px; height: 160px; object-fit: cover; margin-bottom: 20px; }
.about p { color: var(--muted); }
.pull-quote { margin: 32px 0 0; }
.pull-quote p {
  font-family: var(--font-head); font-weight: 700;
  font-size: 30px; line-height: 1.05; color: var(--ink);
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 40px 0 0; }

/* ---------- Fit ---------- */
.fit .ticks { margin-bottom: 36px; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); font-size: 13px; padding: 32px 0 64px; }
.site-footer p + p { margin-top: 4px; }
.site-footer a { color: #fff; text-underline-offset: 2px; display: inline-block; padding: 12px 0; margin: -12px 0; }

/* ---------- Prose page (privacy) ---------- */
.page-head { background: var(--ink); color: #fff; padding: 32px 0; }
.page-head a { color: var(--muted-on-dark); font-size: 14px; display: inline-flex; align-items: center; min-height: var(--tap); }
.page-head h1 { font-size: 44px; margin-top: 8px; }
.prose { padding: 40px 0 56px; }
.prose h2 { font-size: 26px; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--ink); }
.prose .back { margin-top: 40px; }
.prose .back .btn { width: auto; display: inline-flex; }

/* ---------- Booking sheet ---------- */
html.sheet-open { overflow: hidden; }
.sheet {
  --sheet-pad: 24px;
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: 100%; max-height: min(92vh, 92dvh);
  margin: auto 0 0; padding: 0; border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  /* The second shadow is a block of paper below the sheet, so a spring overshoot never shows a gap. */
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .18), 0 160px 0 var(--paper);
}
.sheet[open] { animation: sheet-up var(--dur) var(--ease); }
.sheet.is-closing { animation: sheet-down 160ms ease-in forwards; }
.sheet::backdrop { background: rgba(17, 20, 24, .62); }
.sheet[open]::backdrop { animation: sheet-fade var(--dur) ease-out; }
.sheet.is-closing::backdrop { animation: sheet-fade 160ms ease-in reverse forwards; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { from { transform: none; } to { transform: translateY(100%); } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
/* Mobile: booking.js drives the sheet with a spring and drag, so the CSS animations stand down. */
.sheet.is-physics, .sheet.is-physics[open], .sheet.is-physics[open]::backdrop { animation: none; }
.sheet.is-physics { will-change: transform; }
.sheet.is-physics::backdrop { opacity: var(--shade, 1); }

.sheet-body { padding: 12px var(--sheet-pad) calc(28px + env(safe-area-inset-bottom, 0px)); }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: #C4C8CE; margin: 0 auto 20px; }

.sheet-head { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
.sheet-head picture { flex: none; }
.sheet-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-top: 2px; }
.sheet-titles { flex: 1; min-width: 0; }
.sheet-title { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.sheet-title:focus { outline: none; }
.sheet-title-lg { font-size: 38px; margin-bottom: 12px; }
.sheet-sub { font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.sheet-icon-btn {
  flex: none; display: grid; place-items: center;
  width: var(--tap); height: var(--tap); margin: -8px -12px 0 0; padding: 0;
  background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sheet-icon-btn:hover { background: var(--panel); }
.sheet-close { position: absolute; top: -8px; right: -12px; margin: 0; }
.sheet-head:not(.sheet-head-back) .sheet-title { padding-right: 44px; }
.sheet-icon-btn .icon { width: 24px; height: 24px; }
.sheet-head-back { align-items: center; margin-left: -12px; gap: 4px; }
.sheet-head-back .sheet-icon-btn { margin: 0; }
.sheet-head-back .sheet-title { font-size: 26px; }
.sheet-head-back .sheet-sub { margin-top: 2px; }

.sheet-banner:focus { outline: none; }
.sheet-banner {
  margin: -8px 0 16px; padding: 12px 14px; border-radius: var(--radius);
  background: #FBEDED; border-left: 4px solid var(--accent); font-size: 15px; line-height: 1.4;
}

.slots-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 20px; margin-bottom: 10px; line-height: 20px; }
.slots-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.slots-note { font-size: 14px; color: var(--muted); text-align: right; }
/* Six days, all on screen at once: no sideways scrolling. */
.day-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 32px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  height: 64px; padding: 0; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); cursor: pointer;
  font-family: var(--font-body); -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.day .wd { font-size: 13px; line-height: 1; color: var(--muted); transition: color 150ms ease-out; }
.day .dn { font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-pressed="true"] .wd { color: var(--muted-on-dark); }
.day:active { transform: scale(.96); }

/* Days with fewer times keep the busiest day's height; the spare space sits under the box.
   The rows draw the box themselves, so it hugs the times rather than the reserved space. */
.time-list { min-height: calc(var(--max-rows, 0) * var(--row, 56px)); }
.slots { --row: 56px; }
.time-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  height: var(--row); padding: 0 14px 0 16px;
  background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  font: 400 17px/1.2 var(--font-body); text-align: left; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease);
}
.time-row + .time-row { border-top: 0; }
.time-row:first-child { border-radius: 2px 2px 0 0; }
.time-row:last-child { border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; }
.time-row[aria-pressed="true"] { background: var(--panel); }
/* Hover only where there's a real pointer; on touch screens it sticks after a tap. */
@media (hover: hover) {
  .day:not([aria-pressed="true"]):hover, .time-row:hover { background: var(--panel); }
}
.time-row .icon { width: 20px; height: 20px; color: var(--muted); }

.skel {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ECEEF1 0%, #F6F7F8 50%, #ECEEF1 100%) 0 0 / 200% 100%;
  animation: skel 1.2s linear infinite;
}
.day-skel { height: 64px; border-radius: 2px; }
.time-skel { display: block; height: 44px; margin-bottom: 12px; }
@keyframes skel { to { background-position: -200% 0; } }
.sheet-msg { padding: 16px; background: var(--panel); border-radius: var(--radius); color: var(--ink); line-height: 1.5; }
.sms-link { color: var(--ink); font-weight: 600; text-underline-offset: 2px; white-space: nowrap; display: inline-block; padding: 12px 0; margin: -12px 0; }

.sheet-foot { margin-top: 32px; }
.sheet-text { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.sheet-text .icon { color: var(--ink); }

.sheet-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid #8A9099; border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.3 var(--font-body);
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #7A8089; }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.field-error, .form-error { color: #A12F2F; font-size: 14px; line-height: 1.35; }
.form-error { padding: 10px 12px; background: #FBEDED; border-radius: var(--radius); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sheet-form .btn-primary { margin-top: 4px; }
.btn.is-busy .icon { display: none; }
.btn.is-busy[disabled] { opacity: .75; cursor: progress; }
.sheet-small { font-size: 13px; color: var(--muted); margin-top: -6px; }

.sheet-confirm { color: var(--muted); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.sheet-confirm strong { color: var(--ink); font-weight: 600; }
.sheet-panel { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; background: var(--panel); border-radius: var(--radius); }
.sheet-panel p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.sheet-panel strong { color: var(--ink); font-weight: 600; }
.sheet-panel picture { flex: none; }
.sheet-photo-sm { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.sheet-done { display: flex; margin: 16px auto 0; padding: 0 24px; text-decoration: none; font-weight: 600; color: var(--muted); }
.sheet-done:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 768px) {
  .sheet {
    inset: 0; margin: auto; width: 480px; max-height: min(88vh, 760px);
    border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
  }
  .sheet[open] { animation: sheet-pop var(--dur) var(--ease); }
  .sheet.is-closing { animation: sheet-pop 140ms ease-in reverse forwards; }
  .sheet-handle { display: none; }
  .sheet-body { padding: 32px; }
}
@keyframes sheet-pop { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-title { font-size: 72px; }
  .lead { font-size: 21px; }
  h2 { font-size: 42px; }
  .pull-quote p { font-size: 38px; }
  .safe { padding: 40px 0; }
  .about { padding-bottom: 0; }
  .about-photo { width: 200px; height: 200px; }
}

/* ---------- Wide desktop: use the width instead of a phone column ---------- */
@media (min-width: 1024px) {
  /* Landing page only: the privacy page keeps the narrow reading column. */
  .section > .wrap, main:not(.prose) ~ .site-footer .wrap { --content: 1040px; }
  .section { padding: 96px 0; }
  .safe { padding: 40px 0; }
  .about { padding-bottom: 0; }
  .section .cta { width: auto; min-width: 320px; padding: 14px 32px; justify-self: start; }

  /* Hero: the pitch on the left, who you'll speak with on the right. */
  .hero { padding: 104px 0 96px; }
  .hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 96px; align-items: start;
  }
  .hero .wrap > * { grid-column: 1; }
  .hero-title { font-size: 88px; }
  .lead { max-width: 30em; }
  .hero .wrap > .byline {
    grid-column: 2; grid-row: 1 / span 6; align-self: center;
    flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 0;
  }
  .byline-photo { width: 280px; height: 280px; border-radius: var(--radius); border: 0; }
  .byline strong { font-size: 17px; }
  .byline span { font-size: 15px; }

  /* Steps side by side, joined by a horizontal line. */
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; margin-bottom: 48px; }
  .step { padding: 56px 0 0; }
  .step-num { top: 0; }
  .step:not(:last-child)::before { left: 48px; right: -36px; top: 17px; bottom: auto; width: auto; height: 1.5px; }
  .step h3 { font-size: 19px; margin-bottom: 6px; }
  .how .wrap { display: grid; }

  /* About: photo beside the story. */
  .about .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 64px; }
  .about .wrap > * { grid-column: 2; }
  .about .wrap > picture { grid-column: 1; grid-row: 1 / span 3; }
  .about-photo { width: 240px; height: 240px; margin-bottom: 0; }
  .about p { max-width: 36em; }
  .pull-quote p { font-size: 44px; max-width: 18em; }
  .about .divider { grid-column: 1 / -1; margin-top: 96px; }

  /* Fit: the four checks in two columns. */
  .fit .wrap { display: grid; }
  .fit .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 20px; margin-bottom: 48px; }

  .site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .site-footer p + p { margin-top: 0; }
}

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