/*! © 2015–2026 YourWeb (yourweb.se). All rights reserved. Proprietary – see LICENSE.md */
/* The quote form of /projektbrief/ and /en/project-brief/: the site's dark hero, and under it one question at a
   time in a card, with a receipt that prints every answer. The markup is written by scripts/build-brief.py.
   Loaded after content.css and header.css. The frame keeps its .brief-* classes; everything of the form itself is
   .kv-* ("kvitto", the receipt). Motion is at the end of the file. */

.brief-page {
  --ink-950: #03101c;
  --ink-900: #04121f;
  --paper-100: #fffdf6;
  --text-on-light: #0e2a44;
  --text-muted-light: #4a6274;
  --shadow-soft: 0 18px 54px rgba(0, 18, 34, 0.22);
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --brief-overlap: clamp(3rem, 6vw, 4.5rem);
  --kv-line: rgba(14, 42, 68, 0.14);
  --kv-line-strong: rgba(14, 42, 68, 0.28);
  --kv-control: #6b7f90;
  --kv-blue: #006aa7;
  --kv-error: #b3261e;
  --kv-stamp: #00436f;
  --kv-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--cream-200);
  color: #061827;
}

/* The quote button would only link back to this page. */
@media (max-width: 56rem) {
  .brief-page .site-header .button.desktop-cta {
    display: none;
  }
}

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

.brief-hero {
  --brief-ring: clamp(11rem, 23vw, 20rem);
  position: relative;
  overflow: hidden;
  padding:
    calc(var(--header-height) + clamp(3.9rem, 7.1vw, 5.7rem))
    var(--gutter)
    calc(var(--brief-overlap) + clamp(1.35rem, 2.4vw, 1.9rem));
  background:
    linear-gradient(115deg, rgba(8, 118, 185, 0.18), transparent 42%),
    var(--navy-950);
  color: #fff;
  isolation: isolate;
}

.brief-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

/* Thin rings around the top right corner: the outline of the ring the service
   pages carry in their heroes. The yellow arc needs the free space beside the
   headline, so it is drawn only in the two-column layout. */
.brief-hero__art {
  position: absolute;
  top: calc(-1 * var(--brief-ring) - 0.625rem);
  right: calc(-1 * var(--brief-ring) - 1.25rem);
  z-index: -1;
  width: calc(2 * var(--brief-ring));
  height: auto;
  overflow: visible;
  fill: none;
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 1;
  pointer-events: none;
}

.brief-hero__art circle,
.brief-hero__art path {
  vector-effect: non-scaling-stroke;
}

.brief-hero__art .brief-hero__arc {
  stroke: var(--yellow-500);
  stroke-linecap: round;
  stroke-width: 2;
}

.brief-hero__art .brief-hero__node {
  fill: var(--yellow-500);
  stroke: none;
}

.brief-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100%, var(--content));
  margin: 0 auto;
}

.brief-hero .eyebrow {
  margin: 0 0 0.9rem;
}

.brief-hero h1 {
  max-width: none;
  margin: 0 0 0.95rem;
  font-size: clamp(2.15rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.brief-hero__lead {
  max-width: 40rem;
  margin: 0;
  text-wrap: balance;
  color: rgba(245, 249, 252, 0.76);
  font-size: clamp(0.98rem, 1.35vw, 1.16rem);
  line-height: 1.55;
}

.brief-hero__aside {
  display: grid;
  gap: 1.05rem;
  min-width: 0;
}

.brief-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-reassurance li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.15rem;
  padding: 0.3rem 0.9rem 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
}

.brief-reassurance li::before {
  flex: none;
  width: 0.3rem;
  height: 0.58rem;
  margin: -0.16rem 0.1rem 0 0.1rem;
  border: solid var(--yellow-500);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

/* ---------- The space under the hero ---------- */

/* Above the breadcrumbs of the hero (z-index 5 in content.css): the receipt at the foot of a phone and its backdrop
   are inside this box, and an open receipt must lie over them. The header (35) and the menu (30) stay above. */
.brief-workspace {
  position: relative;
  z-index: 6;
  margin-top: calc(-1 * var(--brief-overlap));
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
}

.brief-layout {
  width: var(--page);
  margin: 0 auto;
}

.brief-noscript {
  margin: 0 0 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.kv-app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}

/* The classes below set display, which would un-hide a hidden element. */
.kv-app [hidden] {
  display: none !important;
}

.kv-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(14, 42, 68, 0.1);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text-on-light);
  box-shadow: var(--shadow-soft);
  overflow-wrap: break-word;
}

.kv-card :focus-visible,
.kv-after :focus-visible {
  outline: 3px solid var(--kv-blue);
  outline-offset: 3px;
}

.kv-form {
  margin: 0;
}

/* ---------- One question ---------- */

.kv-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin: -0.55rem 0 0.2rem -0.6rem;
  padding: 0 0.85rem 0 0.6rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-muted-light);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.kv-back svg {
  width: 1rem;
  height: 1rem;
}

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

.kv-q__legend {
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

.kv-h {
  max-width: none;
  margin: 0 0 0.8rem;
  color: var(--ink-900);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.kv-h:focus {
  outline: 0;
}

.kv-card .kv-h:focus-visible {
  border-radius: 0.35rem;
  outline: 2px solid var(--kv-line-strong);
  outline-offset: 6px;
}

.kv-hint {
  max-width: 42rem;
  margin: -0.3rem 0 1rem;
  color: var(--text-muted-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.kv-ico {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

/* Family tiles. A label breaks at its own spaces and hyphens and nowhere else: no hyphenation, no break inside a
   word. Three in a row need 73px for the longest word ("WordPress-" at 0.8rem bold) and have 82px at 360px. */
.kv-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.kv-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  min-height: 5.5rem;
  padding: 0.7rem 0.35rem 0.6rem;
  border: 1px solid var(--kv-line);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.2s var(--ease-cinematic),
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.kv-tile input,
.kv-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.kv-tile__i {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--kv-blue);
  transition: color 0.2s ease;
}

.kv-tile__t,
.kv-row__l,
.kv-row__s {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.kv-tile__t {
  text-wrap: balance;
}

.kv-tile--quiet {
  border-style: dashed;
  border-color: var(--kv-control);
  background: transparent;
  color: var(--text-muted-light);
}

.kv-tile--quiet .kv-tile__i {
  color: var(--text-muted-light);
}

.kv-tile.is-checked {
  border-style: solid;
  border-color: var(--ink-900);
  background: var(--ink-900);
  box-shadow: 0 12px 26px rgba(3, 16, 28, 0.22);
  color: #fff;
}

.kv-tile.is-checked .kv-tile__i {
  color: var(--yellow-500);
}

/* The tick of a chosen tile: shape as well as colour. */
.kv-tile::before,
.kv-tile::after {
  position: absolute;
  content: "";
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.kv-tile::before {
  top: 0.4rem;
  right: 0.4rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--yellow-500);
}

.kv-tile::after {
  top: 0.62rem;
  right: 0.83rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--ink-950);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.kv-tile.is-checked::before,
.kv-tile.is-checked::after {
  opacity: 1;
}

/* Answer rows: one per line on a phone. */
.kv-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: 0.5rem;
}

.kv-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  border: 1px solid var(--kv-line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.2s var(--ease-cinematic),
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* The way on: a chevron, drawn here so that a hundred rows carry no icon markup. */
.kv-row::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.3rem;
  border: solid var(--kv-control);
  border-width: 2px 2px 0 0;
  border-radius: 1px;
  content: "";
  transform: rotate(45deg);
}

.kv-row--multi {
  padding-right: 0.85rem;
}

.kv-row--multi::after {
  content: none;
}

.kv-row__box {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border: 1.5px solid var(--kv-control);
  border-radius: 50%;
  background: #fff;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.kv-row--multi .kv-row__box {
  border-radius: 0.35rem;
}

.kv-row__box::after {
  width: 0.3rem;
  height: 0.58rem;
  margin-top: -0.14rem;
  border: solid var(--yellow-500);
  border-width: 0 2.5px 2.5px 0;
  content: "";
  opacity: 0;
  transform: rotate(45deg);
}

.kv-row__t {
  display: grid;
  flex: 1 1 auto;
  gap: 0.15rem;
  min-width: 0;
}

.kv-row__s {
  color: var(--text-muted-light);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: lining-nums;
}

.kv-row__s b {
  color: var(--ink-900);
  font-weight: 800;
  white-space: nowrap;
}

/* "Something else or larger": the quiet last row of a package list. */
.kv-row--quiet {
  border-style: dashed;
  border-color: var(--kv-control);
  background: transparent;
}

.kv-row--quiet .kv-row__l {
  color: var(--text-on-light);
  font-weight: 650;
}

.kv-row.is-checked {
  border-style: solid;
  border-color: var(--ink-900);
  background: #fff8dc;
  box-shadow: inset 0 0 0 1px var(--ink-900);
}

.kv-row.is-checked .kv-row__box {
  border-color: var(--ink-900);
  background: var(--ink-900);
}

.kv-row.is-checked .kv-row__box::after {
  opacity: 1;
}

.kv-row.is-checked::after {
  border-color: var(--ink-900);
}

.kv-tile:has(input:focus-visible),
.kv-row:has(input:focus-visible) {
  outline: 3px solid var(--kv-blue);
  outline-offset: 3px;
}

@supports not selector(:has(a)) {
  .kv-tile:focus-within,
  .kv-row:focus-within {
    outline: 3px solid var(--kv-blue);
    outline-offset: 3px;
  }
}

/* "Show more": the packages after the first five. */
.kv-unfold {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px dashed var(--kv-control);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--text-on-light);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.kv-unfold::after {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.2rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.kv-err {
  margin: 0.65rem 0 0;
  color: var(--kv-error);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.kv-q__foot {
  display: flex;
  margin-top: 1rem;
}

.kv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--yellow-500);
  border-radius: var(--radius-sm);
  background: var(--yellow-500);
  color: var(--ink-950);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.kv-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.2;
}

.kv-btn[disabled] {
  cursor: progress;
}

.kv-btn[aria-busy="true"]::before {
  flex: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(3, 16, 28, 0.25);
  border-top-color: var(--ink-950);
  border-radius: 50%;
  animation: kv-spin 0.7s linear infinite;
  content: "";
}

/* ---------- Where the quote is sent ---------- */

.kv-contact .kv-hint {
  margin-top: 0;
}

.kv-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem 1.1rem;
  margin: 0 0 1rem;
}

.kv-field {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
}

.kv-field label {
  color: var(--text-on-light);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.kv-opt {
  color: var(--text-muted-light);
  font-weight: 600;
}

/* 16px text in the fields: a phone does not zoom in on focus. */
.kv-field input,
.kv-field textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--kv-control);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
  scroll-margin: 2.75rem 0 2.5rem;
}

.kv-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.kv-field input::placeholder {
  color: var(--text-muted-light);
}

.kv-field input:focus,
.kv-field textarea:focus {
  border-color: var(--kv-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 106, 167, 0.28);
}

.kv-field [aria-invalid="true"],
.kv-field [aria-invalid="true"]:focus {
  border-color: var(--kv-error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18);
}

.kv-field .kv-err {
  margin: 0;
}

.kv-more {
  margin: 0 0 1rem;
  border: 1px solid var(--kv-line);
  border-radius: 0.85rem;
}

.kv-more > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.8rem;
  min-height: 3.25rem;
  padding: 0.6rem 1rem;
  border-radius: 0.85rem;
  color: var(--ink-900);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.kv-more > summary::-webkit-details-marker {
  display: none;
}

.kv-more > summary small {
  color: var(--text-muted-light);
  font-size: 0.82rem;
  font-weight: 600;
}

.kv-more > summary::after {
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: auto;
  background:
    linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 50% / 2px 100% no-repeat;
  content: "";
}

/* On a phone the label and the small text do not fit on one line. They stand under each other with the plus beside
   them, instead of the plus wrapping to a third line of its own. */
@media (max-width: 36rem) {
  .kv-more > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .kv-more > summary > span,
  .kv-more > summary > small {
    grid-column: 1;
  }

  .kv-more > summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-left: 0;
  }
}

.kv-more[open] > summary::after {
  background-size: 100% 2px, 2px 0;
}

.kv-more .kv-fields {
  margin: 0;
  padding: 0.25rem 1rem 1.1rem;
}

.kv-consent {
  margin: 0 0 1rem;
  color: var(--text-muted-light);
  font-size: 0.875rem;
  line-height: 1.55;
}

.kv-consent a,
.kv-talk a {
  display: inline-block;
  margin: -0.7rem -0.15rem;
  padding: 0.7rem 0.15rem;
  color: var(--kv-blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

.kv-send .kv-err {
  margin-top: 0.75rem;
}

.kv-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin: 0.95rem 0 0;
  padding: 0;
  color: var(--text-muted-light);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
}

.kv-assure li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.kv-assure li::before {
  flex: none;
  width: 0.3rem;
  height: 0.58rem;
  margin: -0.16rem 0.05rem 0 0.1rem;
  border: solid var(--ink-900);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.kv-talk {
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--kv-line);
  color: var(--text-muted-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---------- Sent ---------- */

.kv-done__mark {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 0 0.9rem;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kv-done__mark circle {
  fill: var(--ink-900);
}

.kv-done__mark path {
  stroke: var(--yellow-500);
  stroke-width: 4.5;
}

.kv-done p {
  max-width: 38rem;
  margin: 0;
  color: var(--text-on-light);
  font-size: 1rem;
  line-height: 1.6;
}

.kv-done strong {
  overflow-wrap: anywhere;
}

.kv-after {
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--kv-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-on-light);
}

.kv-after h3 {
  margin: 0 0 0.65rem;
  color: var(--ink-900);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.kv-next {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.975rem;
  line-height: 1.5;
  list-style: none;
}

.kv-next li {
  position: relative;
  padding-left: 1.5rem;
}

.kv-next li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 0.8rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-900);
  content: "";
}

.kv-links {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.kv-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.6rem 0.85rem 0.6rem 1rem;
  border: 1px solid var(--kv-line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.kv-links svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--kv-control);
  stroke-width: 2;
}

.kv-restart {
  min-height: 2.75rem;
  padding: 0 0.2rem;
  border: 0;
  background: none;
  color: var(--kv-blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.925rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   The receipt. Two pieces of paper: the request and, after a perforation, the
   stub with what comes with the quote. In the flow of the page by default
   (that is how it lies after the request has been sent on a phone); beside the
   questions on a wide screen; fixed to the foot of the screen on a phone while
   the questions run. It appears when the script is running.
   ========================================================================== */

.kv-slip {
  --kv-fill: 0%;
  position: relative;
  min-width: 0;
}

.kv-app:not([data-ready]) .kv-slip {
  display: none;
}

.kv-backdrop,
.kv-slot,
.kv-peek {
  display: none;
}

.kv-pieces {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 26rem;
  margin: 0 auto;
  filter: drop-shadow(0 12px 20px rgba(3, 16, 28, 0.16)) drop-shadow(0 1px 2px rgba(3, 16, 28, 0.16));
}

/* A piece of paper. --tt and --tb are the heights of the saw-tooth strips at the
   top and the bottom (0 or 9px), --mt and --mb where the solid part begins and
   ends (0 or 8px, one pixel of overlap). Each tooth is a 12px tile holding two
   corner triangles with 6px on the gradient line, 8.5px high. */
.kv-piece {
  --tt: 0px;
  --mt: 0px;
  --tb: 0px;
  --mb: 0px;
  position: relative;
  background-color: var(--paper-100);
  color: var(--ink-900);
  -webkit-mask:
    linear-gradient(#000, #000) 0 var(--mt) / 100% calc(100% - var(--mt) - var(--mb)) no-repeat,
    linear-gradient(45deg, #000 6px, transparent 0) 0 0 / 12px var(--tt) repeat-x,
    linear-gradient(315deg, #000 6px, transparent 0) 0 0 / 12px var(--tt) repeat-x,
    linear-gradient(135deg, #000 6px, transparent 0) 0 100% / 12px var(--tb) repeat-x,
    linear-gradient(225deg, #000 6px, transparent 0) 0 100% / 12px var(--tb) repeat-x;
  mask:
    linear-gradient(#000, #000) 0 var(--mt) / 100% calc(100% - var(--mt) - var(--mb)) no-repeat,
    linear-gradient(45deg, #000 6px, transparent 0) 0 0 / 12px var(--tt) repeat-x,
    linear-gradient(315deg, #000 6px, transparent 0) 0 0 / 12px var(--tt) repeat-x,
    linear-gradient(135deg, #000 6px, transparent 0) 0 100% / 12px var(--tb) repeat-x,
    linear-gradient(225deg, #000 6px, transparent 0) 0 100% / 12px var(--tb) repeat-x;
}

.kv-paper {
  --tt: 9px;
  --mt: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 9px;
}

.kv-full {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.kv-paper__body {
  position: relative;
  min-height: 0;
}

.kv-paper__head {
  position: relative;
  padding: 0.9rem 0.9rem 0.15rem;
}

.kv-brandline {
  margin: 0;
  font: 700 0.8125rem/1.3 var(--kv-mono);
  letter-spacing: 0.22em;
}

.kv-addr,
.kv-date,
.kv-line__k,
.kv-total__k {
  color: var(--text-muted-light);
  font: 500 0.6875rem/1.45 var(--kv-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kv-addr {
  margin: 0.1rem 0 0;
}

.kv-rule {
  height: 0;
  margin: 0.7rem 0 0.65rem;
  border-top: 1px dashed rgba(4, 18, 31, 0.4);
}

.kv-headrow {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.1rem 0.75rem;
}

.kv-paper__title {
  max-width: none;
  margin: 0;
  color: var(--ink-900);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.kv-date {
  flex: none;
}

.kv-stamp {
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  margin: 0;
  padding: 0.28rem 0.5rem 0.22rem;
  border: 2px solid currentColor;
  border-radius: 0.3rem;
  color: var(--kv-stamp);
  font: 700 0.6875rem/1.3 var(--kv-mono);
  letter-spacing: 0.12em;
  opacity: 0.92;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.kv-stamp span {
  display: block;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.kv-lines {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.kv-lines > li {
  border-bottom: 1px dashed rgba(4, 18, 31, 0.2);
}

.kv-line {
  position: relative;
  display: flex;
  align-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.1rem 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.55rem 2rem 0.55rem 0.9rem;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

div.kv-line {
  padding-right: 0.9rem;
  cursor: default;
}

.kv-line__k {
  flex: 0 0 auto;
  max-width: 100%;
}

.kv-line__v {
  flex: 1 1 6rem;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: right;
}

.kv-line__pen {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: -0.425rem;
  color: var(--kv-control);
  stroke-width: 2;
}

.kv-line:focus-visible,
.kv-peek:focus-visible {
  outline: 3px solid var(--kv-blue);
  outline-offset: -3px;
}

.kv-empty {
  margin: 0;
  padding: 0.75rem 0.9rem 0.9rem;
  color: var(--text-muted-light);
  font-size: 0.9rem;
  line-height: 1.45;
}

.kv-tip {
  margin: 0;
  padding: 0.55rem 0.9rem 0.3rem;
  color: var(--text-muted-light);
  font-size: 0.78rem;
  line-height: 1.4;
}

.kv-paper__foot {
  flex: none;
  padding: 0.3rem 0.9rem 0.95rem;
  background-color: var(--paper-100);
}

.kv-rule--double {
  height: 4px;
  margin: 0.45rem 0 0.65rem;
  border-top: 1px solid rgba(4, 18, 31, 0.55);
  border-bottom: 1px solid rgba(4, 18, 31, 0.55);
}

/* The label and the price stand on one row. The price takes the width that is left and wraps inside it: its second
   line (the amount excluding VAT) is as wide as a row of its own, and when the row itself could wrap, that width
   pushed the whole price under the label. */
.kv-total {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.1rem 0.75rem;
  margin: 0;
}

.kv-total__v {
  display: flex;
  flex: 1 1 0;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 0.4rem;
  min-width: 0;
  margin-left: auto;
  color: var(--text-muted-light);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}

.kv-total[data-kind="scope"] .kv-total__v {
  color: var(--ink-900);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.kv-amount,
.kv-vat {
  color: var(--ink-900);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.kv-amount {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kv-vat {
  font-size: 0.8125rem;
  font-weight: 650;
}

.kv-total__note {
  margin: 0.45rem 0 0;
  color: var(--text-on-light);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.kv-notes {
  display: grid;
  gap: 0.3rem;
  margin: 0.5rem 0 0;
  padding: 0;
  color: var(--text-on-light);
  font-size: 0.8125rem;
  line-height: 1.45;
  list-style: none;
}

.kv-notes li {
  position: relative;
  padding-left: 0.95rem;
}

.kv-notes li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 0.5rem;
  height: 1.5px;
  background: var(--ink-900);
  content: "";
}

.kv-perf {
  display: flex;
  flex: none;
  align-items: flex-end;
  height: 0.9rem;
  padding: 0 0.6rem;
  color: var(--text-muted-light);
}

.kv-perf svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 2;
  transform: rotate(90deg);
}

/* The stub. Its yellow grows from the left with every answer: that is the
   only meter on the page. Ink on both colours is well above AA. */
.kv-coupon {
  --tb: 9px;
  --mb: 8px;
  flex: none;
  padding-bottom: 9px;
  border-top: 2px dotted rgba(4, 18, 31, 0.5);
  background-color: #fff1bf;
  background-image: linear-gradient(var(--yellow-500), var(--yellow-500));
  background-repeat: no-repeat;
  background-size: var(--kv-fill) 100%;
  color: var(--ink-950);
  transform-origin: 20% 0;
  transition:
    background-size 0.35s var(--ease-cinematic),
    transform 0.35s var(--ease-cinematic),
    margin 0.35s var(--ease-cinematic);
}

.kv-coupon__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.1rem 0.6rem;
  padding: 0.75rem 0.9rem 0.8rem;
}

.kv-coupon__i {
  grid-row: 1 / span 2;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.02rem;
}

.kv-coupon__t {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.kv-coupon__s {
  grid-column: 2;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.45;
}

/* Sent: the paper is cut at the perforation and the stub lies free. */
.kv-slip[data-torn="true"] .kv-paper {
  --tb: 9px;
  --mb: 8px;
  padding-bottom: 9px;
}

.kv-slip[data-torn="true"] .kv-perf {
  display: none;
}

.kv-slip[data-torn="true"] .kv-coupon {
  --tt: 9px;
  --mt: 8px;
  margin-top: 0.55rem;
  padding-top: 7px;
  border-top-color: transparent;
  transform: rotate(-1.4deg) translateY(0.1rem);
}

/* ---------- Wide screens: the questions and the open receipt side by side ---------- */

@media (min-width: 60rem) {
  .kv-app {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
  }

  .kv-card {
    grid-column: 1;
    grid-row: 1;
  }

  .kv-after {
    grid-column: 1;
    grid-row: 2;
  }

  .kv-slip {
    position: sticky;
    top: calc(var(--site-header-bottom) + 1rem);
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  /* The printer: a dark slot the paper comes out of. */
  .kv-slot {
    position: relative;
    z-index: 1;
    display: block;
    height: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, #123552, var(--ink-950) 72%);
    box-shadow:
      inset 0 -0.28rem 0 rgba(0, 0, 0, 0.55),
      0 1px 0 rgba(255, 255, 255, 0.65);
  }

  .kv-pieces {
    max-width: none;
    max-height: calc(100vh - var(--site-header-bottom) - 3.5rem);
    margin: -0.4rem 0.7rem 0;
  }

  .kv-paper {
    --tt: 0px;
    --mt: 0px;
    flex: 0 1 auto;
    padding-top: 0.4rem;
  }

  .kv-full {
    flex: 0 1 auto;
  }

  .kv-paper__body {
    flex: 0 1 auto;
    min-height: 5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .kv-fields--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kv-field--full {
    grid-column: 1 / -1;
  }

  /* A new line: the total and the stub slide down and uncover it. */
  .kv-pieces.is-feeding .kv-paper__foot,
  .kv-pieces.is-feeding .kv-perf,
  .kv-pieces.is-feeding .kv-coupon {
    animation: kv-drop 0.26s var(--ease-cinematic) both;
  }
}

/* A low window: the receipt scrolls with the page instead of sticking. */
@media (min-width: 60rem) and (max-height: 34rem) {
  .kv-slip {
    position: static;
  }

  .kv-pieces {
    max-height: none;
  }

  .kv-paper__body {
    overflow: visible;
  }
}

/* ---------- Phones and tablets: the receipt stands at the foot of the screen ---------- */

/* While it stands there (html.kv-docked, set by the script), the page keeps the height of the strip free: under the
   card, so the send button and the last message come to rest above the strip; at the end of the page; and for
   everything that is scrolled into view by focus. --kv-dock is the measured height of the strip. */
html.kv-docked {
  scroll-padding-bottom: calc(var(--kv-dock, 7.5rem) + 1rem);
}

html.kv-docked .site-footer::after {
  display: block;
  height: var(--kv-dock, 7.5rem);
  content: "";
}

/* If the consent control is not docked under the card, it stands above the strip. (The chat launcher is never
   floating on this page: see .brief-page .yw-support-button.) */
html.kv-docked body > .yc-withdraw {
  bottom: calc(var(--kv-dock, 7.5rem) + 0.5rem);
}

@media (max-width: 59.99rem) {
  .kv-app:not([data-view="sent"]) {
    padding-bottom: calc(var(--kv-dock, 7.5rem) + 0.5rem);
  }

  .kv-app:not([data-view="sent"]) .kv-slip {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    padding: 0 12px;
    pointer-events: none;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="true"] .kv-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(3, 16, 28, 0.5);
    pointer-events: auto;
    touch-action: none;
  }

  .kv-app:not([data-view="sent"]) .kv-pieces {
    max-width: 30rem;
    max-height: calc(100vh - var(--site-header-bottom) - 1rem);
    max-height: calc(100dvh - var(--site-header-bottom) - 1rem);
    overflow-x: hidden;
    overflow-y: auto;
    filter: drop-shadow(0 -8px 18px rgba(3, 16, 28, 0.2)) drop-shadow(0 -1px 1px rgba(3, 16, 28, 0.2));
    pointer-events: auto;
    transition: transform 0.22s var(--ease-cinematic);
  }

  .kv-app:not([data-view="sent"]) .kv-paper {
    flex: 0 1 auto;
  }

  .kv-app:not([data-view="sent"]) .kv-peek {
    display: grid;
    flex: none;
  }

  .kv-app:not([data-view="sent"]) .kv-full,
  .kv-app:not([data-view="sent"]) .kv-perf {
    display: none;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="true"] .kv-full {
    display: flex;
    flex: 0 1 auto;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="true"] .kv-perf {
    display: flex;
  }

  .kv-app:not([data-view="sent"]) .kv-paper__body {
    flex: 0 1 auto;
    min-height: 3.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .kv-app:not([data-view="sent"]) .kv-paper__head {
    padding-top: 0.2rem;
  }

  /* The stub ends at the edge of the screen: no teeth there. */
  .kv-app:not([data-view="sent"]) .kv-coupon {
    --tb: 0px;
    --mb: 0px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-coupon__in {
    align-items: center;
    padding: 0.5rem 0.9rem 0.55rem;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-coupon__i {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-coupon__t {
    font-size: 0.8125rem;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-coupon__s {
    display: none;
  }

  /* Before the first answer only the stub stands at the foot, so nothing lies over the nine tiles on the first
     screen. The paper feeds up with the first answer. */
  .kv-app:not([data-view="sent"]) .kv-slip[data-empty="true"][data-open="false"] .kv-paper {
    display: none;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-empty="true"][data-open="false"] .kv-coupon {
    --tt: 9px;
    --mt: 8px;
    padding-top: 7px;
    border-top-color: transparent;
  }

  /* While a field has the keyboard the strip is the price alone (its two lines: the amount with its VAT words and the
     amount excluding VAT) and the way in. The stub and the last answer wait, so the keyboard leaves room for the field. */
  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-coupon,
  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__tick,
  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__note,
  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] [data-peek-word] {
    display: none;
  }

  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-paper {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__sum .kv-amount {
    font-size: 0.9375rem;
  }

  /* The strip steps down when it would cover the send button, a message or the field in use (see clear() in
     scripts/project-brief.js). */
  .kv-app:not([data-view="sent"]) .kv-slip[data-tucked="true"][data-open="false"] .kv-pieces {
    pointer-events: none;
    transform: translateY(calc(100% + 1.5rem));
    /* A line printed meanwhile must not feed the paper up over what the strip stepped away from. */
    animation: none;
  }

  /* The stub belongs to the same thing to tap as the strip above it. */
  .kv-app:not([data-view="sent"]) .kv-slip[data-empty="false"][data-open="false"] .kv-coupon {
    cursor: pointer;
  }

  /* Printing at the foot: the paper feeds up a little. */
  .kv-app:not([data-view="sent"]) .kv-pieces.is-feeding,
  .kv-app:not([data-view="sent"]) .kv-pieces.is-inking {
    animation: kv-rise 0.26s var(--ease-cinematic) both;
  }

  .kv-app:not([data-view="sent"]) .kv-pieces.is-opening {
    animation: kv-sheet 0.32s var(--ease-cinematic) both;
  }

  /* Sent: the whole receipt comes out into the page, and the stub, torn off, lands
     above it: the reward is on the screen without scrolling past the whole request. */
  .kv-app[data-view="sent"] .kv-pieces.is-out {
    animation: kv-out 0.35s var(--ease-cinematic) both;
  }

  .kv-app[data-view="sent"] .kv-slip[data-torn="true"] .kv-coupon {
    order: -1;
    margin: 0 0 0.75rem;
    transform: rotate(-1.4deg);
  }

  .kv-app[data-view="sent"] .kv-coupon.is-landing {
    animation: kv-land 0.35s var(--ease-cinematic) 0.2s both;
  }
}

/* The foot of the receipt as a button: the last answer, the price, and the way in. */
.kv-peek {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.35rem 0.9rem 0.5rem;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.kv-peek__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.kv-peek__tick {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted-light);
  font: 500 0.6875rem/1.6 var(--kv-mono);
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.kv-peek__toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.kv-peek__toggle svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.2;
  transition: transform 0.2s var(--ease-cinematic);
}

.kv-slip[data-open="true"] .kv-peek__toggle svg {
  transform: rotate(180deg);
}

.kv-peek__sum {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.4rem;
  min-width: 0;
  color: var(--text-on-light);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
}

.kv-peek__sum[data-kind="scope"] {
  color: var(--ink-900);
  font-size: 1.0625rem;
  font-weight: 800;
}

.kv-peek__sum .kv-amount {
  font-size: 1.0625rem;
}

/* Where an answer goes beyond the package, the strip says so under the price. */
.kv-peek__note {
  display: block;
  margin-top: 0.1rem;
  color: var(--text-on-light);
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.4;
}

.kv-slip[data-open="true"] .kv-peek__tick,
.kv-slip[data-open="true"] .kv-peek__sum,
.kv-slip[data-open="true"] .kv-peek__note {
  display: none;
}

/* While a field has the keyboard, and on a low screen (a phone on its side): the price and the way in share one row. */
@media (max-width: 59.99rem) {
  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 2.75rem;
    padding-bottom: 0.35rem;
  }

  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__row {
    display: contents;
  }

  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .kv-app[data-typing="true"]:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__sum {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 59.99rem) and (max-height: 34rem) {
  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 2.75rem;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__row {
    display: contents;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__tick,
  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__note {
    display: none;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .kv-app:not([data-view="sent"]) .kv-slip[data-open="false"] .kv-peek__sum {
    grid-column: 1;
    grid-row: 1;
  }
}

/* ---------- Chat and consent controls ---------- */

/* On every other page these float over the corner. Here the receipt stands at the foot
   of the screen, so the script docks them under the card. */
.brief-dock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.brief-dock:empty {
  display: none;
}

.brief-page .yw-support-button {
  position: static;
  order: 1;
  grid-template-columns: 29px 1fr;
  gap: 9px;
  width: auto;
  margin: 22px auto;
  padding: 10px 16px 10px 14px;
  border: 1px solid rgba(254, 196, 0, 0.55);
  border-radius: 50px;
  background: var(--navy-900);
  box-shadow: none;
}

.brief-page .brief-dock .yw-support-button {
  margin: 0;
}

.brief-page .yw-support-icon {
  width: 29px;
  height: 29px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--yellow-500);
}

.brief-page .yw-support-icon svg {
  width: 21px;
  height: 21px;
}

.brief-page .yw-support-identity,
.brief-page .yw-support-greeting,
.brief-page .yw-support-button::after {
  display: none;
}

.brief-page .yw-support-action {
  margin: 0;
  padding: 0;
  background: none;
  color: #fff;
  font-size: 0.8rem;
}

.brief-page .yw-support-button:hover:not(:disabled) .yw-support-action {
  background: none;
}

.brief-page .yw-support-button:hover:not(:disabled) {
  box-shadow: none;
  transform: none;
}

.brief-page .brief-dock .yw-support-revoke,
.brief-page .brief-dock .yc-withdraw {
  position: static;
  order: 2;
}

.brief-page .yw-support-consent,
.brief-page .yw-support-error {
  bottom: 24px;
  max-height: calc(100dvh - 48px);
}

/* ---------- Narrower screens ---------- */

@media (max-width: 66rem) {
  .brief-hero__art .brief-hero__arc,
  .brief-hero__art .brief-hero__node {
    display: none;
  }

  .brief-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }

  .brief-hero__aside {
    max-width: 34rem;
  }
}

@media (max-width: 38rem) {
  .brief-page {
    --brief-overlap: 2.75rem;
  }

  /* The hero is short on a phone, so the first question is on the first screen: the breadcrumb already names the
     page, and what the lead and the three points say is said by the receipt. */
  .brief-hero {
    padding-top: calc(var(--header-height) + 3.4rem);
    padding-bottom: calc(var(--brief-overlap) + 1rem);
  }

  .brief-hero .eyebrow,
  .brief-hero__lead,
  .brief-hero__aside {
    display: none;
  }

  .brief-hero h1 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 8.8vw, 2.3rem);
  }

  .brief-layout {
    width: min(var(--content), calc(100% - 24px));
  }

  .kv-card {
    padding: 1.05rem 1rem 1.2rem;
    border-radius: var(--radius-md);
  }

  .kv-q__foot .kv-btn,
  .kv-send .kv-btn {
    width: 100%;
  }
}

@media (min-width: 38.01rem) {
  .kv-tiles {
    gap: 0.65rem;
  }

  .kv-tile {
    min-height: 6.25rem;
    font-size: 0.9rem;
  }
}

/* Under 360px three tiles in a row are too narrow for "WordPress-" (73px of the 69px a tile has at 320px): two in a
   row have 114px, which holds every label on one or two lines. The rows give the labels the room of their margins. */
@media (max-width: 22.49rem) {
  .kv-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kv-tile--quiet {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 3rem;
    padding: 0.5rem 0.75rem;
  }

  .kv-row {
    gap: 0.6rem;
    padding-right: 1.9rem;
    padding-left: 0.7rem;
    font-size: 0.95rem;
  }

  .kv-row::after {
    right: 0.8rem;
  }

  .kv-row--multi {
    padding-right: 0.7rem;
  }
}

/* ---------- Motion: short, and the site's own curve ---------- */

@media (hover: hover) and (pointer: fine) {
  .kv-tile:hover,
  .kv-row:hover {
    border-color: var(--ink-900);
    box-shadow: 0 10px 24px rgba(3, 16, 28, 0.1);
    transform: translateY(-2px);
  }

  .kv-tile.is-checked:hover {
    box-shadow: 0 14px 30px rgba(3, 16, 28, 0.26);
  }

  .kv-btn:hover {
    background: var(--yellow-300);
    box-shadow: 0 10px 24px rgba(254, 196, 0, 0.3);
    transform: translateY(-2px);
  }

  .kv-back:hover,
  .kv-unfold:hover {
    color: var(--ink-900);
    border-color: var(--ink-900);
  }

  button.kv-line:hover {
    background: rgba(254, 196, 0, 0.18);
  }

  button.kv-line:hover .kv-line__pen {
    color: var(--ink-900);
  }

  .kv-links a:hover {
    border-color: var(--ink-900);
  }
}

.kv-tile:active,
.kv-row:active,
.kv-btn:active {
  transform: scale(0.97);
  transition-duration: 0.07s;
}

.kv-in {
  animation: kv-in 0.3s var(--ease-cinematic) both;
}

.kv-in--back {
  animation-name: kv-in-back;
}

/* Ink: a new or changed line is written from the left in steps, like a print head. */
.kv-lines > .is-new .kv-line__k,
.kv-lines > .is-new .kv-line__v,
.kv-total__v.is-new,
.kv-peek__sum.is-new,
.kv-peek__tick.is-new {
  animation: kv-ink 0.3s steps(12, end) both;
}

.kv-stamp.is-new {
  animation: kv-stamp 0.28s var(--ease-cinematic) both;
}

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

@keyframes kv-in-back {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}

@keyframes kv-ink {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes kv-drop {
  from {
    transform: translateY(-2.5rem);
  }
}

@keyframes kv-rise {
  from {
    transform: translateY(0.6rem);
  }
}

@keyframes kv-sheet {
  from {
    transform: translateY(calc(100% - 6.5rem));
  }
}

@keyframes kv-out {
  from {
    opacity: 0;
    transform: translateY(-1.5rem);
  }
}

@keyframes kv-land {
  from {
    opacity: 0;
    transform: translateY(1rem) rotate(1.5deg);
  }
}

@keyframes kv-stamp {
  from {
    opacity: 0;
    transform: rotate(-6deg) scale(1.5);
  }
}

@keyframes kv-spin {
  to {
    transform: rotate(360deg);
  }
}

/* content.css already shortens every animation and transition. These take away
   what is left: slides, feeds, presses and lifts. The answers and the price are
   simply there. The sending ring keeps turning: it is the only sign of the wait. */
@media (prefers-reduced-motion: reduce) {
  .kv-in,
  .kv-pieces,
  .kv-pieces *,
  .kv-stamp {
    animation: none !important;
  }

  .kv-tile,
  .kv-tile::before,
  .kv-tile::after,
  .kv-row,
  .kv-btn,
  .kv-coupon,
  .kv-pieces,
  .kv-peek__toggle svg {
    transition: none !important;
  }

  .kv-tile:hover,
  .kv-row:hover,
  .kv-btn:hover,
  .kv-tile:active,
  .kv-row:active,
  .kv-btn:active {
    transform: none;
  }

  .kv-btn[aria-busy="true"]::before {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}
