/* =========================================================
   Dozen Commerce: shared stylesheet
   Mobile first: the base styles are for phones (375px and up).
   The @media (min-width: …) blocks add layout for wider screens.
   ========================================================= */

/* ----- Brand colours, sizes and icons ----- */
:root {
  --ink: #15171C;
  --ink-2: #22252C;          /* secondary button on dark backgrounds */
  --ink-3: #1D2027;          /* dark card sitting on an ink section */
  --cream: #F4F1EA;
  --white: #FFFFFF;
  --paper: #FBF9F5;
  --border: #E2DDD2;
  --orange: #F07650;
  --orange-light: #F59A78;
  --orange-dark: #E85E36;    /* large orange text and numbers on light backgrounds */
  --orange-deep: #A33A1A;    /* small orange text, e.g. form errors and tags (readable on white, cream and orange tint) */
  --orange-tint: rgba(240, 118, 80, 0.16);

  --muted: #63666D;          /* secondary text on light backgrounds */
  --cream-muted: #B6B2A9;    /* secondary text on ink */
  --line-dark: rgba(244, 241, 234, 0.12);
  --grey-tint: #EEEBE4;
  --grey-icon: #8D9097;

  /* Corners: the main offer gets the largest radius, smaller things get smaller ones */
  --radius-lg: 24px;         /* audit cards, example finding */
  --radius-card: 20px;       /* every other card */
  --radius-sm: 14px;         /* fields and boxes inside cards */
  /* Only the audit cards and the example finding cast a shadow */
  --shadow-card: 0 1px 2px rgba(21, 23, 28, 0.04), 0 14px 36px -18px rgba(21, 23, 28, 0.18);
  --container: 1160px;
  --gutter: 20px;
  --header-height: 64px;

  /* Type scale (the classic 12 / 14 / 16 / 18 / 21 / 24 / 36 / 48 / 72 steps) */
  --text-xs: 0.75rem;        /* 12px: tags */
  --text-sm: 0.875rem;       /* 14px: small print, labels */
  --text-base: 1rem;         /* 16px: body */
  --text-md: 1.125rem;       /* 18px: intros */
  --text-lg: 1.3125rem;      /* 21px: small headings */
  --text-xl: 1.5rem;         /* 24px: card headings */
  --measure: 36rem;          /* longest comfortable line for intros (about 65 characters) */

  /* Small line icons, drawn as SVG. Their colour is set with background-color. */
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M8.5 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 5 8.6l4.5-5' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5m0-5-5 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-height: 72px;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  /* Keeps anything you jump or tab to clear of the sticky header */
  scroll-padding-top: calc(var(--header-height) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* With a mouse or trackpad, stop the page bouncing past the top and bottom */
@media (pointer: fine) {
  html {
    overscroll-behavior-y: none;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance; /* evens out line lengths so no word is left alone */
}

h2 {
  font-size: clamp(2.25rem, 2.4vw + 1.5rem, 3rem); /* 36px on phones up to 48px */
  line-height: 1.05;
  letter-spacing: -0.04em;
}

p {
  margin: 0;
  text-wrap: pretty; /* avoids a single word on the last line */
}

/* Taps: no double-tap zoom delay, and a soft orange flash instead of the default grey box */
a,
button,
summary,
label,
input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(240, 118, 80, 0.18);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.hero :focus-visible,
.bg-ink :focus-visible,
.audit-card-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}


/* Anything not decided yet */
.tbc {
  display: inline-block;
  max-width: 100%;
  padding: 0.1em 0.45em;
  border: 1px dashed currentColor;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  vertical-align: middle;
}

.audit-card-dark .tbc {
  color: var(--cream-muted);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
}

.skip-link:focus {
  top: 12px;
}

/* Small label above a heading, in normal sentence case */
.eyebrow {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Quiet underlined text link, e.g. "Or get 3 free findings first →" */
.soft-link {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.soft-link:hover {
  text-decoration-color: var(--orange);
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 72px 0;
}

/* Less space under the audit cards, so the free-findings band sits close to them */
.section-tight-bottom {
  padding-bottom: 40px;
}

.bg-cream {
  background: var(--cream);
}

.bg-white {
  background: var(--white);
}

.bg-ink {
  background: var(--ink);
  color: var(--cream);
}

/* Headings sit flush left, on the same edge as the content below them */
.section-head {
  max-width: 46rem;
  margin: 0 0 40px;
}

.section-head p {
  max-width: var(--measure);
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--text-md);
}

.bg-ink .section-head p {
  color: var(--cream-muted);
}

@media (min-width: 768px) {
  .section {
    padding: 112px 0;
  }

  .section-tight-bottom {
    padding-bottom: 56px;
  }

  .section-head {
    margin-bottom: 56px;
  }
}

/* ----- Buttons ----- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 6px 6px 6px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* The circle on the right of every button, with an arrow inside */
.btn-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.btn-arrow::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover .btn-arrow::before {
  transform: translateX(3px);
}

/* Primary: orange gradient pill, ink text, ink circle with cream arrow */
.button-primary {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 50%, var(--orange-dark) 100%);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 24px -10px rgba(232, 94, 54, 0.65);
}

.button-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 16px 30px -10px rgba(232, 94, 54, 0.7);
}

.button-primary .btn-arrow {
  background: var(--ink);
  color: var(--cream);
}

/* Secondary: ink pill, cream text, orange circle with ink arrow */
.button-secondary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 22px -12px rgba(21, 23, 28, 0.55);
}

.button-secondary .btn-arrow {
  background: var(--orange);
  color: var(--ink);
}

/* Secondary button sitting on a dark background */
.button-on-dark {
  border: 1px solid rgba(244, 241, 234, 0.2);
  background: var(--ink-2);
  box-shadow: none;
}

.button-small {
  gap: 10px;
  min-height: 44px;
  padding: 4px 4px 4px 18px;
  font-size: 0.9375rem;
}

.button-small .btn-arrow {
  width: 36px;
  height: 36px;
}

.button-block {
  justify-content: space-between;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .btn-arrow::before {
    transition: none;
  }

  .button:hover,
  .button:hover .btn-arrow::before {
    transform: none;
  }
}

/* ----- Tick and cross lists (also used in the comparison table) ----- */
.ticks,
.crosses {
  display: grid;
  gap: 12px;
}

.ticks li,
.crosses li,
.mark {
  display: block;
  position: relative;
  padding-left: 34px;
}

/* The tinted circle */
.ticks li::before,
.crosses li::before,
.mark::before {
  content: "";
  position: absolute;
  top: calc((1.6em - 22px) / 2);
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-tint);
}

/* The tick or cross inside it */
.ticks li::after,
.crosses li::after,
.mark::after {
  content: "";
  position: absolute;
  top: calc((1.6em - 22px) / 2 + 5px);
  left: 5px;
  width: 12px;
  height: 12px;
  background-color: var(--orange-dark);
  -webkit-mask: var(--icon-tick) center / contain no-repeat;
  mask: var(--icon-tick) center / contain no-repeat;
}

.crosses li::before,
.mark-no::before {
  background: var(--grey-tint);
}

.crosses li::after,
.mark-no::after {
  background-color: var(--grey-icon);
  -webkit-mask-image: var(--icon-cross);
  mask-image: var(--icon-cross);
}

/* ----- 1. Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.logo img {
  width: auto;
  height: 26px;
}

/* ----- 2. Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background-color: var(--ink);
  /* faint dot grid */
  background-image: radial-gradient(rgba(244, 241, 234, 0.09) 1px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--cream);
}

/* soft orange glow, top right */
.hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -280px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 118, 80, 0.4) 0%, rgba(240, 118, 80, 0.12) 40%, rgba(240, 118, 80, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  position: relative;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.06);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.pill::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 118, 80, 0.2);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.5rem, 4.4vw + 1.2rem, 4.5rem); /* 40px on phones up to 72px */
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h1 .accent {
  display: block;
  color: var(--orange);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--cream-muted);
  font-size: var(--text-md);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 36px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 999px;
  color: var(--cream-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Example finding card */
.finding-card {
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
}

.finding-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--orange-tint);
  color: var(--orange-deep);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.finding-title {
  margin-top: 16px;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.finding-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 18px;
}

.finding-amount {
  color: var(--orange-dark);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.finding-unit {
  color: var(--muted);
  font-size: 0.875rem;
}

.finding-maths {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums; /* figures line up from row to row */
  line-height: 1.75;
}

/* On phones the "→ result" part drops to its own indented line */
.maths-result {
  display: block;
  padding-left: 2ch;
}

.finding-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.finding-tags li {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .hero {
    padding: 104px 0 120px;
  }

  .pill {
    font-size: 0.8125rem;
  }

  .hero-lead {
    font-size: var(--text-lg);
  }

  .finding-card {
    max-width: 440px;
    padding: 32px;
  }

  .finding-maths {
    font-size: 0.8125rem;
  }

  .maths-result {
    display: inline;
    padding-left: 0;
  }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 64px;
  }

  .finding-card {
    justify-self: end;
    transform: rotate(-1.5deg);
  }
}

/* ----- 3 & 10. Audit cards ----- */
.audit-grid {
  display: grid;
  gap: 32px;
}

.audit-card {
  display: flex;
  position: relative;
  flex-direction: column;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.audit-card h3 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.audit-sub {
  margin-top: 8px;
  color: var(--muted);
}

.audit-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: 24px;
}

/* "+ GST" next to each price */
.price-tax {
  color: var(--muted);
  font-size: var(--text-md);
  font-weight: 600;
}

.audit-card-dark .price-tax {
  color: var(--cream-muted);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.audit-card .ticks {
  margin: 28px 0 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.audit-card .button {
  margin-top: auto;
}

.audit-card-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 24px 48px -24px rgba(21, 23, 28, 0.6);
}

.audit-card-dark .audit-sub {
  color: var(--cream-muted);
}

.audit-card-dark .ticks {
  border-top-color: var(--line-dark);
}

.audit-card-dark .ticks li::before {
  background: rgba(240, 118, 80, 0.2);
}

.audit-card-dark .ticks li::after {
  background-color: var(--orange);
}

/* On the ink section the dark card needs a little contrast */
.bg-ink .audit-card-dark {
  border-color: rgba(244, 241, 234, 0.14);
  background: var(--ink-3);
}

.badge {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* "Not ready yet? Get 3 free findings first →" under the cards in section 10 */
.cards-footnote {
  margin-top: 36px;
}

@media (min-width: 640px) {
  .audit-card {
    padding: 40px;
  }

  .badge {
    right: 40px;
  }
}

@media (min-width: 768px) {
  .audit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ----- 4. 3 free findings (also used inside the popup) -----
   Deliberately quieter than the audit cards: no shadow, smaller heading, ink button. */
.free-band {
  padding: 0 0 72px;
  background: var(--cream);
}

.free-card {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
}

.free-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.free-step:focus {
  outline: none;
}

.free-text {
  max-width: 40rem;
  margin-top: 8px;
  color: var(--muted);
}

.free-kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.free-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.6;
}

.field input {
  width: 100%;
  min-height: 54px; /* same height as the button beside it */
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px stops iPhones zooming in on the field */
}

.field input::placeholder {
  color: #9A9CA2;
}

.field input:focus {
  border-color: var(--ink);
  background: var(--white);
}

.field input[aria-invalid="true"] {
  border-color: var(--orange-dark);
  box-shadow: 0 0 0 1px var(--orange-dark);
}

/* Shown under a field when what's typed can't be used (set by js/main.js) */
.field-error {
  margin-top: 6px;
  color: var(--orange-deep);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
}

.free-submit {
  justify-content: space-between;
  width: 100%;
}

.free-small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.revenue-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.revenue-option {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.revenue-option:hover {
  border-color: var(--ink);
}

/* A button that looks like a plain text link (the "Skip" option) */
.link-button {
  margin-top: 14px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

@media (min-width: 640px) {
  .revenue-options {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  .free-band {
    padding-bottom: 104px;
  }

  .free-card {
    padding: 36px 40px;
  }

  .free-title {
    font-size: 1.75rem;
  }

  /* Store URL, Email and the button side by side.
     Lined up from the top, so an error under one field doesn't push the others around;
     the button drops by one label height to sit level with the fields. */
  .free-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: start;
  }

  .free-submit {
    width: auto;
    margin-top: calc(var(--text-sm) * 1.6 + 6px);
  }
}

/* ----- 5. Where the money usually hides -----
   Four wide cards, one per row, laid out like findings in an audit deck:
   the area on the left, "best practice vs the maths" on the right.
   Phones: everything stacks. */
.money-grid {
  display: grid;
  gap: 16px;
}

.money-card {
  display: grid;
  gap: 20px;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.money-card h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}

.money-text {
  max-width: 26rem;
  margin-top: 8px;
  color: var(--muted);
}

/* "Best practice vs the maths" callout */
.vs {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.vs-row {
  padding: 16px 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* "Best practice" / "The maths", with a grey or orange dot */
.vs-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.vs-label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grey-icon);
}

.vs-best {
  color: var(--muted);
}

.vs-maths {
  border-top: 1px solid var(--border);
  background: rgba(240, 118, 80, 0.07);
  font-weight: 500;
}

.vs-maths .vs-label {
  color: var(--ink);
}

.vs-maths .vs-label::before {
  background: var(--orange);
}

/* "Built for Australian stores" strip */
.au-strip {
  margin-top: 16px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.au-strip strong {
  color: var(--ink);
}

@media (min-width: 640px) {
  .money-card {
    padding: 32px;
  }

  /* The two halves of the callout side by side */
  .vs {
    grid-template-columns: 1fr 1fr;
  }

  .vs-maths {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .au-strip {
    padding: 18px 32px;
  }
}

@media (min-width: 960px) {
  .money-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 40px;
    padding: 32px 32px 32px 40px;
  }
}

/* ----- 6. Comparison: typical audit vs Dozen -----
   Phones: each row is a small card, "Typical audit" on top, "Dozen" underneath.
   768px and up: a normal two-column table with the Dozen column in ink. */
.compare {
  display: block;
  border-collapse: separate;
  border-spacing: 0;
}

.compare thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.compare tbody,
.compare tr,
.compare td {
  display: block;
}

.compare tr {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.compare td {
  padding: 16px 18px;
  text-align: left;
}

.compare td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
}

.compare .col-typical {
  background: var(--paper);
  color: var(--muted);
}

.compare .col-dozen {
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
}

.compare td.col-dozen::before {
  color: var(--orange);
}

.compare .col-dozen .mark::before {
  background: rgba(240, 118, 80, 0.2);
}

.compare .col-dozen .mark::after {
  background-color: var(--orange);
}

@media (min-width: 768px) {
  .compare {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .compare thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .compare tbody {
    display: table-row-group;
  }

  .compare tr {
    display: table-row;
  }

  .compare th,
  .compare td {
    display: table-cell;
    padding: 20px 28px;
    text-align: left;
    vertical-align: top;
  }

  .compare td::before {
    content: none;
  }

  .compare th {
    padding-top: 28px;
    font-size: var(--text-md);
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .compare .col-typical {
    background: none;
  }

  .compare th.col-dozen {
    border-radius: 24px 24px 0 0;
    color: var(--orange);
  }

  .compare tbody td.col-typical {
    border-top: 1px solid var(--border);
  }

  .compare tbody td.col-dozen {
    border-top: 1px solid var(--line-dark);
  }

  .compare tbody tr:last-child td {
    padding-bottom: 28px;
  }

  .compare tbody tr:last-child .col-dozen {
    border-radius: 0 0 24px 24px;
  }
}

/* ----- 7. How it works -----
   A real sequence, so no cards: a rule across the top of each step and a large orange numeral. */
.steps {
  display: grid;
  gap: 36px;
}

.step {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.step-number {
  display: block;
  color: var(--orange-dark);
  font-size: 3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step h3 {
  margin-top: 20px;
  font-size: var(--text-lg);
}

.step p {
  max-width: 22rem;
  margin-top: 8px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ----- 8. Good fit / not a fit ----- */
.fit-grid {
  display: grid;
  gap: 16px;
}

.fit-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
}

/* "Not a fit" sits back: no white fill */
.fit-card-quiet {
  background: transparent;
}

.fit-card h3 {
  margin-bottom: 20px;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .fit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .fit-card {
    padding: 36px;
  }
}

/* ----- 9. Ongoing support (low-key: paper background, one slim card) ----- */
.support-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.support-card {
  display: grid;
  gap: 28px;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
}

.support-title {
  margin-top: 8px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.support-text {
  margin-top: 10px;
  color: var(--muted);
}

.support-price {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.support-price strong {
  color: var(--ink);
}

.no-wrap {
  white-space: nowrap;
}

.support-intro .button {
  margin-top: 24px;
}

.support-ticks {
  gap: 10px;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .support-section {
    padding: 80px 0;
  }

  .support-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 36px 40px;
  }
}

/* ----- 11. FAQ ----- */
.faq-layout .section-head {
  margin: 0 0 32px;
  text-align: left;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--orange-deep);
}

/* The + / − in a small orange-tinted circle */
.faq-list summary::after {
  content: "+";
  display: grid;
  position: absolute;
  top: 50%;
  right: 0;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange-tint);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "\2212"; /* minus sign */
}

.faq-list details p {
  max-width: 42rem;
  padding: 0 48px 22px 0;
  color: var(--muted);
}

.faq-list details a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .faq-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

/* ----- 12. Footer ----- */
.site-footer {
  padding: 64px 0 32px;
  background: var(--ink);
  color: var(--cream);
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  width: auto;
  height: 30px;
}

.footer-tagline {
  margin-top: 16px;
  color: var(--cream-muted);
}

.footer-email {
  margin-top: 6px;
}

.footer-email a {
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--cream-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----- Policy pages: privacy.html, terms.html and refunds.html ----- */
.legal {
  padding: 48px 0 88px;
}

.legal-inner {
  max-width: calc(44rem + 2 * var(--gutter)); /* about 75 characters a line */
  margin: 0;
}

.legal-updated {
  color: var(--muted);
  font-size: var(--text-sm);
}

.legal h1 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 3vw + 1.6rem, 3.75rem); /* 40px on phones up to 60px */
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.legal-lead {
  margin-top: 20px;
  font-size: var(--text-md);
}

.legal h2 {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal h2 + p,
.legal h2 + ul,
.legal ul + p,
.legal p + p,
.legal p + ul {
  margin-top: 14px;
}

.legal li {
  position: relative;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 10px;
}

.legal li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.legal-inner a {
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-inner a:hover {
  text-decoration-thickness: 2px;
}

.footer-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 768px) {
  .legal {
    padding: 72px 0 120px;
  }

  .legal-inner {
    margin: 0 auto 0 max(0px, (100% - var(--container)) / 2);
  }
}

/* ----- Free-findings popup -----
   Phones: a slim bar that slides up from the bottom; tapping "Get them" opens the form.
   768px and up: a centred popup with the form showing straight away. */
.popup {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  max-height: 90vh;
  max-height: 90dvh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain; /* scrolling inside the popup doesn't scroll the page behind it */
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 -12px 32px -12px rgba(21, 23, 28, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup.is-in {
  transform: none;
}

.popup::backdrop {
  background: rgba(21, 23, 28, 0.55);
}

.popup-inner {
  position: relative;
  /* the extra bottom space clears the home bar on newer iPhones */
  padding: 12px 60px max(12px, env(safe-area-inset-bottom)) 18px;
}

.popup-close {
  display: grid;
  position: absolute;
  top: 8px;
  right: 10px;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--grey-tint);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.popup-close:hover {
  background: var(--border);
}

.popup-close::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: var(--ink);
  -webkit-mask: var(--icon-cross) center / contain no-repeat;
  mask: var(--icon-cross) center / contain no-repeat;
}

.popup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.popup-bar-text {
  min-width: 0; /* lets the text wrap instead of pushing the button off screen */
  font-size: 0.9375rem;
  line-height: 1.35;
}

.popup-bar-button {
  flex: none;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.popup-bar-button:hover {
  background: var(--ink-2);
}

.popup-body {
  display: none;
}

/* Phones, after tapping "Get them": swap the bar for the form */
.popup.is-expanded .popup-inner {
  padding: 24px 20px max(20px, env(safe-area-inset-bottom));
}

.popup.is-expanded .popup-bar {
  display: none;
}

.popup.is-expanded .popup-body {
  display: block;
}

/* Inside the popup the free-findings card loses its own border and padding */
.popup .free-card {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.popup .free-title {
  padding-right: 44px; /* keeps the heading clear of the close button */
}

@media (min-width: 768px) {
  .popup {
    inset: 0;
    width: min(560px, calc(100% - 48px));
    height: fit-content;
    max-height: calc(100vh - 48px);
    margin: auto;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 30px 80px -20px rgba(21, 23, 28, 0.45);
    opacity: 0;
    transform: translateY(12px);
  }

  .popup.is-in {
    opacity: 1;
    transform: none;
  }

  .popup-inner,
  .popup.is-expanded .popup-inner {
    padding: 36px;
  }

  .popup-close {
    top: 16px;
    right: 16px;
  }

  .popup-bar {
    display: none;
  }

  .popup-body {
    display: block;
  }

  /* In the narrower popup the fields stack */
  .popup .free-form {
    grid-template-columns: 1fr;
  }

  .popup .free-submit {
    width: 100%;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .popup,
  .popup-close,
  .popup-bar-button,
  .revenue-option {
    transition: none;
  }
}
