/* FieldFix GPS landing page.
   Plain CSS, no build step. Colours are designed in OKLCH; the hex values are
   the same colours for older browsers. One accent: field green. */

:root {
  --bg: #ffffff;
  --ink: #131d17;
  --ink-2: #435147;
  --green: #116031;
  --green-hover: #044d25;
  --green-deep: #00411f;
  --tint: #edf6ef;
  --tint-2: #dbeede;
  --line: #ced7cf;
  --line-strong: #738678;
  --on-green: #f6fcf7;
  --on-green-muted: #cae7cf;
  --error: #ac1a1c;
  --error-tint: #fdeeec;

  --font-display: Bahnschrift, "DIN Alternate", "DIN 2014", "Franklin Gothic Medium", sans-serif-condensed, "Arial Narrow", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --step-3: clamp(2.3rem, 1.4rem + 3.9vw, 3.9rem);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 2.6rem + 6vw, 7.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-banner: 30;

  color-scheme: light;
}

@supports (color: oklch(0 0 0)) {
  :root {
    --ink: oklch(0.22 0.02 155);
    --ink-2: oklch(0.42 0.025 155);
    --green: oklch(0.43 0.105 152);
    --green-hover: oklch(0.37 0.095 152);
    --green-deep: oklch(0.33 0.085 153);
    --tint: oklch(0.965 0.014 150);
    --tint-2: oklch(0.93 0.03 150);
    --line: oklch(0.87 0.015 150);
    --line-strong: oklch(0.6 0.03 152);
    --on-green: oklch(0.985 0.01 150);
    --on-green-muted: oklch(0.9 0.045 150);
    --error: oklch(0.48 0.18 27);
    --error-tint: oklch(0.965 0.015 27);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Always keep room for the scrollbar, so that the page is the same width
     whether or not it can scroll. See "Sign-up dialog" below. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font-body);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
  letter-spacing: -0.012em;
}

/* Each sentence of the main headline starts on its own line. */
.h-line {
  display: block;
}

/* The four fixed headlines. js/head.js sets data-v on <html> for ?v=a, ?v=b or ?v=c;
   with no value, or without JavaScript, the main headline shows. */
.hv {
  display: none;
}

html:not([data-v]) .hv--default,
html[data-v="a"] .hv--a,
html[data-v="b"] .hv--b,
html[data-v="c"] .hv--c {
  display: block;
}

h2 {
  font-size: var(--step-2);
  letter-spacing: -0.008em;
}

h3 {
  font-size: var(--step-1);
  line-height: 1.2;
}

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

p {
  text-wrap: pretty;
}

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

a:hover {
  color: var(--green-deep);
  text-decoration-thickness: 2px;
}

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

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 40;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
  color: #fff;
}

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

/* A ruled line with tick marks, like the scale on a map margin. */
.ruler {
  height: 9px;
  margin: 0;
  border: 0;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 6rem) left top / 100% 9px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 1.5rem) left top / 100% 4px no-repeat;
}

/* ---------- Masthead ---------- */

.masthead__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.3rem / 1 var(--font-display);
  letter-spacing: 0.005em;
}

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

.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.brand__gps {
  color: var(--green);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.3;
}

.status-tag::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  border: 2px solid var(--green);
  border-radius: 50%;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.4rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font: 600 1.0625rem / 1.2 var(--font-display);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-hover);
  color: #fff;
}

/* Pressed: a darker shade. The button never moves or changes size. */
.btn--primary:active {
  background: var(--green-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--tint);
  color: var(--ink);
}

.btn--ghost:active {
  background: var(--tint-2);
}

.btn[disabled] {
  cursor: progress;
  background: var(--ink-2);
  color: #fff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.hero {
  padding-block: clamp(2rem, 1rem + 4.5vw, 5rem) clamp(3rem, 2rem + 5vw, 6rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__copy {
  max-width: 44rem;
}

.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink);
}

.hero .cta-row {
  margin-top: 2.25rem;
}

.hero__note {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.sheet {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}

.sheet__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.sheet figcaption,
.proof figcaption {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.45;
}

.sheet__frame {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.25;
}

.sheet__tick,
.sheet__cross {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

.sheet__cross {
  stroke: var(--line-strong);
}

.sheet__wood {
  fill: var(--tint-2);
}

.sheet__hatch {
  stroke: var(--green);
  stroke-width: 1.4;
  opacity: 0.45;
}

.sheet__area {
  fill: url(#hatch);
  stroke: var(--green);
  stroke-width: 2;
  stroke-linejoin: round;
}

.sheet__vertex {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 1.5;
}

.sheet__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.sheet__node {
  fill: var(--ink);
  stroke: #fff;
  stroke-width: 1.5;
}

.sheet__point {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 2;
}

.sheet__callout {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1;
}

.sheet__leader {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

.sheet__ink {
  fill: var(--ink);
}

.sheet__label {
  fill: var(--ink-2);
  font: 400 11px / 1 var(--font-mono);
}

.sheet__title {
  fill: var(--ink);
  font: 600 14px / 1 var(--font-display);
}

.sheet__north {
  font-size: 12px;
}

.sheet__attr {
  fill: var(--ink-2);
  font: 400 11px / 1 var(--font-mono);
}

.sheet__legend {
  fill: var(--ink);
  font: 400 12.5px / 1 var(--font-body);
}

@media (prefers-reduced-motion: no-preference) {
  html[data-draw] .sheet .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: sheet-draw 1.2s var(--ease) 0.2s forwards;
  }

  html[data-draw] .sheet .draw--late {
    animation-delay: 0.75s;
  }

  html[data-draw] .sheet .pop {
    animation: sheet-pop 0.5s var(--ease) both;
  }

  html[data-draw] .sheet .pop--1 {
    animation-delay: 0.83s;
  }

  html[data-draw] .sheet .pop--2 {
    animation-delay: 0.94s;
  }

  html[data-draw] .sheet .pop--3 {
    animation-delay: 1.05s;
  }

  html[data-draw] .sheet .pop--4 {
    animation-delay: 1.16s;
  }
}

@keyframes sheet-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sheet-pop {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

.section--tint {
  background: var(--tint);
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.section__sub {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

/* Sound familiar? */

.problems {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.problems li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.4;
}

/* A crossed box: the thing that stopped working. */
.problems li::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2em;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(45deg, transparent calc(50% - 0.8px), var(--ink) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px)),
    linear-gradient(-45deg, transparent calc(50% - 0.8px), var(--ink) calc(50% - 0.8px) calc(50% + 0.8px), transparent calc(50% + 0.8px));
}

/* What FieldFix GPS will do */

.does {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding: 0;
  list-style: none;
  display: grid;
  border-top: 1.5px solid var(--ink);
}

.does__step {
  position: relative;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}

.does__n {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 1rem;
  background: var(--ink);
  color: #fff;
  font: 600 1rem / 1 var(--font-display);
}

.does__step h3 {
  margin-bottom: 0.5rem;
}

.does__step p {
  max-width: 30rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: 500 0.8125rem / 1 var(--font-mono);
}

.does__always {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 1.5rem;
  margin-top: 1.5rem;
  background: #fff;
  border: 1.5px solid var(--ink);
}

.does__always svg {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.does__always p {
  font: 600 var(--step-1) / 1.3 var(--font-display);
}

.next-note {
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* Built for teams that can't use the cloud */

.band {
  padding-block: var(--section);
  background: var(--green);
  color: var(--on-green);
}

.band :focus-visible {
  outline-color: #fff;
}

.band__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.band p {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
}

.band__diagram {
  display: block;
  width: 100%;
  max-width: 27rem;
  height: auto;
  margin-inline: auto;
}

.band__diagram .stroke {
  fill: none;
  stroke: var(--on-green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band__diagram .stroke--muted {
  stroke: var(--on-green-muted);
  stroke-width: 1.75;
}

.band__diagram .dash {
  stroke-dasharray: 4 5;
}

.band__diagram .fill {
  fill: var(--on-green);
}

.band__diagram .t-title {
  fill: var(--on-green);
  font: 600 18px / 1 var(--font-display);
}

.band__diagram .t-small {
  fill: var(--on-green-muted);
  font: 400 12.5px / 1 var(--font-body);
}

/* Early proof */

.proof {
  max-width: 46rem;
}

.proof__box {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
    var(--tint);
}

/* Corner marks, like the registration marks on a printed plate. */
.proof__box::before,
.proof__box::after {
  content: "";
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--ink);
}

.proof__box::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.proof__box::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.proof__box span {
  padding: 0.5rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font: 500 0.8125rem / 1.2 var(--font-mono);
  text-align: center;
}

.proof__box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof__box--image {
  border-style: solid;
  border-color: var(--ink);
  background: #fff;
}

/* Pricing */

.price {
  max-width: 34rem;
  border: 1.5px solid var(--ink);
  background: #fff;
}

.price__main {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.price__label {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.price__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-top: 0.4rem;
}

.price__amount strong {
  font: 600 clamp(3rem, 2.4rem + 3vw, 4.25rem) / 1 var(--font-display);
  letter-spacing: -0.02em;
}

.price__amount span {
  color: var(--ink-2);
}

.price__vat {
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.price__founding {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem clamp(1.5rem, 4vw, 2.25rem);
  border-block: 1px solid var(--ink);
  background: var(--tint);
}

.price__founding dt {
  color: var(--green-deep);
  font: 600 var(--step-0) / 1.2 var(--font-display);
}

.price__founding dd {
  font: 600 var(--step-1) / 1.2 var(--font-display);
}

.price__foot {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.price__foot .cta-row {
  margin-top: 1.25rem;
}

.price__foot .btn {
  flex: 1 1 14rem;
}

/* Status */

.status__text {
  max-width: 40rem;
  font: 600 clamp(1.3rem, 1.1rem + 1vw, 1.75rem) / 1.3 var(--font-display);
}

.status__more {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--ink-2);
}

.status .cta-row {
  margin-top: 2rem;
}

/* FAQ */

.faq {
  display: grid;
  gap: 0 clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--ink);
}

.faq > div {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.faq dt {
  font: 600 var(--step-1) / 1.25 var(--font-display);
}

.faq dd {
  margin-top: 0.5rem;
  max-width: 34rem;
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 0 3rem;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.55;
}

.footer__in {
  display: grid;
  gap: 1rem;
  padding-top: 2rem;
}

.footer p {
  max-width: 46rem;
}

.footer a,
.linklike {
  color: var(--ink);
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.linklike:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Sign-up dialog ---------- */

/* While the form is open the page behind it does not scroll. That removes the
   page's scrollbar, and the page must not get wider when it goes, or everything
   would jump sideways. Browsers that honour "scrollbar-gutter" (above) keep the
   room by themselves. For the others, js/site.js measures how much wider the
   page became and gives that back here as padding, in the same step. */
html.form-open {
  overflow: hidden;
  padding-right: var(--scrollbar-room, 0px);
}

.dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-width: none;
  max-height: 92vh;
  max-height: min(92dvh, 58rem);
  padding: 0;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / 0.5);
  overflow: hidden;
}

.dialog[open] {
  display: flex;
  flex-direction: column;
}

.dialog::backdrop {
  background: rgb(19 29 23 / 0.6);
}

/* Fallback for browsers without <dialog>. */
.dialog.is-fallback {
  position: fixed;
  inset: 0;
  z-index: 50;
  margin: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .dialog[open] {
    animation: dialog-in 0.26s var(--ease);
  }

  .dialog[open]::backdrop {
    animation: fade-in 0.2s linear;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.dialog form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.1rem 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.dialog__head h2 {
  font-size: 1.6rem;
}

.dialog__head h2:focus {
  outline: none;
}

.dialog__head p {
  margin-top: 0.35rem;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.45;
}

.dialog__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  margin: -0.4rem -0.4rem 0 0;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.dialog__close:hover {
  background: var(--tint);
}

.dialog__close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.dialog__body {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.field,
.fieldset {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label,
.fieldset legend {
  padding: 0;
  font: 600 1rem / 1.3 var(--font-display);
  letter-spacing: 0.005em;
}

.fieldset legend {
  margin-bottom: 0.5rem;
}

.hint {
  margin-left: 0.4rem;
  color: var(--ink-2);
  font: 400 0.8125rem / 1.3 var(--font-body);
  letter-spacing: 0;
}

.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem / 1.4 var(--font-body);
}

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

.input:focus-visible {
  border-color: var(--ink);
  outline-offset: 0;
}

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

select.input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("/img/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
}

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

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choices--stack {
  display: grid;
}

.choices--seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem 0.5rem 0.7rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.3;
  cursor: pointer;
}

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

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: none;
  accent-color: var(--green);
}

.choices--seg .choice {
  justify-content: center;
  padding-inline: 0.5rem;
}

@supports selector(:has(a)) {
  .choice:has(input:checked) {
    border-color: var(--green);
    background: var(--tint);
  }

  .choice:has(input:focus-visible) {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
  }

  .choice input:focus-visible {
    outline: none;
  }
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  cursor: pointer;
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--green);
}

.consent.is-invalid,
.fieldset.is-invalid .choice {
  border-color: var(--error);
}

.field__err {
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.4;
}

.form-alert {
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--error);
  border-radius: 3px;
  background: var(--error-tint);
  color: var(--error);
  font-weight: 600;
  line-height: 1.45;
}

.form-alert a {
  color: inherit;
}

/* The honeypot: kept in the page for bots, out of sight and reach for people. */
.hp {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The spam-check box is never narrower than 300px. On the smallest phones it
   borrows a little of the side padding so that nothing scrolls sideways. */
.ts {
  min-height: 4.1rem;
  margin-inline: min(0px, calc((100% - 300px) / 2));
}

.dialog__foot {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.25rem;
}

.dialog__foot .btn {
  width: 100%;
}

.fineprint {
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 40rem) {
  .dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
  }

  .dialog__head {
    padding: 1rem 1rem 0.9rem 1.15rem;
  }

  .dialog__body {
    padding: 1.25rem 1.15rem 1.75rem;
  }

  .choices--seg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Cookie banner ---------- */

.cookie {
  position: fixed;
  left: 1rem;
  /* Pinned to the window, so it needs the same allowance as the page (see "Sign-up dialog"). */
  right: calc(1rem + var(--scrollbar-room, 0px));
  bottom: 1rem;
  z-index: var(--z-banner);
  display: grid;
  gap: 0.9rem;
  max-width: 28rem;
  padding: 1.1rem 1.15rem;
  border: 1.5px solid var(--ink);
  background: #fff;
  box-shadow: 0 16px 40px -18px rgb(0 0 0 / 0.45);
  font-size: var(--step--1);
  line-height: 1.5;
}

.cookie__title {
  font: 600 1.0625rem / 1.2 var(--font-display);
}

.cookie__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* Accept and Reject look the same on purpose. */
.cookie__buttons .btn {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

/* ---------- Plain pages: thanks, privacy, not found ---------- */

.page {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) var(--section);
}

.page__in {
  max-width: 44rem;
}

.page h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.25rem);
}

.page .lede {
  max-width: none;
}

.page .btn {
  margin-top: 2rem;
}

.doc {
  margin-top: 2rem;
}

.doc h2 {
  margin-top: 2.75rem;
  font-size: 1.5rem;
}

.doc p,
.doc ul {
  margin-top: 0.9rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc code {
  font: 400 0.9em / 1 var(--font-mono);
}

.company {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: 0.6rem 1.5rem;
  margin-top: 1.25rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--ink);
}

.company dt {
  color: var(--ink-2);
}

.company dd {
  margin: 0;
}

@media (max-width: 30rem) {
  .company {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .company dd {
    margin-bottom: 0.7rem;
  }
}

.next-steps {
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.next-steps li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Wider screens ---------- */

@media (min-width: 44rem) {
  .does {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }

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

  .cookie {
    right: auto;
  }
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .sheet {
    margin-inline: auto 0;
  }

  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .does {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
    border-bottom: 1px solid var(--line);
  }

  .does__step {
    padding: 1.75rem 1.75rem 2rem 0;
    border-bottom: 0;
  }

  .does__step + .does__step {
    padding-left: 1.75rem;
    border-left: 1px solid var(--line);
  }

  /* An arrow from each step to the next. */
  .does__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.35rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 0.7rem;
    background:
      linear-gradient(var(--ink), var(--ink)) left center / calc(100% - 2px) 1.5px no-repeat;
    clip-path: polygon(0 0, calc(100% - 0.45rem) 0, calc(100% - 0.45rem) 0, 100% 50%, calc(100% - 0.45rem) 100%, 0 100%);
  }

  .does__step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 2.35rem;
    right: 1.5rem;
    width: 0.45rem;
    height: 0.7rem;
    background: var(--ink);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }

  .band__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

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

  .btn {
    transition: none;
  }
}

@media print {
  .cookie,
  .cta-row,
  .dialog {
    display: none !important;
  }
}
