/* ==========================================================================
   Emma Wilson — Sports Massage & Physiotherapy
   Derived from the "Modernist" design system (Archivo, zero radius, 2px rules)
   with the palette from the Claude Design comp: navy ink, electric blue accent.
   Mobile-first. No framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font — Archivo variable (self-hosted, latin subset).
   Width axis 62–125% gives the condensed display cut without a second family.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-var.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;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --paper: #ffffff;
  --surface: #f4f7fc;
  --ink: #0e1b33;
  --accent: #2a50f0;
  --accent-600: #1c3ecb;
  --accent-700: #142f9e;
  --accent-100: #eef2fe;
  --accent-200: #dbe3fd;

  /* Derived */
  --ink-soft: color-mix(in srgb, var(--ink) 70%, transparent);
  --ink-muted: color-mix(in srgb, var(--ink) 62%, transparent);
  --rule: color-mix(in srgb, var(--ink) 16%, transparent);
  --rule-strong: color-mix(in srgb, var(--ink) 85%, transparent);

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display-stretch: 84%;

  /* Layout */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 40px);
  --rule-w: 2px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sticky header offset for in-page anchors */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Room for the mobile sticky CTA bar */
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: var(--accent-200);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-weight: 700;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

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

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 800;
  font-stretch: var(--display-stretch);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 9.8vw, 4rem);
}
h2 {
  font-size: clamp(1.9rem, 7vw, 3rem);
}

/* Each sentence of the hero headline takes its own line once there is room,
   so the break never lands mid-sentence. */
@media (min-width: 900px) {
  .h1-line {
    display: block;
  }
}
h3 {
  font-size: clamp(1.3rem, 4.4vw, 1.6rem);
  line-height: 1.08;
}
h4 {
  font-size: clamp(1.1rem, 3.6vw, 1.25rem);
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-700);
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
a:hover {
  text-decoration: underline;
}

.kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-700);
  margin: 0 0 1.25rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-soft);
  margin: 0 0 1.125rem;
}
/* The accent tick gives the label enough weight to hold its own above a
   display-size heading, without competing with it. */
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  flex: none;
  background: var(--accent);
}

/* Header block for sections whose body isn't a two-column split. */
.section-head {
  margin-bottom: clamp(30px, 5.5vw, 44px);
}
.section-head h2 {
  margin: 0;
}

.lead {
  font-size: clamp(1.0625rem, 3.2vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}

.muted {
  color: var(--ink-soft);
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: clamp(58px, 11vw, 88px);
  border-bottom: var(--rule-w) solid var(--rule);
}

/* A grid whose cells are divided by rules: horizontal on mobile,
   vertical once there is room for columns. */
.ruled-grid {
  display: grid;
  gap: 0;
}
.ruled-grid > * {
  padding-block: 34px;
  border-bottom: var(--rule-w) solid var(--rule);
}
.ruled-grid > *:last-child {
  border-bottom: 0;
}

@media (min-width: 720px) {
  .ruled-grid {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
  .ruled-grid > * {
    padding: 38px 32px;
    border-bottom: 0;
    border-right: var(--rule-w) solid var(--rule);
  }
  .ruled-grid > *:first-child {
    padding-left: 0;
  }
  .ruled-grid > *:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--rule-w) solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink);
  min-width: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand__name {
  font-weight: 800;
  font-stretch: var(--display-stretch);
  font-size: clamp(1.05rem, 4.6vw, 1.3rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__role {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Hide the descriptor on the narrowest phones so the CTA never gets squeezed */
@media (max-width: 400px) {
  .brand__role {
    display: none;
  }
}

.site-nav {
  display: none;
}
@media (min-width: 900px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 28px;
  }
  .site-nav a {
    color: var(--ink-soft);
    font-size: 0.875rem;
    font-weight: 600;
  }
  .site-nav a:hover {
    color: var(--accent);
    text-decoration: none;
  }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 800;
  font-stretch: 92%;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: var(--rule-w) solid var(--btn-bd);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
}
.btn--primary:hover {
  --btn-bg: var(--accent-600);
  --btn-bd: var(--accent-600);
}
.btn--primary:active {
  --btn-bg: var(--accent-700);
  --btn-bd: var(--accent-700);
}

.btn--secondary {
  --btn-bd: var(--rule);
}
.btn--secondary:hover {
  --btn-bg: var(--surface);
  --btn-bd: color-mix(in srgb, var(--ink) 34%, transparent);
}

.btn--onaccent {
  --btn-bg: #fff;
  --btn-fg: var(--accent-700);
  --btn-bd: #fff;
}
.btn--onaccent:hover {
  --btn-bg: var(--accent-100);
  --btn-bd: var(--accent-100);
}

.btn--sm {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn__arrow {
  flex: none;
  transition: transform 0.18s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* Full-width CTAs on small phones read better and are easier to hit */
@media (max-width: 480px) {
  .btn-row .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(36px, 8vw, 72px);
  padding-bottom: 0;
  border-bottom: var(--rule-w) solid var(--rule);
}

.hero__grid {
  display: grid;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.hero__copy h1 {
  margin-bottom: 1.25rem;
}

.hero__lead {
  margin-bottom: 1.75rem;
}

.hero__meta {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--accent);
}

.hero__media {
  position: relative;
  margin-bottom: clamp(36px, 7vw, 72px);
}
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 38%;
  background: var(--surface);
}

@media (min-width: 900px) {
  .hero__media {
    margin-bottom: 0;
    align-self: stretch;
    display: flex;
  }
  .hero__media img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 460px;
  }
}

/* Photo credit / caption rule under the image */
.hero__caption {
  margin-top: 10px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   9. Credentials strip
   -------------------------------------------------------------------------- */
.stat__num {
  font-weight: 800;
  font-stretch: var(--display-stretch);
  font-size: clamp(1.75rem, 7.4vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  /* These slots hold anything from "Level 4" to "Clinic/Mobile Treatments",
     so a long label has to wrap evenly rather than overflow its cell. */
  text-wrap: balance;
  overflow-wrap: break-word;
}
.stat__label {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 30ch;
}

/* --------------------------------------------------------------------------
   10. Section headers (two-column: title left, content right)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(34px, 5vw, 56px);
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
    gap: clamp(40px, 5vw, 72px);
  }
}
.split__head h2 {
  margin: 0;
}
.split__lede {
  margin-top: 1.125rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   11. Focus cards — Recovery / Mobility / Event prep
   -------------------------------------------------------------------------- */
.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.focus-list li {
  padding-block: 24px;
  border-top: var(--rule-w) solid var(--rule);
}
.focus-list li:last-child {
  border-bottom: var(--rule-w) solid var(--rule);
}
.focus-list h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.focus-list .idx {
  font-size: 0.8125rem;
  font-weight: 800;
  font-stretch: 100%;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.focus-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   12. Audience grid
   -------------------------------------------------------------------------- */
.audience {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
.audience h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.audience p {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* The three layouts are mutually exclusive on purpose. Each restates the full
   padding/border set inside its own bounded query, because an nth-child rule
   from a narrower breakpoint outranks a plain `.audience > div` in a wider one
   and would otherwise leak through — which is how cell 3 lost its left padding
   and ended up flush against its divider. */

/* Phones — a stacked list divided by horizontal rules. */
@media (max-width: 639.98px) {
  .audience > div {
    padding-block: 26px;
    border-bottom: var(--rule-w) solid var(--rule);
  }
  .audience > div:first-child {
    padding-top: 0;
  }
  .audience > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* Tablets — two up. */
@media (min-width: 640px) and (max-width: 999.98px) {
  .audience {
    grid-template-columns: 1fr 1fr;
  }
  .audience > div {
    padding: 28px 28px 28px 0;
    border-right: var(--rule-w) solid var(--rule);
    border-bottom: var(--rule-w) solid var(--rule);
  }
  .audience > div:nth-child(2n) {
    padding-right: 0;
    padding-left: 28px;
    border-right: 0;
  }
  .audience > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* Desktop — four up, vertical rules only, with air at both ends. */
@media (min-width: 1000px) {
  .audience {
    grid-template-columns: repeat(4, 1fr);
  }
  .audience > div {
    padding: 14px 26px;
    border-right: var(--rule-w) solid var(--rule);
    border-bottom: 0;
  }
  .audience > div:first-child {
    padding-left: 0;
  }
  .audience > div:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

/* --------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */
.pricing {
  display: grid;
  gap: 0;
  border-top: var(--rule-w) solid var(--rule);
}
.price {
  padding-block: 38px;
  border-bottom: var(--rule-w) solid var(--rule);
}
.price:last-child {
  border-bottom: 0;
}
.price__amount {
  font-weight: 800;
  font-stretch: var(--display-stretch);
  font-size: clamp(3.75rem, 17vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--accent);
  display: flex;
  align-items: flex-start;
  gap: 3px;
}
.price__amount .cur {
  font-size: 0.44em;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.price__dur {
  margin-top: 16px;
  font-weight: 800;
  font-stretch: var(--display-stretch);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.price__desc {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

@media (min-width: 720px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
  .price {
    padding: 40px;
    border-bottom: 0;
    border-right: var(--rule-w) solid var(--rule);
  }
  .price:first-child {
    padding-left: 0;
  }
  .price:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

/* --------------------------------------------------------------------------
   14. Process — 01 / 02 / 03
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: var(--rule-w) solid var(--rule);
}
.steps li:first-child {
  padding-top: 0;
}
.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.steps .num {
  flex: none;
  min-width: 30px;
  font-weight: 800;
  font-stretch: 100%;
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.steps h3 {
  font-size: 1.1875rem;
}
.steps p {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   15. Poster statement — the one place the accent runs as a field
   -------------------------------------------------------------------------- */
.poster {
  background: var(--accent);
  color: #fff;
  padding: clamp(36px, 8vw, 72px) var(--gut);
  margin-block: 0;
}
.poster__inner {
  max-width: var(--wrap);
  margin-inline: auto;
}
.poster__kicker {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}
.poster h2 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.02;
  max-width: 22ch;
  margin: 0;
}
.poster__contact {
  margin-top: clamp(28px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 800;
  font-stretch: 92%;
  font-size: clamp(1rem, 4.4vw, 1.25rem);
}
.poster__contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.poster__contact a:hover {
  color: var(--accent-100);
}
@media (min-width: 720px) {
  .poster__contact {
    flex-direction: row;
    gap: 32px;
    align-items: baseline;
  }
}
.poster :focus-visible {
  outline-color: #fff;
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq {
  border-top: var(--rule-w) solid var(--rule);
}
.faq details {
  border-bottom: var(--rule-w) solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-stretch: 92%;
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  letter-spacing: -0.01em;
  min-height: 48px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent-700);
}
.faq summary .sign {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
  margin-top: 4px;
}
.faq summary .sign::before,
.faq summary .sign::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.faq summary .sign::before {
  inset: 9px 0;
  height: 2px;
}
.faq summary .sign::after {
  inset: 0 9px;
  width: 2px;
}
.faq details[open] summary .sign::after {
  transform: scaleY(0);
  opacity: 0;
}
.faq__answer {
  padding-bottom: 22px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   17. Enquiry form
   -------------------------------------------------------------------------- */
.enquire__grid {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
}
@media (min-width: 980px) {
  .enquire__grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.contact-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  font-size: 1rem;
}
.contact-list a {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-list .label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 3px;
  font-weight: 600;
}

.form {
  border-top: var(--rule-w) solid var(--rule);
  padding-top: 26px;
}

/* Step indicator */
.steps-bar {
  display: flex;
  border-bottom: var(--rule-w) solid var(--rule);
  margin-bottom: 26px;
}
.steps-bar__item {
  flex: 1;
  padding-bottom: 12px;
  margin-bottom: calc(var(--rule-w) * -1);
  border-bottom: var(--rule-w) solid transparent;
}
.steps-bar__item + .steps-bar__item {
  padding-left: 20px;
}
.steps-bar__item[data-active="true"] {
  border-bottom-color: var(--accent);
}
.steps-bar__n {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink-muted);
}
.steps-bar__item[data-active="true"] .steps-bar__n {
  color: var(--accent-700);
}
.steps-bar__t {
  margin-top: 4px;
  font-weight: 800;
  font-stretch: 92%;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.steps-bar__item[data-active="true"] .steps-bar__t {
  color: var(--ink);
}

.field {
  display: block;
  margin-bottom: 20px;
}
.field > label,
.field > .field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem; /* 16px — stops iOS Safari zooming on focus */
  color: var(--ink);
  caret-color: var(--accent);
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
  border-radius: 0;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.input:hover {
  border-color: color-mix(in srgb, var(--ink) 32%, transparent);
}
.input:focus-visible {
  border-color: var(--accent);
  background: var(--paper);
  outline-offset: 0;
}
.input[aria-invalid="true"] {
  border-color: #c62828;
  background: #fdf3f3;
}
textarea.input {
  min-height: 104px;
  resize: vertical;
  line-height: 1.5;
}

.field-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.field-row .field {
  margin-bottom: 0;
}
@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Segmented session-length choice, built on real radios */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--rule-w) solid var(--rule);
}
.seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 10px 12px;
  font-weight: 800;
  font-stretch: 92%;
  font-size: 0.9375rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.seg label + label {
  border-left: var(--rule-w) solid var(--rule);
}
.seg input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.seg label:hover {
  background: var(--surface);
}
.seg label:has(input:checked) {
  background: var(--accent);
  color: #fff;
}
.seg label:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 22px;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
@media (max-width: 480px) {
  .form__actions .btn {
    width: 100%;
  }
}

.form__error {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b3261e;
}
.form__error:empty {
  display: none;
}

/* Honeypot — hidden from humans, visible to naive bots */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success panel */
.sent-panel {
  border: var(--rule-w) solid var(--accent);
  padding: clamp(24px, 5vw, 36px);
}
.sent-panel h3 {
  margin-bottom: 12px;
}
.sent-panel p {
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 0.9375rem;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: 32px 40px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a {
  color: var(--ink-muted);
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--accent-700);
}
.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Breathing room so the sticky mobile bar never covers the footer */
@media (max-width: 899px) {
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   19. Sticky mobile CTA bar
   -------------------------------------------------------------------------- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--paper);
  border-top: var(--rule-w) solid var(--rule);
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.28s var(--ease);
  box-shadow: 0 -6px 24px color-mix(in srgb, var(--ink) 10%, transparent);
}
.cta-bar[data-visible="true"] {
  transform: translateY(0);
}
.cta-bar .btn {
  min-height: 50px;
}
@media (min-width: 900px) {
  .cta-bar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   20. Legal / content pages
   -------------------------------------------------------------------------- */
.prose {
  max-width: 68ch;
}
.prose h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  margin-bottom: 1.5rem;
}
.prose h2 {
  font-size: clamp(1.3rem, 4.6vw, 1.6rem);
  margin: 2.5rem 0 0.75rem;
}
.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}
.prose li {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   21. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cta-bar {
    transition: none;
  }
}

@media print {
  .site-header,
  .cta-bar,
  .form,
  .btn {
    display: none !important;
  }
  body {
    color: #000;
  }
  .poster {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
  .poster__contact a {
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   22. Obfuscated email
   The span shown before JavaScript upgrades it to a mailto link. Styled to
   match its upgraded form so the page doesn't shift.
   -------------------------------------------------------------------------- */
.mail {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.mail__at {
  font-style: normal;
  padding-inline: 1px;
}

/* --------------------------------------------------------------------------
   23. Utilities
   Kept deliberately few — enough to keep inline style attributes out of the
   markup so the Content-Security-Policy can forbid inline styles outright.
   -------------------------------------------------------------------------- */
.u-no-rule {
  border-bottom: 0;
}
.u-mt-24 {
  margin-top: 24px;
}
.u-mt-32 {
  margin-top: 32px;
}
.u-mb-20 {
  margin-bottom: 20px;
}
.section--flush {
  padding-block: 0;
}
.field--reset {
  border: 0;
  padding: 0;
  margin-inline: 0;
  min-inline-size: 0;
}
.field--reset > legend {
  padding: 0;
  float: left; /* keeps the legend flush left and in the normal flow */
  width: 100%;
}
.field--reset > legend + * {
  clear: both;
}
.split__intro {
  margin-top: 1rem;
  max-width: 34ch;
}
