/* Public landing page + screening (and the test checkout page in public/pay/). Mobile first, RTL, tokens in tokens.css.
   The deep spruce stage holds the promise, a real workplace and the first question; everything below is proof:
   the businesses it's for, the four steps, what you get, the price, a person to talk to, the questions. */

:root {
  --gutter: 18px;
  --wrap: 1160px;
  --card-r: 24px;
  --lime: var(--copper);
  --lime-ink: var(--copper-ink);
  --lime-tint: var(--copper-tint);
  --deep: var(--brand-deep);
  --deep-2: oklch(0.21 0.04 168);
  --scrim: oklch(0.2 0.04 168);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --media-h: 236px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.linkbtn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- stage: header, hero, quiz card, trust row ---------------------------------------------- */

.stage {
  position: relative;
  isolation: isolate;
}

/* Phones: the band (header, photo, headline, trust row) is deep; the photo sits behind the header and fades into
   the band under the headline, and the quiz card overlaps the band's bottom edge.
   Wide screens: the band dissolves into the grid (display: contents) and .stage::before paints the deep area. */
.band {
  position: relative;
  isolation: isolate;
  background: var(--deep);
  padding-bottom: 68px;
}

.stage::before {
  display: none;
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--band, 100%);
  background:
    radial-gradient(70% 90% at 100% 0%, oklch(0.33 0.07 160 / 0.85), transparent 62%),
    var(--deep);
  z-index: -1;
}

.top {
  grid-area: top;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  color: var(--on-brand);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-brand);
  text-decoration: none;
}

.brand:hover {
  color: var(--on-brand);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__vial {
  fill: oklch(0.2 0.04 168 / 0.45);
  stroke: var(--lime);
  stroke-width: 2.4;
}

.brand__tick {
  stroke: var(--on-deep-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.brand__bubble {
  fill: var(--lime);
}

.brand__name {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px oklch(0.15 0.03 168 / 0.45);
}

.top__nav {
  display: none;
}

.top__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: oklch(0.2 0.04 168 / 0.55);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.22);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out);
}

.top__link:hover {
  color: var(--on-brand);
  background: oklch(0.2 0.04 168 / 0.8);
}

.hero {
  grid-area: hero;
  color: var(--on-brand);
}

/* Phones: the photo is the backdrop of the band's top; the headline starts over its faded lower edge. */
.hero__media {
  position: absolute;
  inset: 0 0 auto;
  height: var(--media-h);
  margin: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__media picture {
  display: block;
  height: 100%;
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 26%;
  animation: hero-in 1400ms var(--ease-quint) both;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.2 0.04 168 / 0.62) 0%,
    oklch(0.2 0.04 168 / 0.12) 30%,
    oklch(0.2 0.04 168 / 0.18) 46%,
    oklch(0.255 0.045 168 / 0.86) 70%,
    var(--deep) 100%
  );
  pointer-events: none;
}

@keyframes hero-in {
  from {
    transform: scale(1.06);
  }
}

.hero__caption {
  position: absolute;
  inset-inline-end: 10px;
  top: 64px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: oklch(0.2 0.04 168 / 0.55);
  color: oklch(1 0 0 / 0.86);
  font-size: 0.72rem;
}

.hero__chip {
  display: none;
}

.hero__tick {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
}

.hero__tick::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border-right: 2.2px solid var(--deep);
  border-bottom: 2.2px solid var(--deep);
  transform: rotate(45deg);
}

.hero__text {
  padding: calc(var(--media-h) - 128px) var(--gutter) 0;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--lime);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px oklch(0.89 0.175 122 / 0.18);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.95rem, 1.2rem + 3vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 17ch;
  text-shadow: 0 2px 18px oklch(0.15 0.03 168 / 0.35);
  animation: rise 900ms var(--ease-quint) both;
}

@keyframes rise {
  from {
    transform: translateY(14px);
  }
}

.hero__sub {
  margin-top: 12px;
  max-width: 44ch;
  color: var(--on-deep-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.quizwrap {
  grid-area: quiz;
  padding: 0 calc(var(--gutter) - 6px) 4px;
  margin-top: -52px;
  position: relative;
  z-index: 1;
}

.quiz {
  position: relative;
  background: var(--bg);
  border-radius: var(--card-r);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.6) inset, var(--shadow-3);
  padding: 12px 14px 16px;
  min-height: 380px;
}

.quiz__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
}

.quiz__back {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 10px 0 6px;
  margin-inline-start: -6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.quiz__back:hover {
  background: var(--surface);
}

.quiz__back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The virtual guide: an AI character, labelled as such, never a person or a quote. */
.guide {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.guide picture {
  flex: none;
  display: block;
}

.guide__face {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime);
}

.guide__text {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.guide__label {
  color: var(--lime-ink);
  font-size: 0.74rem;
  font-weight: 700;
}

.quiz__count {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Progress as a spirit level: the vial fills from the start side and the bubble rides at the edge. */
.level {
  position: relative;
  height: 10px;
  margin: 8px 0 16px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 2px oklch(0.2 0.03 168 / 0.12);
  overflow: hidden;
}

.level__fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(to left, var(--brand), oklch(0.56 0.12 150));
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 420ms var(--ease-quint);
}

.level__fill::after {
  content: "";
  position: absolute;
  inset-block: 1px;
  inset-inline-end: 1px;
  width: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.quiz__stage {
  position: relative;
}

.quiz__loading {
  display: grid;
  gap: 10px;
}

.skel {
  display: block;
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: skel 1.4s linear infinite;
}

.skel--title {
  height: 30px;
  width: 70%;
  margin-bottom: 8px;
}

.skel--opt {
  height: 56px;
}

@keyframes skel {
  to {
    background-position: -200% 0;
  }
}

.quiz__noscript {
  padding: var(--s-4);
  color: var(--ink-soft);
}

/* Phones: the trust lines sit under the card on the light page, so the first question stays above the fold.
   Wide screens: they sit in the deep band under the photo (see the 980px query). */
.trust {
  grid-area: trust;
  list-style: none;
  margin: 0;
  padding: 18px var(--gutter) 6px;
  display: grid;
  gap: 8px;
}

.trust__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.trust__item svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#trust-price {
  color: var(--ink);
  font-weight: 700;
}

/* Once the screening starts, the stage gives the card the whole screen. */
body:not([data-view="landing"]) .hero,
body:not([data-view="landing"]) .trust,
body:not([data-view="landing"]) .after {
  display: none;
}

body:not([data-view="landing"]) .band {
  padding-bottom: 40px;
}

body:not([data-view="landing"]) .quizwrap {
  margin-top: -30px;
}

/* ---- questions -------------------------------------------------------------------------- */

.q {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Only questions reached by tapping move in; the first one is simply there (never hidden behind an animation). */
.q.is-anim {
  animation: q-in 380ms var(--ease-quint) both;
}

.q.is-anim.is-back {
  animation-name: q-back;
}

@keyframes q-in {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes q-back {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
}

.q__title {
  display: block;
  padding: 0;
  font-weight: 700;
  font-size: clamp(1.28rem, 1.08rem + 1vw, 1.6rem);
  line-height: 1.22;
  color: var(--ink);
  text-wrap: balance;
}

.q__hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.q__hint:empty {
  display: none;
}

.opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.opts--list {
  grid-template-columns: minmax(0, 1fr);
}

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.opt--wide {
  grid-column: 1 / -1;
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt:hover {
  border-color: var(--brand);
  background: var(--surface);
}

.opt:active {
  transform: scale(0.985);
}

.opt.is-focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.opt__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.opt--multi .opt__box {
  border-radius: 7px;
}

.opt__box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-quint);
}

.opt.is-checked {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.opt.is-checked .opt__box {
  background: var(--lime);
  border-color: var(--brand);
}

.opt.is-checked .opt__box svg {
  opacity: 1;
  transform: scale(1);
}

.opt__text {
  flex: 1;
  min-width: 0;
}

.opt__tag {
  display: block;
  margin-top: 2px;
  color: var(--lime-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.q__next {
  margin-top: 16px;
}

/* ---- buttons ----------------------------------------------------------------------------- */

.btn--lime {
  background: var(--lime);
  color: var(--deep);
}

.btn--lime:hover {
  background: oklch(0.93 0.16 122);
  color: var(--deep);
}

.btn--quiet {
  background: transparent;
  color: var(--brand-ink);
  min-height: 46px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--quiet:hover {
  color: var(--brand);
}

/* ---- result ------------------------------------------------------------------------------ */

.result {
  animation: q-in 420ms var(--ease-quint) both;
}

.result__title {
  font-weight: 700;
  font-size: clamp(1.45rem, 1.15rem + 1.4vw, 1.9rem);
  line-height: 1.18;
  text-wrap: balance;
}

.result__title:focus {
  outline: none;
}

.reasons {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.reasons li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}

.reasons__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--lime);
}

.reasons__mark svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reasons--warn .reasons__mark {
  background: var(--warn-tint);
  box-shadow: inset 0 0 0 1.5px var(--warn-ink);
}

.reasons--warn .reasons__mark svg {
  stroke: var(--warn-ink);
}

.estimate {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--deep);
  color: var(--on-brand);
}

.estimate__label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.1);
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 700;
}

.estimate__value {
  margin-top: 8px;
  font-family: var(--font-figure);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.05rem + 1.3vw, 1.9rem);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.estimate__text {
  margin-top: 6px;
  color: var(--on-deep-soft);
  font-size: 0.95rem;
}

.notes {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.note {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--lime-tint);
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.45;
}

.note strong {
  color: var(--lime-ink);
}

.result__block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.result__block h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tracks li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
}

.tracks__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.tracks__fit {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.tracks__fit--maybe {
  background: var(--warn-tint);
  color: var(--warn-ink);
}

.tracks__why {
  color: var(--muted);
  font-size: 0.88rem;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ticks li {
  position: relative;
  padding-inline-start: 26px;
  line-height: 1.4;
}

.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: 0.18em;
  width: 6px;
  height: 12px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg);
}
.result__price {
  display: grid;
  gap: 4px;
}

.result__price strong {
  font-size: 1.05rem;
}

.result__price span {
  color: var(--ink-soft);
}

.result__price .price__example {
  margin-top: 6px;
}

.official {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.selfapply {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.disclaimer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.result__cta {
  position: sticky;
  bottom: 0;
  margin: 20px -14px -16px;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
  display: grid;
  gap: 6px;
  background: linear-gradient(to top, var(--bg) 78%, oklch(0.994 0.004 165 / 0));
  border-radius: 0 0 var(--card-r) var(--card-r);
}

.result__cta-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---- lead form ----------------------------------------------------------------------------- */

.lead {
  display: grid;
  gap: 14px;
  animation: q-in 380ms var(--ease-quint) both;
}

.lead__title {
  font-weight: 700;
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.8rem);
  line-height: 1.2;
}

.lead__title:focus {
  outline: none;
}

.lead__sub {
  color: var(--ink-soft);
  margin-top: -6px;
}

.field small {
  color: var(--muted);
  font-weight: 400;
}

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

.check a {
  color: var(--brand);
}

.lead .err:empty {
  display: none;
}

/* ---- below the stage: promises, businesses, steps, what you get, price, talk, questions --------- */

.after {
  display: block;
}

.after > section {
  padding: 56px var(--gutter);
}

.after h2 {
  font-weight: 700;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  max-width: 20ch;
}

/* The promises we control, on a lime strip: the brand's spirit-level vial, laid flat. */
.after > .ribbon {
  padding: 0;
  background: var(--lime);
  color: var(--deep);
}

.ribbon__list {
  list-style: none;
  margin: 0 auto;
  padding: 14px var(--gutter);
  max-width: var(--wrap);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.ribbon__list li {
  position: relative;
  padding-inline-start: 22px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}

.ribbon__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.32em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--deep);
  box-shadow: inset 0 0 0 3px var(--lime), 0 0 0 1.5px var(--deep);
}

/* Businesses it's for: real workplaces (AI-made, labelled), staggered rather than a uniform card grid. */
.biz__head {
  display: grid;
  gap: 14px;
}

.biz__head p {
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 1.05rem;
}

.biz__grid {
  list-style: none;
  margin: 28px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 6px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.biz__grid::-webkit-scrollbar {
  display: none;
}

.biz__item {
  position: relative;
  flex: 0 0 64vw;
  max-width: 300px;
  scroll-snap-align: start;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 420 / 521;
  isolation: isolate;
}

.biz__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-quint);
}

.biz__item:hover img {
  transform: scale(1.04);
}

.biz__item::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, oklch(0.2 0.04 168 / 0), oklch(0.2 0.04 168 / 0.88) 78%);
  z-index: 0;
  pointer-events: none;
}

.biz__cap {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 16px 18px 18px;
  color: var(--on-brand);
}

.biz__cap strong {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}

.biz__cap span {
  color: oklch(0.93 0.03 140);
  font-size: 0.95rem;
}

.biz__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Four steps on deep spruce: a real sequence, so the numbers earn their place. */
.after > .how {
  background:
    radial-gradient(60% 80% at 0% 100%, oklch(0.33 0.07 160 / 0.7), transparent 70%),
    var(--deep);
  color: var(--on-brand);
}

.how__steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.how__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  padding-bottom: 28px;
}

.how__step:last-child {
  padding-bottom: 0;
}

/* the level line that joins the steps */
.how__step::before {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--lime), oklch(0.89 0.175 122 / 0.15));
}

.how__step:last-child::before {
  display: none;
}

.how__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--deep);
  font-family: var(--font-figure);
  font-size: 1.6rem;
  line-height: 1;
}

.how__step h3 {
  align-self: end;
  margin-top: 4px;
  font-size: 1.28rem;
  font-weight: 700;
}

.how__step p {
  margin-top: 4px;
  color: var(--on-deep-soft);
  max-width: 40ch;
  line-height: 1.55;
}

.deliver {
  display: grid;
  gap: 32px;
}

.deliver__list {
  list-style: none;
  counter-reset: d;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.deliver__list li {
  counter-increment: d;
  position: relative;
  display: grid;
  gap: 2px;
  padding: 16px 0 16px;
  padding-inline-start: 52px;
  border-bottom: 1px solid var(--line);
}

.deliver__list li::before {
  content: counter(d);
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-family: var(--font-figure);
  font-size: 1.05rem;
}

.deliver__list strong {
  font-size: 1.12rem;
  font-weight: 700;
}

.deliver__list span {
  color: var(--ink-soft);
  max-width: 52ch;
}

.deliver__art {
  position: relative;
  margin: 0 0 28px;
}

.deliver__art picture {
  display: block;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 720 / 483;
}

.deliver__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A product fragment over the photo: the forecast the client gets, as shape only (no invented figures). */
.sheet {
  position: absolute;
  inset-inline-start: 14px;
  bottom: -26px;
  display: grid;
  gap: 8px;
  width: min(62%, 260px);
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--shadow-3);
}

.sheet__label {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}

.sheet__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 54px;
  padding-bottom: 2px;
  border-bottom: 1.5px dashed var(--line-strong);
}

.sheet__bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--brand);
  height: 40%;
}

.sheet__bars i:nth-child(2) { height: 52%; }
.sheet__bars i:nth-child(3) { height: 46%; }
.sheet__bars i:nth-child(4) { height: 60%; }
.sheet__bars i:nth-child(5) { height: 66%; }
.sheet__bars i:nth-child(6) { height: 72%; }
.sheet__bars i:nth-child(7) { height: 80%; }
.sheet__bars i:nth-child(8) { height: 92%; background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--brand); }

.sheet__signed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.84rem;
}

.price {
  background: var(--surface);
}

.price__grid {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.price__card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--card-r);
  background: var(--bg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.price__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(to left, var(--brand), var(--lime));
}

.price__headline {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}

.price__lines {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.price__lines li {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-variant-numeric: tabular-nums;
}

.price__lines li:first-child {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brand-ink);
}

.price__lines li:last-child {
  border-bottom: 0;
  font-weight: 700;
}

.price__example {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.promises li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
}

.promises li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.3em;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--brand);
}

.price__official {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 70ch;
}

/* A person to talk to, introduced by the virtual guide (labelled as virtual, never named or quoted). */
.after > .talk {
  display: grid;
  gap: 20px;
  justify-items: start;
  background: var(--lime-tint);
}

.talk__face {
  display: block;
}

.talk__face img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--lime), var(--shadow-2);
}

.talk__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--lime-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.talk__text > p:not(.talk__tag) {
  margin-top: 10px;
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 1.05rem;
}

.talk__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.faq__list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 0;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--brand-ink), var(--brand-ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--brand-ink), var(--brand-ink)) center / 2px 12px no-repeat,
    var(--brand-tint);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--brand-ink);
}

.faq details p {
  padding: 0 0 18px;
  color: var(--ink-soft);
  max-width: 68ch;
}

.closing {
  background:
    radial-gradient(60% 120% at 50% 120%, oklch(0.4 0.09 150 / 0.7), transparent 70%),
    var(--deep);
  color: var(--on-brand);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.after .closing h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
}

.closing p {
  color: var(--on-deep-soft);
}

.closing .btn {
  margin-top: 10px;
  min-width: min(100%, 300px);
}

/* ---- footer, cookie banner ------------------------------------------------------------------- */

.foot {
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
}

.foot__self {
  color: var(--ink);
  font-weight: 600;
}

.foot__notice {
  color: var(--muted);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.foot__links a,
.foot__links .linkbtn {
  color: var(--ink-soft);
  padding: 6px 0;
}

.cookie {
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: var(--z-banner);
  padding: 16px;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  font-size: 0.93rem;
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-inline: auto;
}

.cookie__actions {
  display: flex;
  gap: 10px;
}

.cookie__actions .btn {
  flex: 1;
  min-height: 46px;
}

/* ---- the test checkout page (public/pay/, mock provider only) --------------------------------- */

.pay {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 28px var(--gutter) 40px;
  background: var(--surface);
}

.pay__card {
  width: min(100%, 460px);
  padding: 22px 20px;
  border-radius: var(--card-r);
  background: var(--bg);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 14px;
}

.pay__test {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-tint);
  border: 2px dashed var(--warn-ink);
  color: var(--warn-ink);
  font-weight: 700;
  text-align: center;
}

.pay__title {
  font-weight: 700;
  font-size: 1.4rem;
}

.pay__amount {
  font-family: var(--font-figure);
  font-weight: 700;
  font-size: 2.2rem;
  font-variant-numeric: tabular-nums;
}

.pay__meta {
  color: var(--ink-soft);
  display: grid;
  gap: 4px;
}

.pay__actions {
  display: grid;
  gap: 10px;
}

.pay__note {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- larger screens ---------------------------------------------------------------------- */

@media (min-width: 480px) {
  :root {
    --media-h: 300px;
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --media-h: 360px;
  }

  .quizwrap {
    padding-inline: var(--gutter);
  }

  .quiz {
    padding: 22px 26px 26px;
  }

  .result__cta {
    margin-inline: -26px;
    margin-bottom: -26px;
    padding-inline: 26px;
  }

  .opts {
    gap: 12px;
  }

  .trust {
    grid-template-columns: 1fr 1fr;
  }

  .ribbon__list {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }

  .biz__item {
    flex-basis: 42vw;
  }

  .price__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .after > .talk {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 32px;
  }

  .talk__face img {
    width: 160px;
    height: 160px;
  }
}

@media (min-width: 980px) {
  :root {
    --card-r: 28px;
  }

  .band {
    display: contents;
  }

  .stage::before {
    display: block;
  }

  .stage {
    display: grid;
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 620px) minmax(0, 500px) minmax(var(--gutter), 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      ". top top ."
      ". hero quiz ."
      ". hero trust .";
    column-gap: 0;
    --band: 100%;
  }

  .top {
    padding-inline: 0;
    padding-block: 18px;
  }

  .brand__name {
    text-shadow: none;
  }

  .top__nav {
    display: flex;
    gap: 4px;
    margin-inline-start: auto;
  }

  .top__nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--on-deep-soft);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
  }

  .top__nav a:hover {
    color: var(--on-brand);
    background: oklch(1 0 0 / 0.08);
  }

  .top__link {
    background: var(--lime);
    box-shadow: none;
    color: var(--deep);
    font-weight: 700;
  }

  .top__link:hover {
    background: oklch(0.93 0.16 122);
    color: var(--deep);
  }

  /* Wide screens: headline first, then the photo as a framed scene with two product chips. */
  .hero {
    display: flex;
    flex-direction: column;
    padding: 36px 0 80px;
    padding-inline-end: 56px;
  }

  .hero__text {
    padding: 0;
  }

  .hero__title {
    text-shadow: none;
    max-width: 18ch;
  }

  .hero__media {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 0;
    height: auto;
    margin-top: 30px;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-2xl);
    overflow: visible;
  }

  .hero__media picture {
    border-radius: inherit;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px oklch(0.1 0.03 168 / 0.8);
  }

  .hero__img {
    object-position: 30% 30%;
  }

  .hero__media::after {
    border-radius: inherit;
    background: linear-gradient(to top, oklch(0.2 0.04 168 / 0.35), transparent 40%);
  }

  .hero__caption {
    top: auto;
    bottom: 14px;
    inset-inline-end: 16px;
  }

  .hero__chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 14px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-3);
    animation: chip-in 700ms var(--ease-quint) both;
  }

  .hero__chip--plan {
    top: 22px;
    inset-inline-start: -18px;
    animation-delay: 450ms;
  }

  .hero__chip--flow {
    bottom: 26px;
    inset-inline-start: 34px;
    animation-delay: 650ms;
  }

  @keyframes chip-in {
    from {
      opacity: 0;
      transform: translateY(10px) scale(0.96);
    }
  }

  .trust__item {
    color: var(--on-deep-soft);
    font-size: 0.86rem;
  }

  .trust__item svg {
    stroke: var(--lime);
  }

  #trust-price {
    color: var(--on-brand);
  }

  .trust {
    grid-template-columns: 1fr;
    align-self: start;
    gap: 14px;
    padding: 28px 8px 72px;
  }

  .quizwrap {
    margin-top: 36px;
    padding: 0;
    align-self: start;
  }

  .quiz {
    min-height: 440px;
  }

  body:not([data-view="landing"]) .stage {
    grid-template-areas:
      ". top top ."
      ". quiz quiz .";
    grid-template-rows: auto 1fr;
    --band: 200px;
  }

  body:not([data-view="landing"]) .quizwrap {
    position: relative;
    top: auto;
    justify-self: center;
    width: min(100%, 640px);
    margin-top: 8px;
    padding-bottom: 48px;
  }

  .after > section:not(.ribbon) {
    padding: 96px max(var(--gutter), calc((100% - var(--wrap)) / 2));
  }

  .ribbon__list {
    padding-block: 18px;
  }

  .ribbon__list li {
    font-size: 1rem;
  }

  .biz {
    display: grid;
    grid-template-columns: 1fr;
  }

  .biz__head {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 48px;
  }

  .biz__grid {
    margin: 44px 0 0;
    padding: 0 0 40px;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .biz__item {
    max-width: none;
  }

  .biz__item:nth-child(even) {
    transform: translateY(40px);
  }

  .how__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 48px;
  }

  .how__step {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 0;
  }

  .how__num {
    grid-row: auto;
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }

  /* the level line runs from each number to the next one */
  .how__step::before {
    inset-inline-start: 84px;
    inset-inline-end: -16px;
    top: 35px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(to left, var(--lime), oklch(0.89 0.175 122 / 0.2));
  }

  .how__step h3 {
    font-size: 1.35rem;
  }

  .deliver {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
  }

  .deliver__art {
    margin: 0;
  }

  .sheet {
    inset-inline-start: -36px;
    bottom: -32px;
  }

  .faq {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
  }

  .faq__list {
    margin-top: 0;
  }

  .after > .talk {
    padding-block: 72px;
  }
}

@media (min-width: 1280px) {
  .hero__title {
    font-size: 3.4rem;
  }
}
