/*
  zoflo.co.uk: the look (spec 026b), over Bootstrap 5.3.8.
  Bootstrap gives the grid, spacing and collapse; everything that makes it look like Zoflo is here.
  Every colour is a design token on :root, never typed into a rule (spec 027 section 2).
  Phone first: sizes are for phones, then larger screens from 768 and 992 pixels.
*/

/* Fonts, self hosted, Latin only (spec 026b section 2). SIL Open Font Licence; see each font's folder. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson_hyperlegible/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson_hyperlegible/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces/fraunces-latin-600-normal.woff2") format("woff2");
}

/* 1. Design tokens (spec 026b section 1) */
:root {
  /* Colour */
  --z-ink: #1F3A3D;          /* text, headings, logo, main buttons */
  --z-ink-soft: #3D5558;     /* secondary text: 6.8 to 1 on Sand, 8.0 on white */
  --z-sage: #8FAE9B;         /* the flow line, icons, small highlights (never for text: 2.1 to 1 on Sand) */
  --z-sage-deep: #5E8270;    /* focus rings only (4.3 to 1 on white, 3.7 on Sand); never for text */
  --z-sand: #F3EDE4;         /* page background */
  --z-mist: #E6EEF0;         /* alternate sections */
  --z-clay: #C8744F;         /* brand Clay: decoration and large accents only (white on it is 3.5 to 1) */
  --z-clay-deep: #A85A37;    /* the primary button's background (white on it is 5.0 to 1), and error text on white */
  --z-clay-deeper: #8F4B2D;  /* primary button hover */
  --z-white: #FFFFFF;
  --z-line: #D9CFC1;         /* borders on Sand */

  /* Added here, not in 026b (docs/QUESTIONS.md, W7) */
  --z-ink-deeper: #152A2C;   /* secondary button hover (white on it is 15 to 1) */
  --z-ink-wash: rgba(31, 58, 61, 0.06); /* quiet button hover */
  --z-field-line: #7A8B8D;   /* field borders: 3.6 to 1 on white, as WCAG 2.2 asks of a field's edge */
  --z-on-ink-line: rgba(243, 237, 228, 0.24); /* dividers on Ink */
  --z-watermark: rgba(243, 237, 228, 0.08);   /* the open o behind the call to action band */
  --z-focus: var(--z-sage-deep);
  --z-focus-on-ink: var(--z-sand); /* deep Sage is too faint on Ink */

  /* Type */
  --z-font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --z-font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Spacing (a 4 pixel base) */
  --z-space-1: 4px;  --z-space-2: 8px;  --z-space-3: 16px; --z-space-4: 24px;
  --z-space-5: 32px; --z-space-6: 48px; --z-space-7: 64px; --z-space-8: 96px;

  /* Shape */
  --z-radius: 14px;          /* cards and images */
  --z-radius-sm: 8px;        /* buttons and fields */
  --z-shadow: 0 1px 2px rgba(31, 58, 61, 0.06), 0 4px 16px rgba(31, 58, 61, 0.06);
  --z-shadow-hover: 0 1px 2px rgba(31, 58, 61, 0.08), 0 8px 24px rgba(31, 58, 61, 0.10);

  /* Sizes that change between phone and desktop */
  --z-section-space: 56px;
  --z-size-hero: 34px;
  --z-size-h1: 30px;
  --z-size-h2: 26px;
  --z-size-h3: 19px;
  --z-size-lead: 18px;
  --z-size-body: 17px;
  --z-size-small: 15px;

  /* Bootstrap's own variables, mapped onto the tokens */
  --bs-body-bg: var(--z-sand);
  --bs-body-color: var(--z-ink);
  --bs-body-font-family: var(--z-font-body);
  --bs-body-font-size: var(--z-size-body);
  --bs-body-line-height: 1.6;
  --bs-emphasis-color: var(--z-ink);
  --bs-secondary-color: var(--z-ink-soft);
  --bs-heading-color: var(--z-ink);
  --bs-link-color: var(--z-ink);
  --bs-link-color-rgb: 31, 58, 61;
  --bs-link-hover-color: var(--z-ink);
  --bs-link-hover-color-rgb: 31, 58, 61;
  --bs-border-color: var(--z-line);
  --bs-border-radius: var(--z-radius-sm);
  --bs-focus-ring-color: var(--z-focus);
}

@media (min-width: 992px) {
  :root {
    --z-section-space: 96px;
    --z-size-hero: 56px;
    --z-size-h1: 44px;
    --z-size-h2: 34px;
    --z-size-h3: 21px;
    --z-size-lead: 21px;
    --z-size-body: 18px;
  }
}

/* Bootstrap's container, at 1140 pixels at most (spec 026b section 3) */
@media (min-width: 1400px) {
  .container { max-width: 1140px; }
}

/* 2. Type (spec 026b section 2). Headings in sentence case, never all capitals. */
body {
  background: var(--z-sand);
  color: var(--z-ink);
  font-family: var(--z-font-body);
  font-size: var(--z-size-body);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, .z-hero-headline, .z-page-title, .z-cta-heading, .z-form-heading {
  font-family: var(--z-font-head);
  font-weight: 600;
  color: inherit;
}
.z-hero-headline { font-size: var(--z-size-hero); line-height: 1.1; margin-bottom: var(--z-space-4); }
h1, .z-page-title { font-size: var(--z-size-h1); line-height: 1.15; margin-bottom: var(--z-space-4); }
h2, .z-form-heading, .z-cta-heading { font-size: var(--z-size-h2); line-height: 1.2; margin-bottom: var(--z-space-3); }
h3, .z-card-heading { font-family: var(--z-font-body); font-size: var(--z-size-h3); font-weight: 700; line-height: 1.3; margin-bottom: var(--z-space-2); }
.z-lead { font-size: var(--z-size-lead); line-height: 1.5; }
.z-small { font-size: var(--z-size-small); line-height: 1.5; }
.z-soft { color: var(--z-ink-soft); }
.z-readable { max-width: 760px; }
.z-prose p, .z-prose li { max-width: 68ch; }
.z-prose h2 { margin-top: var(--z-space-6); }
.z-prose > h2:first-child { margin-top: 0; }

a { color: var(--z-ink); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--z-ink); text-decoration-thickness: 2px; }

/* Focus: 3 pixels in deep Sage with a 2 pixel gap, on everything that can take focus (spec 026b section 4.3) */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--z-focus);
  outline-offset: 2px;
  box-shadow: none;
}
main:focus, main:focus-visible { outline: none; }

/* The skip link, shown when it has focus */
.z-skip {
  position: absolute;
  left: var(--z-space-3);
  top: var(--z-space-2);
  z-index: 2000;
  transform: translateY(-200%);
  background: var(--z-ink);
  color: var(--z-white);
  padding: var(--z-space-2) var(--z-space-3);
  border-radius: var(--z-radius-sm);
}
.z-skip:focus { transform: none; color: var(--z-white); outline-color: var(--z-focus); }

/* 3. Layout (spec 026b section 3): 56 pixels between sections on phones, 96 on desktop */
.z-section { padding: var(--z-section-space) 0; }
.z-section-tight { padding: var(--z-space-5) 0; }
.z-on-sand { background: var(--z-sand); }
.z-on-mist { background: var(--z-mist); }
.z-on-white { background: var(--z-white); }
.z-stack { display: grid; gap: var(--z-space-4); }

/* 4.1 The simple header and the navigation bar */
.z-header { background: var(--z-sand); }
/* The cookie banner (only while Google Analytics is set): a card at the foot of the screen until the visitor chooses. */
.z-consent { position: fixed; z-index: 1050; left: var(--z-space-3); right: var(--z-space-3); bottom: var(--z-space-3); max-width: 560px; margin: 0 auto; padding: var(--z-space-4); background: var(--z-white); color: var(--z-ink); border-radius: var(--z-radius); box-shadow: var(--z-shadow); }
.z-consent[hidden] { display: none; }
/* The footer's Cookie settings: a button that reads as a link. */
.z-link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
/* Before launch, the line at the top of every full site page: when Zoflo opens. */
.z-prelaunch { margin: 0; padding: var(--z-space-2) var(--z-space-3); background: var(--z-mist); text-align: center; }
.z-header-inner, .z-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--z-space-2) var(--z-space-3);
  min-height: 72px;
  flex-wrap: wrap;
}
.z-logo-link { display: inline-flex; padding: var(--z-space-2) 0; margin-right: auto; }
.z-logo-link img { display: block; width: 132px; height: auto; }
.z-header-button { min-height: 44px; padding: 0 var(--z-space-3); font-size: var(--z-size-small); }

.z-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--z-white);
  border-bottom: 1px solid transparent;
}
.z-navbar.is-scrolled { border-bottom-color: var(--z-line); }
.z-menu-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--z-space-3);
  border: 2px solid var(--z-ink);
  border-radius: var(--z-radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.z-nav-button { min-height: 44px; padding: 0 var(--z-space-3); font-size: var(--z-size-small); order: 2; }
.z-menu-button { order: 3; }
.z-nav-panel-button { display: none; }
/* On narrow phones the logo, the main button and Menu don't fit on one line, so the main button
   moves into the Menu panel (docs/QUESTIONS.md, W24). */
@media (max-width: 419.98px) {
  .z-navbar .z-nav-button { display: none; }
  .z-nav-panel-button { display: block; padding-bottom: var(--z-space-3); }
}
.z-nav-panel { flex-basis: 100%; order: 4; }
.z-nav-links { list-style: none; margin: 0; padding: var(--z-space-2) 0 var(--z-space-3); }
.z-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--z-space-2);
  color: var(--z-ink);
  text-decoration: none;
  cursor: pointer;
}
.z-nav-link:hover { text-decoration: underline; }
.z-nav-link[aria-current="page"], .z-nav-link[aria-current="true"] {
  text-decoration: underline;
  text-decoration-color: var(--z-sage);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}
.z-nav-group > summary { list-style: none; }
.z-nav-group > summary::-webkit-details-marker { display: none; }
.z-nav-group > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: var(--z-space-2);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.z-nav-group[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.z-nav-sub { list-style: none; margin: 0; padding: 0 0 0 var(--z-space-3); }

@media (min-width: 992px) {
  .z-navbar-inner { flex-wrap: nowrap; }
  .z-menu-button { display: none; }
  .z-nav-panel.collapse:not(.show), .z-nav-panel { display: flex; flex-basis: auto; order: 0; margin-left: auto; }
  .z-nav-links { display: flex; align-items: center; gap: var(--z-space-1); padding: 0; }
  .z-nav-item { position: relative; }
  .z-nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: var(--z-space-2);
    background: var(--z-white);
    border-radius: var(--z-radius);
    box-shadow: var(--z-shadow);
  }
}

/* 4.2 Hero */
.z-hero .z-lead { margin-bottom: var(--z-space-5); }
.z-screenshot { margin: 0; }
.z-screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: var(--z-space-4);
  background: var(--z-white);
  border-radius: var(--z-radius);
  box-shadow: var(--z-shadow);
  color: var(--z-ink-soft);
  font-size: var(--z-size-small);
  text-align: center;
}
/* Line illustrations (spec 026b section 7.3): the logo's line weight, Ink and Sage */
.z-illustration { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.z-illustration path, .z-illustration rect, .z-illustration circle { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.z-ill-ink, .z-ill-ink path { stroke: var(--z-ink); }
.z-ill-sage { stroke: var(--z-sage); }
.z-steps-illustration { max-width: 240px; margin: 0 0 var(--z-space-4); }
.z-steps-illustration .z-illustration { margin: 0; }
.z-hero-illustration { max-width: 240px; margin-top: var(--z-space-5); }
.z-hero-illustration .z-illustration { margin: 0; }
/* On phones a drawing beside the words comes after them, smaller, so it doesn't fill the screen */
@media (max-width: 767.98px) { .z-illustration { max-width: 160px; } }
.z-picture { display: block; }
.z-picture-phone { max-width: 320px; margin: 0 auto; }
.z-doors-note { margin: var(--z-space-4) 0 0; }
/* A photograph or a line drawing in place of a feature page's screenshot, kept to a modest size */
.z-screenshot-photo { max-width: 720px; margin: 0 auto; }
.z-screenshot-photo img { border-radius: var(--z-radius); }
.z-screenshot-drawing { max-width: 320px; margin: 0 auto; }
/* Short silent loops (site/components/video.cfm) */
.z-video-frame { position: relative; max-width: 1040px; margin: 0 auto; }
.z-video-frame.z-video-phone { max-width: 320px; }
.z-video { display: block; width: 100%; height: auto; border-radius: var(--z-radius); background: var(--z-mist); box-shadow: var(--z-shadow); }
.z-video-toggle { position: absolute; right: var(--z-space-3); top: var(--z-space-3); padding: var(--z-space-1) var(--z-space-3); border: 0; border-radius: var(--z-radius-sm); background: var(--z-ink); color: var(--z-sand); font-weight: 700; font-size: var(--z-size-small); }
.z-video-toggle:hover { background: var(--z-ink-deeper); }
.z-video-caption { margin-top: var(--z-space-3); text-align: center; color: var(--z-ink-soft); font-size: var(--z-size-small); }
@media print { .z-video-toggle { display: none; } }
/* The plan a page is about, above its headline: Zoflo Solo, Zoflo Teams */
.z-eyebrow { display: inline-block; margin-bottom: var(--z-space-3); padding: var(--z-space-1) var(--z-space-3); border-radius: 999px; background: var(--z-mist); color: var(--z-ink); font-size: var(--z-size-small); font-weight: 700; }
.z-picture-cut img { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
/* On phones, a closer crop is cut at the right too, so it fades on both edges */
@media (max-width: 575.98px) {
  .z-picture-narrow img { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent), linear-gradient(to bottom, #000 82%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 88%, transparent), linear-gradient(to bottom, #000 82%, transparent); mask-composite: intersect; }
}
.z-look-inside { max-width: 900px; margin: 0 auto; }
/* A real picture keeps its own shape, with none of the placeholder's dashed frame */
.z-picture.z-screenshot-small { aspect-ratio: auto; border: 0; background: none; padding: 0; }
.z-picture img { display: block; width: 100%; height: auto; border-radius: var(--z-radius); box-shadow: var(--z-shadow); background: var(--z-white); }
.z-screenshot-small { aspect-ratio: 16 / 10; background: var(--z-sand); box-shadow: none; border: 2px dashed var(--z-line); }

/* 4.3 Buttons */
.z-button-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--z-space-3); margin-bottom: var(--z-space-4); }
.z-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--z-space-4);
  border: 2px solid transparent;
  border-radius: var(--z-radius-sm);
  font-family: var(--z-font-body);
  font-size: var(--z-size-body);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.z-btn-primary { background: var(--z-clay-deep); border-color: var(--z-clay-deep); color: var(--z-white); }
.z-btn-primary:hover, .z-btn-primary:focus-visible { background: var(--z-clay-deeper); border-color: var(--z-clay-deeper); color: var(--z-white); }
.z-btn-secondary { background: var(--z-ink); border-color: var(--z-ink); color: var(--z-white); }
.z-btn-secondary:hover, .z-btn-secondary:focus-visible { background: var(--z-ink-deeper); border-color: var(--z-ink-deeper); color: var(--z-white); }
.z-btn-quiet { background: transparent; border-color: var(--z-ink); color: var(--z-ink); }
.z-btn-quiet:hover, .z-btn-quiet:focus-visible { background: var(--z-ink-wash); color: var(--z-ink); }
/* The primary button is full width on phones (spec 026b section 9) */
@media (max-width: 767.98px) {
  .z-btn-block { width: 100%; }
}

/* 4.4 Cards */
.z-card {
  position: relative;
  height: 100%;
  padding: var(--z-space-4);
  background: var(--z-white);
  border-radius: var(--z-radius);
  box-shadow: var(--z-shadow);
}
@media (min-width: 768px) {
  .z-card { padding: var(--z-space-5); }
}
.z-card > :last-child { margin-bottom: 0; }
.z-icon.z-card-icon, .z-card-icon { display: block; width: 32px; height: 32px; margin-top: 0; margin-bottom: var(--z-space-3); color: var(--z-sage); }
.z-card-link { transition: box-shadow 0.15s ease; }
.z-card-link:hover { box-shadow: var(--z-shadow-hover); }
.z-card-target { text-decoration: none; }
.z-card-target::after { content: ""; position: absolute; inset: 0; border-radius: var(--z-radius); }
.z-card-link:hover .z-card-target { text-decoration: underline; }
.z-card-target:focus-visible { outline: none; }
.z-card-link:has(.z-card-target:focus-visible) { outline: 3px solid var(--z-focus); outline-offset: 2px; }
.z-card-more { font-weight: 700; }

/* 4.5 Trust strip */
.z-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--z-space-3) var(--z-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--z-size-small);
}
.z-trust-strip li { display: inline-flex; align-items: center; gap: var(--z-space-2); }
.z-trust-strip .z-trust-icon { width: 24px; height: 24px; margin-top: 0; color: var(--z-sage); }
.z-card-more .z-icon { margin-top: 0; vertical-align: -0.125em; }

/* 6. The flow line, and 4.6 the journey line. Sage, smooth and unbroken. */
.z-flow-line { display: block; width: 100%; max-width: 400px; height: auto; margin-top: var(--z-space-5); overflow: visible; }
.z-flow-line path, .z-journey-line path, .z-journey-mark svg path, .z-cta-watermark path {
  fill: none;
  stroke-linecap: round;
}
.z-journey-line path { vector-effect: non-scaling-stroke; }
.z-flow-line path, .z-journey-line path, .z-journey-mark svg path { stroke: var(--z-sage); stroke-width: 1.5px; }
.z-flow-line path { stroke-width: 2px; }
@media (min-width: 768px) {
  .z-journey-line path, .z-journey-mark svg path { stroke-width: 2px; }
  .z-flow-line path { stroke-width: 2.5px; }
}
/* The script sets these only for people who haven't asked for less motion; the line draws once,
   left to right (top to bottom on phones for the journey), by uncovering it. */
.z-draw-ready .z-flow-line, .z-flow-line.z-draw-ready, .z-draw-ready .z-journey-across { clip-path: inset(0 100% 0 0); }
.z-draw-ready .z-journey-down { clip-path: inset(0 0 100% 0); }
.z-draw-now .z-flow-line, .z-flow-line.z-draw-now, .z-draw-now .z-journey-across, .z-draw-now .z-journey-down { animation: z-draw 1.6s ease-out forwards; }
@keyframes z-draw { to { clip-path: inset(0 0 0 0); } }

.z-journey-track { position: relative; margin-top: var(--z-space-5); }
.z-journey-line { position: absolute; }
.z-journey-across { display: none; }
.z-journey-down { top: 12px; bottom: 12px; left: 0; width: 24px; height: calc(100% - 24px); }
.z-journey-stops { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: var(--z-space-4); }
.z-journey-stop { display: flex; align-items: flex-start; gap: var(--z-space-3); }
.z-journey-mark {
  flex: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.z-journey-mark::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--z-sage);
  border-radius: 50%;
  background: var(--z-white);
}
.z-journey-open .z-journey-mark::before { display: none; }
.z-journey-mark svg { width: 30px; height: 30px; margin: -3px; background: var(--z-white); border-radius: 50%; }
.z-journey-mark svg path { stroke-width: 3px; }
.z-journey-text { display: flex; flex-direction: column; }
.z-journey-label { font-weight: 700; }
.z-journey-detail { font-size: var(--z-size-small); color: var(--z-ink-soft); }
@media (min-width: 768px) {
  .z-journey-down { display: none; }
  .z-journey-across { display: block; top: 0; left: calc(100% / 14); width: calc(100% - 100% / 7); height: 24px; }
  .z-journey-stops { display: flex; justify-content: space-between; gap: 0; }
  .z-journey-stop { flex: 1 1 0; flex-direction: column; align-items: center; text-align: center; gap: var(--z-space-2); }
  .z-journey-label { font-size: var(--z-size-small); }
  .z-journey-detail { font-size: 14px; }
}

/* 4.7 Feature row */
.z-good-to-know-heading { font-weight: 700; margin-bottom: var(--z-space-2); }
.z-ticks { list-style: none; padding: 0; margin: 0 0 var(--z-space-3); }
.z-ticks li { position: relative; padding-left: 28px; margin-bottom: var(--z-space-2); }
.z-ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--z-sage-deep);
  border-bottom: 2px solid var(--z-sage-deep);
  transform: rotate(-45deg);
}

/* 4.8 Quote card */
.z-quote { margin: 0; height: auto; }
.z-quote-mark { width: 32px; height: 24px; margin-bottom: var(--z-space-3); fill: var(--z-sage); }
.z-quote-text { margin: 0 0 var(--z-space-3); font-family: var(--z-font-head); font-weight: 600; font-size: 24px; line-height: 1.35; }
.z-quote-text p { margin: 0; }

/* 4.9 Pricing table and counter */
.z-counter { height: auto; margin-bottom: var(--z-space-4); }
.z-counter-controls { display: flex; align-items: center; gap: var(--z-space-2); max-width: 280px; }
.z-counter-step { flex: none; width: 48px; padding: 0; font-size: 24px; }
.z-counter-input { text-align: center; }
.z-counter-result { margin: var(--z-space-3) 0 0; font-weight: 700; }
.z-table-scroll { overflow-x: auto; border-radius: var(--z-radius); box-shadow: var(--z-shadow); }
.z-price-table { width: 100%; border-collapse: collapse; background: var(--z-white); }
.z-price-table th, .z-price-table td { padding: var(--z-space-3) var(--z-space-4); border-bottom: 1px solid var(--z-line); text-align: left; vertical-align: top; }
.z-price-table thead th { font-size: var(--z-size-small); color: var(--z-ink-soft); font-weight: 700; }
.z-price-table tbody tr:last-child > * { border-bottom: 0; }
.z-price-table tr.is-match { background: var(--z-mist); }
.z-price-table tr.is-match > th:first-child { box-shadow: inset 4px 0 0 var(--z-clay); }
.z-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.z-price-table .z-num { text-align: right; }
.z-price-notes { margin-top: var(--z-space-4); }
/* On phones each plan becomes a card */
@media (max-width: 767.98px) {
  .z-table-scroll { overflow: visible; box-shadow: none; }
  .z-price-table, .z-price-table tbody, .z-price-table tr, .z-price-table th, .z-price-table td { display: block; }
  .z-price-table { background: transparent; }
  .z-price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .z-price-table tr { margin-bottom: var(--z-space-3); padding: var(--z-space-3) var(--z-space-4); background: var(--z-white); border-radius: var(--z-radius); box-shadow: var(--z-shadow); }
  .z-price-table th, .z-price-table td { padding: var(--z-space-1) 0; border: 0; }
  .z-price-table tbody th { font-family: var(--z-font-head); font-size: var(--z-size-h3); }
  .z-price-table td { display: flex; justify-content: space-between; gap: var(--z-space-3); }
  .z-price-table td::before { content: attr(data-label); color: var(--z-ink-soft); }
  .z-price-table .z-num { text-align: right; }
}

/* 4.10 FAQ */
.z-faq-item { border-bottom: 1px solid var(--z-line); }
.z-faq-item:first-of-type { border-top: 1px solid var(--z-line); }
.z-faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--z-space-3);
  min-height: 56px;
  padding: var(--z-space-3) 0;
  list-style: none;
  cursor: pointer;
}
.z-faq-item > summary::-webkit-details-marker { display: none; }
.z-faq-question { margin: 0; font-size: var(--z-size-body); }
.z-faq-sign { position: relative; flex: none; width: 18px; height: 18px; }
.z-faq-sign::before, .z-faq-sign::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--z-ink); }
.z-faq-sign::after { transform: rotate(90deg); transition: transform 0.15s ease; }
.z-faq-item[open] .z-faq-sign::after { transform: rotate(0deg); }
.z-faq-answer { padding: 0 0 var(--z-space-3); }
.z-faq-answer p { max-width: 68ch; margin: 0; }
.z-faq-item:target > summary { text-decoration: underline; text-decoration-color: var(--z-sage); text-decoration-thickness: 3px; }

/* 4.11 Call to action band */
.z-cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--z-section-space) 0;
  background: var(--z-ink);
  color: var(--z-sand);
}
.z-cta-band .container { position: relative; }
.z-cta-band a:not(.z-btn) { color: var(--z-sand); }
.z-cta-band :focus-visible, .z-footer :focus-visible { outline-color: var(--z-focus-on-ink); }
.z-cta-watermark { position: absolute; right: -40px; top: 50%; width: 320px; height: 320px; transform: translateY(-50%); }
.z-cta-watermark path { stroke: var(--z-watermark); stroke-width: 18px; vector-effect: none; }
.z-cta-phone { font-weight: 700; }

/* 4.12 Forms */
.z-form-card { height: auto; }
.z-field { margin: 0 0 var(--z-space-4); padding: 0; border: 0; min-width: 0; }
.z-label { display: block; margin-bottom: var(--z-space-2); font-weight: 700; padding: 0; float: none; width: auto; font-size: var(--z-size-body); }
.z-optional { font-weight: 400; color: var(--z-ink-soft); }
.z-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--z-white);
  color: var(--z-ink);
  border: 1px solid var(--z-field-line);
  border-radius: var(--z-radius-sm);
  font: inherit;
}
.z-field-invalid .z-input { border: 2px solid var(--z-clay-deep); }
.z-field-error { display: flex; gap: var(--z-space-2); align-items: flex-start; margin: var(--z-space-2) 0 0; color: var(--z-clay-deep); font-weight: 700; }
.z-icon { flex: none; width: 1em; height: 1em; margin-top: 0.25em; fill: currentColor; }
.z-choice { position: relative; display: flex; align-items: flex-start; gap: var(--z-space-3); min-height: 44px; padding: var(--z-space-2) 0; }
.z-choice-input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--z-ink); }
.z-choice-label { cursor: pointer; }
.z-choice-news { margin-bottom: var(--z-space-4); }
.z-error-summary {
  margin-bottom: var(--z-space-4);
  padding: var(--z-space-3) var(--z-space-4);
  border: 2px solid var(--z-clay-deep);
  border-left-width: 6px;
  border-radius: var(--z-radius-sm);
  background: var(--z-white);
}
.z-error-summary p { display: flex; gap: var(--z-space-2); color: var(--z-clay-deep); font-weight: 700; }
.z-error-summary-heading { font-size: var(--z-size-body); }
.z-error-summary ul { margin: 0; padding-left: var(--z-space-4); }
.z-error-summary a { color: var(--z-clay-deep); font-weight: 700; }
/* The robots' field: hidden from people, and labelled "Leave this empty" for anyone who still sees it */
.z-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* 4.13 Footer */
.z-footer { padding: var(--z-space-7) 0 var(--z-space-6); background: var(--z-ink); color: var(--z-sand); font-size: var(--z-size-small); }
.z-footer a { color: var(--z-sand); text-decoration: none; }
.z-footer a:hover { text-decoration: underline; }
.z-footer-logo { display: block; width: 132px; height: auto; margin-bottom: var(--z-space-3); }
.z-footer-strap { margin-bottom: var(--z-space-5); font-size: var(--z-size-body); }
.z-footer-heading { margin-bottom: var(--z-space-2); font-family: var(--z-font-body); font-size: var(--z-size-body); font-weight: 700; }
.z-footer-links { list-style: none; margin: 0; padding: 0; }
.z-footer-links li { padding: var(--z-space-1) 0; }
.z-footer-links a { display: inline-block; padding: var(--z-space-1) 0; }
.z-footer-legal { margin-top: var(--z-space-5); padding-top: var(--z-space-4); border-top: 1px solid var(--z-on-ink-line); }

/* Standard page blocks (site/components/block.cfm) */
.z-screenshot-wide .z-screenshot-placeholder { aspect-ratio: auto; min-height: 240px; }
@media (min-width: 768px) {
  .z-screenshot-wide .z-screenshot-placeholder { min-height: 400px; }
}
.z-steps { list-style: none; counter-reset: z-step; margin: var(--z-space-4) 0 0; padding: 0; position: relative; }
.z-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--z-sage); border-radius: 2px; }
.z-step { position: relative; counter-increment: z-step; padding: 0 0 var(--z-space-4) 64px; min-height: 40px; }
.z-step:last-child { padding-bottom: 0; }
.z-step::before {
  content: counter(z-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--z-sage);
  border-radius: 50%;
  background: var(--z-white);
  font-weight: 700;
}
.z-step p { margin: 0; padding-top: 6px; }
.z-step-heading { margin: 0; padding-top: 6px; }
.z-step-heading + p { padding-top: var(--z-space-1); }
@media (min-width: 768px) {
  .z-two-columns { columns: 2; column-gap: var(--z-space-6); }
  .z-two-columns li { break-inside: avoid; }
}
.z-price-box { text-align: left; }
.z-data-table { width: 100%; border-collapse: collapse; background: var(--z-white); }
.z-data-table th, .z-data-table td { padding: var(--z-space-3) var(--z-space-4); border-bottom: 1px solid var(--z-line); text-align: left; vertical-align: top; }
.z-data-table thead th { font-size: var(--z-size-small); color: var(--z-ink-soft); }
.z-data-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 767.98px) {
  .z-data-table, .z-data-table tbody, .z-data-table tr, .z-data-table th, .z-data-table td { display: block; }
  .z-data-table { background: transparent; }
  .z-data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .z-data-table tr { margin-bottom: var(--z-space-3); padding: var(--z-space-3) var(--z-space-4); background: var(--z-white); border-radius: var(--z-radius); box-shadow: var(--z-shadow); }
  .z-data-table th, .z-data-table td { padding: var(--z-space-1) 0; border: 0; }
  .z-data-table td::before { content: attr(data-label); display: block; font-size: var(--z-size-small); color: var(--z-ink-soft); }
  .z-data-table td[data-label=""]::before { display: none; }
}
.z-notice { padding: var(--z-space-4); background: var(--z-white); border-left: 6px solid var(--z-sage); border-radius: var(--z-radius-sm); }
.z-notice-heading { font-family: var(--z-font-body); font-size: var(--z-size-h3); font-weight: 700; }
.z-documents { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--z-space-3); }
.z-document { display: flex; gap: var(--z-space-3); align-items: flex-start; padding: var(--z-space-3) var(--z-space-4); background: var(--z-white); border-radius: var(--z-radius); box-shadow: var(--z-shadow); }
.z-document-name { margin: 0; font-weight: 700; }
.z-icon-large { width: 28px; height: 28px; margin-top: 0; color: var(--z-sage-deep); }
.z-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--z-space-2); margin: 0 auto; padding-top: var(--z-space-4); list-style: none; font-size: var(--z-size-small); }
.z-breadcrumbs li + li::before { content: "/"; margin-right: var(--z-space-2); color: var(--z-ink-soft); }
.z-breadcrumbs + .z-hero { padding-top: var(--z-space-5); }
/* A hero followed straight away by its screenshot, on the same colour, sits close to it */
.z-hero:has(+ .z-section-tight) { padding-bottom: var(--z-space-4); }
.z-hero:has(+ .z-section-tight) .z-lead:last-child { margin-bottom: 0; }
.z-textarea { min-height: 140px; resize: vertical; }
.z-address { display: flex; align-items: center; gap: var(--z-space-2); }
.z-address-suffix { font-weight: 700; white-space: nowrap; }

/* Two short sections side by side, and the people behind Zoflo */
.z-pair-item + .z-pair-item { border-top: 1px solid var(--z-line); padding-top: var(--z-space-5); }
@media (min-width: 768px) {
  .z-pair-item + .z-pair-item { border-top: 0; border-left: 1px solid var(--z-line); padding-top: 0; padding-left: var(--z-space-6); }
}
.z-person { display: flex; gap: var(--z-space-4); align-items: flex-start; }
.z-person-photo { flex: none; width: 112px; }
.z-person-photo .z-picture img { border-radius: 50%; box-shadow: none; aspect-ratio: 1; object-fit: cover; }
.z-person-placeholder { width: 112px; height: 112px; border-radius: 50%; border: 2px dashed var(--z-line); background: var(--z-sand); display: flex; align-items: center; justify-content: center; text-align: center; font-size: var(--z-size-small); color: var(--z-ink-soft); }
@media (max-width: 419.98px) {
  .z-person { flex-direction: column; }
}

/* The free downloads: printable pages */
.z-checklist { list-style: none; padding: 0; }
.z-checklist li { position: relative; padding-left: 36px; margin-bottom: var(--z-space-2); }
.z-checklist li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border: 2px solid var(--z-ink); border-radius: 4px; }
.z-worksheet .z-data-table td, .z-worksheet .z-data-table th { border: 1px solid var(--z-line); }
.z-blank-row td { height: 40px; }
@media print {
  .z-no-print, .z-header { display: none !important; }
  .z-download-page { padding: 0; }
  .z-worksheet { overflow: visible; box-shadow: none; }
  .z-worksheet .z-data-table, .z-worksheet .z-data-table tbody, .z-worksheet .z-data-table tr { display: table-row-group; }
  .z-worksheet .z-data-table { display: table; width: 100%; }
  .z-worksheet .z-data-table tr { display: table-row; }
  .z-worksheet .z-data-table th, .z-worksheet .z-data-table td { display: table-cell; }
  .z-worksheet .z-data-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .z-worksheet .z-data-table td::before { display: none; }
}

/* The holding page */
.z-holding .z-flow-line { margin-bottom: 0; }

/* The components page: links to pages not built yet are marked */
.z-show-planned [data-planned]::after { content: " (planned)"; font-weight: 400; font-size: 0.8em; }
.z-component-label { padding-top: var(--z-space-4); }

/* 8. Motion: almost none, and none for people who ask for less */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 10. Print: no navigation, footer or buttons; the logo and the page address at the top */
@media print {
  .z-navbar, .z-footer, .z-btn, .z-cta-band, .z-skip, .z-flow-line, form { display: none !important; }
  body { background: var(--z-white); }
  body::before { content: attr(data-print-url); display: block; margin-bottom: var(--z-space-3); font-size: var(--z-size-small); }
  .z-on-sand, .z-on-mist, .z-card { background: var(--z-white); box-shadow: none; }
  .z-faq-item { break-inside: avoid; }
}
