/* ==========================================================================
   go.touchpointsales.com.au
   One accent colour. Type and whitespace carry the design.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --orange:      #F67300;
  --orange-dark: #D96400;
  --ink:         #0D0D1C;
  --navy:        #212240;
  --cloud:       #E9F0F5;
  --white:       #FFFFFF;

  /* Derived. Muted text that still clears WCAG AA on its own background. */
  --muted-light: #55566E;                    /* on white and on cloud       */
  --muted-dark:  rgba(255, 255, 255, 0.72);  /* on ink                      */
  --gold:        #F5B301;
  --hairline:    rgba(33, 34, 64, 0.14);
  --hairline-dk: rgba(255, 255, 255, 0.14);

  /* Orange that either carries white text or sits on a light background.
     Brand default is the same #F67300, which is under the WCAG AA contrast
     threshold. To pass AA everywhere (Lighthouse accessibility 100), change
     these two lines to #B85A00 and #9A4B00. Nothing else needs touching, and
     the orange on the dark sections stays exactly as it is. See the README. */
  --orange-strong:      var(--orange);
  --orange-strong-dark: var(--orange-dark);

  --head: "neulis-sans-black", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1080px;
  --radius: 20px;
  --section-pad: clamp(5rem, 10vw, 9rem);
}

/* --- Reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; }

blockquote { margin: 0; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--orange-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Type ----------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 900;
  margin: 0 0 0.6em;
  color: inherit;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem);  line-height: 1.06; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; }

.lead   { font-size: 1.1875rem; }
.micro  { font-size: 0.9375rem; line-height: 1.5; color: var(--muted-light); }
.micro--onink { color: var(--muted-dark); }

.eyebrow {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.measure { max-width: 62ch; }

/* --- Layout --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: var(--section-pad); }

.section--white { background: var(--white); color: var(--navy); }
.section--cloud { background: var(--cloud); color: var(--navy); }
.section--ink   { background: var(--ink);   color: var(--white); }

.section--ink .micro { color: var(--muted-dark); }

.section p { max-width: 62ch; }

/* --- Button --------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--orange-strong);
  color: var(--white);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 1.1rem 2.25rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.btn:hover,
.btn:focus-visible { background: var(--orange-strong-dark); transform: translateY(-1px); }

.btn--full { display: block; width: 100%; }

@media (max-width: 599px) {
  .btn { display: block; width: 100%; padding-inline: 1.25rem; }
}

/* --- Scroll reveal -------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms ease, transform 300ms ease;
}

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

/* ==========================================================================
   The qualifying bar, above everything
   ========================================================================== */

.pillar {
  background: var(--orange);
  color: var(--ink);
  text-align: center;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
}

.pillar p {
  margin: 0;
  max-width: none;
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

/* ==========================================================================
   3.1 Hero

   The hero is sized to land the whole thing, trust row included, inside one
   screen. Its vertical rhythm is driven by --v, one unit of viewport height,
   so everything compresses together on a short screen instead of pushing the
   trust row off the bottom. svh where it is supported, because it accounts
   for the phone browser's own chrome.
   ========================================================================== */

.hero { --v: 1vh; }

@supports (height: 1svh) {
  .hero { --v: 1svh; }
}

.hero {
  padding-block:
    clamp(1.75rem, calc(4 * var(--v)), 3.5rem)
    clamp(2.5rem, calc(5 * var(--v)), 5rem);
}

.hero__inner { text-align: center; }

.hero__inner p { margin-inline: auto; }

.hero__logo {
  width: 140px;
  height: auto;
  margin: 0 auto clamp(1.25rem, calc(3 * var(--v)), 2.25rem);
}

.hero__title { margin-bottom: clamp(0.5rem, calc(1.6 * var(--v)), 0.9rem); }

/* The one word the whole page turns on. */
.hero__title .accent { color: var(--orange); }

.hero__sub {
  max-width: 54ch;
  margin: 0 auto clamp(1.25rem, calc(3 * var(--v)), 2.25rem);
  color: var(--muted-dark);
  font-size: clamp(1.0625rem, 3vw, 1.125rem);
  line-height: 1.55;
}

.hero__cta { margin: clamp(1.25rem, calc(3 * var(--v)), 2rem) 0 0; }

/* Video facade */

/* The frame around the Vidalytics player. The player sets its own height from
   the 56.25% padding on its container, so this only constrains the width. */

.video {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #14141f;
  position: relative;
}

@media (min-width: 900px) and (min-height: 700px) {
  /* 45% of the screen height, in 16:9. Keeps the video the biggest thing on
     screen without shunting the trust row below the fold. 80 is 45 x 16/9. */
  .video { max-width: min(900px, max(560px, calc(80 * var(--v)))); }
}

/* Trust row.
   Three across on a phone, icon over label. One line with dividers once
   there is room for it. */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: clamp(1.5rem, calc(3.5 * var(--v)), 2.5rem) 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted-dark);
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.trust__icon {
  display: block;
  color: var(--orange);
  flex: none;
}

.trust__icon svg { display: block; width: 20px; height: 20px; }
.trust__icon .trust__stars { width: auto; height: 17px; }

/* Short screens: compress the hero's breathing room further rather than let
   the trust row slide under the fold. */

@media (max-height: 780px) {
  .hero {
    padding-block:
      clamp(1.25rem, calc(3.2 * var(--v)), 3.5rem)
      clamp(1.5rem, calc(3 * var(--v)), 5rem);
  }

  .hero__logo {
    width: 126px;
    margin-bottom: clamp(1rem, calc(2.4 * var(--v)), 2.25rem);
  }

  .trust { margin-top: clamp(1.1rem, calc(2.6 * var(--v)), 2.5rem); }
}

@media (min-width: 640px) {
  .trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .trust__item { flex-direction: row; gap: 0.6rem; }

  .trust__item + .trust__item::before {
    content: "";
    width: 1px;
    height: 1.15em;
    margin-right: 1rem;
    background: var(--hairline-dk);
  }

  .trust__icon svg { width: 22px; height: 22px; }
  .trust__icon .trust__stars { width: auto; height: 18px; }
}

/* ==========================================================================
   3.2 Proof
   ========================================================================== */

.proof {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

@media (min-width: 860px) {
  .proof { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.proof__copy { max-width: 62ch; }

.proof__copy h2 { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.proof__bridge { margin: 0 0 clamp(2.25rem, 4vw, 3rem); max-width: 46ch; }

.proof__wide { grid-column: 1 / -1; margin-top: clamp(1rem, 3vw, 2rem); }

.result--wide { display: grid; gap: 0.75rem clamp(2rem, 5vw, 4rem); }

@media (min-width: 760px) {
  .result--wide { grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); align-items: start; }
  .result--wide p { max-width: 62ch; }
  .result--wide .result__label { margin-bottom: 0; }
}

.proof__figure img { border-radius: var(--radius); width: 100%; }
.proof__figure figcaption { margin-top: 1rem; }

@media (max-width: 859px) {
  .proof__figure { max-width: 320px; }
}

.proof__cta {
  margin: clamp(3.5rem, 7vw, 5rem) 0 0;
  max-width: none;
  text-align: center;
}

/* The two numbers-led stories, stacked down the left of the portrait. */

.result__num {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange-strong);
  margin: 0;
}

.result__label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin: 0.65rem 0 1.5rem;
}

/* Testimonials */

.quotes {
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  margin-top: clamp(4.5rem, 9vw, 7rem);
  padding-top: clamp(4.5rem, 9vw, 7rem);
  border-top: 1px solid var(--hairline);
}

@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.quote blockquote { position: relative; padding-top: 2.5rem; }

.quote blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.35em;
  left: -0.06em;
  font-family: var(--head);
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  color: var(--orange-strong);
}

.quote blockquote p { font-size: 1.0625rem; max-width: 46ch; }

.quote__by {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
}

.quote__who { display: grid; gap: 0.3rem; }

.stars { display: block; color: var(--gold); }
.stars svg { display: block; width: 88px; height: 15px; fill: currentColor; }

.quote__by img {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
}

/* A wordmark cannot be read inside a 76px square, so logo attributions get a
   wider box and are contained rather than cropped. */
.quote__by--logo img {
  width: 112px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

/* Client logos */

.clients {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid var(--hairline);
}

.clients__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-align: center;
  max-width: none;
  margin: 0 0 clamp(2.5rem, 5vw, 3.25rem);
}

/* A short orange rule above it, the same mark the share image uses. It gives
   the heading something to sit under so it reads as a section, not a caption. */
.clients__title::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange-strong);
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
}

.marquee { overflow: hidden; }

/* The fade only earns its place while the row is actually moving. */
.marquee.is-running {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  width: max-content;
}

.marquee__track img {
  height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.78;
}

.marquee.is-running .marquee__track {
  animation: marquee 64s linear infinite;
}

.marquee.is-running:hover .marquee__track,
.marquee.is-running:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* No JS, or reduced motion: a wrapped, centred row instead of a marquee. */
.no-js .marquee__track {
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
  gap: 2rem clamp(2rem, 4vw, 3rem);
}

/* ==========================================================================
   3.3 How it works
   ========================================================================== */

.steps {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.step { display: grid; gap: 0.75rem 2.5rem; }

@media (min-width: 720px) {
  .step { grid-template-columns: 6rem minmax(0, 1fr); }
}

.step__num {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange-strong);
  display: block;
}

.step__body h3 { margin-bottom: 0.5em; }
.step__body p { max-width: 58ch; }

.steps__note {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 54ch;
}

@media (min-width: 720px) {
  .steps__note { margin-left: 8.5rem; }
}

/* ==========================================================================
   3.4 Guarantee
   ========================================================================== */

.guarantee__promise { max-width: 30ch; margin-bottom: 2.5rem; }

.guarantee__sig { width: 120px; height: auto; margin-bottom: 0.5rem; }

/* ==========================================================================
   3.6 FAQ
   ========================================================================== */

.faq {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--hairline);
}

.faq__item { border-bottom: 1px solid var(--hairline); }

.faq__q { margin: 0; font-size: inherit; }

.faq__q button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.6rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.faq__q button:hover { color: var(--orange-strong-dark); }

.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.25em;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--orange-strong);
  translate: -50% -50%;
  transition: opacity 200ms ease, rotate 200ms ease;
}

.faq__icon::before { width: 20px; height: 3px; }
.faq__icon::after  { width: 3px; height: 20px; }

.faq__item.is-open .faq__icon::after { opacity: 0; rotate: 90deg; }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}

.faq__panel > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 300ms;
}

.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__item.is-open .faq__panel > div { visibility: visible; }

.faq__panel p { padding-bottom: 1.9rem; max-width: 62ch; }

.no-js .faq__panel { grid-template-rows: 1fr; }
.no-js .faq__panel > div { visibility: visible; }
.no-js .faq__icon { display: none; }

/* ==========================================================================
   3.7 Closing
   ========================================================================== */

.closing h2 { max-width: 22ch; }
.closing__body { color: var(--muted-dark); max-width: 54ch; }
.closing__cta { margin: 2.5rem 0 0; }

/* ==========================================================================
   3.8 Footer
   ========================================================================== */

.footer {
  background: var(--white);
  padding: 2.5rem clamp(1.25rem, 5vw, 2.5rem) 3rem;
  text-align: center;
}

.footer p {
  margin: 0;
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--muted-light);
}

.footer a { color: var(--muted-light); text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: var(--navy); }

/* ==========================================================================
   3.9 Mobile sticky bar
   ========================================================================== */

.stickybar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline);
  transform: translateY(100%);
  transition: transform 250ms ease;
}

.stickybar.is-up { transform: none; }

.stickybar .btn { padding-block: 0.95rem; }

@media (min-width: 768px) { .stickybar { display: none; } }

@media (max-width: 767px) { .footer { padding-bottom: 6.5rem; } }

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }

  .marquee.is-running { -webkit-mask-image: none; mask-image: none; }
  .marquee.is-running .marquee__track { animation: none; }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    gap: 2rem clamp(2rem, 4vw, 3rem);
  }
}

/* ==========================================================================
   The quiz (/quiz)
   Same language as the landing page: white, one accent, type doing the work.
   ========================================================================== */

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

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: 4px;
  background: rgba(33, 34, 64, 0.1);
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--orange-strong);
  transition: width 350ms ease;
}

.qhead { padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 0; }
.qhead img { width: 34px; height: 34px; }

.qmain {
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(1.75rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem) clamp(4rem, 8vw, 6rem);
}

.qstate--wide { max-width: none; }

.qstate h1 { font-size: clamp(1.5rem, 4.5vw, 2.6rem); line-height: 1.12; letter-spacing: -0.015em; }
.qstate h1:focus { outline: none; }

.qcount {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1.25rem;
}

.qtitle { margin-bottom: clamp(2rem, 5vw, 2.75rem); }

/* Answers */

.qanswers { display: grid; gap: 0.75rem; }

.qanswer {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--hairline);
  border-radius: 999px;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.qanswer:hover {
  border-color: var(--orange-strong);
  transform: translateY(-1px);
}

.qanswer.is-chosen {
  border-color: var(--orange-strong);
  background: var(--orange-strong);
  color: var(--white);
}

.qanswers.is-locked { pointer-events: none; }

@media (max-width: 520px) {
  .qanswer { border-radius: 20px; padding: 1rem 1.25rem; font-size: 1rem; }
}

.qback {
  margin-top: 2rem;
  padding: 0.35rem 0;
  background: none;
  border: 0;
  font-size: 0.9375rem;
  color: var(--muted-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.qback:hover { color: var(--navy); }

/* Lead capture */

.qsub { color: var(--muted-light); margin-bottom: clamp(2rem, 5vw, 2.75rem); }

.qform { display: grid; gap: 1.35rem; }

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
}

.field__opt { font-weight: 400; color: var(--muted-light); }

.field input,
.field select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--body);
  font-size: 1.0625rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--hairline);
  border-radius: 14px;
  transition: border-color 160ms ease;
}

.field input:focus,
.field select:focus { outline: none; border-color: var(--orange-strong); }

.field input[aria-invalid] { border-color: #C8341A; }

.field__error { font-size: 0.875rem; color: #C8341A; margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qform .btn { margin-top: 0.5rem; }
.qform__note { text-align: center; margin: 0; }

/* Result: the score ring */

/* The ring sits beside the headline at every width, with the supporting line
   spanning underneath. Stacking it on a phone pushed the calendar 750px down
   the page, so nobody saw it without hunting for it. */
.score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.score h1 { margin: 0; }

.score > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted-light);
  font-size: clamp(1rem, 3vw, 1.125rem);
  line-height: 1.55;
  max-width: 62ch;
}

.score__ring {
  position: relative;
  width: clamp(92px, 24vw, 168px);
  height: clamp(92px, 24vw, 168px);
  flex: none;
}

.score__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.score__track,
.score__value { fill: none; stroke-width: 10; }

.score__track { stroke: var(--cloud); }

.score__value {
  stroke: var(--orange-strong);
  stroke-linecap: round;
  /* 2 pi r, r = 52. Starts empty; quiz.js sets the offset for the real score. */
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.score__num {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  margin: 0;
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

/* Result: the five bars */

.breakdown {
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 3.25rem);
  border-top: 1px solid var(--hairline);
}

.breakdown__title {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.25rem);
}

.bars { display: grid; gap: 1.4rem; }

.bar__area {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.bar__track {
  height: 10px;
  border-radius: 999px;
  background: var(--cloud);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  /* A zero score still shows a nub, so the bar reads as scored badly rather
     than as a bar that failed to render. */
  min-width: 10px;
  border-radius: 999px;
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bar--red   .bar__fill { background: #D9482B; }
.bar--amber .bar__fill { background: var(--orange-strong); }
.bar--green .bar__fill { background: #1F7A47; }

.bar__note { margin: 0.6rem 0 0; color: var(--muted-light); font-size: 0.9375rem; max-width: 62ch; }

/* Result: booking, and the honest version of it */

.booking,
.notfit {
  margin-top: clamp(1.5rem, 3.5vw, 3rem);
  padding-top: clamp(1.5rem, 3.5vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.booking h2,
.notfit h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 0.5em; }

.booking__sub,
.notfit p { color: var(--muted-light); max-width: 58ch; font-size: clamp(1rem, 3vw, 1.125rem); }

.booking__frame {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.booking__frame iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

@media (max-width: 600px) {
  .booking__frame iframe { min-height: 860px; }
}

.quizpage .footer { border-top: 1px solid var(--hairline); margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .progress__bar,
  .score__value,
  .bar__fill { transition: none; }
}

/* ==========================================================================
   /thanks: the Google Ads conversion page
   ========================================================================== */

.thankspage { background: var(--ink); color: var(--white); }

.thanks {
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(5rem, 16vh, 9rem) clamp(1.25rem, 5vw, 2.5rem) clamp(3rem, 8vh, 5rem);
  text-align: center;
}

.thanks__logo { width: 150px; height: auto; margin: 0 auto clamp(2.5rem, 6vh, 4rem); }

.thanks h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; }

.thanks__body { color: var(--muted-dark); margin: 0 auto; max-width: 46ch; }

.footer--onink { background: var(--ink); }
.footer--onink p { color: var(--muted-dark); }
.footer--onink a { color: var(--muted-dark); }
.footer--onink a:hover { color: var(--white); }
