/* 24eTax — hand-written, no framework, no build step.
   Design system: see website/DESIGN-SYSTEM.md and /styleguide.html.
   Every colour below was contrast-checked; the ones that fail AA as text are
   marked and have an -ink variant that passes. */

/* Figtree is the product's own typeface (the Android/web app and the printed
   brochures use it), self-hosted so there is no third-party font request.
   swap = text paints immediately in the fallback, never invisible. */
@font-face {
  font-family: Figtree; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/Figtree-Regular.woff') format('woff');
}
@font-face {
  font-family: Figtree; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/Figtree-SemiBold.woff') format('woff');
}
@font-face {
  font-family: Figtree; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/Figtree-Bold.woff') format('woff');
}

:root {
  /* ---------- brand ---------- */
  --navy:   #12305A;   /* primary navy   13.2:1 on white */
  --blue:   #0969C3;   /* action blue     5.5:1 on white */
  --orange: #F58220;   /* brand orange    2.6:1 — NEVER text; accents only */
  --green:  #169B62;   /* success         3.6:1 — icons/large text only */
  --amber:  #F59E0B;   /* warning         2.2:1 — NEVER text */
  --red:    #DC2626;   /* error           4.8:1 on white */

  /* text-safe variants of the three that fail AA as body text */
  --orange-ink: #B4530A;  /* 5.0:1 */
  --green-ink:  #0E7A4B;  /* 5.4:1 */
  --amber-ink:  #92610A;  /* 5.3:1 */
  --blue-dark:  #08508F;  /* hover / active blue */

  /* ---------- neutrals ---------- */
  --ink:    #172033;   /* main text      16.3:1 */
  --muted:  #5B6575;   /* secondary text  5.9:1 */
  --bg:     #FFFFFF;
  --bg-soft:#F6F8FC;
  --line:   #DDE3EC;   /* decorative borders */
  --line-strong: #7F8DA3;  /* 3.4:1 — form controls (WCAG 1.4.11) */

  /* ---------- legacy aliases: 29 pages still reference these ---------- */
  --brand: var(--blue);
  --brand-dark: var(--blue-dark);
  --brand-deep: var(--navy);
  --accent: var(--orange);
  --good: var(--green);

  /* ---------- type ---------- */
  --font: Figtree, ui-sans-serif, system-ui, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --fs-h1: clamp(2.25rem, 4.2vw, 3.5rem);   /* 36 -> 56 */
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);   /* 28 -> 40 */
  --fs-h3: 1.375rem;                        /* 22 */
  --fs-body: 1.0625rem;                     /* 17 */
  --fs-small: 0.875rem;                     /* 14 — the floor, never go under */
  --lh-tight: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.65;

  /* ---------- spacing: 8px system ---------- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 40px; --s-8: 48px; --s-9: 64px; --s-10: 80px; --s-11: 96px;
  --section-y: 88px;      /* desktop section rhythm */
  --section-y-sm: 56px;   /* mobile */

  /* ---------- layout ---------- */
  --max-w: 1200px;
  --gutter: 20px;         /* minimum horizontal padding on mobile */
  --tap: 44px;            /* minimum touch height for buttons + controls */

  /* ---------- shape ---------- */
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow: 0 1px 3px rgb(23 32 51 / 0.07), 0 8px 24px rgb(23 32 51 / 0.06);
  --shadow-lg: 0 2px 6px rgb(23 32 51 / 0.08), 0 16px 40px rgb(23 32 51 / 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* honour the OS "reduce motion" setting (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
/* WCAG 1.4.1 (use of colour): a classless link inside the page body is
   plain prose, and colour alone was distinguishing it from the text
   around it at 1.07:1. Component links all carry a class and are
   distinguishable by shape, so they stay clean. */
main a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }

/* one visible focus ring for everything keyboard-reachable (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* skip link — add <a class="skip-link" href="#main">Skip to content</a> as the
   first element in <body> and id="main" on <main> (Phase 2 page work) */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--s-2); text-decoration: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); margin: 0 0 1rem; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0 0 0.75rem; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; margin: 0 0 0.4rem; }
p  { margin: 0 0 1rem; }
.lead { font-size: 1.1875rem; color: var(--muted); line-height: 1.6; }

/* ===================================================================
   HEADER + NAVIGATION  (Phase 2, 2026-08-28)
   Works with no JavaScript at all: the drawer is a checkbox, the desktop
   dropdowns open on :hover and :focus-within. assets/header.js only
   ENHANCES it — aria-expanded, Escape, scroll lock, close-on-select.
   Replacing the logo: swap assets/img/logo-mark.webp (keep it 3x the
   --logo-h below) and update the width/height attributes in the markup.
   =================================================================== */
:root { --header-h: 76px; --logo-h: 48px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
/* the border and lift only appear once the page has moved */
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 3px rgb(23 32 51 / 0.06), 0 6px 20px rgb(23 32 51 / 0.05); }
/* no-JS fallback: a permanent hairline, so the header still detaches visually */
.no-js .site-header, html:not(.js) .site-header { border-bottom-color: var(--line); }

.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }

.logo { display: flex; align-items: center; flex: 0 0 auto; padding: var(--s-1) 0; }
.logo:hover { text-decoration: none; }
.logo .mark { height: var(--logo-h); width: auto; display: block; }

/* ---- the bar ---- */
.site-nav { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }

.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0 var(--s-3);
  font: inherit; font-weight: 500; color: var(--ink);
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-trigger:hover { background: var(--bg-soft); text-decoration: none; }
.nav-link[aria-current] { color: var(--blue); font-weight: 600; }
.nav-link[aria-current]::after,
.nav-group.is-current > .nav-trigger::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 8px;
  height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-group.is-current > .nav-trigger { color: var(--blue); font-weight: 600; }

.chev { width: 14px; height: 14px; flex: 0 0 auto; transition: transform 0.15s ease; }
.nav-group:hover > .nav-trigger .chev,
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* ---- desktop dropdown: absolutely positioned, so opening shifts nothing ---- */
.dropdown {
  position: absolute; top: calc(100% - 4px); left: 0; z-index: 45;
  display: grid; gap: 2px; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--s-2);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.dropdown.cols2 { grid-template-columns: 1fr 1fr; min-width: 460px; }
.nav-group:hover > .dropdown,
.nav-group:focus-within > .dropdown,
.nav-trigger[aria-expanded="true"] + .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: flex; align-items: center; min-height: var(--tap);
  padding: var(--s-3); border-radius: var(--radius-sm);
  font-weight: 500; color: var(--ink); font-size: 1rem;
}
.dropdown a:hover { background: var(--bg-soft); text-decoration: none; }
.dropdown a[aria-current="page"] { color: var(--blue); font-weight: 600; }

/* ---- the two actions ---- */
.nav-actions { display: flex; align-items: center; gap: var(--s-3); margin-left: var(--s-3); }
/* --tap, not 40px: the design system promises 44px and the header's Login /
   Start Free are .btn.sm, so they were rendering 41-43px on every page. */
.btn.sm { min-height: var(--tap); padding: 0 var(--s-4); font-size: 0.9375rem; }
.nav-actions .btn.ghost { border-width: 1px; color: var(--ink); border-color: var(--line-strong); }
.nav-actions .btn.ghost:hover { background: var(--bg-soft); border-color: var(--blue); color: var(--blue); }

/* ---- burger (hidden until the drawer breakpoint) ---- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.nav-burger {
  display: none; margin-left: auto; cursor: pointer;
  width: var(--tap); height: var(--tap);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  border-radius: var(--radius-sm);
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.18s ease, opacity 0.18s ease; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--blue); outline-offset: 2px; }
.nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  /* transparent rather than none: .ghost adds a 1px border, and without this
     a solid and an outlined button are 2px different in height -- enough to
     knock the pricing cards' CTAs out of line with each other */
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.big { min-height: 52px; padding: 0.85rem 1.8rem; font-size: 1.08rem; }
.btn.ghost { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--bg-soft); }
.site-nav .btn { padding: 0.5rem 1.05rem; color: #fff; }
.site-nav .btn:hover { background: var(--brand-dark); }

/* ===================================================================
   HOMEPAGE HERO  (Phase 3, 2026-08-28)
   Light ground with restrained navy/orange accents; the screenshot is the
   real app in a CSS device frame, so the frame stays crisp at any size and
   the image itself is never scaled non-uniformly.
   =================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(58rem 30rem at 88% -10%, rgb(245 130 32 / 0.07), transparent 60%),
    radial-gradient(46rem 26rem at 2% 0%, rgb(18 48 90 / 0.07), transparent 62%),
    linear-gradient(180deg, var(--bg-soft), #fff 78%);
  padding: var(--s-9) 0 var(--s-10);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-9); align-items: center; }

.hero .eyebrow {
  display: inline-block; margin: 0 0 var(--s-4);
  font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 6px var(--s-4);
}
/* the one decorative flash of brand orange */
.hero .eyebrow::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); margin-right: var(--s-2); vertical-align: 1px;
}
.hero h1 { max-width: 16ch; margin-bottom: var(--s-4); }
.hero .lead { max-width: 52ch; margin-bottom: var(--s-6); }
.hero .cta-row { display: flex; gap: var(--s-4); flex-wrap: wrap; margin: 0 0 var(--s-6); }

.hero-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
}
.hero-points li {
  position: relative; padding-left: 22px;
  font-size: var(--fs-small); color: var(--muted); font-weight: 500;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.3 3.4 8.5l1.1-1.1 1.7 1.7 4.3-4.3 1.1 1.1z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat,
          linear-gradient(#000, #000);
  -webkit-mask-composite: destination-out;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.3 3.4 8.5l1.1-1.1 1.7 1.7 4.3-4.3 1.1 1.1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- the device ---- */
.hero-art { display: flex; justify-content: center; }
.device {
  position: relative;
  width: 288px; padding: 10px;
  background: #0F1B2E; border-radius: 34px;
  box-shadow: 0 2px 6px rgb(23 32 51 / 0.10), 0 24px 56px rgb(23 32 51 / 0.20);
}

.device img { display: block; width: 100%; height: auto; border-radius: 25px; }

/* ---- floating status labels (decorative: aria-hidden in the markup) ---- */
.chip {
  position: absolute; z-index: 3; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--ink);
  font-size: var(--fs-small); font-weight: 600;
  padding: 8px 13px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); box-shadow: 0 6px 18px rgb(23 32 51 / 0.12);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-ink); }
.chip.is-navy::before { background: var(--navy); }
.chip.is-orange::before { background: var(--orange); }
.chip-1 { top: 5%;    left: -18%; }
.chip-2 { top: 36%;   right: -20%; }
.chip-3 { bottom: 30%; left: -22%; }
.chip-4 { bottom: 17%; right: -16%; }

/* ---- entrance: opt-in, so a reduced-motion visitor never sees it ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero .lead, .hero .cta-row, .hero-points {
    animation: hero-rise 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
  }
  /* the h1 is the LCP element on a phone (the screenshot is on desktop), so
     like the screenshot it slides without fading -- an opacity-0 start is an
     instruction to the browser not to paint the largest thing on the page */
  .hero h1 {
    animation: hero-slide 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
    animation-delay: 0.05s;
  }
  .hero .lead { animation-delay: 0.1s; }
  .hero .cta-row { animation-delay: 0.15s; }
  .hero-points { animation-delay: 0.2s; }
  /* the screenshot is the LCP element. hero-rise starts at opacity 0, so
     animating it held the largest paint back by more than half a second --
     56% of LCP was render delay. It slides in without fading instead. */
  .hero-art {
    animation: hero-slide 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
    animation-delay: 0.1s;
  }
  .chip { animation: hero-fade 0.4s ease-out backwards; }
  .chip-1 { animation-delay: 0.45s; } .chip-2 { animation-delay: 0.6s; }
  .chip-3 { animation-delay: 0.75s; } .chip-4 { animation-delay: 0.9s; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes hero-slide { from { transform: translateY(12px); } }
@keyframes hero-fade { from { opacity: 0; transform: scale(0.94); } }

.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.45rem; }
.ticks li { padding-left: 1.7rem; position: relative; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green-ink); font-weight: 700; }

/* --- sections --- */
section { padding: var(--section-y) 0; }
section.alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.card .icon { width: 42px; height: 42px; margin-bottom: 0.8rem; }
/* a card whose title IS the link: the text alone was a 27px target */
.card h3 > a, .card h2 > a {
  display: inline-flex; align-items: center; min-height: var(--tap);
}
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.rev > .art { order: -1; }
.split .art { text-align: center; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps .card { position: relative; padding-top: 2.1rem; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -1.1rem; left: 1.4rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}

/* ===================================================================
   COMPLIANCE JOURNEY  (Phase 4, 2026-08-28)
   Five ordered steps on one connected line. It is an <ol role="list">, so
   the order is real semantics, not a drawn number — the numeral badges are
   aria-hidden. Colour discipline: navy carries the journey, ORANGE marks
   only the active (hovered/focused) step and the closing highlight.
   Desktop: one row on a progress line. 1180px: three across, no line
   (a line across wrapped rows would lie about the order). 980px: two.
   860px: a vertical timeline — nothing to swipe, nothing to scroll
   sideways, every step readable in place.
   =================================================================== */
.journey {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4);
}
/* the progress line, drawn from the first node's centre to the last */
.journey::before {
  content: ""; position: absolute; z-index: 0;
  top: 27px; left: 10%; right: 10%; height: 2px;
  background: var(--line);
}
.journey-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.journey-node {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  margin-bottom: var(--s-4);
  transition: background-color 0.18s ease;
}
.journey-ico { width: 26px; height: 26px; display: block; }
.journey-num {
  position: absolute; top: -3px; right: -5px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--navy);
  border: 2px solid var(--navy);
  font-size: var(--fs-small); font-weight: 700; line-height: 1;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.journey-step h3 { font-size: 1.0625rem; margin-bottom: 0.35rem; }
.journey-step p {
  color: var(--muted); font-size: 0.95rem; line-height: 1.5;
  margin: 0 0 0.35rem; max-width: 30ch;
}
.journey-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: var(--tap); font-weight: 600; font-size: var(--fs-small);
  margin-top: auto;   /* grid items stretch, so the links line up across steps
                         however many lines a heading takes */
}

/* ORANGE, used only here: the step the reader is on */
.journey-step:hover .journey-node,
.journey-step:focus-within .journey-node { background: var(--orange-ink); }
.journey-step:hover .journey-num,
.journey-step:focus-within .journey-num { border-color: var(--orange-ink); color: var(--orange-ink); }

.journey-close {
  margin: var(--s-7) 0 0; padding-left: var(--s-4);
  border-left: 3px solid var(--orange);      /* the one highlight */
  font-size: 1.1875rem; font-weight: 600; color: var(--navy);
}

@media (max-width: 1180px) {
  .journey { grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5); }
  .journey::before { display: none; }
}
@media (max-width: 980px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
}

/* Below 700px the journey becomes a vertical timeline. It gets its own
   breakpoint rather than riding the shared 860px collapse, because a 768px
   tablet should still read as a grid of steps, not a single file. */
@media (max-width: 700px) {
  /* vertical timeline: the line runs down through the nodes, content beside
     them. No carousel, so nothing has to be swiped precisely to be read. */
  .journey { grid-template-columns: 1fr; gap: var(--s-6); }
  .journey::before {
    display: block; top: 28px; bottom: 28px; left: 27px; right: auto;
    width: 2px; height: auto;
  }
  .journey-step {
    display: grid; grid-template-columns: 56px 1fr;
    column-gap: var(--s-4); align-items: start; text-align: left;
  }
  .journey-node { grid-row: 1 / span 3; margin-bottom: 0; }
  .journey-step p { max-width: none; }
  .journey-close { margin-top: var(--s-6); }
}

/* ===================================================================
   PRODUCT SHOWCASE  (Phase 5, 2026-08-28)
   An APG tabs widget over real app screenshots. Extends the existing
   [role=tab] styling rather than replacing it. The keyboard behaviour
   lives in assets/header.js, which every page already loads.
   No carousel and nothing auto-rotates: a tab changes only when a person
   asks it to.
   =================================================================== */
.tabs {
  display: flex; gap: var(--s-1); flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: var(--s-6);
}
.tabs [role="tab"] {
  min-height: var(--tap); padding: 0 var(--s-4);
  background: none; border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
  white-space: nowrap;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] {
  color: var(--blue); border-bottom-color: var(--blue);
}

.tour-panel {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-9); align-items: center;
}
.tour-panel[hidden] { display: none; }
.tour-panel:focus-visible { outline-offset: 6px; }

.tour-copy .status { margin: 0 0 var(--s-4); }
.tour-copy h3 { font-size: 1.5rem; margin-bottom: var(--s-4); }

/* the benefit points reuse the existing .ticks component; only the rhythm
   and the muted colour differ here */
.tour-points { margin: 0 0 var(--s-5); gap: var(--s-3); }
.tour-points li { color: var(--muted); }

.tour-art { display: flex; justify-content: center; }
/* a shade smaller than the hero phone: the copy beside it is short, and a
   623px column next to 340px of text leaves the panel looking half-empty.
   Width only -- the height follows the image's own ratio, so nothing stretches. */
.tour-art .device { width: 250px; }

/* the labelled development state, at the same aspect as a real screenshot so
   dropping the capture in later shifts nothing */
.shot-todo {
  width: 250px; height: 541px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-2); text-align: center; padding: var(--s-5);
  border: 2px dashed var(--line-strong); border-radius: 34px;
  background: repeating-linear-gradient(135deg, var(--bg) 0 10px, var(--bg-soft) 10px 20px);
  color: var(--muted);
}
.shot-todo strong { color: var(--ink); font-size: var(--fs-body); }
.shot-todo span { font-size: var(--fs-small); }
.shot-todo code {
  font-size: var(--fs-small); background: #fff; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 8px;
}

.tour-cta { margin: var(--s-8) 0 0; }

/* the panel swap gets one short cross-fade, and only if motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .tour-panel { animation: tour-in 0.25s ease-out; }
}
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 980px) {
  .tour-panel { grid-template-columns: 1fr; gap: var(--s-6); justify-items: start; }
  .tour-art { width: 100%; }
}

/* Phones: one scrollable row of tabs with a visible cue that it scrolls --
   a fade on the right edge plus a real scrollbar, so the overflow is never
   a secret. The panel below is unaffected: no swiping needed to read it. */
/* Below 1180px the eight tabs no longer fit on one line. Rather than wrap
   them into a second row, the list becomes one scrollable strip with a
   VISIBLE cue that there is more: a fade on the right edge and a real
   scrollbar. The panel below never scrolls sideways, so nothing important
   needs a precise swipe to be read. */
@media (max-width: 1180px) {
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; gap: 0;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
            mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .tabs::-webkit-scrollbar { height: 6px; }
  .tabs::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .tabs [role="tab"] { padding: 0 var(--s-3); }
}

@media (max-width: 860px) {
  /* match the phone-frame width the hero already uses at this breakpoint, so
     a captured tab and a pending one are the same size */
  .shot-todo { width: 258px; height: 558px; border-radius: 30px; }
}

@media (max-width: 700px) {
  .tour-copy h3 { font-size: 1.375rem; }
  .tour-cta .btn { width: 100%; }
}

/* ===================================================================
   FEATURE BENTO + USE CASES + TRUST  (Phase 6, 2026-08-29)
   Four capability groups in a bento grid, a three-way use-case chooser on
   the same tabs widget the showcase uses, and seven trust cards. Every
   trust claim restates /security -- nothing is asserted here that the site
   does not already document.
   =================================================================== */
/* align-items: start so each tile is its own height. Stretching them to a
   common row height leaves a dead gap in whichever tile has the shorter
   capability list, which is exactly what a bento should not look like. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr);
         gap: var(--s-5); align-items: start; }
.bento-cell {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--s-6);
}
.bento-cell.is-half   { grid-column: span 3; }
.bento-cell.is-wide   { grid-column: span 4; }
.bento-cell.is-narrow { grid-column: span 2; }

.bento-ico {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: var(--s-4);
  background: var(--navy); color: #fff;
}
.bento-svg { width: 22px; height: 22px; display: block; }
.bento-cell h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.bento-cell > p { color: var(--muted); font-size: 0.95rem; margin-bottom: var(--s-4); }

/* the capabilities themselves: compact, scannable, still real text */
.bento-list {
  list-style: none; margin: 0 0 var(--s-5); padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-2);
}
.bento-list li {
  font-size: var(--fs-small); color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 5px 12px;
}
.bento-cell .btn-link { margin-top: auto; align-self: flex-start; }

/* ---- use-case chooser ---- */
.use-panel[hidden] { display: none; }
.use-panel { max-width: 62ch; }
.use-panel h3 { font-size: 1.375rem; margin-bottom: var(--s-4); }
.use-points { margin: 0 0 var(--s-5); gap: var(--s-3); }
.use-points li { color: var(--muted); }
/* .btn is inline-flex, so the space before the arrow collapses */
.use-panel .btn { gap: 0.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .use-panel { animation: tour-in 0.25s ease-out; }
}

/* ---- trust ---- */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s-5);
}
.trust-ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: var(--s-4);
  background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line);
}
.trust-svg { width: 21px; height: 21px; display: block; }
.trust-card h3 { font-size: 1.125rem; }
.trust-note {
  margin: var(--s-6) 0 0; max-width: 70ch;
  color: var(--muted); font-size: var(--fs-small);
}

@media (max-width: 1180px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell.is-half, .bento-cell.is-wide, .bento-cell.is-narrow { grid-column: span 1; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; gap: var(--s-4); }
  .bento-cell { padding: var(--s-5); }
  .trust-grid { grid-template-columns: 1fr; }
  .use-panel .btn { width: 100%; }
}

/* ===================================================================
   PRICING  (Phase 7, 2026-08-29)
   The monthly/yearly switch is a real <input type=checkbox role=switch>
   and the swap is done with :has() -- no JavaScript at all. Both prices
   are always in the DOM, so if :has() is unsupported the reader sees both
   figures rather than none, and a crawler indexes both either way.
   =================================================================== */
.bill-toggle {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  margin: 0 0 var(--s-7); flex-wrap: wrap;
}
.bill-opt { font-weight: 600; color: var(--muted); }
.bill-opt b { color: var(--green-ink); font-weight: 700; font-size: var(--fs-small); }
.bill-switch {
  position: relative; display: inline-flex; align-items: center;
  min-height: var(--tap); padding: 0 var(--s-1); cursor: pointer;
}
.bill-switch input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.bill-track {
  width: 54px; height: 30px; border-radius: var(--radius-pill);
  background: var(--line-strong); position: relative;
  transition: background-color 0.16s ease;
}
.bill-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  transition: transform 0.16s ease;
}
.bill-switch input:checked ~ .bill-track { background: var(--blue); }
.bill-switch input:checked ~ .bill-track::after { transform: translateX(24px); }
.bill-switch input:focus-visible ~ .bill-track {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
/* which of the two figures is on show */
body:has(#bill-yearly:checked) .p-monthly { display: none; }
body:has(#bill-yearly:not(:checked)) .p-yearly { display: none; }
body:has(#bill-yearly:not(:checked)) .bill-opt:first-of-type { color: var(--ink); }
body:has(#bill-yearly:checked) .bill-opt:last-of-type { color: var(--ink); }

/* ---- cards ---- */
.tier-blurb { color: var(--muted); font-size: 0.95rem; margin: 0.15rem 0 0.6rem; }
.tier .price { display: flex; align-items: baseline; }
.tier .per { min-height: 3.2em; }
.gst-note { font-size: var(--fs-small); color: var(--muted); margin: 0 0 var(--s-4); }
.tier-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-4);
}
.tier-meta span {
  font-size: var(--fs-small); font-weight: 600; color: var(--navy);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 4px 11px;
}
.tier-trial {
  font-size: var(--fs-small); color: var(--muted);
  margin: 0 0 var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.tier .btn { width: 100%; }

/* the two remaining plans, behind a native disclosure -- no JS, and the
   summary carries its own aria-expanded */
.all-plans { margin-top: var(--s-6); }
.all-plans > summary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: var(--tap); padding: 0 var(--s-5);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--blue); cursor: pointer; list-style: none;
}
.all-plans > summary::-webkit-details-marker { display: none; }
.all-plans > summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg);
}
.all-plans[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.all-plans > summary:hover { background: var(--bg-soft); }
.tiers.two { grid-template-columns: repeat(2, 1fr); margin-top: var(--s-5); }

/* ---- comparison table ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare caption { text-align: left; padding: var(--s-4) var(--s-5); color: var(--muted); font-size: var(--fs-small); }
.compare th, .compare td { padding: var(--s-3) var(--s-4); text-align: center; border-top: 1px solid var(--line); }
.compare thead th { background: var(--bg-soft); font-size: var(--fs-small); white-space: nowrap; }
.compare tbody th { text-align: left; font-weight: 600; font-size: 0.95rem; }
.compare td { color: var(--muted); font-size: 0.95rem; }
.compare td.yes { color: var(--green-ink); font-weight: 700; }
.compare tbody tr:nth-child(odd) { background: #FBFCFE; }

/* ---- sticky mobile CTA ---- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: flex; align-items: center; gap: var(--s-4);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: var(--s-3) var(--gutter);
    padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 16px rgb(23 32 51 / 0.10);
  }
  .sticky-plan { flex: 1; font-size: var(--fs-small); color: var(--muted); line-height: 1.35; }
  .sticky-plan b { display: block; color: var(--ink); font-size: 1rem; }
  .sticky-cta .btn { flex: 0 0 auto; }
  /* room so the bar never covers the last thing on the page */
  body:has(.sticky-cta) footer { padding-bottom: 84px; }
}

/* the round button overlaps the last line of the footer on a phone unless
   the footer makes room for it */
@media (max-width: 700px) {
  body:has(.support-fab):not(:has(.sticky-cta)) footer { padding-bottom: 84px; }
}

@media (max-width: 980px) {
  .tiers.two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .bill-toggle { gap: var(--s-2); }
  .tier .per { min-height: 0; }
  .all-plans > summary { width: 100%; justify-content: center; }
}

/* ===================================================================
   CREDIBILITY  (Phase 8, 2026-08-29)
   Two verified facts about who builds this, three routes to check us out,
   and one plain disclaimer. Nothing here is a badge, a seal or a number.

   The testimonial fields below (.quote-face, .quote-who, .quote-type,
   .quote-source) extend the existing .quote-card for the day a real,
   consented customer story exists. They are dormant on purpose: see
   website/TESTIMONIALS.md. Never populate them with invented praise.
   =================================================================== */
.cred { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.cred-point {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--s-6);
}
.cred-ico {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: var(--s-4);
  background: var(--navy); color: #fff;
}
.cred-svg { width: 22px; height: 22px; display: block; }
.cred-point h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.cred-point p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.cred-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
  margin-top: var(--s-6);
}
.cred-link {
  display: block; padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.cred-link:hover { border-color: var(--blue); text-decoration: none; }
.cred-link b { display: block; color: var(--blue); margin-bottom: 0.15rem; }
.cred-link span { font-size: var(--fs-small); color: var(--muted); }

.cred-note {
  margin: var(--s-6) 0 0; max-width: 78ch;
  font-size: var(--fs-small); color: var(--muted);
}
.cred-note b { color: var(--ink); }

/* dormant testimonial fields -- see the header comment */
.quote-card figcaption { display: flex; align-items: center; gap: var(--s-3); }
.quote-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.quote-who { display: block; }
.quote-who > span { display: block; }
.quote-type {
  font-size: var(--fs-small); font-weight: 600; color: var(--navy);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 2px 9px;
  display: inline-block; margin-top: 4px;
}
.quote-source { margin: var(--s-4) 0 0; font-size: var(--fs-small); }

@media (max-width: 980px) {
  .cred-links { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cred { grid-template-columns: 1fr; gap: var(--s-4); }
  .cred-point { padding: var(--s-5); }
}

/* ===================================================================
   FOOTER + CONVERSION  (Phase 9, 2026-08-29)
   Six link groups beside the brand block, a floating support button that
   is a <details> (so it can never open by itself), and a sticky mobile
   bar. The button is kept clear of the sticky bar and of the open nav
   drawer, and is left off /contact entirely -- a bottom-right button over
   a long form is the thing that must not happen.
   =================================================================== */
.footer-top { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-9); }
.footer-brand h2 { font-size: 1.25rem; }
.footer-brand p { font-size: 0.95rem; }
.footer-contact { font-style: normal; display: grid; gap: 0.3rem; margin: var(--s-4) 0 0; }
.footer-contact span { color: inherit; }
.footer-apps { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5); }
.footer-links h2 { font-size: 1rem; }

.footer-bottom {
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6);
  justify-content: space-between;
}
.footer-bottom .fine { margin: 0; }

/* ---- floating support button ---- */
.support-fab { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 35; }
.support-fab > summary {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; list-style: none;
  background: var(--navy); color: #fff;
  box-shadow: 0 4px 14px rgb(23 32 51 / 0.28);
}
.support-fab > summary::-webkit-details-marker { display: none; }
.support-fab > summary:hover { background: var(--blue-dark); }
.support-fab > summary svg { width: 26px; height: 26px; }
.support-fab[open] > summary { background: var(--blue-dark); }

/* an absolutely-positioned child escapes the closed <details>' content
   hiding, so the panel has to be hidden explicitly -- without this it sits
   open on every page */
.support-fab:not([open]) .support-menu { display: none; }
.support-menu {
  position: absolute; right: 0; bottom: calc(56px + var(--s-3));
  width: max-content; min-width: 224px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--s-2);
}
.support-menu p {
  margin: 0; padding: var(--s-2) var(--s-3);
  font-size: var(--fs-small); font-weight: 700; color: var(--muted);
}
.support-menu a {
  display: block; min-height: var(--tap); line-height: var(--tap);
  padding: 0 var(--s-3); border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600;
}
.support-menu a:hover { background: var(--bg-soft); text-decoration: none; }

/* it must never sit on top of the mobile drawer or the sticky bar */
body.nav-open .support-fab,
body.nav-open .sticky-cta { display: none; }
body:has(.sticky-cta) .support-fab { bottom: calc(var(--gutter) + 76px); }

/* ---- sticky bar: the two-button variant ---- */
.sticky-dual { gap: var(--s-3); }
.sticky-dual .btn { flex: 1 1 0; }

@media (max-width: 1180px) {
  .footer-top { grid-template-columns: 260px 1fr; gap: var(--s-7); }
}
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--s-7); }
  .footer-brand { max-width: 46ch; }
}
@media (max-width: 700px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-apps .btn { flex: 1 1 auto; }
  .support-fab { right: var(--s-3); bottom: var(--s-3); }
  /* less of the screen given to a floating control on a small phone */
  .support-fab > summary { width: 48px; height: 48px; }
  .support-fab > summary svg { width: 22px; height: 22px; }
  .support-menu { bottom: calc(48px + var(--s-2)); }
  body:has(.sticky-cta) .support-fab { bottom: calc(var(--s-3) + 76px); }
}

/* --- FAQ --- */
.faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; position: relative;
  padding-right: 2rem;
  /* a 28px summary is under the 44px target the design system promises */
  min-height: var(--tap); display: flex; align-items: center;
}
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%;
  transform: translateY(-50%); color: var(--brand); font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0.6rem 0 0; }

/* --- pricing --- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.tier { display: flex; flex-direction: column; }
.tier .price { font-size: 2rem; font-weight: 800; margin: 0.4rem 0 0.1rem; }
.tier .per { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.45rem; flex: 1; }
.tier li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--green-ink); font-weight: 700; }
.tier li.no { color: var(--muted); }
.tier li.no::before { content: "—"; color: var(--line); }
/* the emphasis ring is a shadow, not a thicker border: a 2px border made the
   featured card's content start 1px lower, so its CTA no longer lined up
   with its neighbours' */
.tier.featured {
  border-color: var(--brand); position: relative;
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}
.tier .flag {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: var(--fs-small); font-weight: 700;
  padding: 0.15rem 0.8rem; border-radius: 999px; white-space: nowrap;
}

/* --- download page --- */
.dl-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: start; }
.version-pill {
  display: inline-flex; gap: 0.5rem; align-items: center;
  background: var(--bg-soft); color: var(--brand-dark);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.3rem 0.9rem; font-size: 0.9rem; font-weight: 600;
}
.form-grid { display: grid; gap: 0.9rem; }
.form-grid label { display: grid; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; }
.form-grid .hint { font-weight: 400; color: var(--muted); }
.form-grid input {
  font: inherit; padding: 0.6rem 0.8rem; min-height: var(--tap);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); width: 100%;
}
.form-grid input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.consent { display: flex; gap: 0.6rem; align-items: start; font-size: 0.88rem; color: var(--muted); font-weight: 400; }
.consent input { width: auto; margin-top: 0.25rem; }
.form-error { background: #FEECEC; color: var(--red); border: 1px solid #F7C9C9; border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; font-size: var(--fs-small); }
.dl-success { text-align: center; }
.dl-success .qr { margin: 1.25rem auto; width: 168px; }
.dl-success .qr img, .dl-success .qr canvas { border: 8px solid #fff; box-shadow: var(--shadow); border-radius: 8px; }
.note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.92rem; color: var(--muted); }
.install-steps { padding-left: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.install-steps li { margin-bottom: 0.5rem; }
.hidden { display: none; }

/* --- legal pages --- */
.legal { max-width: 780px; }
.legal h2 { margin-top: 2.25rem; font-size: 1.25rem; }
.legal p, .legal li { color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

/* --- breadcrumbs, prose articles, TOC (2026-08 SEO redesign) --- */
.breadcrumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: var(--fs-small); padding: 0.5rem 0; color: var(--muted); }
.breadcrumbs a {
  color: var(--muted); display: inline-flex; align-items: center;
  min-height: var(--tap);
}
.breadcrumbs b { color: var(--ink); font-weight: 600; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tier .was { min-height: 1.4rem; font-size: 0.92rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
.tier .was s, .tier .per s { color: var(--muted); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.tier .offer { background: #E7F6EE; color: var(--green-ink); font-size: var(--fs-small); font-weight: 700; padding: 0.1rem 0.55rem; border-radius: var(--radius-pill); white-space: nowrap; }
.addons { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.95rem; max-width: 900px; }
/* the partner band's secondary link was a 24px target */
.partner-band .more {
  display: inline-flex; align-items: center; min-height: var(--tap);
}
.partner-band { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.5rem; align-items: center; margin-top: 1.5rem; background: var(--bg-soft); }
.partner-band .eyebrow { font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-dark); }
.partner-band h3 { margin: 0.3rem 0 0.5rem; }
.partner-band p { margin: 0; color: var(--muted); }
.partner-cta { display: grid; gap: 0.6rem; justify-items: start; }
.partner-cta .more { font-size: 0.92rem; }
.form-grid select, .form-grid textarea {
  font: inherit; padding: 0.6rem 0.8rem; min-height: var(--tap);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); width: 100%; background: #fff;
}
.form-grid select:focus-visible, .form-grid textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.checklist li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green-ink); font-weight: 700; }
.badge { display: inline-block; background: var(--bg-soft); color: var(--brand-dark); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.8rem; font-size: var(--fs-small); font-weight: 600; }
.updated { color: var(--muted); font-size: 0.9rem; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.95rem; }
.toc ol { margin: 0.4rem 0 0; padding-left: 1.3rem; }
.callout { background: var(--bg-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.callout p:last-child { margin-bottom: 0; }

/* --- GST calculator --- */
.calc { max-width: 560px; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.calc .slabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.3rem 0 0.6rem; }
.calc .slabs button { font: inherit; min-height: var(--tap); padding: 0.4rem 1.1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; font-weight: 600; }
.calc .slabs button.on { border-color: var(--brand); background: var(--bg-soft); color: var(--brand-dark); }
.calc .seg { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.calc .seg button { flex: 1; font: inherit; min-height: var(--tap); padding: 0.55rem; border: 0; background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); }
.calc .seg button.on { background: var(--brand); color: #fff; }
.calc-result { margin-top: 1.25rem; }
.calc-result table { width: 100%; border-collapse: collapse; }
.calc-result td { padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--line); }
.calc-result td:last-child { text-align: right; font-weight: 700; }
.calc-result tr.total td { font-size: 1.1rem; color: var(--brand-dark); }

/* --- CTA band + footer --- */
.cta-band { background: var(--brand-deep); color: #e5edf9; text-align: center; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--brand-deep); margin-top: 0.75rem; }
.cta-band .btn:hover { background: #e5edf9; }

.site-footer { background: #0b1220; color: #94a3b8; padding: 2.75rem 0 2rem; font-size: 0.92rem; }
.site-footer h2 { color: #e2e8f0; margin: 0 0 0.7rem; font-size: 0.95rem; line-height: 1.3; letter-spacing: 0; }
/* 0.15rem of padding left these at 29px; footer links are navigation, not
   prose, so they get a real target */
.site-footer a {
  color: #94a3b8; display: flex; align-items: center;
  min-height: var(--tap); padding: 0.15rem 0;
}
.site-footer a:hover { color: #fff; }
/* .btn.ghost is coloured for a white page; on the dark footer it read
   at 2.27:1. Light text on the dark ground instead. */
.site-footer .btn.ghost {
  color: #e2e8f0; border-color: #47546b; min-height: var(--tap);
}
.site-footer .btn.ghost:hover {
  background: rgb(255 255 255 / 0.07); border-color: #94a3b8; color: #fff;
}
.site-footer .fine { border-top: 1px solid #1e293b; padding-top: 1.25rem; font-size: var(--fs-small); }
.site-footer .footer-contact { margin-top: 0.9rem; }

/* full brand lockup (logo.png master -> logo-full.webp) */
.brand-logo { display: block; margin: 0 auto 1.25rem; max-width: 100%; height: auto; }


/* ===================================================================
   DESIGN SYSTEM COMPONENTS  (Phase 1, 2026-08-28)
   Everything above this line predates the system and now consumes its
   tokens. Everything below is new and shared. Docs: DESIGN-SYSTEM.md,
   live examples: /styleguide.html
   =================================================================== */

/* --- buttons: third variant (primary = .btn, outlined = .btn.ghost) --- */
.btn-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: var(--tap);
  color: var(--brand); font-weight: 600; background: none; border: 0;
  padding: 0 0.15rem; font-size: 1rem; cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }
.btn[disabled], .btn-link[disabled] { opacity: 0.55; cursor: not-allowed; }

/* --- section heading --- */
.section-head .eyebrow {
  display: block; font-size: var(--fs-small); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
  margin-bottom: var(--s-2);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- feature card (a .card with an icon slot and optional link) --- */
.card h3 { margin-bottom: var(--s-2); }
.card .card-link { display: inline-block; margin-top: var(--s-3); font-weight: 600; }

/* --- testimonial card ---
   USE ONLY with a real, attributed quote from a real customer who agreed.
   Never ship this with invented praise. */
.quote-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-6);
}
.quote-card blockquote { margin: 0; font-size: 1.125rem; line-height: 1.55; color: var(--ink); }
.quote-card figcaption { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--muted); }
.quote-card figcaption b { color: var(--ink); display: block; font-size: 1rem; }

/* --- trust badge ---
   USE ONLY for certifications/registrations actually held. No fake seals. */
.trust {
  display: inline-flex; align-items: center; gap: var(--s-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--s-2) var(--s-3); background: #fff;
  font-size: var(--fs-small); font-weight: 600; color: var(--ink);
}
.trust img, .trust svg { height: 22px; width: auto; }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* --- status badge (distinct from the neutral .badge pill) --- */
.status {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border-radius: var(--radius-pill); padding: 0.15rem 0.7rem;
  font-size: var(--fs-small); font-weight: 700; border: 1px solid transparent;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-ok    { background: #E7F6EE; color: var(--green-ink); border-color: #C6E8D5; }
.status.is-warn  { background: #FDF3E3; color: var(--amber-ink); border-color: #F5DFB4; }
.status.is-error { background: #FEECEC; color: var(--red);       border-color: #F7C9C9; }
.status.is-info  { background: var(--bg-soft); color: var(--brand-dark); border-color: var(--line); }

/* --- accordion (the FAQ pattern, generalised; native <details>, no JS) --- */
.accordion details { border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
.accordion summary {
  min-height: var(--tap); align-items: center;
  cursor: pointer; font-weight: 600; list-style: none; position: relative;
  padding-right: var(--s-7); min-height: var(--tap); display: flex; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 0.25rem; color: var(--brand);
  font-weight: 700; font-size: 1.25rem;
}
.accordion details[open] summary::after { content: "–"; }
.accordion details > *:not(summary) { color: var(--muted); margin: var(--s-3) 0 0; }

/* --- tabs ---
   Markup carries the ARIA roles so it is accessible; a few lines of JS
   toggle aria-selected / hidden. Styling only lives here. */
[role="tablist"] {
  display: flex; gap: var(--s-1); flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: var(--s-5);
}
[role="tab"] {
  min-height: var(--tap); padding: 0 var(--s-4);
  background: none; border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
}
[role="tab"]:hover { color: var(--ink); }
[role="tab"][aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
[role="tabpanel"][hidden] { display: none; }

/* --- modal: native <dialog>, opened with showModal() so focus trapping,
   Esc-to-close and inertness come from the browser --- */
dialog.modal {
  border: 0; border-radius: var(--radius-lg); padding: var(--s-6);
  max-width: 520px; width: calc(100% - 2 * var(--gutter));
  box-shadow: var(--shadow-lg); color: var(--ink);
}
dialog.modal::backdrop { background: rgb(23 32 51 / 0.55); }
dialog.modal h2 { font-size: 1.5rem; }
dialog.modal .modal-actions { display: flex; gap: var(--s-3); justify-content: flex-end; margin-top: var(--s-5); }

/* --- tooltip: supplementary only. Anything essential must also be in text. --- */
.tip { position: relative; border-bottom: 1px dotted var(--line-strong); cursor: help; }
.tip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: var(--fs-small); font-weight: 500;
  line-height: 1.4; padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm);
  width: max-content; max-width: 260px; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity 0.12s ease;
  box-shadow: var(--shadow); z-index: 40;
}
.tip:hover::after, .tip:focus-visible::after { opacity: 1; visibility: visible; }

/* --- form field: label + control + hint/error, on the 44px control --- */
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.field > label { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; min-height: var(--tap); padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  width: 100%; background: #fff; color: var(--ink);
}
.field textarea { min-height: 120px; }
.field .hint { font-size: var(--fs-small); color: var(--muted); }
.field .error { font-size: var(--fs-small); color: var(--red); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }

/* --- utilities --- */
.stack > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- responsive --- */
@media (max-width: 1180px) {
  .site-nav a { padding: 0.45rem 0.7rem; }
}
@media (max-width: 1024px) {
  /* ---- mobile: a full-height drawer ---- */
  .nav-burger { display: flex; }
  .nav-toggle { pointer-events: auto; width: var(--tap); height: var(--tap);
                position: absolute; right: var(--gutter); top: 16px; z-index: 46; cursor: pointer; }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(380px, 100%);
    z-index: 44; background: #fff; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-9);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s;
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .site-nav { transform: translateX(0); visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li { border-bottom: 1px solid var(--line); }

  .nav-link, .nav-trigger {
    width: 100%; justify-content: space-between; border-radius: 0;
    min-height: 52px; padding: 0 var(--s-1); font-size: 1.0625rem;
  }
  .nav-link[aria-current]::after, .nav-group.is-current > .nav-trigger::after { content: none; }
  .nav-link[aria-current], .nav-group.is-current > .nav-trigger {
    color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); padding-left: var(--s-3);
  }

  /* groups collapse: closed by default, opened by the trigger */
  .dropdown, .dropdown.cols2 {
    position: static; min-width: 0; grid-template-columns: 1fr;
    border: 0; box-shadow: none; padding: 0 0 var(--s-3) var(--s-3);
    transform: none; opacity: 1; visibility: visible;
    display: none;
  }
  .nav-group:hover > .dropdown, .nav-group:focus-within > .dropdown { display: none; }
  .nav-trigger[aria-expanded="true"] + .dropdown { display: grid; }
  /* with no JavaScript every group is simply open, so nothing is unreachable */
  html:not(.js) .dropdown { display: grid; }
  .dropdown a { min-height: 46px; color: var(--muted); }

  .nav-actions {
    margin: var(--s-5) 0 0; flex-direction: column-reverse; align-items: stretch; gap: var(--s-3);
  }
  .nav-actions .btn { width: 100%; min-height: var(--tap); }

  /* the page behind the drawer must not scroll (set by header.js) */
  body.nav-open { overflow: hidden; }
  .nav-scrim {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 43;
    background: rgb(23 32 51 / 0.35); opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s;
  }
  .nav-toggle:checked ~ .nav-scrim { opacity: 1; visibility: visible; }
}
@media (max-width: 980px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  /* the partner band's secondary link was a 24px target */
.partner-band .more {
  display: inline-flex; align-items: center; min-height: var(--tap);
}
.partner-band { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  /* the two outer chips would sit off-screen once the column narrows */
  .chip-1, .chip-3 { display: none; }
  .chip-2 { right: -8%; }
  .chip-4 { right: -4%; }
}
/* the narrowest phones: one step down on the hero headline only, so the
   primary action still lands above the fold. The token is untouched. */
@media (max-width: 400px) {
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 860px) {
  /* single column, copy first then screenshot — the DOM order already is */
  .hero { padding: var(--s-6) 0 var(--s-8); }
  /* the pill wraps to two lines on a phone and reads as a stray box */
  .hero .eyebrow {
    background: none; border: 0; padding: 0; box-shadow: none;
    font-size: var(--fs-small); letter-spacing: 0.08em;
  }
  .hero .wrap { gap: var(--s-8); }
  .hero h1 { max-width: none; }
  .hero .cta-row { gap: var(--s-3); }
  .hero .cta-row .btn { flex: 1 1 auto; }
  .hero-points { gap: var(--s-2) var(--s-4); }
  .device { width: 258px; }
  .chip { padding: 6px 11px; }
  .chip-2 { top: 30%; right: -6%; }
  .chip-4 { bottom: 16%; left: -6%; right: auto; }
  .quote-card { padding: var(--s-5); }
  dialog.modal { padding: var(--s-5); }
  [role="tablist"] { overflow-x: auto; flex-wrap: nowrap; }
  .hero .wrap, .split, .dl-layout { grid-template-columns: 1fr; }
  .split.rev > .art { order: 0; }
  .grid3, .steps, .tiers { grid-template-columns: 1fr; }
  .grid2, .grid4 { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0; }
  section { padding: var(--section-y-sm) 0; }
  .calc .row { grid-template-columns: 1fr; }
}
