/* =========================================================================
   Ascendia: styles for the Sydney buyers agents site (home page + privacy)
   Written mobile first: the base rules are for a 360px phone, then
   @media (min-width) rules add room for bigger screens.

   Tokens come from DESIGN.md and nothing here invents a colour or a font.
   Rule in one sentence: press it and it is a pill (999px), read it or type
   in it and it is 12px. Ultramarine (--action) only on things you can press
   or that are selected, plus the capped glow on the first screen.
   ========================================================================= */

/* ---- Font: one variable file, 400 to 800, self hosted --------------------
   font-display: swap shows text straight away in a system font, then swaps
   to Schibsted Grotesk when the file arrives. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens (CSS custom properties) -------------------------------
   Change a value here and it changes everywhere, so the page stays consistent. */
:root {
  /* colour */
  --ink: #14171c;
  --ink-soft: #4b5462;
  --ground: #e9edf1;
  --surface: #ffffff;
  --line: #e3e7ec;            /* decoration only, never carries meaning alone */
  --action: #2633d9;
  --action-press: #1b25a8;
  --action-tint: #eceefe;
  --on-action: #ffffff;
  --on-ink: #f2f4f7;
  --on-ink-soft: #a9b1bc;
  --glass-fill: rgba(255, 255, 255, 0.07);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --glass-fallback: #24272c;
  --glow: rgba(38, 51, 217, 0.45); /* HARD CAP: 45% opacity at the peak, never more */

  /* shape: two radii only */
  --radius-pill: 999px;
  --radius-box: 12px;

  /* type */
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(1.8125rem, 0.9rem + 3.6vw, 4rem);
  --fs-heading: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  --fs-statement: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  --fs-title: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-body: 1.0625rem;  /* 17px */
  --fs-small: 1rem;      /* 16px, the floor: nothing on the page is smaller */

  /* layout */
  --gutter: 20px;
  --section-pad: 64px;
  --wrap-max: 1376px;    /* 1280px of content plus the biggest gutters */

  /* motion: a strong "ease out" curve starts fast then settles, so things
     react the instant you touch them */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* the one shadow on the page: the sticky pill floats over content */
  --shadow-lift: 0 12px 24px -12px rgba(20, 23, 28, 0.35);

  /* focus ring colour: ultramarine on light, white on the dark parts */
  --focus: var(--action);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-pad: 96px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --section-pad: 128px; }
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;            /* stops phones inflating text in landscape */
  -webkit-tap-highlight-color: transparent;  /* no grey flash on tap; pressable things have their own press state */
  scroll-padding-bottom: 88px;               /* keeps a keyboard focused item clear of the sticky pill */
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));                  /* keeps a jumped to heading clear of the sticky section nav (about 56px tall) */
}

/* Smooth jump to #book only for people who have not asked for less motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table, fieldset { margin: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--action-tint); color: var(--ink); }

/* The hidden attribute must always win, even over rules like display: flex */
[hidden] { display: none !important; }

/* Text only for screen readers (the same content is still in the page) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* One focus ring for everything you can press or type in */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.on-ink { --focus: var(--surface); }

/* Text links: ultramarine, bold, underlined with a 2px offset. On dark they
   are white. ":not(.pill)" keeps these rules away from the pill, which sets
   its own colours. */
a:not(.pill) {
  color: var(--action);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  touch-action: manipulation;
}
.on-ink a:not(.pill) { color: var(--on-ink); }

/* Skip link: invisible until a keyboard user tabs to it */
a.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 30;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
a.skip:focus { top: 16px; }

/* ---- Type styles --------------------------------------------------------- */
h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3, h4, .title {
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.statement {
  font-size: var(--fs-statement);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.statement .soft { color: var(--ink-soft); }

/* Body copy never runs wider than about 60 characters: easier to read */
.band p, .site-footer p, .legal p { max-width: 60ch; }
.band p.statement { max-width: 30ch; }   /* big type, so fewer characters fit in a line */

.label {                       /* "Example", "Placeholder", "Demo": plain text inside a frame, never a pill */
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
}
.caption {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* ---- Layout helpers ------------------------------------------------------ */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  /* the max() keeps content clear of a phone notch in landscape (viewport-fit=cover) */
  padding-inline:
    max(var(--gutter), env(safe-area-inset-left, 0px))
    max(var(--gutter), env(safe-area-inset-right, 0px));
}

.band { padding-block: var(--section-pad); }
.band--ground  { background: var(--ground); }
.band--surface { background: var(--surface); }

.band h2 + p { margin-top: 16px; }

/* On wide screens: heading on the left, content on the right (How it works, Who owns what, Questions, Book) */
.split { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
    align-items: start;
  }
}

/* ---- Example frames: dashed, white, 12px, the word "Example" inside ------- */
.frame {
  background: var(--surface);
  border: 1px dashed var(--ink-soft);
  border-radius: var(--radius-box);
  padding: 20px;
}
.frame > .label { margin-bottom: 12px; }

/* =========================================================================
   THE PILL (the one action: "Book a 15 minute chat")
   Animation 3 of 3 (see the motion block at the end): press scale 0.97 over
   120ms. The arrow does not move.
   ========================================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;                   /* full width on phones */
  min-height: 56px;
  padding: 0 8px 0 20px;         /* 8px inset so the 40px disc sits centred in 56px */
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--action);
  color: var(--on-action);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;          /* no 300ms tap delay */
  -webkit-user-select: none;
  user-select: none;                   /* a long press does not select the label */
  -webkit-touch-callout: none;
}
.pill__disc {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--action-press);
  color: var(--on-action);
}
.pill__disc svg { width: 16px; height: 16px; fill: currentColor; }

/* Press state: always a colour change (works for touch and for reduced motion) */
.pill:active { background: var(--action-press); }

/* Dark version (first screen only): white pill, ink label, ultramarine disc.
   Ultramarine on ink would be only 2.19:1, so the button itself stays white. */
.pill--dark { background: var(--surface); color: var(--ink); }
.pill--dark .pill__disc { background: var(--action); }
.pill--dark:active { background: var(--ground); }

@media (min-width: 768px) {
  .pill { width: auto; gap: 32px; }
}

/* Hover only for devices that can really hover (a mouse), so a tap on a
   phone never leaves a stuck hover colour behind */
@media (hover: hover) and (pointer: fine) {
  .pill:hover { background: var(--action-press); }
  .pill--dark:hover { background: var(--ground); }
}

/* ---- Sticky pill ---------------------------------------------------------
   Same pill, same label, same destination. It starts hidden (the hidden
   attribute in the HTML), so with JavaScript off it simply never appears.
   script.js shows it after the first screen and hides it again while the
   booking section or the footer is on screen. No animation. */
.sticky {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(320px, calc(100% - 40px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));  /* clear of the phone home bar */
}
.sticky .pill { box-shadow: var(--shadow-lift); }
@media (min-width: 768px) {
  .sticky {
    left: auto;
    right: max(var(--gutter), env(safe-area-inset-right, 0px));
    margin: 0;
    width: auto;
  }
}

/* =========================================================================
   SECTION NAV (sticky, under the logo bar)
   Plain links that jump to each section. On a phone the row scrolls
   sideways inside itself (the page never does). Links are 44px tall.
   The current section's link gets aria-current from script.js and shows
   as a white pill with ink text: a shape change, not only a colour change.
   ========================================================================= */
.sectionnav {
  position: sticky;      /* sticks to the top of the screen once you scroll past it */
  top: env(safe-area-inset-top, 0px);   /* when stuck, it parks BELOW the notch, so its links are never under the status bar */
  z-index: 15;           /* above the page, below the sticky Book pill (20) and the skip link (30) */
  background: var(--ink);
  border-bottom: 1px solid var(--glass-edge);
  /* No padding-top here on purpose: the logo bar above already clears the notch once.
     Counting it again inside the nav made a big dark gap between logo and links. */
}
/* The strip above the stuck nav (the notch area) is painted by the nav itself, so scrolled text never shows through.
   position: fixed pins it to the very top of the screen; it is invisible at load because the header is the same dark colour.
   On a phone with no notch the inset is 0px and this has no height at all. */
.sectionnav::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background: var(--ink);
}
.sectionnav ul {
  list-style: none;
  margin: 0 auto;
  max-width: var(--wrap-max);
  padding: 6px max(var(--gutter), env(safe-area-inset-right, 0px)) 6px max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex;
  gap: 4px;
  overflow-x: auto;                    /* the row scrolls, not the page */
  overscroll-behavior-x: contain;      /* a swipe at the row's end does not drag the whole page */
  scrollbar-width: none;               /* hide the bar (Firefox) */
  -webkit-overflow-scrolling: touch;
}
.sectionnav ul::-webkit-scrollbar { display: none; }   /* same, Safari and Chrome */
.sectionnav li { flex: none; }
.sectionnav a:not(.pill) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--on-ink-soft);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;                 /* a label never wraps onto two lines */
  touch-action: manipulation;
}
.sectionnav a[aria-current="true"] { background: var(--surface); color: var(--ink); }
.sectionnav a:not(.pill):active { background: var(--glass-edge); color: var(--on-ink); }
.sectionnav a[aria-current="true"]:active { background: var(--ground); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .sectionnav a:not(.pill):hover { background: var(--glass-fill); color: var(--on-ink); text-decoration: none; }
  .sectionnav a[aria-current="true"]:hover { background: var(--ground); color: var(--ink); }
}

/* =========================================================================
   HEADER + FIRST SCREEN (dark, glow, glass card)
   ========================================================================= */
.site-header {
  background: var(--ink);
  padding-top: max(24px, env(safe-area-inset-top, 0px));
}
.site-header--page { padding-bottom: 24px; }  /* the privacy page has no dark first screen under the logo */
.logo { width: 120px; height: auto; }  /* width and height attributes in the HTML stop layout jump */

.hero {
  position: relative;
  overflow: hidden;   /* clips the glow to this band so nothing scrolls sideways */
  background-color: var(--ink);
  color: var(--on-ink);
  padding-block: 36px 40px;   /* the dark band ends in a straight edge about 40px below the card */
}
/* THE glow: one radial gradient, ultramarine at 45% at the peak fading to
   0% at a 280px radius. It lives on ::before (not on .hero itself) so the
   motion block can ease its opacity in. Same picture as before, behind the card only.
   Contrast was measured at the peak in the direction file: worst pair 5.20:1. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;   /* never blocks a tap */
  background-image: radial-gradient(
    circle 280px at 80% 85%,
    var(--glow) 0,
    rgba(38, 51, 217, 0) 280px
  );
}
.hero > .wrap { position: relative; }  /* keeps the text above the glow */
.hero__grid { display: grid; }
.hero__text > p { color: var(--on-ink-soft); }
.hero__lede { margin-top: 16px; }
.hero .pill { margin-top: 24px; }
.hero__note { margin-top: 16px; font-size: var(--fs-small); }
.hero__card { margin-top: 32px; max-width: 480px; }

@media (min-width: 1024px) {
  .hero { padding-block: 64px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    grid-template-areas:
      "title title"
      "text  card";
    column-gap: 64px;
    align-items: start; /* text and card both start under the headline */
  }
  .hero h1 { grid-area: title; margin-bottom: 40px; }
  .hero__text { grid-area: text; }
  .hero__card { grid-area: card; margin-top: 0; max-width: none; }
}

/* Glass card. The default (and the fallback) is a SOLID #24272c, so text
   always has good contrast. Where backdrop blur works it becomes 7% white
   with a 16px blur. Under prefers-reduced-transparency it goes back to solid. */
.glass {
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-box);
  background: var(--glass-fallback);
  /* 1px inner highlight along the top edge gives the glass its depth, so no drop shadow is needed */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 20px;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass {
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--glass-fallback);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.glass .label { color: var(--on-ink-soft); margin-bottom: 8px; }

.cal { list-style: none; margin: 0; padding: 0; }
.cal li {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--glass-edge);   /* hairline between entries */
  color: var(--on-ink);
}
.hero__card figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--on-ink-soft); }

/* PHONE FIRST SCREEN TIGHTENING (2026-11-22). Only under 768px, so tablets and desktop keep
   their exact numbers. Every value stays on the 4px spacing steps from DESIGN.md.
   Why: on a phone the logo bar, the sticky section nav and the hero top padding stacked to
   about 137px before the headline, and the Example card started at 470px. Trimming a few
   4 to 12px gaps pulls the whole card into the first screen of a real phone browser
   (where the toolbars leave roughly 660px). Touch targets are untouched: nav links stay
   44px, the Book pill stays 56px. */
@media (max-width: 767px) {
  .site-header:not(.site-header--page) { padding-top: max(20px, env(safe-area-inset-top, 0px)); }   /* logo bar: 24 to 20 */
  .sectionnav ul { padding-block: 4px; }                                    /* nav bar: 57 to 53, links still 44 */
  .hero { padding-block: 28px 32px; }                                       /* was 36 top, 40 bottom */
  .hero__note { margin-top: 12px; }                                         /* was 16 */
  .hero__card { margin-top: 24px; }                                         /* was 32 */
  .cal li { min-height: 48px; }                                             /* was 52, still a comfortable row */
}

/* =========================================================================
   SEE IT FROM BOTH SIDES (tabs)
   No JavaScript: both panels show stacked, each with its own h3.
   JavaScript on, under 1024px: pill tabs, one panel at a time.
   From 1024px: both panels side by side, tabs gone.
   ========================================================================= */
.tabs { margin-top: 32px; position: relative; }   /* relative: the Replay link is placed against this box */
.tablist { display: flex; gap: 8px; }
.tab {
  flex: 1;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.tab[aria-selected="true"] {
  background: var(--action);
  border-color: var(--action);
  color: var(--on-action);
}
.tab[aria-selected="false"]:active { background: var(--ground); }
@media (hover: hover) and (pointer: fine) {
  .tab[aria-selected="false"]:hover { background: var(--ground); }
}

.panels { display: grid; gap: 32px; }
.tablist:not([hidden]) + .panels { margin-top: 24px; }

.panel__h { margin-bottom: 16px; }

/* Tabs mode (class set by script.js) on phones and tablets */
@media (max-width: 1023.98px) {
  .js-tabs .panel:not(.is-active) { display: none; }
  /* the h3 stays for screen readers, but the tab already shows the name */
  .js-tabs .panel__h {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}
@media (min-width: 1024px) {
  .tablist { display: none; }
  .tablist:not([hidden]) + .panels { margin-top: 0; }
  .panels { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
}

/* frame 1: a read only form with invented answers */
.fields { display: grid; gap: 16px; margin-top: 16px; }
.fields dt { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); line-height: 1.4; }
.fields dd {
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-box);
  background: var(--ground);
  color: var(--ink);
}
.example-only { margin-top: 24px; font-weight: 600; color: var(--ink-soft); }

/* frame 2: a calendar entry and the brief */
.entry {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-box);
  background: var(--ground);
  font-weight: 600;
}
.brief-h { margin-top: 24px; }
.brief { list-style: none; margin: 12px 0 0; padding: 0; }
.brief li { padding: 8px 0; border-top: 1px solid var(--line); }
.frame .note { margin-top: 16px; }

/* =========================================================================
   HOW IT WORKS (four numbered steps on one hairline)
   ========================================================================= */
.steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--ink);   /* the one vertical hairline */
  display: grid;
  gap: 40px;
}
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
.step__num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.step h3 { padding-top: 8px; }   /* lines the title up with the middle of the big digit */
.step p { margin-top: 8px; }

/* =========================================================================
   YOUR WEEKLY REPORT (an Example table)
   ========================================================================= */
.report-fig { margin-top: 32px; max-width: 640px; }
.report-fig .title { margin-bottom: 8px; }
.report { width: 100%; border-collapse: collapse; }
.report th, .report td {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: var(--fs-body);   /* numbers are the same size as the labels, so nothing reads as a headline statistic */
  line-height: 1.4;
}
.report thead th { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); }
.report tbody th { font-weight: 600; }
.report .num { text-align: right; }
.report-after { margin-top: 24px; }

/* =========================================================================
   WHO OWNS WHAT: one short statement in big type. It sits in the same two
   column layout (.split) as How it works, so from 1024px the heading is on
   the left and the statement on the right, and the band does not look like
   an empty strip. On phones they simply stack.
   ========================================================================= */
/* The general ".band h2 + p" gap is for a paragraph under a heading; here
   the grid gap already spaces them, so cancel the extra 16px */
.split > h2 + .statement { margin-top: 0; }

/* =========================================================================
   QUESTIONS (native details and summary)
   ========================================================================= */
.qa { border-bottom: 1px solid var(--line); }
.qa details { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;                   /* hides the default triangle (Firefox, Chrome) */
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  touch-action: manipulation;
}
.qa summary::-webkit-details-marker { display: none; }  /* same, for Safari */
.qa summary:focus-visible { border-radius: var(--radius-box); }
.qa details p { padding: 0 0 24px; }

/* The plus is two CSS bars. When the row opens the upright bar is removed,
   so the plus becomes a minus. A static swap, no transition. */
.plus { position: relative; flex: none; width: 24px; height: 24px; }
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  background: var(--ink);
}
.plus::after { transform: rotate(90deg); }
details[open] > summary .plus::after { content: none; }

/* =========================================================================
   BOOK A 15 MINUTE CHAT (the qualifier demo, then one pill that opens Cal.com's booking window)
   ========================================================================= */
#book { scroll-margin-top: 0; }   /* the room under the sticky section nav comes from scroll-padding-top on html */
.book-stack { display: grid; gap: 24px; max-width: 640px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  padding: 20px;
}

.q-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.q-count { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.q-lines { margin-top: 12px; display: grid; gap: 12px; }
.demo-line { font-weight: 600; }

.q-steps { margin-top: 20px; }
.q-step { border: 0; padding: 0; min-width: 0; }
/* Without JavaScript the three questions are stacked, so separate them */
.card:not(.is-stepper) .q-step + .q-step {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.q-step legend, .q-label {
  display: block;
  padding: 0;
  margin-bottom: 8px;
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.helper { color: var(--ink-soft); }
.q-step .helper { margin-bottom: 16px; }

/* Answer rows: tappable, 56px tall, a native radio inside */
.options { display: grid; gap: 8px; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-box);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}
.option input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--action);   /* the native radio takes the ultramarine */
}
/* Selected: action tint fill and a 2px ultramarine edge (1px border + 1px inset line, so the row never changes size) */
.option:has(input:checked) {
  background: var(--action-tint);
  border-color: var(--action);
  box-shadow: inset 0 0 0 1px var(--action);
}
.option input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@supports selector(:has(*)) {
  /* where :has works, ring the whole row instead of just the tiny radio */
  .option input:focus-visible { outline: none; }
  .option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
}
@media (hover: hover) and (pointer: fine) {
  .option:hover { border-color: var(--ink); }
  .option:has(input:checked):hover { border-color: var(--action); }
}

/* Errors never rely on colour: ink text in bold, a 2px ink edge, and words that start "Please check" */
.error { margin-top: 12px; font-weight: 700; color: var(--ink); }
.error:empty { display: none; }
.options.is-invalid { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: var(--radius-box); }

/* Text inputs: 56px tall, 17px text (16px is the minimum so phones do not zoom in) */
input[type="text"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-box);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.4;
}
input[aria-invalid="true"] { border: 2px solid var(--ink); padding-inline: 15px; }

/* Back / Next / Finish: quiet text links (they are not the pill), 48px tall */
.q-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.link-btn {
  min-height: 48px;
  min-width: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-box);
  background: none;
  color: var(--action);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.q-actions .back { margin-left: -12px; }     /* pulls the text flush with the card padding but keeps the 48px hit area */
.q-actions .go { margin-left: auto; margin-right: -12px; }

@media (hover: hover) and (pointer: fine) {
  .link-btn:hover { color: var(--action-press); text-decoration-thickness: 3px; }
  a:not(.pill):hover { color: var(--action-press); text-decoration-thickness: 3px; }
  .on-ink a:not(.pill):hover { color: var(--on-ink); }
}

/* Done state */
.q-done { margin-top: 12px; display: grid; gap: 12px; }

/* The real booking: one pill, the privacy link, one short line */
.book-cta { display: grid; gap: 20px; }
.privacy-link { display: inline-flex; align-items: center; min-height: 48px; }
.book-cta .pill { margin-top: 4px; }

/* =========================================================================
   FOOTER (ink)
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: 64px max(64px, env(safe-area-inset-bottom, 0px));
}
.site-footer p { color: var(--on-ink-soft); }
.site-footer .logo { margin-bottom: 24px; }
.site-footer a:not(.pill) { display: inline-flex; align-items: center; min-height: 48px; }

/* =========================================================================
   PRIVACY PAGE (same type and look, one short page)
   ========================================================================= */
.legal { padding-block: 48px var(--section-pad); }
.legal h1 { font-size: var(--fs-heading); max-width: 24ch; }
.legal h2 { font-size: var(--fs-title); margin-top: 40px; }
.legal p { margin-top: 12px; }
.legal .draft { margin-top: 24px; font-weight: 700; }
.legal .tbc {
  margin-top: 12px;
  padding: 16px 20px;
  border: 1px dashed var(--ink-soft);
  border-radius: var(--radius-box);
  background: var(--surface);
}
.legal .end { margin-top: 32px; }
.legal .back-home { display: inline-flex; align-items: center; min-height: 48px; }

/* =========================================================================
   MOTION: six small animations (three original, three added 2026-11-20), each plays once, nothing loops.
   Everything in this block only runs when the visitor has NOT asked for
   reduced motion. Under "reduce" the page is fully visible and nothing
   moves. Only transform and opacity are animated, never width, height,
   margin or padding, and every transition names its exact properties.
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* ANIMATION 1: the three calendar entries settle into their rows.
     Reason: it shows what the service does (bookings land in slots) and is
     the only decorative motion. 450ms each, 70ms between entries, starting
     150ms after load. fill-mode "backwards" holds the start state during the
     150ms wait; afterwards the normal CSS (fully visible) takes over, so if
     animation is ever off the entries are simply there. The headline and
     the pill are never delayed. */
  .cal li {
    animation: settle 450ms var(--ease-out) backwards;
    animation-delay: calc(150ms + var(--i, 0) * 70ms);
  }
  @keyframes settle {
    from { opacity: 0; transform: translateY(12px); }
  }

  /* ANIMATION 2: the next qualifier question fades in and rises 12px.
     Reason: feedback that the step changed. 240ms, ease out, and only when
     script.js adds .is-entering on a step change. */
  .is-entering { animation: step-in 240ms var(--ease-out) backwards; }
  @keyframes step-in {
    from { opacity: 0; transform: translateY(12px); }
  }

  /* ANIMATION 3: button press. The pill scales to 0.97 over 120ms on press.
     Reason: feedback that the tap was heard. The arrow stays still. The
     120ms colour fade on hover and press is a colour change, not a motion. */
  .pill {
    transition: transform 120ms var(--ease-out), background-color 120ms ease;
  }
  .pill:active { transform: scale(0.97); }


  /* ANIMATION 4 (hero glow settles): the glow eases from 70 to 100 percent
     over 1.2s, once. Opacity only. The 45% cap is never passed: 100% of 45%
     is still 45%. Reason: a calm first moment. Not a loop. */
  .hero::before { animation: glow-settle 1200ms var(--ease-out) backwards; }
  @keyframes glow-settle { from { opacity: 0.7; } }

  /* ANIMATION 5 (typing enquiry): script.js adds .js-typing to .tabs only when
     motion is allowed. Before it plays, answers are see-through but still take
     up their space, so the card never changes height or pushes the page. */
  .js-typing .fields dd.is-waiting { opacity: 0; }
  .js-typing .fields dd { transition: opacity 160ms var(--ease-out); }
  .t-rest { visibility: hidden; }   /* the not yet typed letters: hidden, but they hold the width */
  .fake-send {
    display: block;
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    background: var(--action);
    color: var(--on-action);
    font-weight: 700;
    text-align: center;
    transition: transform 120ms var(--ease-out);
  }
  .fake-send.is-pressed { transform: scale(0.98); }
  /* the agent card waits invisible (space kept), then rises 12px into place */
  .js-typing .panel.is-await { opacity: 0; transform: translateY(12px); }
  .js-typing .panel.is-rising {
    transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
  }
  /* Replay sits in the band's bottom padding (position absolute = it takes no height of its own),
     so there is no empty strip under the card while it waits. It stays invisible, not removed,
     until the show ends, so nothing moves when it appears. */
  .replay-row { position: absolute; left: -12px; top: 100%; min-height: 48px; }
  .replay-row[data-hidden] { visibility: hidden; }

  /* ANIMATION 6 (steps light up): script.js adds .js-steps. The step in the
     middle band of the screen goes from 55 percent to full opacity in 300ms.
     The rule beside the steps draws downward once with scaleY. */
  .js-steps .step { opacity: 0.55; transition: opacity 300ms var(--ease-out); }
  .js-steps .step.is-lit { opacity: 1; }
  .js-steps .steps { border-left: 0; position: relative; }
  .js-steps .steps::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 900ms var(--ease-out);
  }
  .js-steps .steps.is-drawn::before { transform: scaleY(1); }


  /* ANIMATION 7 (sections rise into place): script.js adds .rise-wait to sections
     that are still below the screen, then swaps it for .is-in as each one enters.
     Opacity and transform only, 16px, 280ms, ease out, once. A section the visitor
     can already see at load is never hidden, and with no JavaScript the class
     never exists, so everything is visible. */
  .rise-wait { opacity: 0; transform: translateY(16px); }
  .rise { transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }

  /* Removed on purpose: the arrow hover nudge and the accordion plus turn.
     The plus now swaps to a minus with no transition (see .plus above). */
}

/* Belt and braces: spell out the reduced motion result in one place */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cal li, .is-entering { animation: none; }
  .hero::before { animation: none; }
  .pill { transition: none; }
  .pill:active { transform: none; }
  .rise-wait { opacity: 1; transform: none; }
  .rise { transition: none; }
}
