/* Customer site */
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand img { width: 64px; height: auto; }
.brand span { display: none; }
.head-cta { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
body.on-home .head-cta { visibility: hidden; }
body.on-home.scrolled .head-cta { visibility: visible; }
body.in-flow .head-cta { display: none; }

/* Hero */
.hero { background: var(--black); color: var(--white); }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 32px var(--gutter) 0; }
.hero-logo { width: min(300px, 78%); height: auto; margin-bottom: 32px; }
.hero h1 { font-size: clamp(36px, 10vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 18px; max-width: 12ch; }
.lede { font-size: 18px; line-height: 1.5; color: #c7c7cc; max-width: 36ch; }
.hero-ctas { display: grid; gap: 10px; margin: 28px 0 36px; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.4); }
.hero .btn-outline:hover { border-color: var(--white); }

/* Next free dates — the live calendar on the homepage */
.next {
  background: var(--white); color: var(--ink);
  margin: 0 calc(-1 * var(--gutter)); padding: 26px var(--gutter) 28px;
  border-radius: 22px 22px 0 0;
}
.next-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.next-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.next-all { font-size: 15px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.next-list li { border-bottom: 1px solid var(--line); }
.next-list li.skeleton { border: 0; margin: 8px 0; }
.next-list a {
  display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px;
  min-height: 64px; text-decoration: none; padding: 8px 0;
}
.next-date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.next-date .dow { font-size: 13px; font-weight: 600; color: var(--steel); }
.next-date .dnum { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.next-when { font-size: 16px; font-weight: 600; }
.next-when small { display: block; font-size: 14px; color: var(--steel); font-weight: 400; }
.chev { width: 9px; height: 15px; color: #c7c7cc; }
.next-empty { padding: 18px 0 6px; color: var(--steel); }
.next-note { font-size: 14px; color: var(--steel); margin-top: 16px; }

/* How it works */
.how, .services { max-width: 1120px; margin: 0 auto; padding: 56px var(--gutter) 8px; }
.how h2, .services h2 { font-size: 30px; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 24px; }
.steps { display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps .n {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--black);
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.steps h3 { font-size: 19px; letter-spacing: -0.01em; margin: 9px 0 4px; }
.steps p { color: var(--steel); }

/* Services */
.services { padding-bottom: 64px; }
.services-intro p { color: var(--steel); max-width: 52ch; margin: -12px 0 28px; }
.service-cols { display: grid; gap: 28px; margin-bottom: 32px; }
.service-cols h3 { font-size: 15px; font-weight: 600; color: var(--steel); padding-bottom: 10px; border-bottom: 1.5px solid var(--black); }
.service-cols li { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Footer */
.site-foot { background: var(--black); color: #a1a1a6; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.site-foot img { width: 150px; height: auto; margin-bottom: 16px; }
.site-foot p { margin-top: 6px; }
.site-foot a { color: var(--white); }
body.in-flow .site-foot { display: none; }

/* Prose pages */
.prose { max-width: 680px; margin: 0 auto; padding: 32px var(--gutter) 72px; }
.prose h1 { font-size: 34px; letter-spacing: -0.03em; margin: 16px 0 16px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p { margin-bottom: 12px; color: #3a3a3c; }
.back-link { font-weight: 600; text-underline-offset: 3px; }

/* ---------------- Enquiry flow ---------------- */
.flow { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter) calc(130px + env(safe-area-inset-bottom)); }
.flow-top { position: sticky; top: calc(61px + env(safe-area-inset-top)); z-index: 10; background: var(--white); padding: 12px 0 14px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.flow-bar { display: flex; align-items: center; gap: 8px; }
.flow-back { width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.flow-back svg { width: 11px; height: 19px; }
.flow-step { font-size: 14px; color: var(--steel); font-weight: 500; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.progress i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.progress i.on { background: var(--black); }
.flow h1 { font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 8px; }
.flow .intro { color: var(--steel); margin-bottom: 22px; }
.group-title { font-size: 15px; font-weight: 600; color: var(--steel); margin: 26px 0 2px; }

.flow-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,.08);
}
.flow-foot-inner { max-width: 640px; margin: 0 auto; display: grid; gap: 6px; }
.flow-foot .summary-line { font-size: 14px; color: var(--steel); text-align: center; min-height: 20px; }

.calendar-wrap { margin-top: 6px; }
.windows { margin-top: 22px; }
.windows h2 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 4px; }
.windows .when-note { font-size: 14px; color: var(--steel); }
.choice.disabled { cursor: not-allowed; opacity: .45; }
.status-tag { margin-left: auto; font-size: 13px; color: var(--steel); font-weight: 500; }
.confirm-note { margin-top: 22px; padding: 16px 0 0; border-top: 1.5px solid var(--black); font-size: 15px; }
.general { margin-top: 26px; }
.general p { color: var(--steel); font-size: 15px; margin-bottom: 6px; }
.notice-box { padding: 16px; background: var(--mist); border-radius: var(--r-md); font-size: 15px; margin: 18px 0; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span {
  display: grid; place-items: center; min-height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; padding: 0 6px;
}
.segmented input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.segmented input:focus-visible + span { outline: 3px solid #0a64d6; outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--black); }

.review dl { border-top: 1.5px solid var(--black); }
.review .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review dt { font-size: 14px; color: var(--steel); grid-column: 1; }
.review dd { grid-column: 1; font-size: 17px; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.review .edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.ref { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
details.msg { margin: 18px 0; }
details.msg summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
details.msg pre { white-space: pre-wrap; font-family: var(--font); font-size: 15px; background: var(--mist); border-radius: var(--r-md); padding: 16px; margin: 6px 0 0; }
.wa-btn svg { width: 22px; height: 22px; }

.sent { text-align: left; padding-top: 24px; }
.sent .big-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--black); display: grid; place-items: center; margin-bottom: 20px; }
.sent .big-tick { color: var(--white); }
.sent .big-tick svg { width: 30px; height: 30px; }
.sent ol { margin: 18px 0 26px; counter-reset: s; }
.sent ol li { counter-increment: s; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line); }
.sent ol li::before { content: counter(s); position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--black); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.err-banner { padding: 14px 16px; border-radius: var(--r-md); background: #fdecea; color: var(--danger); font-weight: 500; font-size: 15px; margin: 16px 0; }

.fade-in { animation: fadeIn .28s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- Larger screens ---------------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .brand span { display: inline; }
  .hero-ctas { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; }
  .service-cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .flow h1 { font-size: 36px; }
}
@media (min-width: 980px) {
  .hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding: 72px var(--gutter) 80px; }
  .hero-ctas { margin-bottom: 0; }
  .next { margin: 0; border-radius: 20px; padding: 28px; }
  .how, .services { padding-top: 88px; }
  .how h2, .services h2 { font-size: 40px; }
}
#nf { padding-top: 80px; }

/* On the homepage the header joins the black hero until you scroll past it */
body.on-home:not(.scrolled) .site-head { background: var(--black); border-bottom-color: transparent; color: var(--white); }
body.on-home:not(.scrolled) .brand img { filter: invert(1); }
