/* Kromattic — public theme
   Concept: the company is a spectrum; each product is one band of colour.
   Structure: one sticky bar, content held to a centred width, rounded panels and cards,
   pill buttons, a product explorer, a closing panel and a footer in columns. */

/* One family for the whole site. Archivo is a plain, sturdy grotesque with a width axis:
   headlines use it a little wide and heavy, text uses it at normal width. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #17153a;
  --ink-soft: #4a4868;
  --paper: #ffffff;
  --mist: #eef0f7;
  --line: #d5d8e6;
  --error: #a3123f;

  --display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 72rem;
  /* side padding that holds content to --wrap while backgrounds still reach the edges */
  --edge: max(var(--gutter), calc(50vw - var(--wrap) / 2));
  --pad-y: clamp(3.5rem, 7vw, 6rem);
  --radius: 1.1rem;
  --radius-lg: 1.75rem;
  --pill: 999px;
  --measure: 62ch;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* the six hues, each with the text colour that passes 4.5:1 on it */
.hue-ink { --hue: #17153a; --on: #fff; }
.hue-cobalt { --hue: #2343c9; --on: #fff; }
.hue-forest { --hue: #0b6b4f; --on: #fff; }
.hue-marigold { --hue: #f5b301; --on: #17153a; }
.hue-rose { --hue: #d81e5b; --on: #fff; }
.hue-violet { --hue: #6b2fc0; --on: #fff; }
.hue-cyan { --hue: #35c4cf; --on: #17153a; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

/* Controls whose own text is white, on the white page: a ring in the text colour would
   not show, so these take an ink ring. */
.masthead .nav__action a:focus-visible,
.carousel__dot[aria-current]:focus-visible,
.carousel__btn:hover:focus-visible,
.btn--solid:focus-visible {
  outline-color: var(--ink);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 0.75rem;
}

/* text that editors type with line breaks keeps them */
.hero p,
.split__lede,
.split__more,
.columns li p,
.columns__intro,
.catalogue__intro,
.faq details p,
.cta p,
.formsec > div p {
  white-space: pre-line;
}

/* headline setting, shared by every display heading */
.wordmark,
.hero h1,
.slide__title,
.entry__chip h3,
.split h2,
.spectrum__head h2,
.columns h2,
.cta h2,
.faq h2,
.formsec h2,
.catalogue__heading,
.prose h2 {
  font-stretch: 110%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.4rem;
  border: 2px solid currentColor;
  border-radius: var(--pill);
  background: none;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}

.btn:hover {
  background: var(--on, var(--ink));
  color: var(--hue, var(--paper));
  border-color: var(--on, var(--ink));
}

.btn--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: #2d2a66;
  border-color: #2d2a66;
  color: var(--paper);
}

.btn--fill {
  background: var(--on);
  border-color: var(--on);
  color: var(--hue);
}

.btn--fill:hover {
  background: none;
  color: var(--on);
}

.btn--danger {
  color: var(--error);
}

.btn--danger:hover {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- header: one bar that stays in view ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

/* When the menu opens, the bar grows over the page. Without this the browser scrolls the
   page down by the menu's height to keep the content under it in place. */
html:has(#site-nav.is-open) {
  overflow-anchor: none;
}

.masthead__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.6rem var(--edge);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  border-radius: 0.35rem;
}

.menu-toggle {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 2px solid var(--ink);
  border-radius: var(--pill);
  background: none;
  font-weight: 600;
  cursor: pointer;
}

.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.masthead .nav__action a {
  padding: 0 1.25rem;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.masthead .nav__action a:hover,
.masthead .nav__action a[aria-current] {
  background: #2d2a66;
  text-decoration: none;
}

@media (min-width: 48rem) {
  .menu-toggle {
    display: none;
  }

  /* links sit in the middle of the bar; the contact button holds the right edge */
  .masthead nav {
    flex: 1;
  }

  .masthead nav ul {
    display: flex;
    align-items: center;
    gap: 0 clamp(0.1rem, 1.2vw, 1rem);
  }

  .masthead nav li:first-child,
  .masthead nav .nav__action {
    margin-left: auto;
  }
}

@media (max-width: 47.99rem) {
  .masthead nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.5rem;
  }

  .js .masthead nav {
    display: none;
    flex-basis: 100%;
  }

  /* the open menu belongs to the sticky bar, so it must fit the screen and scroll inside it */
  .js .masthead nav.is-open {
    display: block;
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
  }

  .js .masthead nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--line);
  }

  .js .masthead nav a {
    display: flex;
    padding: 0;
    font-size: 1.25rem;
  }

  .js .masthead .nav__action a {
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 1.1rem;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--edge) clamp(3rem, 6vw, 5rem);
  text-align: center;
  /* a wash of the product colours behind the opening line */
  background:
    radial-gradient(42% 70% at 22% 0%, rgba(35, 67, 201, 0.13), transparent 70%),
    radial-gradient(40% 75% at 50% 0%, rgba(53, 196, 207, 0.2), transparent 70%),
    radial-gradient(42% 70% at 78% 0%, rgba(245, 179, 1, 0.16), transparent 70%);
}

.hero h1 {
  max-width: 18ch;
  margin-inline: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero--page {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero--page h1 {
  max-width: 22ch;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1.02;
}

.hero p {
  max-width: 52ch;
  margin: clamp(1.1rem, 2vw, 1.5rem) auto 0;
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero .btn {
  margin-top: 1.75rem;
}

/* ---------- featured carousel: one rounded stage, controls underneath ---------- */

.carousel {
  padding: clamp(1rem, 2.5vw, 2rem) var(--edge) 0;
}

.carousel__track {
  position: relative; /* slide offsets are measured from the track */
  display: flex;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

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

.slide {
  flex: 0 0 100%;
  display: grid;
  min-height: clamp(26rem, 62vh, 36rem);
  scroll-snap-align: start;
  background: var(--hue);
  color: var(--on);
}

.slide__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 4rem);
}

.slide__title {
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.9vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.slide--text .slide__title {
  max-width: 20ch;
  font-size: clamp(2.3rem, 4.6vw, 4.25rem);
}

/* a slide with no picture is set like a page opening: centred, on a field of dots */
.slide--text {
  background:
    radial-gradient(60% 75% at 50% 45%, var(--hue) 35%, transparent 100%),
    radial-gradient(circle, var(--on) 1px, transparent 1.5px) 0 0 / 1.5rem 1.5rem,
    var(--hue);
}

.slide--text .slide__copy {
  align-items: center;
  text-align: center;
}

.slide__body {
  max-width: 42ch;
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1.4vw, 1.3rem);
  white-space: pre-line;
}

.slide .btn {
  margin-top: 1.75rem;
}

.slide__media {
  position: relative;
  min-height: 16rem;
}

.slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 56rem) {
  .slide--media {
    grid-template-columns: 1.15fr 1fr;
  }
}

.carousel__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel__controls[hidden],
.carousel__btn[hidden] {
  display: none;
}

.carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 2px solid var(--line);
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}

.carousel__dot {
  width: 44px;
  padding: 0;
}

.carousel__btn:hover,
.carousel__dot[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Previous and Next keep their words for screen readers and show an arrowhead */
.carousel__btn[data-carousel="prev"],
.carousel__btn[data-carousel="next"] {
  width: 44px;
  padding: 0;
  border-color: var(--ink);
  font-size: 0;
}

.carousel__btn[data-carousel="prev"]::before,
.carousel__btn[data-carousel="next"]::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-0.12rem) rotate(45deg);
}

.carousel__btn[data-carousel="prev"]::before {
  transform: translateX(0.12rem) rotate(-135deg);
}

.carousel__btn[data-carousel="pause"] {
  margin-left: 0.5rem;
}

@media (max-width: 55.99rem) {
  /* small screens: swipe, numbers and Next are enough; no rotation, so no Pause */
  .carousel__btn[data-carousel="prev"],
  .carousel__btn[data-carousel="pause"] {
    display: none;
  }

  .slide--media .slide__media {
    min-height: 18rem;
  }
}

/* ---------- spectrum: the product explorer ---------- */

.spectrum__head {
  padding: var(--pad-y) var(--edge) clamp(1.75rem, 3.5vw, 3rem);
  text-align: center;
}

.spectrum__head p {
  max-width: 52ch;
  margin: 1rem auto 0;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
}

.spectrum {
  display: grid;
  gap: 0.6rem;
  padding: 0 var(--edge) var(--pad-y);
  scroll-margin-top: 5rem;
}

/* Base, also the no-script view: every product is an open card in its colour. */
.band {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--hue);
  color: var(--on);
  overflow: hidden;
  scroll-margin-top: 5rem;
}

.band h2 {
  font: inherit;
}

.band__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 56px;
  padding: 0.5rem 1.5rem;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.band__toggle:focus-visible {
  outline-offset: -5px;
}

.band__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.band__body {
  padding: 0.25rem 1.5rem 1.75rem;
}

.band__kind {
  font-weight: 600;
}

.band__what {
  max-width: 30ch;
  margin-top: 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.band__does,
.ticks {
  display: grid;
  gap: 0.35rem;
  max-width: 48ch;
  margin-top: 1.25rem;
  font-size: 1rem;
}

.band__does li,
.ticks li {
  padding-left: 1.1rem;
  background: linear-gradient(currentColor, currentColor) 0 0.72em / 0.5rem 2px no-repeat;
}

.band .btn {
  margin-top: 1.5rem;
}

/* Small screens with script: the cards fold, one open at a time. */
@media (max-width: 55.99rem) {
  .js .band__wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
  }

  .js .band__body {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    padding-bottom: 0;
    transition: visibility 0s 0.4s, padding-bottom 0.4s var(--ease);
  }

  .js .band.is-open .band__wrap {
    grid-template-rows: 1fr;
  }

  .js .band.is-open .band__body {
    visibility: visible;
    padding-bottom: 1.75rem;
    transition-delay: 0s;
  }
}

/* Wide screens with script: product names down the left, the chosen product on a panel
   beside them. Each band's box is dissolved so its name and its panel can sit in
   different columns; --bands is set by main.js to the number of products. */
@media (min-width: 56rem) {
  .js .spectrum {
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    grid-template-rows: repeat(var(--bands, 6), auto) 1fr;
    gap: 0.5rem clamp(1.5rem, 3vw, 3rem);
  }

  .js .band {
    display: contents;
  }

  .js .band > h2 {
    grid-column: 1;
  }

  .js .band__toggle {
    min-height: 52px;
    padding: 0 1.25rem;
    border: 2px solid var(--line);
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink);
    transition: background-color 0.18s ease-out, border-color 0.18s ease-out;
  }

  .js .band__toggle:focus-visible {
    outline-offset: 3px;
  }

  /* here the open name is a pill on the white page, so its ring is ink; on a phone the
     ring sits inside the coloured card and stays in the card's text colour */
  .js .band.is-open .band__toggle:focus-visible {
    outline-color: var(--ink);
  }

  .js .band__toggle::before {
    content: "";
    flex: none;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--hue);
  }

  .js .band__toggle:hover {
    border-color: var(--ink);
  }

  .js .band.is-open .band__toggle {
    border-color: var(--hue);
    background: var(--hue);
    color: var(--on);
    cursor: default;
  }

  .js .band.is-open .band__toggle::before {
    background: var(--on);
  }

  .js .band__name {
    font-size: 1.1rem;
    font-weight: 600;
  }

  .js .band__wrap {
    display: none;
    grid-column: 2;
    grid-row: 1 / -1;
    min-height: 27rem;
    border-radius: var(--radius-lg);
    /* a dotted field that thins out towards the text */
    background:
      linear-gradient(100deg, var(--hue) 45%, transparent 100%),
      radial-gradient(circle, var(--on) 1.1px, transparent 1.6px) 0 0 / 1.4rem 1.4rem,
      var(--hue);
    color: var(--on);
  }

  .js .band.is-open .band__wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    animation: appear 0.3s ease-out;
  }

  .js .band__body {
    padding: clamp(2rem, 4vw, 3.5rem);
  }

  .js .band__what {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
  }

  @keyframes appear {
    from {
      opacity: 0;
    }
  }
}

/* ---------- catalogue (products page) ---------- */

.catalogue {
  padding: 0 var(--edge) var(--pad-y);
}

.catalogue__heading {
  padding-top: var(--pad-y);
  text-align: center;
}

.catalogue__intro {
  max-width: var(--measure);
  margin: 1rem auto 0;
  color: var(--ink-soft);
  text-align: center;
}

.entry {
  display: grid;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 5.5rem;
}

.catalogue__heading + .entry,
.catalogue__intro + .entry {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.catalogue > .entry:first-child {
  margin-top: clamp(1rem, 3vw, 2rem);
}

.entry__chip {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--hue);
  color: var(--on);
}

.entry__chip h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.entry__chip p {
  font-weight: 600;
}

.entry__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.entry__what {
  max-width: 40ch;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  line-height: 1.35;
  font-weight: 500;
}

.entry__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 0.95rem;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

@media (min-width: 56rem) {
  .entry {
    grid-template-columns: minmax(18rem, 2fr) 3fr;
  }

  .entry__chip {
    min-height: 15rem;
  }
}

/* ---------- shared section headings ---------- */

.split h2,
.spectrum__head h2,
.columns h2,
.cta h2,
.faq h2,
.formsec h2,
.catalogue__heading {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- split (statement + facts) ---------- */

.split {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: var(--pad-y) var(--edge);
}

.split__lede {
  max-width: 32ch;
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
  font-weight: 500;
}

.split__more {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.facts {
  padding: 0.5rem clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.facts div + div {
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--ink-soft);
}

.facts dd {
  font-weight: 600;
  text-align: right;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* ---------- columns: a row of cards ---------- */

.columns {
  padding: var(--pad-y) var(--edge);
  background: var(--mist);
}

.columns h2 {
  text-align: center;
}

.columns__intro {
  max-width: var(--measure);
  margin: 1rem auto 0;
  color: var(--ink-soft);
  text-align: center;
}

.columns ul {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.columns li {
  --mark: #2343c9;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.columns li::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 0.5rem;
  margin-bottom: 1.25rem;
  border-radius: var(--pill);
  background: var(--mark);
}

.columns li:nth-child(6n + 2) { --mark: #f5b301; }
.columns li:nth-child(6n + 3) { --mark: #d81e5b; }
.columns li:nth-child(6n + 4) { --mark: #0b6b4f; }
.columns li:nth-child(6n + 5) { --mark: #6b2fc0; }
.columns li:nth-child(6n + 6) { --mark: #35c4cf; }

.columns h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 700;
}

.columns li p {
  max-width: 38ch;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

@media (min-width: 56rem) {
  .columns ul {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
}

/* ---------- long-form text ---------- */

.prose {
  max-width: calc(68ch + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
}

.prose h2 {
  margin-top: 2.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin-top: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose ul {
  list-style: disc;
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--mist);
  font-size: 1.25rem;
}

.prose a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

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

.faq {
  padding: var(--pad-y) var(--edge);
}

.faq h2 {
  text-align: center;
}

.faq__list {
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
  margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0;
}

.faq details {
  padding: 0 clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 0.2s ease-out;
}

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

.faq details p {
  max-width: var(--measure);
  padding-bottom: 1.25rem;
  color: var(--ink-soft);
}

/* ---------- image ---------- */

.figure {
  padding: clamp(2rem, 5vw, 4rem) var(--edge);
}

.figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.figure figcaption {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.figure__empty {
  padding: 3rem 1.5rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* ---------- closing panel ---------- */

.cta {
  margin: clamp(2rem, 5vw, 4rem) var(--edge);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);
  border-radius: var(--radius-lg);
  /* dots, then three product colours rising from the bottom edge, on ink */
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.5px) 0 0 / 1.5rem 1.5rem,
    radial-gradient(40% 70% at 20% 108%, rgba(107, 47, 192, 0.9), transparent 72%),
    radial-gradient(44% 78% at 50% 112%, rgba(216, 30, 91, 0.9), transparent 72%),
    radial-gradient(40% 70% at 80% 108%, rgba(53, 196, 207, 0.8), transparent 72%),
    var(--ink);
  color: #fff;
  text-align: center;
}

.cta p {
  max-width: 48ch;
  margin: 1.1rem auto 0;
  color: #dfe0ee;
}

.cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.6rem 1.75rem;
  border: 2px solid #fff;
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}

.cta__link:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- forms ---------- */

.formsec {
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  padding: var(--pad-y) var(--edge);
  scroll-margin-top: 5rem;
}

.formsec > div p {
  max-width: 36ch;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.formsec form {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

@media (min-width: 56rem) {
  .formsec {
    grid-template-columns: 1fr 1.2fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.field label {
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 0.6rem;
  background: var(--paper);
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 3px solid #2343c9;
  outline-offset: 1px;
}

.field__help {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.field--trap {
  position: absolute;
  left: -200vw;
}

.notice {
  align-self: start;
  max-width: 36rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 6px solid #0b6b4f;
  border-radius: 0.6rem;
  background: var(--mist);
  font-weight: 500;
}

.formsec form .notice {
  background: var(--paper);
}

.notice--error {
  border-left-color: var(--error);
  color: var(--error);
}

/* ---------- footer: columns of links, then the small print ---------- */

.colophon {
  padding: clamp(3rem, 6vw, 4.5rem) var(--edge) 2rem;
  background: var(--ink);
  color: #c9cbe0;
  font-size: 0.95rem;
}

.colophon__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}

.colophon h2 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.colophon a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.colophon a:hover {
  color: #fff;
  text-decoration: underline;
}

.colophon__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stripe {
  display: flex;
  flex: none;
  width: 4.5rem;
  height: 0.5rem;
  border-radius: var(--pill);
  overflow: hidden;
}

.stripe span {
  flex: 1;
  background: var(--hue);
}

/* shown to signed-in editors on the live page */
.editlink {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 2px solid #fff;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
