/* Plain text — reads like a well-written README. */
:root {
  --paper: #FCFCFB;
  --ink: #1C1C1C;
  --muted: #727272;
  --rule: #E4E4E2;
  --line: #CFCFCB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.75 "IBM Plex Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}

.doc {
  max-width: calc(76ch + 48px);
  margin-left: max(0px, 12vw - 24px);
  padding: 10vh 24px 14vh;
}
.doc.wide { max-width: calc(88ch + 48px); }

h1, h2 { font-weight: 500; font-size: inherit; }
h2::before { content: "## "; color: var(--muted); }

.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.brand { font-weight: 500; color: var(--ink); text-decoration: none; }
.brand::before { content: "# "; color: var(--muted); }
.langs { display: flex; gap: 14px; font-size: 13px; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead {
  text-wrap: balance;
  margin-top: 12vh;
  font-weight: 400;
  font-size: clamp(24px, 2.9vw, 34px);
  line-height: 1.4;
  letter-spacing: -.015em;
}
.lead + p { margin-top: 20px; color: #3D3D3D; }

section { margin-top: 72px; }
.actions + section { margin-top: clamp(96px, 13vh, 132px); }
h2 { margin-bottom: 18px; }
p + p { margin-top: 14px; }
.muted { color: var(--muted); }

dl { display: grid; grid-template-columns: minmax(24ch, max-content) 1fr; gap: 14px 28px; margin-top: 18px; }
dt { font-weight: 500; }
dd { color: #3D3D3D; }

/* The price column sizes itself to the widest amount, so "$100k+" and "100.000 $+" both fit on one line. */
.prices { grid-template-columns: max-content 1fr; align-items: baseline; gap: 18px 32px; }
.prices dt { font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }

ul, ol { padding-left: 0; list-style: none; }
ul li { padding-left: 2ch; text-indent: -2ch; }
ul li::before { content: "- "; color: var(--muted); }
ol { counter-reset: step; }
ol li { counter-increment: step; display: grid; grid-template-columns: 4ch 1fr; }
ol li::before { content: counter(step) "."; color: var(--muted); }
ol li + li, ul li + li { margin-top: 8px; }
ul { margin-top: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.cta::after { content: "→"; transition: translate .2s ease; }
.cta:hover { background: #000; }
.cta:hover::after { translate: 4px 0; }
.cta:disabled { cursor: progress; opacity: .7; }

.cta.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cta.ghost::after { content: none; }
.cta.ghost:hover { background: var(--ink); color: var(--paper); }

footer { margin-top: 96px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); }
footer a { color: inherit; text-underline-offset: 3px; }
footer a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Form page: label column on the left, answers on the right, like the lists above. */
.form { margin-top: 56px; }
.form h2 + .row { padding-top: 4px; }
.form .row + h2 { margin-top: 48px; }

.row {
  display: grid;
  grid-template-columns: 22ch minmax(0, 1fr);
  gap: 6px 28px;
  align-items: baseline;
  padding: 12px 0;
}
.row .label { font-weight: 500; }
.row .hint { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }

.form input[type="text"],
.form input[type="email"],
.form select {
  width: 100%;
  max-width: 440px;
  padding: 2px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.form select {
  appearance: none;
  padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231C1C1C' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center;
  cursor: pointer;
}
.form input::placeholder { color: #A9A9A6; }
.form input:focus, .form select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }

/* Options read as text: ( ) and (•) for one choice, [ ] and [x] for several. */
.options { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.options label { position: relative; white-space: nowrap; cursor: pointer; }
.options input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.options span { color: #3D3D3D; }
.options span::before { content: "( ) "; white-space: pre; color: var(--muted); }
.options input[type="checkbox"] + span::before { content: "[ ] "; }
.options input:checked + span { color: var(--ink); }
.options input[type="radio"]:checked + span::before { content: "(•) "; color: var(--ink); }
.options input[type="checkbox"]:checked + span::before { content: "[x] "; color: var(--ink); }
.options label:hover span, .options label:hover span::before { color: var(--ink); }
.options input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.send { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 44px; }
.send .muted { font-size: 13px; }
.form .error { margin-top: 24px; color: #B42318; }
.done { margin-top: 56px; }
.done a { color: var(--ink); text-underline-offset: 3px; }

@media (max-width: 600px) {
  body { font-size: 13px; }
  .doc { margin-left: 0; padding: 32px 20px 96px; }
  .lead { font-size: 21px; }
  dl, .prices { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 14px; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; }
  .form input[type="text"], .form input[type="email"], .form select { max-width: none; }
  .options { gap: 6px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .cta::after { transition: none; }
}

/* Load sequence: the header fades in, the headline types itself out, then the rest follows.
   Only runs when the script in <head> adds .js (skipped for reduced motion). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead .w { white-space: nowrap; }
.lead .c { position: relative; }

.js .intro, .js .doc > section:not(.form), .js .doc > footer {
  opacity: 0;
  translate: 0 10px;
  transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1);
}
.js .intro.in, .js .doc > section.in, .js .doc > footer.in { opacity: 1; translate: none; }

.js .lead { visibility: hidden; }
.js .lead.ready { visibility: visible; }
.js .lead .c { opacity: 0; }
.js .lead .c.on { opacity: 1; }

/* If the script never starts, show everything after a moment anyway. */
.js:not(.running) .intro, .js:not(.running) .lead, .js:not(.running) .doc > section:not(.form), .js:not(.running) .doc > footer {
  animation: failsafe 0s 3s forwards;
}
@keyframes failsafe { to { opacity: 1; translate: none; visibility: visible; } }

/* The form is never hidden or animated, so it shows up instantly in every browser. */
