/*
 * Offer page. Layout and rhythm follow the product pages people know from consumer hardware:
 * one message per band, large centred headings, black and light-grey bands in turn, rounded
 * tiles, pill buttons, a slim bar with the price and the one action. The identity stays
 * Rational AI's: the logo, Inter, teal for every action, and the marketplace's cover colours,
 * which light the video and the solution cards.
 */
:root {
  --black: #000;
  --dark-tile: #161617;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --white: #fff;
  --grey: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --ring: #c7c7cc;
  --teal: #007f76;
  --teal-hover: #00665f;
  --mint: #8af0d6;
  --tint: #e3f6f2;
  --critical: #b42318;

  /* Cover colours; the audience picks the set. */
  --c1: 43 168 156;
  --c2: 11 30 74;
  --c3: 233 163 163;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --band: clamp(72px, 11vw, 148px);
  --bar: 52px;
}
[data-palette='0'] {
  --c1: 194 86 63;
  --c2: 58 31 92;
  --c3: 232 191 77;
}
[data-palette='2'] {
  --c1: 217 164 65;
  --c2: 110 143 58;
  --c3: 237 230 214;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  /* Black behind the translucent bar, which sits above the black opening. */
  background: var(--black);
  color: var(--ink);
  font: 400 1.0625rem/1.47 var(--sans);
  letter-spacing: -0.011em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--mint);
  color: var(--black);
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.1rem + 4vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--teal);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.hero :focus-visible,
.bar :focus-visible,
.machine :focus-visible {
  outline-color: var(--mint);
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 980px;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A band's heading: centred, with one line of explanation under it. */
.head {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.head p {
  max-width: 44em;
  margin: 18px auto 0;
  font-size: clamp(1.0625rem, 0.98rem + 0.5vw, 1.3125rem);
  line-height: 1.4;
  color: var(--ink-2);
}

/* Bands come in as the visitor reaches them; without scripts, or with reduced motion, they are simply there. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Controls ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  min-height: 32px;
  padding: 5px 14px;
  font-size: 0.8125rem;
}
.btn-lg {
  min-height: 48px;
  padding: 12px 26px;
}
.btn-wide {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
}
.btn-fill,
.btn-deep {
  background: var(--teal);
  color: #fff;
}
.btn-fill:hover,
.btn-deep:hover {
  background: var(--teal-hover);
}
.btn-line {
  border-color: var(--teal);
  background: none;
  color: var(--teal);
}
.btn-line:hover {
  background: var(--teal);
  color: #fff;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: default;
}
/* A text link that leads on: the chevron is drawn, not typed. */
.more,
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 1.0625rem;
  color: var(--teal);
  text-decoration: none;
}
.more::after {
  content: '';
  width: 0.42em;
  height: 0.74em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M1 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.more:hover,
.link-btn:hover {
  text-decoration: underline;
}
.more:hover::after {
  transform: translateX(3px);
}
.link-btn {
  font-size: 0.9375rem;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
}
.icon-btn:hover {
  background: rgb(127 127 127 / 16%);
}

/* ── Bar ──────────────────────────────────────────────────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(22 22 23 / 92%);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--on-dark);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}
.bar-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--bar);
}
.logo {
  flex: none;
}
.bar-nav {
  display: flex;
  gap: 26px;
  margin-right: auto;
  font-size: 0.8125rem;
}
.bar-nav a {
  color: var(--on-dark);
  opacity: 0.78;
  text-decoration: none;
  padding-block: 8px;
  transition: opacity 0.2s;
}
.bar-nav a:hover {
  opacity: 1;
}
.bar-price {
  font-size: 0.8125rem;
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Opening ──────────────────────────────────────────────────────────────── */
.hero {
  background: var(--black);
  color: var(--on-dark);
  text-align: center;
  /* clip, not hidden: hidden would make this band the scroller the video's timeline follows. */
  overflow: clip;
}
.hero-in {
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
}
.hero-to {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 600;
  color: var(--mint);
}
h1 {
  max-width: 13.5em;
  margin: 14px auto 0;
  font-size: clamp(2.5rem, 1rem + 6.2vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
}
.hero-sub {
  max-width: 33em;
  margin: 24px auto 0;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.36;
  color: #d2d2d7;
}
.hero-price {
  margin-top: 20px;
  font-size: 1.0625rem;
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 28px;
}
.hero .more {
  color: var(--mint);
}
.hero-media {
  position: relative;
  max-width: 1040px;
  margin: clamp(48px, 7vw, 84px) auto 0;
}
/* The cover colours, out of focus, behind the video. */
.hero-media::before {
  content: '';
  position: absolute;
  inset: 8% 2% -6%;
  background: linear-gradient(100deg, rgb(var(--c1)), rgb(var(--c2)) 48%, rgb(var(--c3)));
  filter: blur(72px);
  opacity: 0.75;
}
.video {
  position: relative;
  border-radius: clamp(16px, 2.6vw, 28px);
  overflow: hidden;
  background: var(--dark-tile);
  aspect-ratio: 16 / 9;
}
.video-play,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}
.video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.video-play:hover img {
  transform: scale(1.02);
}
.video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0%) 45%, rgb(0 0 0 / 72%) 100%);
}
.video-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  padding-left: 4px;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: var(--black);
  transition: transform 0.4s var(--ease);
}
.video-play:hover .video-btn {
  transform: scale(1.08);
}
.video-title {
  position: absolute;
  left: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(16px, 2.6vw, 28px);
  font-size: clamp(1rem, 0.9rem + 0.7vw, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}
.video-title small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #e8e8ed;
}

/* Motion, kept quiet. The opening arrives in order, once; the video settles to full size as it
   is scrolled into view; the machine's outline is drawn when its band is reached. */
.hero-to,
h1,
.hero-sub,
.hero-price,
.hero-actions,
.hero-media {
  animation: rise 1s var(--ease) both;
}
h1 {
  animation-delay: 0.06s;
}
.hero-sub {
  animation-delay: 0.14s;
}
.hero-price {
  animation-delay: 0.2s;
}
.hero-actions {
  animation-delay: 0.26s;
}
.hero-media {
  animation-duration: 1.4s;
  animation-delay: 0.34s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}
@supports (animation-timeline: view()) {
  .video {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 38%;
  }
  @keyframes settle {
    from {
      transform: scale(0.93);
    }
  }
}
.js .machine-size rect {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease) 0.25s;
}
.js .machine-size path,
.js .machine-size text,
.js .machine-size figcaption {
  opacity: 0;
  transition: opacity 0.9s ease 1.3s;
}
.js .machine-size.in rect {
  stroke-dashoffset: 0;
}
.js .machine-size.in path,
.js .machine-size.in text,
.js .machine-size.in figcaption {
  opacity: 1;
}
.js .machine-size.in path[stroke-dasharray] {
  opacity: 0.5;
}

/* ── Questionnaire ────────────────────────────────────────────────────────── */
.quiz {
  background: var(--grey);
  padding-block: var(--band);
}
.quiz-in {
  max-width: calc(780px + 2 * var(--gutter));
}
.quiz-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.quiz-steps li {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color 0.3s;
}
.quiz-steps li[data-state='done'] {
  background: var(--teal);
}
.quiz-steps li[data-state='now'] {
  background: var(--ink);
}
.quiz-body {
  margin-top: clamp(36px, 5vw, 56px);
}
.quiz-q {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-align: center;
}
.quiz-hint {
  margin-top: 8px;
  text-align: center;
  color: var(--ink-2);
}
.quiz-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.opt {
  position: relative;
  min-height: 60px;
  padding: 16px 46px 16px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ring);
  text-align: left;
  font-weight: 500;
  transition: box-shadow 0.18s;
}
.opt:hover {
  box-shadow: inset 0 0 0 1px var(--ink-2);
}
.opt[aria-pressed='true'] {
  box-shadow: inset 0 0 0 2px var(--teal);
}
/* The chosen answer carries a tick as well as the ring. */
.opt[aria-pressed='true']::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: var(--teal);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.6 3.6 7.4-8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.quiz-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 28px;
}
.quiz-step {
  animation: step-in 0.5s var(--ease);
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Results: the first one leads, the others follow as rows. */
.result-first {
  margin-top: 26px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
}
.result-first .cover {
  min-height: 150px;
}
.result-body {
  padding: 22px 24px 24px;
}
.result-why {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.result-rest {
  margin-top: 12px;
  display: grid;
  /* One column no wider than the questionnaire, whatever the length of a description. */
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.result-rest li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--white);
}
.swatch {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.result-rest .t {
  flex: 1;
  min-width: 0;
}
.result-rest b {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}
.result-rest small {
  display: -webkit-box;
  margin-top: 2px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-rest .btn {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 0.9375rem;
}

/* ── Marketplace ──────────────────────────────────────────────────────────── */
.market {
  background: var(--white);
  padding-block: var(--band);
}
.market-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 780px;
  margin: clamp(36px, 5vw, 56px) auto 0;
}
.search {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  color: var(--ink-2);
}
.search svg {
  position: absolute;
  left: 16px;
  pointer-events: none;
}
.search input,
.request input:not([type='checkbox']),
.chat-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  caret-color: var(--teal);
  transition: box-shadow 0.18s;
}
.search input {
  padding-left: 44px;
  background: var(--grey);
  box-shadow: none;
}
.search input::placeholder,
.chat-form textarea::placeholder {
  color: var(--ink-2);
}
.request input:not([type='checkbox']):hover {
  box-shadow: inset 0 0 0 1px var(--ink-2);
}
.search input:focus-visible,
.request input:not([type='checkbox']):focus-visible,
.chat-form textarea:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 2px var(--teal),
    0 0 0 4px rgb(0 127 118 / 16%);
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: #e8e8ed;
}
.seg button {
  min-height: 42px;
  padding: 6px 16px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: 0.9375rem;
  color: var(--ink);
}
.seg button[aria-pressed='true'] {
  background: var(--white);
  font-weight: 500;
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  min-height: 36px;
  padding: 6px 15px;
  border: 0;
  border-radius: 980px;
  background: none;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.875rem;
  color: var(--ink);
  transition:
    box-shadow 0.18s,
    background-color 0.18s,
    color 0.18s;
}
.chip:hover {
  box-shadow: inset 0 0 0 1px var(--ink-2);
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  box-shadow: none;
  color: var(--white);
}
.chip i {
  font-style: normal;
  opacity: 0.6;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}
.market-count {
  margin-top: 30px;
  font-size: 0.875rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 20px;
  margin-top: 14px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--grey);
  transition: transform 0.5s var(--ease);
}
.card:hover {
  transform: scale(1.015);
}
.card:has(.card-open:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 176px;
  padding: 20px 24px;
  color: #fff;
}
.cover .mark {
  align-self: flex-end;
  margin-bottom: auto;
  padding: 4px 11px;
  border-radius: 980px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}
.card-open {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-open::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card-open:focus-visible {
  outline: none;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  padding: 20px 24px 22px;
}
.card-body p {
  font-size: 0.9375rem;
  line-height: 1.42;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.tag {
  max-width: 100%;
  font-size: 0.8125rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-foot .go {
  flex: none;
  font-size: 0.9375rem;
  color: var(--teal);
}
.market-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.market-empty {
  max-width: 40em;
  margin: 28px auto 0;
  text-align: center;
  color: var(--ink-2);
}

/* ── The machine ──────────────────────────────────────────────────────────── */
.machine {
  background: var(--black);
  color: var(--on-dark);
  padding-block: var(--band);
}
.machine .head p {
  color: var(--on-dark-2);
}
.machine-size {
  max-width: 460px;
  margin: clamp(44px, 6vw, 72px) auto 0;
  color: var(--on-dark);
  text-align: center;
}
.machine-size svg {
  display: block;
  width: 100%;
  height: auto;
}
.machine-size text {
  fill: var(--on-dark-2);
  font: 500 10px var(--sans);
  font-variant-numeric: tabular-nums;
}
.machine-size figcaption {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--on-dark-2);
}
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(44px, 6vw, 72px);
}
.specs div {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 22px;
  background: var(--dark-tile);
}
.specs dd {
  order: -1;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: lining-nums;
}
.specs dd small {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--on-dark-2);
}
.specs dt {
  max-width: 22em;
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--on-dark-2);
}
.specs div:nth-child(3n + 2) {
  transition-delay: 0.08s;
}
.specs div:nth-child(3n) {
  transition-delay: 0.16s;
}
.specs-source {
  margin-top: 28px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--on-dark-2);
}
.specs-source .more {
  margin-left: 6px;
  font-size: 0.875rem;
  color: var(--mint);
}

/* ── Offer: options to pick, the total beside them ────────────────────────── */
.offer {
  background: var(--grey);
  padding-block: var(--band);
}
.offer-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(40px, 6vw, 72px);
}
.group + .group {
  margin-top: 40px;
}
.group h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.17;
  letter-spacing: -0.02em;
}
.group h3 span {
  color: var(--ink-2);
}
.plans {
  display: grid;
  gap: 12px;
}
.tile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 14px;
  padding: 18px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ring);
  text-align: left;
  transition: box-shadow 0.18s;
}
.plans .tile {
  margin-top: 0;
}
/* A machine shows its picture before its name. */
.tile-machine .tile-what {
  flex: 1;
}
.tile-pic {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--grey);
  color: var(--teal);
  overflow: hidden;
}
.tile-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tile-pic svg {
  width: 46px;
  height: auto;
}
@media (max-width: 480px) {
  .tile-pic {
    width: 64px;
  }
}
.plans {
  margin-top: 14px;
}
button.tile:hover {
  box-shadow: inset 0 0 0 1px var(--ink-2);
}
.tile[data-on],
.tile[aria-checked='true'],
button.tile[aria-checked='true']:hover {
  box-shadow: inset 0 0 0 2px var(--teal);
}
.tile-what b {
  display: block;
  font-weight: 600;
}
.tile-what small {
  display: block;
  max-width: 40em;
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.tile-price {
  flex: none;
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}
.tile-price b {
  display: block;
  font-weight: 400;
  white-space: nowrap;
}
.tile-price small,
.tile-price s {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.tile-price s:empty {
  display: none;
}
.chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.chosen .pick {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 5px 4px 14px;
  border-radius: 980px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 500;
}
.chosen .pick button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
}
.chosen .pick button:hover {
  background: var(--grey);
  color: var(--ink);
}
.chosen-note {
  flex-basis: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--ink);
  line-height: 1.45;
}
.chosen-label {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
button.tile[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: inset 0 0 0 1px var(--line);
}

.request {
  position: sticky;
  top: calc(var(--bar) + 24px);
  padding: clamp(24px, 3vw, 34px);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  scroll-margin-top: calc(var(--bar) + 24px);
}
.total {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.total-label {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.total-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-variant-numeric: lining-nums tabular-nums;
}
.total-sum output {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.total-sum s {
  order: 2;
  color: var(--ink-2);
}
.total-sum s:empty {
  display: none;
}
.total-month {
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.promo {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.promo b {
  color: var(--ink);
  font-weight: 600;
}
.request h2 {
  font-size: 1.5rem;
  line-height: 1.17;
  letter-spacing: -0.02em;
}
.request-lead {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.request form {
  display: grid;
  gap: 14px;
}
.request form > h2 + p {
  margin-bottom: 6px;
}
.request label {
  display: grid;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.request label i {
  font-style: normal;
  opacity: 0.8;
}
.request input[aria-invalid='true'] {
  box-shadow: inset 0 0 0 2px var(--critical);
}
.request .check {
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}
.request .check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal);
}
.form-error {
  font-size: 0.875rem;
  color: var(--critical);
}
.request-note {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.request-done p {
  margin-top: 10px;
  color: var(--ink-2);
}

.foot {
  background: var(--grey);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.75rem;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 92px;
}
.foot a {
  color: var(--ink);
}

/* ── Solution sheet ───────────────────────────────────────────────────────── */
.sheet {
  width: min(880px, calc(100vw - 32px));
  max-width: none;
  height: min(880px, calc(100dvh - 48px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}
.sheet::backdrop {
  background: rgb(0 0 0 / 48%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.sheet[open] {
  animation: sheet-in 0.5s var(--ease);
}
.sheet[open]::backdrop {
  animation: fade-in 0.35s;
}
@keyframes sheet-in {
  from {
    transform: translateY(32px) scale(0.98);
    opacity: 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.sheet-in {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sheet-cover {
  position: relative;
  flex: none;
  padding: 72px clamp(22px, 4vw, 40px) 30px;
}
.sheet-cover h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
}
.sheet-cover p {
  max-width: 36em;
  margin-top: 10px;
  color: #e8e8ed;
}
.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgb(255 255 255 / 20%);
  color: #fff;
}
.sheet-close:hover {
  background: rgb(255 255 255 / 34%);
}
/* While a solution is open the page behind it stays still: scrolling past the end of the sheet
   does not move on to the page. */
html:has(.sheet[open]) {
  overflow: hidden;
}
.sheet:focus-visible {
  outline: none;
}
.sheet-scroll {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 30px clamp(22px, 4vw, 40px) 36px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sheet-shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 8%),
    0 20px 40px -24px rgb(0 0 0 / 35%);
}
.sheet-shot img {
  width: 100%;
  height: auto;
}
.sheet-scroll figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.sheet-scroll h3 {
  margin-top: 34px;
  font-size: 1.3125rem;
  letter-spacing: -0.02em;
}
.sheet-scroll > p {
  max-width: 42em;
  margin-top: 8px;
}
.steps {
  margin-top: 6px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(s);
  font-weight: 600;
  color: var(--teal);
}
.steps b {
  display: block;
  font-weight: 600;
}
.steps span {
  color: var(--ink-2);
}
.asks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.asks li {
  width: fit-content;
  max-width: 100%;
  padding: 11px 16px;
  border-radius: 6px 18px 18px 18px;
  background: var(--grey);
}
.sheet-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(22px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.sheet-foot p {
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* ── Assistant ────────────────────────────────────────────────────────────── */
.chat-open {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 980px;
  background: rgb(29 29 31 / 88%);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%);
  color: var(--on-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease);
}
.chat-open svg {
  color: var(--mint);
}
.chat-open:hover {
  transform: scale(1.04);
}
.chat-open[aria-expanded='true'] {
  display: none;
}
.chat {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 46;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 32px));
  height: min(600px, calc(100dvh - 32px));
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 10%),
    0 30px 70px -20px rgb(0 0 0 / 45%);
  animation: chat-in 0.45s var(--ease);
  transform-origin: 100% 100%;
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
.chat > header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px 12px 20px;
  background: var(--ink);
  color: var(--on-dark);
}
.chat > header h2 {
  font-size: 0.9375rem;
  line-height: 1.3;
  letter-spacing: -0.011em;
}
.chat > header p {
  font-size: 0.75rem;
  color: var(--on-dark-2);
}
.chat iframe {
  flex: 1;
  width: 100%;
  border: 0;
}
.chat-log {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.msg {
  max-width: 88%;
  padding: 10px 15px;
  font-size: 0.9375rem;
  line-height: 1.42;
  animation: step-in 0.35s var(--ease);
}
.msg.bot {
  align-self: flex-start;
  border-radius: 6px 18px 18px 18px;
  background: var(--grey);
}
.msg p + p,
.msg p + ul,
.msg ul + p {
  margin-top: 8px;
}
.msg ul {
  margin-top: 4px;
  padding-left: 18px;
  list-style: disc;
}
.msg li + li {
  margin-top: 2px;
}
.msg a {
  color: var(--teal);
}
/* While the assistant searches: the same bubble, its text breathing. */
.msg-wait {
  color: var(--ink-2);
  animation: wait-breathe 1.6s ease-in-out infinite;
}
@keyframes wait-breathe {
  50% {
    opacity: 0.45;
  }
}
.chat-form textarea:disabled {
  opacity: 0.6;
}
.msg.me {
  align-self: flex-end;
  border-radius: 18px 6px 18px 18px;
  background: var(--teal);
  color: #fff;
}
.msg-picks {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.msg-picks button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.msg-picks button:hover {
  box-shadow: inset 0 0 0 1px var(--ink-2);
}
.msg-picks .swatch {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prompts button {
  padding: 8px 14px;
  border: 0;
  border-radius: 980px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
  text-align: left;
}
.prompts button:hover {
  box-shadow: inset 0 0 0 1px var(--ink-2);
}
.chat-form {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  resize: none;
  min-height: 44px;
  max-height: 120px;
  border-radius: 22px;
  background: var(--grey);
  box-shadow: none;
  font-size: 0.9375rem;
}
.chat-form .icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--teal);
  color: #fff;
}
.chat-form .icon-btn:hover {
  background: var(--teal-hover);
}

.debug {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 50;
  width: min(380px, calc(100vw - 24px));
  max-height: 42vh;
  overflow: auto;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgb(22 22 23 / 94%);
  color: var(--on-dark);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
}
.debug b {
  color: var(--mint);
  font-weight: 600;
}

/* ── Expired: the conditions no longer hold ───────────────────────────────── */
[data-state='expired'] [data-live] {
  display: none;
}
[data-state='expired'] .request {
  position: static;
  max-width: 480px;
  margin: 48px auto 0;
}
[data-promo-off] [data-promo] {
  display: none;
}

/* ── Narrow screens ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .offer-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .request {
    position: static;
  }
  .bar-nav {
    display: none;
  }
  .bar-price {
    margin-left: auto;
  }
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specs div:nth-child(n) {
    transition-delay: 0s;
  }
}
@media (max-width: 640px) {
  .bar-in {
    gap: 14px;
  }
  .hero-actions {
    flex-direction: column;
  }
  /* The frame is too small for the play button and the full title together. */
  .video-title > span {
    display: none;
  }
  .video-btn {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
  }
  .quiz-opts,
  .specs {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile {
    flex-direction: column;
    gap: 10px;
  }
  .tile-price {
    text-align: left;
  }
  .tile-price b,
  .tile-price small,
  .tile-price s {
    display: inline;
  }
  .tile-price small {
    margin-left: 6px;
  }
  .result-rest small {
    white-space: normal;
  }
  .chat-open span {
    display: none;
  }
  .chat-open {
    padding: 12px 14px;
  }
  .sheet {
    width: 100vw;
    height: calc(100dvh - 28px);
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }
  .sheet-foot p {
    display: none;
  }
  .sheet-foot .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .video {
    animation: none;
  }
  .js .machine-size rect {
    stroke-dashoffset: 0;
  }
  .js .machine-size path,
  .js .machine-size text,
  .js .machine-size figcaption {
    opacity: 1;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
