@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --stone: #bdb8b2;      /* render backdrop */
  --stone-2: #cfcbc5;
  --paper: #f3f1ec;      /* label / polo off-white */
  --ink: #1f1d1b;
  --ink-2: #4a4642;
  --ink-3: #6b655f;
  --navy: #2f3d55;       /* trousers */
  --navy-2: #24304a;
  --navy-busy: #56627a;
  --rust: #b8502e;       /* measurement labels */
  --rust-ink: #a3441f;   /* rust for text and borders (5.5:1 on paper) */
  --field-line: #8f8a84;
  --line: rgba(31, 29, 27, 0.14);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: var(--navy); }
a:hover { color: var(--navy-2); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
h2 { font-size: 1.375rem; }
p { margin: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; max-width: 1104px; margin: 0 auto;
}
.wordmark { font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.pill {
  font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  background: var(--paper); border-radius: 999px; padding: 5px 12px;
}

main { max-width: 1104px; margin: 0 auto; padding: 0 16px; }

/* ---------- hero: title, render, join card ---------- */
.hero { display: grid; gap: 12px; }
.hero-title { font-size: clamp(1.75rem, 7.4vw, 2.25rem); }
.hero-img img {
  width: 100%; height: auto; border-radius: 12px; background: var(--stone-2);
  aspect-ratio: 17 / 10; object-fit: cover; object-position: 50% 44%;
}

.join { background: var(--paper); border-radius: var(--radius); padding: 16px; }
#signup { display: grid; gap: 12px; }
.price-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.price-note { color: var(--ink-2); font-weight: 500; }

label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
input[type="text"], input[type="email"] {
  display: block; width: 100%; min-height: 52px; padding: 0 14px; margin: 0;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field-line); border-radius: 10px;
}
input[aria-invalid="true"] { border: 2px solid var(--rust); padding: 0 13px; }
.measure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.measure summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 0.9375rem; color: var(--navy);
}
.measure summary::-webkit-details-marker { display: none; }
.measure summary::before {
  content: ""; width: 7px; height: 7px; margin: 0 4px 0 2px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
  transition: transform 0.15s;
}
.measure[open] summary::before { transform: rotate(45deg); }
.measure summary:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; border-radius: 6px; }
.measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 0 16px; }
.measure-grid input { min-height: 48px; }
.measure-grid .field-err { font-size: 0.8125rem; }
input[type="number"] {
  display: block; width: 100%; padding: 0 12px; margin: 0; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field-line); border-radius: 10px; -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"][aria-invalid="true"] { border: 2px solid var(--rust); padding: 0 11px; }
.measure-note { font-size: 0.875rem; color: var(--ink-2); margin: 0; align-self: start; display: flex; align-items: center; min-height: 48px; margin-top: calc(0.9375rem * 1.55 + 6px); }
.name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 339px) { .name-row { grid-template-columns: 1fr; } }
.field-err { color: var(--rust-ink); font-weight: 500; font-size: 0.875rem; margin-top: 6px; }
.form-msg { color: var(--rust-ink); font-weight: 500; font-size: 0.875rem; }
.cf-turnstile:empty { display: none; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; width: 100%; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--navy); color: #fff; font: inherit; font-weight: 600; font-size: 1.0625rem; line-height: 1;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.btn.is-busy, .btn.is-busy:hover { background: var(--navy-busy); cursor: progress; }
.btn .spin { display: none; }
.btn.is-busy .spin {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy .spin { animation-duration: 2.4s; } }
.btn-danger, .btn-danger:hover { background: transparent; color: var(--rust-ink); border: 1.5px solid var(--rust-ink); }
.btn-danger:hover { background: rgba(163, 68, 31, 0.06); color: var(--rust-ink); }

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

.done { display: grid; gap: 10px; padding: 2px 0; }
.done h2 { font-size: 1.375rem; outline: none; }
.done p { color: var(--ink-2); font-size: 0.9375rem; }
.done strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.small { font-size: 0.8125rem; color: var(--ink-3); }
.done .small { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- how it works ---------- */
.how { padding: 28px 0 0; display: grid; gap: 10px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li {
  background: var(--paper); border-radius: 12px; padding: 12px 14px; color: var(--ink-2); font-size: 0.9375rem;
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
}
.steps .n {
  width: 24px; height: 24px; margin-top: 0; border-radius: 50%; background: var(--rust); color: #fff;
  font-size: 0.8125rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- privacy + footer ---------- */
.privacy { padding: 28px 0 0; max-width: 40rem; }
.privacy h2 { font-size: 1rem; margin-bottom: 6px; }
.privacy p { font-size: 0.8125rem; line-height: 1.55; color: var(--ink-2); }

.foot {
  max-width: 1104px; margin: 0 auto; padding: 24px 16px 32px;
  font-size: 0.8125rem; color: var(--ink-2);
}
.foot a { color: var(--ink-2); }

/* ---------- remove page (from the signed link in the email) ---------- */
body.sub { min-height: 100vh; min-height: 100dvh; padding: max(28px, 12vh) 12px 28px; }
.card-page {
  display: grid; gap: 14px;
  background: var(--paper); border-radius: var(--radius); padding: 20px 18px;
  max-width: 420px; width: 100%; margin: 0 auto;
}
.card-page h1 { font-size: 1.375rem; overflow-wrap: anywhere; }
.card-page .lede { color: var(--ink-2); font-size: 0.9375rem; }
.card-page form { margin: 0; }

/* ---------- desktop: render beside the title and form ---------- */
@media (min-width: 900px) {
  .top { padding: 20px 32px; }
  main { padding: 0 32px; }
  .foot { padding: 32px 32px 40px; }
  .hero {
    grid-template-columns: minmax(0, 480px) minmax(0, 440px);
    grid-template-rows: auto 1fr;
    grid-template-areas: "title img" "join img";
    align-items: start;
    justify-content: space-between; column-gap: 64px; row-gap: 24px; padding-top: 8px;
  }
  .hero-title { grid-area: title; font-size: 3rem; }
  /* The render fills its column and takes the height of the title + card, so their bottoms line up. */
  .hero-img { grid-area: img; align-self: stretch; position: relative; min-height: 540px; margin: 0; }
  .hero-img img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 28%; border-radius: var(--radius);
  }
  .join { grid-area: join; padding: 24px; }
  .how { padding-top: 56px; }
  /* Below the hero: how it works under the title column, privacy under the render column. */
  main { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 440px); justify-content: space-between; column-gap: 64px; align-items: start; }
  main > .hero { grid-column: 1 / -1; }
  .steps li { padding: 14px 16px; }
  .privacy { padding-top: 56px; max-width: none; }
  .card-page { max-width: 500px; padding: 28px 28px; }
}
@media (min-width: 1200px) {
  .hero, main { grid-template-columns: minmax(0, 500px) minmax(0, 460px); column-gap: 96px; }
}
