/* Travel Quest Africa proposal. Tokens follow mockup/DESIGN.md. */

@font-face {
  font-family: "Switzer";
  src: url("fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("fonts/switzer-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Colour tokens */
:root {
  --deep: #121110;
  --canvas: #faf9f7;
  --white: #ffffff;
  --ink: #121110;
  --deep-soft: #55524d;
  --white-soft: #c2c1c0;
  --rule-on-light: #e6e4e0;
  --rule-on-dark: #3a3836;
  --edge-on-light: #86827c;
  --edge-on-dark: #8f8d8a;
  --deep-hover: #2e2d2c;
  --sun: #3c3b98;
  --sun-hover: #2e2e7a;
  --sun-ink: #ffffff;
  --sun-text: #3c3b98;
  --focus: #3c3b98;
  --tint: #efeef8;
  --error: #b3261e;
  --disabled-bg: #e6e4e0;
  --disabled-ink: #6b6965;

  --font: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --r-control: 5px;
  --r-pill: 6px;

  --stack-1: 0.5rem;
  --stack-2: 1rem;
  --stack-3: 1.5rem;
  --stack-4: 2.5rem;
  --stack-5: 4rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 3rem + 7vw, 9rem);
  --container: 82.5rem;
}

/* 1. Vermilion on paper */

/* 2. Cobalt on cool white */

/* 3. Pine on warm paper */


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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--deep-soft) var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
fieldset,
legend {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th {
  text-align: left;
  font-weight: inherit;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
button {
  font: inherit;
  color: inherit;
}
svg {
  display: block;
}

h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}
p,
li,
dd,
td {
  text-wrap: pretty;
}

::selection {
  background: var(--deep);
  color: var(--white);
}

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

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

.print-only {
  display: none;
}

/* Sheets ------------------------------------------------------------ */

.sheet {
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule-on-light);
}
.sheet-deep {
  background: var(--canvas);
  color: var(--ink);
}
.sheet-canvas {
  background: var(--canvas);
  color: var(--ink);
}
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.h2 {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  max-width: 18ch;
}
.h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 38rem;
}
.h2 + .lead {
  margin-top: var(--stack-3);
}
.small {
  font-size: 0.875rem;
}
.mark {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ico {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  font-weight: 500;
  text-decoration: none;
}
.arrow-link .ico {
  width: 1rem;
  height: 1rem;
}
.arrow-link:hover {
  text-decoration: underline;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .arrow-link .ico {
    transition: transform 200ms var(--ease);
  }
  .arrow-link:hover .ico {
    transform: translateY(3px);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.25rem;
  padding: 0 1.625rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--sun-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 180ms var(--ease);
}
.pill:hover {
  background: var(--sun-hover);
}
.pill:active {
  transform: translateY(1px);
}
.pill:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: var(--r-pill);
}
.pill:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-ink);
  cursor: not-allowed;
}
.pill:disabled:hover {
  background: var(--disabled-bg);
}

/* Hero -------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--canvas);
  color: var(--ink);
}
.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--stack-3);
  min-height: 4.5rem;
}
.hero-bar-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.hero-bar-from {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--deep-soft);
}
.hero-bar-from .mark {
  color: var(--ink);
}
/* Phone first: lede, then the four terms as one ruled list. */
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stack-4);
  align-content: center;
  padding-block: var(--stack-4) var(--stack-5);
}
.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
  text-wrap: balance;
}
.hero .lead {
  margin-top: var(--stack-3);
  max-width: 32rem;
  color: var(--deep-soft);
}
.hero-link {
  margin-top: var(--stack-3);
}
.hero-link .pill {
  gap: 0.625rem;
  text-decoration: none;
}
/* Phone: keep the first term inside the first screen. */
@media screen and (max-width: 767px) {
  .hero {
    min-height: 0;
  }
  .hero-main {
    gap: var(--stack-3);
    padding-block: var(--stack-2) var(--stack-4);
  }
  .hero .lead-more {
    display: none;
  }
  .hero-terms dl > div {
    padding-block: 1rem;
  }
}
.hero-terms dl {
  border-bottom: 1px solid var(--rule-on-light);
}
.hero-terms dl > div {
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule-on-light);
}
.hero-terms dt {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-terms dd {
  margin-top: 0.25rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--deep-soft);
}

@media screen and (min-width: 1024px) {
  .hero-main {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
    padding-block: clamp(3rem, 8vh, 6rem);
  }
  .hero .lead {
    margin-top: var(--stack-4);
  }
  .hero-terms dl > div {
    padding-block: 1.375rem;
  }
}

/* Offers ------------------------------------------------------------ */

.offer-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.offer-price {
  display: block;
  margin-top: 0.375rem;
  font-size: clamp(2.25rem, 1.5rem + 2.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--ink);
}
.offer-blurb {
  display: block;
  margin-top: var(--stack-2);
  font-size: 0.9375rem;
  color: var(--deep-soft);
  max-width: 21rem;
  text-wrap: pretty;
}
/* Compose ----------------------------------------------------------- */

.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: var(--stack-5);
}
.compose legend {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--stack-3);
}

.compose-spec {
  margin-top: var(--stack-3);
  max-width: 38rem;
}
.compose-form {
  margin-top: var(--stack-4);
}
.offer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
/* Desktop: the three cards share rows (head, blurb, keys) so their parts line up. */
@media screen and (min-width: 900px) {
  .offer-cards {
    grid-template-rows: auto auto auto;
    row-gap: 0;
  }
  .offer-card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
  .pick {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    align-items: start;
  }
}
.offer-card {
  position: relative;
  padding: 1.5rem 1.375rem 0.75rem;
  border: 1px solid var(--edge-on-light);
  border-radius: var(--r-control);
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease);
}
.offer-card:hover {
  border-color: var(--ink);
}
.pick {
  display: block;
  cursor: pointer;
}
.offer-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: center;
}
.pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pick-radio {
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.pick-radio::after {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform 180ms var(--ease);
}
.offer-head .offer-price {
  grid-column: 1 / -1;
}
.keys {
  margin-top: var(--stack-3);
  font-size: 0.9375rem;
}
.keys li {
  padding-block: 0.375rem;
  border-top: 1px solid var(--rule-on-light);
}
.keys .keys-lead {
  font-weight: 500;
}
.offer-card:has(input:checked) {
  background: var(--tint);
  border-color: var(--sun);
  box-shadow: inset 0 0 0 1px var(--sun);
}
.offer-card:has(input:checked) .pick-radio::after {
  transform: scale(1);
}
.offer-card:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.fold {
  position: relative;
  margin-top: var(--stack-2);
  border-top: 1px solid var(--rule-on-light);
}
.fold > summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.625rem;
  border-right: 1.5px solid var(--deep-soft);
  border-bottom: 1.5px solid var(--deep-soft);
  transform: translateY(-0.15rem) rotate(45deg);
}
.fold[open] > summary::after {
  transform: translateY(0.05rem) rotate(225deg);
}
.fold > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.fold-body {
  padding-bottom: 1rem;
  font-size: 0.875rem;
}
.fold-list li {
  padding-block: 0.25rem;
}
.all-note {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--deep-soft);
}
/* Phone: a card that is not selected stays compact. */
@media screen and (max-width: 767px) {
  .offer-card:not(:has(input:checked)) .keys {
    display: none;
  }
}

.folds .fold {
  margin-top: 0;
}
.folds .fold:last-child {
  border-bottom: 1px solid var(--rule-on-light);
}
.folds .fold > summary {
  font-size: 1.0625rem;
}
.fold-body {
  max-width: 40rem;
  font-size: 0.9375rem;
}
.fold-body p + p,
.fold-body p + .fold-list {
  margin-top: 0.5rem;
}

.opts {
  border-top: 1px solid var(--rule-on-light);
}
.opt {
  border-bottom: 1px solid var(--rule-on-light);
}
.opt label {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: start;
  padding-block: 1.125rem;
  cursor: pointer;
}
.opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.opt-box {
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.125rem;
  border: 1px solid var(--edge-on-light);
  border-radius: var(--r-control);
  display: grid;
  place-items: center;
  color: var(--sun-ink);
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}
.opt-box .ico {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
  opacity: 0;
}
.opt label:hover .opt-box {
  border-color: var(--ink);
}
.opt input:checked ~ .opt-box {
  background: var(--sun);
  border-color: var(--sun);
}
.opt input:checked ~ .opt-box .ico {
  opacity: 1;
}
.opt input:focus-visible ~ .opt-box {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.opt-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.opt-desc {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.9375rem;
  color: var(--deep-soft);
  max-width: 34rem;
}
.opt-avail {
  display: none;
}
.opt-price,
.opt-incl {
  font-size: 1.0625rem;
  font-weight: 500;
  white-space: nowrap;
}
.opt-incl {
  display: none;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--deep-soft);
}
.opt.is-locked label,
.opt.is-locked input {
  cursor: default;
}
.opt.is-locked .opt-price {
  display: none;
}
.opt.is-locked .opt-incl {
  display: block;
}
.opt.is-included .opt-box {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}
.opt.is-included .opt-box .ico {
  opacity: 1;
}
.opt.is-covered .opt-box {
  border-style: dashed;
  opacity: 0.6;
}
.opt.is-covered .opt-name {
  color: var(--deep-soft);
}

.compose-note {
  margin-top: var(--stack-3);
  font-size: 0.9375rem;
  color: var(--deep-soft);
  max-width: 34rem;
}
.compose-note a {
  color: var(--ink);
}
.compose-note[hidden] {
  display: none;
}

.receipt {
  position: sticky;
  top: 1.5rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule-on-light);
  border-radius: var(--r-control);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.receipt ::selection {
  background: var(--deep);
  color: var(--white);
}
.receipt-empty {
  margin-top: var(--stack-2);
  color: var(--deep-soft);
}
.receipt-lines {
  margin-top: var(--stack-3);
  border-top: 1px solid var(--rule-on-light);
}
.receipt-lines li {
  display: flex;
  justify-content: space-between;
  gap: var(--stack-3);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule-on-light);
}
.receipt-lines li span:last-child {
  white-space: nowrap;
  font-weight: 500;
}
.receipt-lines li.is-incl span:last-child {
  font-weight: 400;
  color: var(--deep-soft);
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--stack-3);
  margin-top: var(--stack-3);
}
.receipt-total-label {
  font-size: 1.0625rem;
  font-weight: 500;
}
.receipt-total output {
  font-size: clamp(2.5rem, 1.75rem + 2.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--sun-text);
}
.receipt-steps {
  margin-top: var(--stack-3);
  border-top: 1px solid var(--deep);
}
.receipt-steps div {
  display: flex;
  justify-content: space-between;
  gap: var(--stack-3);
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--rule-on-light);
  font-size: 0.9375rem;
}
.receipt-steps dt {
  color: var(--deep-soft);
}
.receipt-steps dd {
  font-weight: 500;
  white-space: nowrap;
}
.receipt-ref {
  margin-top: var(--stack-2);
  font-size: 0.875rem;
  color: var(--deep-soft);
}
.receipt .pill {
  width: 100%;
  margin-top: var(--stack-3);
}
.receipt .pill:focus-visible {
  outline-color: var(--focus);
}
.receipt-hint {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--error);
}
.receipt-hint:empty {
  display: none;
}
.receipt [hidden] {
  display: none;
}

/* How you pay ------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: var(--stack-5);
}
.step-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.step-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-right: calc(clamp(1.5rem, 3vw, 3rem) * -1);
  background: var(--rule-on-light);
}
.step:last-child .step-mark::after {
  margin-right: 0;
}
.step h3 {
  margin-top: var(--stack-3);
}
.step p {
  margin-top: 0.75rem;
  color: var(--deep-soft);
  max-width: 24rem;
}
.step .step-mark {
  margin-top: 0;
  color: var(--ink);
  max-width: none;
}
.step .step-amount {
  margin-top: var(--stack-2);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.step-amount[hidden] {
  display: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split-rule {
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--rule-on-light);
}
.sheet-deep .split-rule {
  border-top-color: var(--rule-on-light);
}
.sheet-deep .split-rule:first-of-type,
.split-first {
  margin-top: var(--stack-5);
}
.split-head p {
  margin-top: var(--stack-2);
  max-width: 26rem;
}

.rows {
  border-top: 1px solid var(--rule-on-light);
}
.sheet-deep .rows {
  border-top-color: var(--rule-on-light);
}
.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0.25rem var(--stack-3);
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--rule-on-light);
}
.sheet-deep .rows > div {
  border-bottom-color: var(--rule-on-light);
}
.rows dt {
  font-weight: 500;
}
.rows dd {
  color: var(--deep-soft);
  max-width: 34rem;
}
.sheet-deep .rows dd {
  color: var(--deep-soft);
}

/* Care + running costs tables (on Deepwater) ------------------------ */

.grid-table th,
.grid-table td {
  vertical-align: top;
  padding: 1.125rem 1.25rem 1.125rem 0;
  border-bottom: 1px solid var(--rule-on-light);
}
.grid-table th:last-child,
.grid-table td:last-child {
  padding-right: 0;
}
.grid-table thead th {
  padding-top: 0;
  border-bottom-color: var(--deep);
  font-weight: 500;
}
.grid-table tbody th {
  font-weight: 500;
}
.grid-table td {
  color: var(--deep-soft);
}
.grid-table td .ico {
  color: var(--ink);
}
.grid-table .is-no .ico {
  opacity: 0.6;
}
.care-price {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.care-name {
  display: block;
  font-size: 1.0625rem;
}
.care-per {
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--deep-soft);
}
.care,
.costs {
  table-layout: fixed;
}
.care col.c-label {
  width: 38%;
}
.care col.c-care {
  width: 24%;
}
.costs col.c-label {
  width: 30%;
}
.costs col.c-free {
  width: 32%;
}
.table-note {
  margin-top: var(--stack-3);
  font-size: 0.875rem;
  max-width: 40rem;
}

/* Fine print -------------------------------------------------------- */

.fine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-top: var(--stack-5);
}
.fine h3 + .plain {
  margin-top: var(--stack-3);
}
.plain {
  border-top: 1px solid var(--rule-on-light);
}
.plain li {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule-on-light);
}
.question {
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--rule-on-light);
}
.question p {
  margin-top: var(--stack-2);
  color: var(--deep-soft);
  max-width: 34rem;
}
.question .ask {
  margin-top: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}

/* Close ------------------------------------------------------------- */

.close-title {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  max-width: 17ch;
}
.close-body {
  margin-top: var(--stack-4);
  max-width: 38rem;
}
.close-body p + p {
  margin-top: var(--stack-2);
}
.close-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--stack-2) var(--stack-3);
  margin-top: var(--stack-4);
}
.close-status {
  font-size: 0.9375rem;
  color: var(--deep-soft);
}
.close-sign {
  margin-top: var(--stack-5);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.foot {
  margin-top: var(--stack-5);
  padding-top: var(--stack-3);
  border-top: 1px solid var(--rule-on-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--stack-1) var(--stack-3);
  color: var(--deep-soft);
}

/* Responsive (screen only: print keeps the wide layout) -------------- */

@media screen and (max-width: 1023px) {
}

@media screen and (max-width: 899px) {
  .offer-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .offer-card {
    padding-inline: 1.125rem;
  }
  .compose-grid,
  .split,
  .fine {
    grid-template-columns: minmax(0, 1fr);
  }
  .receipt {
    position: static;
  }
  .split-rule,
  .question {
    padding-top: 0;
    border-top: 0;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .step {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    padding-bottom: var(--stack-4);
    position: relative;
  }
  .step::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: 2.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: var(--rule-on-light);
  }
  .step:last-child::before {
    display: none;
  }
  .step:last-child {
    padding-bottom: 0;
  }
  .step-mark {
    grid-row: 1 / span 3;
    align-items: flex-start;
  }
  .step-mark::after {
    display: none;
  }
  .step h3 {
    margin-top: 0;
  }
  .step h3,
  .step p {
    grid-column: 2;
  }
  .step .step-mark {
    grid-column: 1;
  }
}

@media screen and (max-width: 767px) {
  .hero-bar {
    min-height: 4rem;
  }
  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.375rem;
    padding-block: 1rem;
  }
  .hero-bar-from {
    justify-content: flex-start;
    font-size: 0.875rem;
  }
  /* Caps directly above the H1 would read as an eyebrow on phones. */
  .hero-bar-from .mark {
    font-size: inherit;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--deep-soft);
  }
  .hero-bar-title {
    font-size: 0.9375rem;
  }
  .opt.is-locked .opt-incl {
    grid-column: 2;
    margin-top: 0.375rem;
  }
  .hero .lead {
    font-size: 1.125rem;
  }
  .lead {
    font-size: 1.125rem;
  }

  .rows > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-table th,
  .grid-table td {
    padding-right: 0.75rem;
  }
  .care-per {
    display: block;
  }

  .costs,
  .costs tbody {
    display: block;
  }
  .costs thead,
  .costs colgroup {
    display: none;
  }
  .costs tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.375rem;
    padding-block: 1.125rem;
    border-bottom: 1px solid var(--rule-on-light);
  }
  .costs tbody tr:first-child {
    border-top: 1px solid var(--rule-on-light);
  }
  .costs th,
  .costs td {
    padding: 0;
    border-bottom: 0;
  }
  .costs td::before {
    content: attr(data-label) " ";
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
  }

  .pill {
    width: 100%;
  }
  .close-action {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (hover: none) {
  .offer-card:hover {
    border-color: var(--edge-on-light);
  }
  .offer-card:has(input:checked):hover {
    border-color: var(--sun);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .pill:active {
    transform: none;
  }
}

/* Print: the frozen PDF version -------------------------------------- */

@page {
  size: A4;
  margin: 16mm 15mm 18mm;
}

@media print {
  html {
    font-size: 10.5px;
  }
  body {
    background: var(--white);
    color: var(--ink);
  }
  .screen-only,
  .receipt,
  .compose-note,
  .close-action,
  .step-amount {
    display: none !important;
  }
  .print-only {
    display: block;
  }
  table.print-only {
    display: table;
  }

  .sheet,
  .hero {
    background: var(--white) !important;
    color: var(--ink) !important;
    padding-block: 0;
    min-height: 0;
    display: block;
  }
  .wrap {
    max-width: none;
    padding-inline: 0;
  }
  .sheet {
    margin-top: 9mm;
    padding-top: 7mm;
    border-top: 1px solid var(--deep);
  }
  .sheet-deep .soft,
  .sheet-deep .rows dd,
  .hero .lead,
  .hero-bar-from,
  .hero-terms dd,
  .grid-table td,
  .care-per,
  .opt-desc,
  .foot,
  .close-status {
    color: var(--deep-soft) !important;
  }
  .rows,
  .rows > div,
  .sheet-deep .rows,
  .sheet-deep .rows > div,
  .grid-table th,
  .grid-table td,
  .opts,
  .opt,
  .hero-terms dl,
  .hero-terms dl > div,
  .foot,
  .sheet-deep .split-rule {
    border-color: var(--rule-on-light) !important;
  }
  .grid-table thead th {
    border-bottom-color: var(--deep) !important;
  }
  .grid-table td .ico {
    color: var(--deep);
  }

  .hero-bar {
    min-height: 0;
    padding-bottom: 5mm;
    border-bottom: 1px solid var(--deep);
  }
  .hero-main {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 10mm;
    padding-block: 10mm 8mm;
  }
  .hero h1 {
    font-size: 3.4rem;
    letter-spacing: -0.035em;
  }
  .hero .lead {
    margin-top: 5mm;
    font-size: 1.2rem;
  }
  .hero-terms dl > div {
    padding-block: 0.6rem;
  }

  .h2 {
    font-size: 2.3rem;
    letter-spacing: -0.03em;
    max-width: none;
  }
  .lead {
    font-size: 1.2rem;
  }
  .h2 + .lead,
  .lead.print-only {
    margin-top: 3mm;
  }
  .compose-grid,
  .steps,
  .fine,
  .split-first {
    margin-top: 7mm;
  }
  .split-rule,
  .question {
    margin-top: 8mm;
    padding-top: 6mm;
  }
  .offer-price {
    font-size: 2.3rem;
  }
  .offer-blurb {
    font-size: 1rem;
  }
  .grid-table th,
  .grid-table td,
  .rows > div {
    padding-block: 0.6rem;
  }

  .compose-grid {
    display: block;
  }
  .compose fieldset + fieldset {
    margin-top: 0;
  }
  .compose legend {
    display: none;
  }
  .pick-radio,
  .fold > summary::after {
    display: none;
  }
  .offer-card {
    padding: 1rem 1rem 0.5rem;
  }
  .offer-cards {
    gap: 4mm;
  }
  .offer-card .keys {
    display: block !important;
  }
  .opt label {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 0.7rem;
    cursor: auto;
  }
  .opt input,
  .opt-box {
    display: none;
  }
  .opt-incl {
    display: none !important;
  }
  .opt-price {
    display: block !important;
  }
  .opt-desc {
    max-width: none;
  }
  .opt-avail {
    display: block;
    margin-top: 0.2rem;
    font-size: 1rem;
    color: var(--ink);
  }
  .opt-name {
    color: var(--ink) !important;
  }

  .steps {
    gap: 8mm;
  }
  .step-mark::after {
    margin-right: -8mm;
  }
  .schedule {
    margin-top: 7mm;
  }
  .schedule th,
  .schedule td {
    padding: 0.6rem 1rem 0.6rem 0;
    border-bottom: 1px solid var(--rule-on-light);
  }
  .schedule thead th {
    font-weight: 500;
    border-bottom-color: var(--deep);
  }
  .schedule tbody th {
    font-weight: 400;
    color: var(--deep-soft);
  }

  .question .ask {
    font-size: 1.9rem;
  }
  .close-title {
    font-size: 2.6rem;
    letter-spacing: -0.032em;
    max-width: 22ch;
  }
  .close-body,
  .close-sign,
  .foot {
    margin-top: 6mm;
  }

  tr,
  .opt,
  .rows > div,
  .step,
  .plain li {
    break-inside: avoid;
  }
  h2,
  h3,
  .lead,
  thead {
    break-after: avoid;
  }
  .close-wrap {
    break-inside: avoid;
  }
  /* Single column flows across pages; a two-column grid gets pushed whole to the next page. */
  .split:not(.question) {
    display: block;
  }
  .split:not(.question) .split-head {
    margin-bottom: 4mm;
  }
  .split-head p {
    max-width: none;
  }
  .rows dd {
    max-width: none;
  }
  .hero-bar-from .mark {
    color: var(--ink);
  }
  a {
    text-decoration: none;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


/* Offers page: details.html (what each offer includes, line by line) ---- */

.arrow-link-side:hover .ico {
  transform: translateX(3px);
}
.offers-more {
  margin-top: var(--stack-2);
}

.dt-bar {
  min-height: 4.5rem;
}
.dt-back a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.dt-main {
  padding-block: var(--stack-4) var(--section-y);
}
.dt-title {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
}
.dt-intro {
  margin-top: var(--stack-3);
}
.dt-intro-2 {
  margin-top: 0.5rem;
}
.mx-wrap {
  margin-top: var(--stack-5);
}
.mx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-bottom: var(--stack-2);
  font-size: 0.875rem;
  color: var(--deep-soft);
}
.mx-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Included = filled square, not included = empty square (drawn in CSS). */
.sq {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  background: var(--ink);
  vertical-align: middle;
}
.sq.no {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--edge-on-light);
}

.mx {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.mx col.mx-c-val {
  width: 10rem;
}
.mx thead th,
.mx thead td {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1rem 0 0.75rem;
  background: var(--canvas);
  box-shadow: inset 0 -1px 0 var(--ink);
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mx-price {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--deep-soft);
}
.mx .mx-group th {
  padding: 3rem 0 0.5rem;
  border-bottom: 1px solid var(--rule-on-light);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.mx tbody:first-of-type .mx-group th {
  padding-top: 2rem;
}
.mx tbody th[scope="row"],
.mx tbody td {
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--rule-on-light);
  vertical-align: top;
}
.mx tbody th[scope="row"] {
  padding-right: 1.5rem;
  font-weight: 400;
}
.mx tbody td {
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5rem;
}
.mx tbody td .sq {
  margin-top: -0.125rem;
}
.mx tbody td.is-no {
  color: var(--deep-soft);
}

.mx-tabs {
  display: none;
}
.dt-end {
  margin-top: var(--stack-5);
  padding-top: var(--stack-4);
  border-top: 1px solid var(--rule-on-light);
}
.dt-end p + p {
  margin-top: var(--stack-3);
  max-width: 34rem;
}
.dt-end .pill {
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .dt-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem var(--stack-2);
    padding-block: 0.25rem;
  }
  .dt-main {
    padding-top: var(--stack-3);
  }
  .mx-wrap {
    margin-top: var(--stack-4);
  }

  .mx-tabs:not([hidden]) {
    position: sticky;
    top: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 calc(var(--gutter) * -1) 0.5rem;
    padding: 0.5rem var(--gutter);
    background: var(--canvas);
    box-shadow: inset 0 -1px 0 var(--rule-on-light);
  }
  .mx-tabs button {
    min-height: 2.75rem;
    padding: 0 0.5rem;
    border: 1px solid var(--edge-on-light);
    border-radius: var(--r-control);
    background: transparent;
    font-weight: 500;
    cursor: pointer;
    transition:
      background-color 180ms var(--ease),
      border-color 180ms var(--ease);
  }
  .mx-tabs button[aria-checked="true"] {
    background: var(--tint);
    border-color: var(--sun);
    box-shadow: inset 0 0 0 1px var(--sun);
  }

  /* One offer at a time: JS sets data-sel. Without JS all three columns stay. */
  .mx[data-sel] colgroup,
  .mx[data-sel] thead {
    display: none;
  }
  .mx[data-sel="essential"] [data-o]:not([data-o="essential"]),
  .mx[data-sel="advanced"] [data-o]:not([data-o="advanced"]),
  .mx[data-sel="complete"] [data-o]:not([data-o="complete"]) {
    display: none;
  }
  .mx[data-sel] tbody td {
    width: 6.5rem;
    padding-inline: 0.25rem;
  }
  .mx tbody th[scope="row"] {
    padding-right: 0.75rem;
  }
  .mx .mx-group th {
    padding-top: 2.25rem;
    font-size: 1.125rem;
  }
  .mx tbody:first-of-type .mx-group th {
    padding-top: 1rem;
  }
  .mx tbody td {
    font-size: 0.875rem;
  }
  .mx tr.is-off th[scope="row"],
  .mx tr.is-off td {
    color: var(--deep-soft);
  }
}

@media print {
  .mx thead th,
  .mx thead td {
    position: static;
    padding-block: 0.5rem;
  }
  .mx .mx-group th {
    padding-top: 1.4rem;
    break-after: avoid;
  }
  .mx tbody:first-of-type .mx-group th {
    padding-top: 1rem;
  }
  .mx tbody th[scope="row"],
  .mx tbody td {
    padding-block: 0.3rem;
  }
  .dt-main {
    padding-block: 5mm 0;
  }
  .dt-title {
    font-size: 2.3rem;
  }
  .mx-wrap {
    margin-top: 7mm;
  }
}

/* Details page, phone: label takes the width, the one value sits at the right edge. */
@media screen and (max-width: 767px) {
  .mx[data-sel] {
    table-layout: auto;
    width: 100%;
  }
  .mx[data-sel] tbody th[scope="row"] {
    width: auto;
  }
  .mx[data-sel] tbody td {
    width: 1%;
    padding-inline: 0.75rem 0;
    text-align: right;
    white-space: nowrap;
  }
}

/* Accent touches ----------------------------------------------------- */

.hero-terms dl > div:first-child {
  border-top: 2px solid var(--sun);
}
.step .step-mark {
  color: var(--sun-text);
  font-weight: 500;
}

/* Outlined button: a second action next to the primary one. */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--sun);
  border-radius: var(--r-pill);
  color: var(--sun-text);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease);
}
.btn-line .ico {
  flex: none;
  transition: transform 180ms var(--ease);
}
.btn-line:hover {
  background: var(--tint);
}
.btn-line:hover .ico {
  transform: translateX(3px);
}
.btn-line:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* The same with every offer: open grid, no rules ---------------------- */

.same {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stack-3);
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--rule-on-light);
}
.same dt,
.support-grid dt {
  font-weight: 500;
  color: var(--ink);
}
.same dd,
.support-grid dd {
  margin-top: 0.375rem;
  max-width: 26rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--deep-soft);
}

/* Support: the term as a statement, four items beside it -------------- */

.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stack-4) clamp(2rem, 5vw, 5rem);
  margin-top: var(--stack-5);
}
.support-term {
  margin-top: var(--stack-2);
  max-width: 16ch;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stack-3) clamp(1.5rem, 3vw, 3rem);
}
.support-not {
  grid-column: 1 / -1;
  max-width: 46rem;
  font-size: 0.9375rem;
  color: var(--deep-soft);
}
.support-not strong {
  font-weight: 500;
  color: var(--ink);
}

/* Shared block head: title left, one short paragraph right ------------ */

.care-block,
.costs-block {
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--rule-on-light);
}
.block-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stack-2) clamp(2rem, 5vw, 5rem);
  margin-bottom: var(--stack-4);
}
.block-head p {
  max-width: 36rem;
}

/* Care: two plans, same card language as the offers --------------------- */

.care-plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
.care-plan {
  padding: 1.5rem 1.375rem 0.75rem;
  border: 1px solid var(--edge-on-light);
  border-radius: var(--r-control);
}
.care-plan .care-per {
  display: inline;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--deep-soft);
}
.care-terms {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--deep-soft);
}

/* Running costs: the one real table, full width ------------------------ */

.costs-block .grid-table {
  width: 100%;
}

/* Terms: fine print, no rules ------------------------------------------ */

.fine {
  margin-top: var(--stack-4);
}
.fine .plain {
  border-top: 0;
}
.fine h3 + .plain {
  margin-top: var(--stack-2);
}
.fine .plain li {
  padding-block: 0.25rem;
  border-bottom: 0;
  color: var(--deep-soft);
}

/* The one question: a tinted panel, the only one on the page ----------- */

.question {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stack-3) clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 0;
  border-radius: var(--r-control);
  background: var(--tint);
}
.question .ask {
  color: var(--sun-text);
}

@media (min-width: 900px) {
  .same {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--stack-4) clamp(2rem, 4vw, 4rem);
  }
  .support {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--stack-4) clamp(2rem, 4vw, 4rem);
  }
  .support-not {
    grid-column: 2;
    padding-top: var(--stack-3);
    border-top: 1px solid var(--rule-on-light);
  }
  .block-head {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: baseline;
  }
  .care-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    row-gap: 0;
  }
  .care-plan {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
  .question {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
}

/* Round 2 ------------------------------------------------------------ */

/* Filled button whose label may wrap on narrow screens. */
.pill-wrap {
  gap: 0.625rem;
  height: auto;
  min-height: 3.25rem;
  padding-block: 0.75rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.pill-wrap .ico {
  flex: none;
}

/* Phone hint on compact cards. */
.pick-hint {
  display: none;
}

/* Support terms: one figure per offer. */
.support-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--stack-2);
  margin-top: var(--stack-3);
}
.support-terms dt {
  font-size: 0.875rem;
  color: var(--deep-soft);
}
.support-terms dd {
  margin-top: 0.125rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

@media screen and (max-width: 767px) {
  .offers-more .pill {
    display: flex;
    width: 100%;
  }
  .offer-card:not(:has(input:checked)) .pick-hint {
    display: block;
    margin-top: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sun-text);
  }

  /* Hero: one accent only (the button), more air around it. */
  .hero-main {
    gap: var(--stack-4);
    padding-top: var(--stack-3);
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero-terms dl > div:first-child {
    border-top: 1px solid var(--rule-on-light);
  }

  /* The question reads as a question, not a headline. */
  .question .ask {
    max-width: none;
    padding-top: var(--stack-3);
    border-top: 1px solid color-mix(in srgb, var(--sun) 22%, transparent);
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-wrap: pretty;
  }
}

/* Top bar: one type style for name, date and validity. */
.hero-bar-from .mark {
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--deep-soft);
}

/* Add-ons later: a visible panel under the options, a block after Care. */
.later-note {
  margin-top: var(--stack-3);
  padding: 1.25rem 1.375rem;
  background: var(--tint);
  border-radius: var(--r-control);
}
.later-note p {
  margin-top: 0.5rem;
  max-width: 38rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--deep-soft);
}
.later-block {
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--rule-on-light);
}
@media (min-width: 900px) {
  .later-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Quality band under the hero: what the site itself will be. */
.quality {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
  background: var(--white);
  border-block: 1px solid var(--rule-on-light);
}
.quality-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sun-text);
}
.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stack-3) clamp(1.5rem, 3vw, 3rem);
  margin-top: var(--stack-3);
}
.quality-grid dt {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quality-grid dd {
  margin-top: 0.375rem;
  max-width: 26rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--deep-soft);
}
@media (min-width: 600px) {
  .quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .quality-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Later block: items sit under the intro, in the same column as the other block heads. */
.later-block .block-head {
  margin-bottom: 0;
}
.later-block .later-grid {
  margin-top: var(--stack-3);
}

/* Offer card: one closing line that puts a figure on what is included. */
.keys .keys-sum {
  color: var(--sun-text);
  font-weight: 500;
}

/* Options in two groups, each with its own heading. */
.opts-group {
  margin-top: var(--stack-4);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sun-text);
}
#options legend + .opts-group {
  margin-top: var(--stack-2);
}
/* An option already in the offer is not clickable: no hover outline. */
.opt.is-included label:hover .opt-box {
  border-color: transparent;
}
.receipt-clear {
  margin-top: 0.75rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--deep-soft);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.receipt-clear:hover {
  color: var(--ink);
}
.receipt-clear:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.receipt-clear[hidden] {
  display: none;
}
@media print {
  .receipt-clear {
    display: none;
  }
}

/* Details page, by brick */

.bk-intro {
  max-width: 38rem;
}

/* Three-line summary: one row per offer. */
.bk-sum-wrap {
  margin-top: var(--stack-4);
}
.bk-sum {
  border-bottom: 1px solid var(--rule-on-light);
}
.bk-sum > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.375rem;
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule-on-light);
}
.bk-sum dt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.bk-sum dd {
  max-width: 40rem;
  line-height: 1.5;
}
.bk-price {
  flex: none;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--sun-text);
}
.bk-sum a,
.bk-note a {
  color: var(--sun-text);
}
.bk-sum a:hover,
.bk-note a:hover {
  color: var(--sun-hover);
}

/* Sections */
.bk-section {
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--rule-on-light);
  scroll-margin-top: 1rem;
}
.bk-h2 {
  margin-bottom: var(--stack-3);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
}

/* Base site: short lists under small headings. */
.bk-group {
  margin-bottom: var(--stack-4);
  padding-top: 1rem;
  border-top: 1px solid var(--rule-on-light);
  break-inside: avoid;
}
.bk-group h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.bk-group ul {
  margin-top: 0.625rem;
}
.bk-group li {
  max-width: 36rem;
  padding-block: 0.1875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--deep-soft);
}

/* Bricks: one card each, in three groups. */
.bk-gt {
  margin-top: var(--stack-4);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--sun-text);
}
.bk-h2 + .bk-gt {
  margin-top: 0;
}
.bk-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
.bk-card {
  padding: 1.375rem 1.25rem 0.5rem;
  border: 1px solid var(--edge-on-light);
  border-radius: var(--r-control);
  scroll-margin-top: 1.5rem;
}
.bk-card:target {
  background: var(--tint);
  border-color: var(--sun);
  box-shadow: inset 0 0 0 1px var(--sun);
}
.bk-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.bk-name {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.bk-tag {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--deep-soft);
}
.bk-lines {
  margin-top: 1rem;
}
.bk-lines li {
  padding-block: 0.4375rem;
  border-top: 1px solid var(--rule-on-light);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.bk-note {
  max-width: 46rem;
  margin-top: var(--stack-3);
  padding: 1rem 1.25rem;
  border-radius: var(--r-control);
  background: var(--tint);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Only in Complete: a short block, no price. */
.bk-only p {
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

@media screen and (min-width: 768px) {
  .bk-sum > div {
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
    gap: 0 clamp(2rem, 4vw, 4rem);
    align-items: baseline;
    padding-block: 1.25rem;
  }
  .bk-base {
    column-count: 2;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .bk-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media print {
  .bk-sum-wrap {
    margin-top: 6mm;
  }
  .bk-sum > div,
  .bk-card {
    break-inside: avoid;
  }
  .bk-sum a {
    text-decoration: underline;
  }
  .bk-section {
    margin-top: 8mm;
    padding-top: 6mm;
  }
  .bk-h2 {
    margin-bottom: 4mm;
    font-size: 1.8rem;
  }
  .bk-base {
    column-count: 2;
    column-gap: 8mm;
  }
  .bk-group {
    margin-bottom: 5mm;
  }
  .bk-gt,
  .bk-name {
    break-after: avoid;
  }
  .bk-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
  }
  .bk-card:target {
    background: none;
    border-color: var(--edge-on-light);
    box-shadow: none;
  }
}

/* Hero as a letter: one column, calm type, three terms, then the button. */
.hero.hero-letter {
  display: block;
  min-height: 0;
}
.letter {
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
.hero .letter-title {
  max-width: 26ch;
  font-size: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.letter-body {
  margin-top: var(--stack-3);
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
  color: var(--deep-soft);
}
.letter-terms {
  margin-top: var(--stack-4);
}
.letter-terms dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule-on-light);
}
.letter-terms dl > div {
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--rule-on-light);
}
.letter-terms dt {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.letter-terms dd {
  margin-top: 0.375rem;
  max-width: 30rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--deep-soft);
}
.letter-end {
  display: flex;
  flex-direction: column;
  gap: var(--stack-3);
  margin-top: var(--stack-4);
}
.letter-end .hero-link {
  margin-top: 0;
}
.letter-sign {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.letter-sign span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--deep-soft);
}
@media screen and (max-width: 767px) {
  .letter-end .pill {
    width: 100%;
  }
}
@media (min-width: 900px) {
  .letter-terms dl {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .letter-terms dl > div {
    padding-block: 1.5rem 0;
    border-bottom: 0;
  }
  .letter-end {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Wide screens: the letter always fills the first screen, centred. Taller content simply grows. */
@media screen and (min-width: 1024px) {
  .hero.hero-letter {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100svh;
  }
  .hero-letter .letter {
    align-self: center;
  }
}
