/* The order site, app.mantia.co.uk: option C of the Connect design, "the guided sidebar", which
   Jesse chose on 29 October 2026 (docs/build/ES-website-design.md). The shared pieces and C's
   layout come from the phase 1 previews (public/css/options.css); the pieces only the real site
   needs (sign-in, documentation entries, the pay summary, the Paid page) come last. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/nunito-roman-var-3602.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-var-2211-nocalt.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --mist: #f7f9fc;
  --mist-2: #eef2f8;
  --line: #e3e8f1;
  --line-strong: #d3dbe8;
  --ink: #0b1220;
  --ink-2: #3a4459;
  --ink-3: #5a6478; /* 6.0:1 on white: help text */
  --stone: #7f889b; /* control borders, 3.6:1 on white; never text */
  --blue: #2b4fc4;
  --blue-hover: #2142a8;
  --blue-press: #1b3790;
  --blue-soft: #eef2fd;
  --electric: #5b8def; /* non-text only: the focus halo */
  --ok: #17694a;
  --warn: #8a5706;
  --warn-tint: #fbf3e4;
  --warn-line: #ead2a6;

  --ring-field: 0 0 0 3px color-mix(in srgb, var(--electric) 35%, transparent);
  --halo: 0 0 0 6px color-mix(in srgb, var(--electric) 35%, transparent);
  --font-body: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  /* One rhythm: 8 inside a field, 24 between fields, 48 between sections */
  --gap-field: 24px;
  --gap-section: 48px;
  --t-fast: 120ms cubic-bezier(0.2, 0.6, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms linear;
  }
}

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

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

body {
  min-height: 100svh;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--blue-press);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--electric) 35%, transparent);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.skip:focus {
  inset-block-start: 12px;
  color: var(--white);
}

/* The header is the product page's: 80px, the lockup 34px, 48px in from the edge (64, 28 and 20
   on phones), so nothing jumps when the buyer clicks Get started */
.logo img {
  height: 34px;
  width: auto;
}

/* ---------------------------------------------------------------- titles */

.title {
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.024em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-block-start: 6px;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.meta > * + *::before {
  content: "·";
  margin-inline-end: 12px;
  color: var(--stone);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.section-title .icon {
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- fields */

.form {
  display: grid;
  gap: var(--gap-section);
}

.section {
  display: grid;
  gap: var(--gap-field);
  min-width: 0;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.field > * {
  min-width: 0;
}

.field__head {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
}

.field__label {
  padding: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 22px;
  color: var(--ink);
}

.field__optional {
  font-weight: 400;
  color: var(--ink-3);
}

.field__help {
  margin-block-start: -4px;
  font-size: 0.875rem;
  line-height: 20px;
  color: var(--ink-3);
}

.field__error {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
}

.field__error .icon {
  color: var(--warn);
  margin-block-start: 1px;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  font-size: 1rem;
  line-height: 24px;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.input:hover {
  border-color: var(--ink-2);
}

.input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--ring-field);
}

textarea.input {
  resize: vertical;
  min-height: 104px;
}

.input[aria-invalid="true"] {
  border-color: var(--warn);
}

.select {
  position: relative;
}

.select select {
  appearance: none;
  padding-inline-end: 40px;
  cursor: pointer;
}

.select__chev {
  position: absolute;
  inset-inline-end: 12px;
  inset-block-start: 50%;
  translate: 0 -50%;
  color: var(--ink-3);
  pointer-events: none;
}

/* The pasted example: the one place for mono, with section 4's key line as the box's own header */
.code {
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.code:hover {
  border-color: var(--ink-2);
}

.code:focus-within {
  border-color: var(--blue);
  box-shadow: var(--ring-field);
}

.code:has([aria-invalid="true"]) {
  border-color: var(--warn);
}

.code__bar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: var(--mist);
  border-block-end: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 18px;
  color: var(--ink-2);
}

.code__bar .icon {
  width: 16px;
  height: 16px;
  margin-block-start: 1px;
  color: var(--ink-3);
}

.code textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  resize: vertical;
  tab-size: 2;
}

.code textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ---------------------------------------------------------------- the "i": a toggletip, tap or keyboard */

.info {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-block: -2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}

.info .icon {
  width: 17px;
  height: 17px;
}

.info:hover,
.info[aria-expanded="true"] {
  color: var(--blue);
  background: var(--blue-soft);
}

.info-panel {
  position: relative;
  padding: 12px 40px 12px 14px;
  border-radius: var(--r-md);
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 21px;
  color: var(--ink-2);
}

.info-panel > * + * {
  margin-block-start: 8px;
}

.info-panel strong {
  color: var(--ink);
  font-weight: 700;
}

.info-panel ol {
  padding-inline-start: 1.2em;
}

.info-panel__close {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-end: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}

.info-panel__close:hover {
  background: var(--mist-2);
  color: var(--ink);
}

.info-panel__close .icon {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------- choices */

/* A light segmented control: one thin frame, the chosen segment raised in white */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--mist-2);
  border: 1px solid var(--line);
  max-width: 100%;
}

.segmented label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color var(--t-fast),
    color var(--t-fast);
}

.segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented label:hover {
  color: var(--ink);
}

.segmented label:has(input:checked) {
  background: var(--white);
  color: var(--ink);
  box-shadow:
    0 1px 2px rgba(11, 18, 32, 0.1),
    0 0 0 1px var(--line-strong);
}

.segmented label:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.field > .segmented {
  justify-self: start;
}

.section > .more:last-child {
  border-block-end: 0;
}

.b-order {
  margin-block-start: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--mist);
}

.b-order summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-lg);
}

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

.b-order summary b {
  color: var(--ink);
  font-weight: 700;
}

.b-order summary .icon {
  color: var(--ink-3);
  transition: transform var(--t-fast);
}

.b-order[open] summary .icon {
  transform: rotate(180deg);
}

.b-order__body {
  display: grid;
  gap: 16px;
  padding: 0 14px 16px;
}

.segmented--fill {
  display: flex;
}

.segmented--fill label {
  flex: 1 1 auto;
}

/* Simple radio rows: a native-looking radio and its words, nothing else */
.radios {
  display: grid;
  gap: 4px;
}

.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding-block: 6px;
  font-size: 0.9375rem;
  line-height: 22px;
  cursor: pointer;
}

.radio input,
.radio__dot {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  border: 1px solid var(--stone);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: border-width var(--t-fast);
}

.radio input:checked {
  border: 5.5px solid var(--blue);
}

.radio__desc {
  display: block;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 20px;
}

.radios--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

/* A radio list: rows in one thin frame, the chosen row tinted */
.radio-list {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.radio-list .radio {
  padding: 12px 14px;
  min-height: 48px;
}

.radio-list .radio + .radio {
  border-block-start: 1px solid var(--line);
}

.radio-list .radio:has(input:checked) {
  background: var(--blue-soft);
}

.radio-list .radio:has(input:focus-visible) {
  position: relative;
  z-index: 1;
  outline: none;
  box-shadow: var(--ring-field);
}

.radio-list .radio:hover:not(:has(:checked)) {
  background: var(--mist);
}

.radio-list .radio input:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ---------------------------------------------------------------- notices, files, ticks */

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--warn-tint);
  border: 1px solid var(--warn-line);
  font-size: 0.9375rem;
  font-weight: 500;
}

.notice > span {
  flex: 1;
}

.notice a {
  font-weight: 700;
}

.notice:focus-visible {
  outline: none;
  box-shadow: var(--ring-field);
}

/* "Copying the messages needs a computer": on touch screens only */
.notice--computer {
  display: none;
}

@media (pointer: coarse) {
  .notice--computer {
    display: flex;
  }
}

.notice .icon {
  color: var(--warn);
  margin-block-start: 2px;
}

.note {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.attached {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.attached__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}

.text-btn:hover {
  background: var(--blue-soft);
}

.text-btn .icon {
  width: 16px;
  height: 16px;
}

.more {
  border-block-start: 1px solid var(--line);
}

.more__summary:hover {
  color: var(--blue);
}

.more__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}

.more__summary::-webkit-details-marker {
  display: none;
}

.more__summary .icon {
  color: var(--ink-3);
  transition: transform var(--t-fast);
}

.more[open] .more__summary .icon {
  transform: rotate(180deg);
}

.more__body {
  padding-block-end: 16px;
}

.check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 22px;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid var(--stone);
  border-radius: 5px;
  background: var(--white) no-repeat center / 14px 14px;
  cursor: pointer;
}

.check input:checked {
  border-color: var(--blue);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.8 9.6 17.9 19.5 6.6'/%3E%3C/svg%3E");
}

.ticks {
  display: grid;
  gap: 16px;
}

/* A tick's message sits under its words, with room */
.ticks > div {
  display: grid;
  gap: 8px;
}

.ticks .field__error {
  margin-inline-start: 30px;
}

/* ---------------------------------------------------------------- the secure details: light, thin border, a small padlock */

.secure {
  display: grid;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
}

@media (min-width: 560px) {
  .secure {
    padding: 24px;
  }
}

.secure__text {
  margin-block-start: -12px;
  font-size: 0.875rem;
  line-height: 21px;
  color: var(--ink-3);
}

.input--secret {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.input--secret::placeholder {
  font-family: var(--font-body);
  letter-spacing: 0;
}

/* "Key ends in WXYZ" and Remove key, on one line */
.secret__saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.secret__saved:has(.secret__last4:empty) {
  display: none;
}

.secret__last4 {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.secret__last4:empty {
  display: none;
}

.secret__last4 b {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}

.input:disabled {
  background: var(--mist);
  border-color: var(--line-strong);
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- the one button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.12);
  transition: background-color var(--t-fast);
}

.btn:hover {
  background: var(--blue-hover);
  color: var(--white);
}

.btn:active {
  background: var(--blue-press);
}

.btn[aria-disabled="true"] {
  background: var(--mist-2);
  color: var(--ink-3);
  box-shadow: none;
  cursor: not-allowed;
}

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

.next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.next .icon {
  width: 15px;
  height: 15px;
}

.saved {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.saved .icon {
  width: 14px;
  height: 14px;
  color: var(--ok);
}

/* ---------------------------------------------------------------- shared summary and footer bits */

.price {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.price-note {
  font-size: 0.875rem;
  line-height: 20px;
  color: var(--ink-3);
}

.gets {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 20px;
  color: var(--ink-2);
}

.gets li {
  display: flex;
  gap: 8px;
}

.gets .icon {
  width: 16px;
  height: 16px;
  margin-block-start: 2px;
  color: var(--blue);
}

.small {
  font-size: 0.8125rem;
  line-height: 19px;
  color: var(--ink-3);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.legal-links {
  row-gap: 0;
}

.legal-links a {
  display: inline-block;
  padding-block: 4px;
  color: var(--ink-3);
}

/* ================================================================ the step pages' head and Continue */

.c-head {
  margin-block-end: 40px;
}

.c-submit {
  display: grid;
  gap: 12px;
  justify-items: start;
}

/* On phones the price and the button ride in a bar at the bottom of the screen */
@media (max-width: 959.98px) {
  .c-submit {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 10;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-block-start: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(11, 18, 32, 0.06);
  }

  .c-submit {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "price button" "next button";
    gap: 0 12px;
  }

  .c-submit .btn {
    grid-area: button;
  }

  .c-submit .next {
    grid-area: next;
    justify-content: flex-start;
    font-size: 0.8125rem;
  }
}

/* ================================================================ the real site's own pieces */

/* Errors are written by the page script as text, so the warning mark is drawn here */
.field__error::before,
.form-error::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-block-start: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5706' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.4v5'/%3E%3Ccircle cx='12' cy='15.9' r='1.1' fill='%238a5706' stroke='none'/%3E%3C/svg%3E")
    no-repeat center / 18px 18px;
}

.form-error {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--warn-tint);
  border: 1px solid var(--warn-line);
  font-size: 0.9375rem;
  font-weight: 600;
}

[aria-invalid="true"] {
  border-color: var(--warn);
}

.saved[data-state="error"] {
  color: var(--warn);
  font-weight: 600;
}

.saved:empty {
  display: none;
}

.lead {
  margin-block-start: 8px;
  color: var(--ink-3);
}

/* Documentation entries: the file or link, then its type and a line on what it is */
.entries {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.entry {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}

.entry__top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.entry__top .icon {
  color: var(--ink-3);
}

.entry__fields {
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .entry__fields {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

.entry__fields label {
  display: grid;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.link-row {
  display: flex;
  gap: 8px;
}

.link-row .input {
  flex: 1;
  min-width: 0;
}

.file-pick {
  position: relative;
}

.file-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-pick:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: var(--halo);
}

/* Sign-in */

.turnstile {
  min-height: 65px;
}

/* Step 4 and the Paid page */
.summary {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
}

.summary__line {
  font-weight: 700;
  font-size: 1.125rem;
}

.pay-row {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.timeline {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.875rem;
}

.prose {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

/* A long email address shortens rather than pushing "Sign out" onto a second line */

/* ================================================================ round 3 (Jesse, 30 October 2026):
   a centred sign-up, a six-box code, and the steps across the top instead of the side panel */

.top {
  border-block-end: 1px solid var(--line);
  background: var(--white);
}

.top__inner,
.foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1296px;
  min-height: 80px;
  margin-inline: auto;
  padding-inline: 48px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* Phones: the product page's 64px header, 28px lockup and 20px edges */
@media (max-width: 751.98px) {
  .logo img {
    height: 28px;
  }

  .top__inner,
  .foot__inner {
    padding-inline: 20px;
  }

  .top__inner {
    min-height: 64px;
  }
}

.top__inner p {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.foot {
  border-block-start: 1px solid var(--line);
  padding-block: 24px 32px;
}

.foot__inner {
  display: grid;
  gap: 8px;
  min-height: 0;
  justify-content: stretch;
}

@media (max-width: 959.98px) {
  .flow ~ .foot {
    padding-block-end: 112px;
  }
}

/* The steps, left to right */
.steps {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--white);
  border-block-end: 1px solid var(--line);
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px 12px;
  list-style: none;
}

/* Each step is its number over its name, centred in a third of the column, so the three sit
   evenly under the content whatever their names' lengths (Jesse, 4 November 2026) */
.steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--ink-3);
  text-align: center;
}

/* The line from one step's number to the next one's */
.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

.steps__item--done:not(:last-child)::after {
  background: var(--blue);
}

.steps__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
}

.steps__mark .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.75;
}

.steps__item--done .steps__mark {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.steps__item--done {
  color: var(--ink-2);
}

.steps__item--now {
  color: var(--ink);
  font-weight: 700;
}

.steps__item--now .steps__mark {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.steps__name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* One centred column */
.flow {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.flow__main {
  min-width: 0;
  padding: 40px 20px 128px;
}

@media (min-width: 960px) {
  .flow__main {
    padding: 56px 20px 96px;
  }
}

.flow__main--alone {
  max-width: 720px;
  margin-inline: auto;
}

/* Sign up: one centred card */
.auth {
  display: grid;
  place-items: start center;
  align-content: start;
  min-height: calc(100svh - 81px - 160px);
  padding: clamp(32px, 9vh, 96px) 20px 48px;
  background:
    radial-gradient(1200px 400px at 50% -10%, var(--blue-soft), transparent 70%), var(--white);
}

.auth__card {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow:
    0 1px 2px rgba(11, 18, 32, 0.04),
    0 12px 32px rgba(11, 18, 32, 0.08);
}

@media (max-width: 479.98px) {
  .auth {
    place-items: start center;
    padding-block-start: 32px;
  }

  .auth__card {
    padding: 24px 20px;
  }
}

.auth__form {
  display: grid;
  gap: 20px;
}

.auth__title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.024em;
}

.auth__lead {
  margin-block-start: -8px;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.auth__note {
  font-size: 0.8125rem;
  color: var(--ink-3);
  text-align: center;
}

.auth__links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input--lg {
  min-height: 48px;
}

.btn--lg {
  min-height: 52px;
}

/* The code: one real input under six drawn boxes, so autofill, paste and screen readers all
   work as with any field */
.otp {
  position: relative;
  margin-block-start: 4px;
}

.otp__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  font-size: 16px;
  color: transparent;
  caret-color: transparent;
  border: 0;
  background: transparent;
  cursor: text;
}

.otp__cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.otp__cells span {
  display: grid;
  place-items: center;
  height: 56px;
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--white);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.otp:focus-within .otp__cells span.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.otp__input[aria-invalid="true"] + .otp__cells span {
  border-color: var(--warn);
}

/* The bot check's box takes no room until its widget is in it */
.turnstile:empty {
  display: none;
}

/* On phones the header keeps Sign out and lets the email go */
@media (max-width: 639.98px) {
  .top__inner [data-signed-in-email],
  .top__inner [data-signed-in-email] + .sep {
    display: none;
  }
}

/* ================================================================ round 4 (Jesse, 30 October 2026):
   the product above the steps, parts that fold once done, and plainer adding of files and links */

/* The product and its price, above the steps */
.band {
  background: var(--mist);
  border-block-end: 1px solid var(--line);
}

.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  max-width: 720px;
  margin-inline: auto;
  padding: 12px 20px;
}

.band__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.band__price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.band__price b {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink);
}

/* Sign up: three small facts under the card */
.auth {
  gap: 20px;
}

.auth__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.auth__facts li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth__facts .icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
  stroke-width: 2.25;
}

/* The parts of a step, between dividing lines */
.form--folds {
  gap: 0;
}

.form--folds > .form-error,
.form--folds > [data-back-link] {
  margin-block-end: 24px;
}

.fold {
  border-block-start: 1px solid var(--line-strong);
}

.fold:last-of-type {
  border-block-end: 1px solid var(--line-strong);
}

.fold__title {
  font: inherit;
}

.fold__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% + 16px);
  min-height: 72px;
  margin-inline: -8px;
  padding: 12px 8px;
  border-radius: var(--r-md);
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
  scroll-margin-top: 80px;
}

.fold__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-3);
}

.fold__mark .icon {
  display: none;
  width: 14px;
  height: 14px;
  stroke-width: 2.75;
}

.fold[data-part-done="true"] .fold__mark {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.fold[data-part-done="true"] .fold__n {
  display: none;
}

.fold[data-part-done="true"] .fold__mark .icon {
  display: block;
}

.fold__text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.fold__name {
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.fold__summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.fold__edit {
  flex: none;
  margin-inline-end: -10px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9375rem;
}

.fold__head:hover .fold__edit {
  background: var(--blue-soft);
}

.fold[data-open="true"] .fold__summary,
.fold[data-open="true"] .fold__edit,
.fold:not([data-part-done="true"]) .fold__edit,
.fold__summary:empty {
  display: none;
}

/* An open part shows a chevron to fold it; a folded one that isn't finished says so */
.fold__chev {
  flex: none;
  color: var(--ink-3);
  transition: rotate var(--t-fast);
}

.fold[data-open="true"] .fold__chev {
  rotate: 180deg;
}

.fold[data-open="false"][data-part-done="true"] .fold__chev {
  display: none;
}

.fold__summary[data-unfinished] {
  color: var(--warn);
}

/* A part with a message in it is never shown as done */
.fold:has(.field__error:not([hidden])) .fold__mark {
  border-color: var(--warn);
  background: var(--white);
  color: var(--warn);
}

.fold:has(.field__error:not([hidden])) .fold__mark .icon {
  display: none;
}

.fold:has(.field__error:not([hidden])) .fold__n {
  display: block;
}

.fold__body {
  display: grid;
  gap: var(--gap-field);
  padding: 4px 0 32px 38px;
}

.fold[data-open="false"] .fold__body {
  display: none;
}

@media (max-width: 479.98px) {
  .fold__body {
    padding-inline-start: 0;
  }
}

.form--folds > .c-submit {
  margin-block-start: 32px;
}

/* On phones the bar at the bottom holds the button and what comes next */
@media (max-width: 959.98px) {
  .c-submit {
    grid-template-areas: "next button";
  }
}

/* Adding files and links: two soft buttons, the link box opening under them */
.adders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* The product page's outlined pill */
.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
}

.btn-soft .icon {
  color: var(--blue);
}

.btn-soft:hover {
  background: var(--mist);
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
}

.btn-soft .icon {
  width: 16px;
  height: 16px;
}

.btn-soft:has(input:disabled),
.btn-soft:disabled {
  opacity: 0.6;
  cursor: default;
}

/* "Show me how" under the example */
.howto {
  margin-block-start: -4px;
}

.howto__summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  list-style: none;
}

.howto__summary::-webkit-details-marker {
  display: none;
}

.howto__summary .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast);
}

.howto[open] .howto__summary .icon {
  transform: rotate(180deg);
}

.howto__body {
  margin-block-start: 8px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--mist);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.howto__body ol {
  display: grid;
  gap: 6px;
  padding-inline-start: 20px;
}

/* The key's checklist */
.key-points {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.key-points li {
  position: relative;
  padding-inline-start: 16px;
}

.key-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  inset-block-start: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.key-points__lead {
  margin-block-end: -12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* ================================================================ round 5 (Jesse, 30 October 2026):
   the "i" tips float over the page instead of pushing it down, and finished steps link back */

.field:has(> .info-panel),
.field:has(> .field__head + .info-panel) {
  position: relative;
}

.info-panel {
  position: absolute;
  inset-block-start: 30px;
  inset-inline-start: 0;
  z-index: 20;
  width: min(380px, 100%);
  background: var(--white);
  border-color: var(--line-strong);
  box-shadow:
    0 1px 2px rgba(11, 18, 32, 0.06),
    0 12px 28px rgba(11, 18, 32, 0.14);
}

.steps__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-sm);
}

.steps__link:hover .steps__name {
  color: var(--blue);
  text-decoration: underline;
}

.back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.back a:hover {
  text-decoration: underline;
}

.back .icon {
  width: 16px;
  height: 16px;
}

/* The title, with "Saved" in a fixed place beside it so it never moves the page */
.c-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.c-head__row .saved {
  flex: none;
  min-width: 4.5em;
  text-align: end;
}

/* Finished steps you can go back to look like links */
.steps__link .steps__name {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.steps__link:hover .steps__name {
  color: var(--blue-press);
}

.back--foot {
  margin-block-start: 20px;
}

/* A document's kind, as one row of choices */
.entry__type {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.entry__type legend {
  padding: 0;
  margin-block-end: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.entry__fields:has(.entry__type) {
  grid-template-columns: minmax(0, 1fr);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--white);
}

.chip:hover span {
  border-color: var(--stone);
  color: var(--ink);
}

.chip input:checked + span {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: var(--halo);
}

/* Review and pay */
.summary {
  gap: 10px;
  padding: 24px;
}

.summary__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.summary__for {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.summary__price {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.summary__head {
  margin-block-start: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.more__body {
  display: grid;
  gap: var(--gap-field);
}

/* ================================================================ round 8: the review team's changes
   (Jesse, 3 November 2026: "copy and design, clear, accurate and consistent" with the product page) */

/* The buttons are the product page's pills, and Continue carries its arrow */
.btn {
  border-radius: 999px;
  font-weight: 800;
}

.btn .icon {
  width: 20px;
  height: 20px;
  transition: translate var(--t-fast);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover .icon {
    translate: 3px 0;
  }
}

@media (max-width: 559.98px) {
  .btn--pay {
    width: 100%;
  }
}

/* Headings in sentence case, as everywhere else */
.summary__head {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* The line over the pasted example is an instruction, so it is in the body type; only the code
   is mono. The sample shows inside "Show me how", where pasting cannot hide it. */
.code__bar {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 20px;
}

.howto__sample-label {
  margin-block-start: 12px;
  font-weight: 700;
  color: var(--ink);
}

.howto__sample {
  margin-block-start: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 18px;
  white-space: pre;
}

/* Errors read as errors: a firmer edge on the field, and a bar beside the message */
.input[aria-invalid="true"],
.code:has([aria-invalid="true"]),
.entry[data-invalid] {
  border-color: var(--warn);
  box-shadow: inset 0 0 0 1px var(--warn);
}

.field__error:not([hidden]) {
  padding-inline-start: 10px;
  border-inline-start: 3px solid var(--warn);
}

/* The list of answers to fix sits under its heading line, lined up with the words */
.form-error:has(ul) {
  flex-wrap: wrap;
}

.form-error ul {
  flex-basis: 100%;
  margin-block-start: 2px;
  padding-inline-start: 46px;
  font-weight: 600;
}

.form-error a {
  color: var(--ink);
}

/* A field the error summary or a message sends the focus to clears the sticky steps bar */
.input,
.radio,
.check,
.code,
.entries,
.field__error {
  scroll-margin-top: 96px;
}

/* "Send a new code" looks waiting while it waits */
.text-btn:disabled {
  color: var(--ink-3);
  background: none;
  cursor: default;
}

/* On phones the Continue bar steps aside while the keyboard is up, so the form has the screen */
@media (max-width: 959.98px) {
  html[data-keyboard] .c-submit {
    display: none;
  }
}

/* Review and pay: the buyer's answers, each group with Change */
.review {
  display: grid;
  gap: 12px;
}

.review__group {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}

.review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.review__title {
  font-size: 1rem;
  font-weight: 800;
}

.review__change {
  font-weight: 700;
}

.review__list {
  display: grid;
  gap: 6px;
  margin-block-start: 8px;
}

.review__row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 12px;
  font-size: 0.9375rem;
}

.review__row dt {
  color: var(--ink-3);
}

.review__row dd {
  overflow-wrap: anywhere;
}

@media (max-width: 559.98px) {
  .review__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* ---------------------------------------------------------------- round 8, sprint 1 */

/* How many more characters an answer needs */
.field__count {
  margin-block-start: 6px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* A file on its way up */
.entry--uploading {
  color: var(--ink-3);
  font-size: 0.9375rem;
  border-style: dashed;
}

.link-row [data-cancel-link] {
  align-self: center;
}

/* ---------------------------------------------------------------- sprint 1: phones and states */

/* On phones the Continue bar is the button alone, full width; the line about what comes next
   shows on wider screens, without a second arrow under the button's own */
@media (max-width: 559.98px) {
  .c-submit {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "button";
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .c-submit .next {
    display: none;
  }

  .c-submit .btn {
    width: 100%;
  }
}

@media (max-width: 959.98px) {
  html {
    scroll-padding-bottom: 104px;
  }
}

.next .icon {
  display: none;
}

/* A field with a message keeps its focus ring */
.input[aria-invalid="true"]:focus-visible,
.code:has([aria-invalid="true"]):focus-within {
  border-color: var(--warn);
  box-shadow:
    inset 0 0 0 1px var(--warn),
    var(--ring-field);
}

/* The link box's own message, under it */
.link-row {
  flex-wrap: wrap;
}

.link-row .field__error {
  flex-basis: 100%;
}

/* A link shows a link, a file a page */
.entry[data-kind="link"] .icon--file,
.entry[data-kind="file"] .icon--link {
  display: none;
}

/* The signed-in address and Sign out at one size, evenly spaced */
.top__inner .text-btn {
  font-size: 0.875rem;
  padding-inline: 8px;
}

.top__inner .sep {
  margin-inline: 4px 0;
}

@media (max-width: 479.98px) {
  .radios--inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .form-error ul {
    padding-inline-start: 28px;
  }

  .auth__facts {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

/* ---------------------------------------------------------------- sprint 2: Connect */

/* The error list: its line in bold, the answers under it */
.form-error {
  padding: 14px 16px;
  font-weight: 800;
}

.form-error ul {
  display: grid;
  gap: 4px;
  list-style: none;
  font-weight: 500;
}

/* A key in the messages: the bar over the box takes the warning colour, not a second sentence */
.code:has([aria-invalid="true"]) .code__bar {
  background: var(--warn-tint);
  border-color: var(--warn-line);
  color: var(--ink);
}

/* "2 requests found" under the box */
.field__ok {
  color: var(--ok);
  font-weight: 600;
}

/* Why Continue is off after "No" */
.blocked-note {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--warn);
}

/* The "i" sits after the last word of a long question, not out at the edge */
.field__head {
  display: block;
}

.field__head .field__label {
  display: inline;
}

.field__head .info {
  vertical-align: -8px;
  margin-inline-start: 2px;
}

.secure .section-title {
  font-size: 1rem;
  font-weight: 700;
}

.secure .check {
  margin-block-start: 4px;
}

.check:hover input:not(:checked),
.radio:hover input:not(:checked) {
  border-color: var(--ink-2);
}

/* A part's heading takes a soft fill when focused, not a ring around the whole row */
.fold__head:focus-visible {
  outline-offset: -2px;
  box-shadow: none;
  background: var(--mist);
}

/* "Not finished" in the warning colour; the answers after it stay grey */
.fold__summary[data-unfinished] {
  color: var(--ink-3);
}

.fold__unfinished {
  color: var(--warn);
  font-weight: 700;
}

/* A tip on a desktop has a caret to its "i"; on a phone it opens in the page, under its question */
.info-panel::before {
  content: "";
  position: absolute;
  inset-block-start: -6px;
  inset-inline-start: var(--caret, 16px);
  width: 10px;
  height: 10px;
  background: inherit;
  border-inline-start: 1px solid var(--line-strong);
  border-block-start: 1px solid var(--line-strong);
  rotate: 45deg;
}

@media (max-width: 479.98px) {
  /* Yes and No side by side, not in a two-column grid */
  .radios--inline:has(> .radio:nth-child(2):last-child) {
    display: flex;
    gap: 0 32px;
  }

  .fold__summary {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* The "i" keeps its 28px look with a 44px target */
.info::after {
  content: "";
  position: absolute;
  inset: -8px;
}

/* ---------------------------------------------------------------- sprint 3: check your answers, pay, paid */

/* The price card is the product page's buy card, with the Pay button inside it */
.summary {
  gap: 12px;
  padding: 32px;
  border: 0;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(15, 31, 79, 0.06),
    0 4px 12px rgba(15, 31, 79, 0.06),
    0 44px 88px -36px rgba(15, 31, 79, 0.36);
}

.summary__line {
  font-weight: 800;
}

.summary__price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.summary__for:has(b:empty) {
  display: none;
}

.pay-row {
  display: grid;
  gap: 10px;
  margin-block-start: 8px;
}

.pay-row .form-error {
  scroll-margin-block: 96px;
}

.btn--pay {
  width: 100%;
  min-height: 54px;
  padding: 0 28px;
}

.pay-row__where,
.pay-row .note {
  font-size: 0.875rem;
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 559.98px) {
  .summary {
    padding: 24px;
    border-radius: 20px;
  }
}

/* A button at work: a turning ring, never pressed twice */
.btn[aria-busy="true"] {
  pointer-events: none;
  cursor: progress;
  background: var(--blue-hover);
}

.btn[aria-busy="true"]::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.4);
  border-top-color: var(--white);
  animation: spin 0.7s linear infinite;
}

.btn[aria-busy="true"] .icon {
  display: none;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::after {
    animation: none;
  }
}

/* An answer not given yet says so */
.review__row dd:empty::before {
  content: "Not answered yet";
  color: var(--warn);
  font-weight: 700;
}

.review__group {
  border-radius: var(--r-lg);
  padding: 16px 20px;
}

.review__change {
  font-size: 0.9375rem;
}

/* A calm notice: information, not a warning */
.notice--calm {
  background: var(--blue-soft);
  border-color: color-mix(in srgb, var(--blue) 20%, transparent);
}

.notice--calm .icon {
  color: var(--blue);
}

/* The Paid page: a tick, the heading, the order number; then what happens next */
.paid-head {
  display: grid;
  gap: 8px;
}

.paid-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-block-end: 8px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

.paid-mark .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.order-number {
  font-variant-numeric: tabular-nums;
}

.next-steps {
  display: grid;
  gap: 16px;
}

.section-title {
  font-weight: 800;
}

.timeline {
  gap: 16px;
}

.timeline li > span {
  padding-block-start: 2px;
}

/* Waiting for the payment: a turning ring beside the words */
.lead--waiting::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-inline-end: 10px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .lead--waiting::before {
    animation: none;
  }
}

/* While the payment is being confirmed, Pay is not yet shown as done */
[data-page="paid"]:has([data-paid-pending]:not([hidden])) .steps__item:last-child .steps__mark {
  background: var(--blue-soft);
  color: var(--blue);
}

/* On phones these two pages have no Continue bar to leave room for */
@media (max-width: 959.98px) {
  body:is([data-page="pay"], [data-page="paid"]) .flow__main {
    padding-block-end: 64px;
  }

  body:is([data-page="pay"], [data-page="paid"]) .flow ~ .foot {
    padding-block-end: 32px;
  }
}

/* A heading given the focus by the page (so it is read out) shows no ring: it isn't a control */
.title[tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}

.pay-row > p {
  justify-self: stretch;
}

/* The pay page's two confirmations, above the button */
.pay-row .ticks {
  margin-block-end: 6px;
  font-size: 0.9375rem;
}

/* While the saved answers load (A3, the journey review of 4 November 2026): one line says so, and the
   form and the answers wait, so no field shows empty and no answer shows as not answered */
.loading-note {
  display: none;
  color: var(--ink-3);
}

body[data-loading] .loading-note {
  display: block;
}

body[data-loading] form.form,
body[data-loading] .review {
  display: none;
}

/* ================================================================ Jesse's feedback of 4 November 2026:
   more on each screen, one pattern for explanations, Back left and Continue right */

:root {
  --gap-field: 18px;
  --gap-section: 32px;
}

.c-head {
  margin-block-end: 20px;
}

.field {
  gap: 6px;
}

.fold__head {
  min-height: 60px;
}

.fold__body {
  padding-block-end: 24px;
}

/* The "i" sits on the label's line, centred on it */
.field__head .info {
  vertical-align: middle;
  margin-block: -4px;
}

/* The tip opens above its "i", with the caret pointing down at it */
.info-panel[data-place="above"]::before {
  inset-block-start: auto;
  inset-block-end: -6px;
  border-inline-start: 0;
  border-block-start: 0;
  border-inline-end: 1px solid var(--line-strong);
  border-block-end: 1px solid var(--line-strong);
}

/* The staging key card */
.secure {
  gap: 14px;
  padding: 18px 20px;
}

.secure__box {
  display: grid;
  gap: 14px;
}

.secure__box[hidden] {
  display: none;
}

.secure__text {
  margin-block-start: -8px;
}

.follow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.follow-row .check {
  margin-block-start: 0;
}

.follow-link {
  justify-self: start;
  margin-inline: -10px;
  font-size: 0.875rem;
}

.follow-note {
  display: block;
}

.follow-note:focus {
  outline: none;
}

/* Back on the left, Continue on the right */
.c-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.c-submit .btn {
  margin-inline-start: auto;
}

.c-submit .back {
  margin: 0;
}

.c-submit .blocked-note {
  flex-basis: 100%;
  text-align: end;
}

.pay-actions {
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.pay-actions .back {
  margin: 0;
}

@media (max-width: 559.98px) {
  .c-submit .btn,
  .pay-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-inline: 16px;
    font-size: 0.9375rem;
  }

  .c-submit .blocked-note {
    order: -1;
    text-align: start;
  }
}

.pay-actions .btn--pay {
  flex: 1 1 auto;
  width: auto;
}

/* ---------------------------------------------------------------- round 3 (5 November 2026) */

/* Connect: sections 2 to 4 wait for Yes, one dividing line between parts */
.form--folds > .fold:has(+ .folds-after-reach:not([hidden])) {
  border-block-end: 0;
}

/* Show me how: four steps, each a numbered circle and its lead words in bold */
.howto__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.howto__steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.howto__n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-block-start: 0.5px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 800;
}

.howto__hand {
  margin-block: 14px 8px;
  font-size: 0.9375rem;
}

.howto__body .howto__sample {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* The key box: its title is the field's label, with the lock */
.field__head .secure__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.secure__title .icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

/* The cURL command was skipped: the key waits for it, greyed */
.secure__box[data-greyed] {
  opacity: 0.45;
  filter: grayscale(1);
  pointer-events: none;
}

.follow-note--with {
  margin-block-start: 10px;
}

/* Check and pay: answers on the left, the pay box on the right, staying in view. Round 4 (R4.14):
   the title and its notices sit over the answers only, so the pay box's top is level with the
   title; the box is 440 wide and tighter, so Pay is on a laptop's first screen. */
.flow--wide {
  max-width: 1040px;
}

.checkout {
  display: grid;
  gap: 24px;
}

.checkout__main > .notice {
  margin-block-end: var(--gap-section);
}

/* Nothing to pay: no pay box, so the title and its notice take the page's width */
@media (min-width: 960px) {
  .checkout:has(> .paybox[hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 960px) {
  .checkout {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 40px;
    align-items: start;
  }

  .checkout .paybox {
    gap: 8px;
    padding: 24px;
  }

  .checkout .paybox__price {
    font-size: 2rem;
  }

  .checkout .paybox .ticks {
    gap: 12px;
  }
}

/* It stays in view only where the whole box fits, so Pay is never held below the screen: the box
   measures 534px from 960 (round 4), plus the 24px above it and room for its messages (both ticks'
   and the form's, about 90px: the fresh-eyes review of round 4) */
@media (min-width: 960px) and (min-height: 700px) {
  .checkout .paybox {
    position: sticky;
    inset-block-start: 24px;
  }
}

/* While the answers load, the title shows and the answers and the pay box wait */
body[data-loading] .checkout .review,
body[data-loading] .checkout .paybox {
  display: none;
}

.review__group {
  padding: 0;
}

.review__head {
  align-items: center;
  padding: 4px 16px 4px 4px;
}

.review__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
}

.review__toggle:hover {
  background: var(--mist);
}

.review__toggle:focus-visible {
  outline: none;
  box-shadow: var(--halo);
}

.review__title {
  grid-column: 1;
}

.review__sum {
  grid-column: 1;
  font-size: 0.9375rem;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.review__chev {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  transition: rotate var(--t-fast);
}

.review__toggle[aria-expanded="true"] .review__chev {
  rotate: 180deg;
}

.review__list {
  margin: 0;
  padding: 4px 16px 16px;
}

.review .back {
  margin-block-start: 8px;
}

.paybox {
  display: grid;
}

.paybox__name {
  font-weight: 800;
}

.paybox__for {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.paybox__for:has(b:empty) {
  display: none;
}

.paybox__price {
  margin-block: 8px 4px;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.paybox__note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}

/* After payment: one centred card on the pale background */
body[data-page="paid"] {
  background: var(--mist);
}

.paid-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 560px;
  margin-inline: auto;
  padding: 40px 32px 32px;
  border-radius: 24px;
  background: var(--white);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(15, 31, 79, 0.06),
    0 4px 12px rgba(15, 31, 79, 0.06),
    0 32px 64px -32px rgba(15, 31, 79, 0.3);
}

.paid-tick {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 12%, var(--white));
}

.paid-tick__svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paid-tick__ring {
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 0;
  opacity: 0.35;
}

.paid-tick__path {
  stroke-dasharray: 34;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  [data-paid-done]:not([hidden]) .paid-tick__ring {
    animation: paid-draw-ring 0.6s ease-out backwards;
  }

  [data-paid-done]:not([hidden]) .paid-tick__path {
    animation: paid-draw 0.45s 0.45s ease-out backwards;
  }
}

@keyframes paid-draw-ring {
  from {
    stroke-dashoffset: 151;
  }
}

@keyframes paid-draw {
  from {
    stroke-dashoffset: 34;
  }
}

.paid-card__title {
  font-size: clamp(1.625rem, 4vw, 2rem);
  line-height: 1.2;
}

.paid-card__line {
  color: var(--ink-2);
}

.order-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.paid-next {
  justify-self: stretch;
  margin-block: 8px;
  padding: 20px 20px 4px;
  border-radius: 16px;
  background: var(--mist);
  text-align: start;
}

.paid-next__title {
  margin-block-end: 14px;
  font-size: 1rem;
  font-weight: 800;
}

.paid-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paid-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding-block-end: 16px;
}

/* The line joining the numbered circles */
.paid-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-block: 30px 2px;
  inset-inline-start: 13px;
  width: 2px;
  border-radius: 1px;
  background: var(--line-strong);
}

.paid-steps__n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 800;
}

.paid-steps p {
  margin-block-start: 3px;
  line-height: 1.5;
}

.paid-card__mail {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.paid-card__calm {
  font-weight: 700;
}

.quiet-link {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

@media (max-width: 559.98px) {
  .paid-card {
    padding: 32px 20px 24px;
    border-radius: 20px;
  }
}

/* ---------------------------------------------------------------- round 4 (6 November 2026) */

/* The key field's eye (R4.11): a real button at the end of the field, 44px to touch */
.secret__field {
  position: relative;
}

.secret__field .input {
  padding-inline-end: 52px;
}

.secret__eye {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 2px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  translate: 0 -50%;
}

.secret__eye:hover {
  color: var(--ink);
}

.secret__eye:focus-visible {
  outline: none;
  box-shadow: var(--halo);
}

.secret__eye .icon {
  width: 20px;
  height: 20px;
}

.secret__eye [hidden] {
  display: none;
}

/* Two lines under a paste (R4.16): each on its own line */
.paste-note__line {
  display: block;
}

/* ================================================================ R5 (10 November 2026): the paused
   page, in place of the start of the order while ORDERS_PAUSED is true. The card, the steps bar
   and the ticks wait for the session, so neither the sign-in form nor what the paused page hides
   shows for a moment before it; if the page's script never runs, they show anyway after 4 seconds. */
body[data-loading] .auth__card,
body[data-page="signin"][data-loading] nav.steps,
body[data-loading] .auth__facts {
  visibility: hidden;
  animation: auth-card-fallback 0s linear 4s forwards;
}

@keyframes auth-card-fallback {
  to {
    visibility: visible;
  }
}
