/* Fonts are self-hosted (SIL Open Font Licence, see fonts/): visitors' addresses are never sent to a font provider. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/bricolage-grotesque-variable.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }

/* Layout: white page, left-aligned column with a live booking card beside the hero; blue carries the text, violet marks every action, and the three offers are blue, blue-to-violet and violet. The owner asked for a white background, so the page stays light. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --tint: #f3f4fc;
  --ink: #141d4a;
  --ink-soft: #4a5378;
  --blue: #2338a8;
  --blue-deep: #16236e;
  --violet: #6b3fd4;
  --violet-soft: #ece6fb;
  --rule: #d9dcef;
  --on-deep: #f3f1ff;
  --on-deep-soft: #dcd8fa;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --radius-small: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); padding-inline: 20px; }
.wrap { max-width: 1120px; margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.lede { color: var(--ink-soft); max-width: 62ch; font-size: 1.08rem; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); margin-inline: -20px; padding-inline: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg, .brand img { width: 38px; height: 38px; flex: none; }
.brand .appoint { color: var(--blue); }
.brand .safe { color: var(--violet); }
.top nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding-inline: 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--violet); cursor: pointer; font: inherit; font-weight: 700; }
.button.solid { background: var(--violet); color: #fff; }
.button.solid:hover { background: color-mix(in srgb, var(--violet) 85%, #000); }
.button.line { background: transparent; color: var(--ink); }
.button.line:hover { background: var(--violet-soft); }
.top .button { min-height: 40px; white-space: nowrap; }
@media (max-width: 720px) { .top nav a:not(.button) { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-block: 72px 56px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero .lede { margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { margin-top: 18px; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 40px; } }

/* Live booking card */
.demo { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--blue-deep) 45%, transparent); overflow: hidden; }
.demo-tabs { display: flex; border-bottom: 1px solid var(--rule); }
.demo-tabs button { flex: 1; min-height: 46px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--ink-soft); font: 700 0.9rem var(--body); cursor: pointer; }
.demo-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--violet); }
.demo-body { padding: 24px; display: grid; gap: 16px; }
.demo .service { font-size: 0.85rem; color: var(--ink-soft); }
.demo .step { font-family: var(--display); font-weight: 700; font-size: 1.45rem; }
.demo .day { font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--rule); border-radius: var(--radius-small); padding-block: 10px; text-align: center; font: 500 0.95rem var(--mono); font-variant-numeric: tabular-nums; }
.slot.chosen { border-color: var(--violet); background: var(--violet-soft); color: var(--ink); }
.slot.gone { color: var(--ink-soft); background: var(--tint); text-decoration: line-through; }
.hold { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-small); background: var(--tint); font-size: 0.92rem; }
.hold strong { font: 500 1rem var(--mono); font-variant-numeric: tabular-nums; color: var(--violet); }
.demo .ref { font: 500 0.82rem var(--mono); color: var(--ink-soft); }
.demo .fake-button { min-height: 46px; border-radius: 999px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--rule); }
.facts div { padding: 22px 20px; display: grid; gap: 4px; }
.facts div + div { border-inline-start: 1px solid var(--rule); }
.facts b { font-family: var(--display); font-size: 1.15rem; }
.facts span { color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { border-inline-start: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 440px) { .facts { grid-template-columns: 1fr; } .facts div + div { border-inline-start: 0; border-top: 1px solid var(--rule); } }

section.block { padding-block: 88px 0; }
.block header { display: grid; gap: 14px; margin-bottom: 40px; }
.kicker { font-weight: 700; color: var(--violet); font-size: 0.95rem; }

/* Applicant journey: a real sequence */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.journey li { counter-increment: step; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--blue); padding-top: 18px; }
.journey li::before { content: counter(step); font: 500 0.85rem var(--mono); color: var(--blue); }
.journey p { color: var(--ink-soft); }
@media (max-width: 880px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .journey { grid-template-columns: 1fr; } }

/* Staff and security */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; align-content: start; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.panel li { display: grid; gap: 2px; padding-inline-start: 18px; position: relative; }
.panel li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--violet); }
.panel li span { color: var(--ink-soft); font-size: 0.95rem; }
.panel.deep { background: var(--blue-deep); color: var(--on-deep); border-color: transparent; }
.panel.deep li span, .panel.deep .lede { color: var(--on-deep-soft); }
.panel.deep li::before { background: #c9b6ff; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.offer { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 60px -36px color-mix(in srgb, var(--blue-deep) 80%, transparent); }
.offer.featured { background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue) 45%, var(--violet) 100%); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--violet) 75%, transparent); }
.offer.violet { background: var(--violet); box-shadow: 0 24px 60px -36px color-mix(in srgb, var(--violet) 80%, transparent); }
.offer .who { color: var(--on-deep-soft); font-size: 0.95rem; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--on-deep-soft); font-size: 0.92rem; }
.offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; flex: 1; }
.offer li { padding-inline-start: 26px; position: relative; font-size: 0.97rem; }
.offer li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.35em; width: 12px; height: 7px; border-inline-start: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.offer .button { background: #fff; color: var(--blue-deep); border-color: #fff; }
.offer .button:hover { background: var(--violet-soft); border-color: var(--violet-soft); }
.offer.violet .button { color: #3b1d8f; }
.offer :focus-visible { outline-color: #fff; }
@media (min-width: 901px) { .offer.featured { transform: translateY(-12px); } }
.badge { align-self: flex-start; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; color: #3b1d8f; }
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.offers-note { margin-top: 18px; color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; max-width: 520px; } .offer .who { min-height: 0; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-small); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Footer */
.contact { margin-block: 88px 0; padding: 48px clamp(22px, 5vw, 56px); border-radius: var(--radius); background: var(--blue-deep); color: var(--on-deep); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.contact .lede { color: var(--on-deep-soft); margin-top: 14px; }
.contact .direct { margin-top: 24px; color: var(--on-deep-soft); }
.contact .address { color: #fff; font-weight: 700; user-select: all; overflow-wrap: anywhere; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* Contact form: a white card on the blue section, so fields read like every other form. */
.contact-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 4vw, 30px); display: grid; gap: 18px; }
.contact-form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .contact-form .pair { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .optional, .field .hint { font-weight: 400; color: var(--ink-soft); }
.field .hint { font-size: 0.88rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid #9aa1c7; border-radius: var(--radius-small); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--violet); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b42318; }
.error { color: #b42318; font-size: 0.9rem; font-weight: 700; }
.error:empty, .status:empty { display: none; }
.trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 12px 14px; border-radius: var(--radius-small); font-weight: 700; }
.status.ok { background: #e6f4ea; color: #14532d; }
.status.fail { background: #fdecea; color: #8a1c12; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot .button[disabled] { opacity: 0.7; cursor: progress; }
.privacy-note { color: var(--ink-soft); font-size: 0.88rem; flex: 1 1 220px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

footer { padding-block: 40px 48px; color: var(--ink-soft); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Footer */
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }
.panel.deep .kicker { color: #c9b6ff; }

/* Legal pages */
.legal { max-width: 760px; padding-block: 56px 24px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.legal h2 { font-size: 1.35rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink-soft); max-width: 70ch; }
.legal address { font-style: normal; color: var(--ink); }
.fill { background: var(--violet-soft); color: var(--ink); border-radius: 4px; padding-inline: 4px; }
.draft { border-inline-start: 4px solid var(--violet); background: var(--tint); padding: 14px 18px; border-radius: var(--radius-small); color: var(--ink); }
.address-plain { font-weight: 700; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
/* Anchors and focused fields stop below the sticky header. */
section[id], .status, .field :is(input, select, textarea) { scroll-margin-top: 96px; }
