/* page.css — prose and form pages (legal, about, contact, thankyou).
   Loaded after lp1.css, which already owns the header, footer and buttons.
   Only what those pages add lives here. */

.pg { padding: 72px 0 96px; }
.pg__in { max-width: 46rem; }

/* Measure, not width: legal prose is read line by line and 46rem at 17px is
   roughly the 70-character line the eye tracks without losing its place.
   The .wrap max-width (1140px) is a layout container for the marketing
   sections and is far too wide for a paragraph. */

.pg__kicker {
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}

.pg h1 {
  font-size: clamp(30px, 4.4vw, 42px); line-height: 1.12;
  letter-spacing: -.022em; margin: 0 0 10px; color: var(--ink);
}

.pg__lede { font-size: 17px; line-height: 1.62; color: var(--ink-2); margin: 0 0 8px; }

.pg__updated {
  font-size: 13px; color: var(--muted);
  padding-bottom: 26px; margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.pg h2 {
  font-size: 21px; line-height: 1.3; letter-spacing: -.012em;
  margin: 44px 0 12px; color: var(--ink); scroll-margin-top: 90px;
}

.pg h3 {
  font-size: 16px; line-height: 1.4; margin: 26px 0 8px; color: var(--ink);
}

.pg p { font-size: 15.5px; line-height: 1.68; color: var(--ink-2); margin: 0 0 14px; }

.pg ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.pg li {
  position: relative; padding-left: 20px; margin-bottom: 8px;
  font-size: 15.5px; line-height: 1.62; color: var(--ink-2);
}
/* A pseudo-element bullet rather than list-style so the marker keeps the
   brand violet and stays aligned with the text's first line at any size —
   native markers ignore both. */
.pg li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--violet);
}

.pg a { color: var(--violet-3); text-underline-offset: 2px; }
.pg strong { color: var(--ink); font-weight: 600; }

/* Company block, reused on every legal page and on /about. */
.pg__card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 18px 20px; margin: 0 0 18px;
}
.pg__card p { margin: 0; font-size: 14.5px; }
.pg__card p + p { margin-top: 6px; }

.pg__note {
  background: var(--violet-soft); border: 1px solid var(--violet-line);
  border-radius: var(--r-m); padding: 16px 18px; margin: 22px 0;
}
.pg__note p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.pg__note p + p { margin-top: 8px; }

/* ── /about grid ─────────────────────────────────────────────── */
.pg__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 14px; margin: 20px 0 8px;
}
/* minmax(15rem,…) rather than 1fr: an auto-fit track floors at min-content,
   so on a narrow phone the columns collapse to the longest word instead of
   dropping to one per row. Same trap as the pricing cards. */
.pg__tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 18px; box-shadow: var(--shadow-s);
}
.pg__tile b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 5px; }
.pg__tile span { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ── /contact ────────────────────────────────────────────────── */
.pg__cols {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px; align-items: start;
}
@media (max-width: 760px) { .pg__cols { grid-template-columns: 1fr; gap: 28px; } }

.cf { display: flex; flex-direction: column; gap: 14px; }
.cf__row { display: flex; flex-direction: column; gap: 6px; }
.cf__row label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cf__row .req { color: var(--red); }

.cf input, .cf textarea {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink);
  font: 400 15px/1.5 inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cf input:focus, .cf textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-soft);
}
.cf textarea { resize: vertical; min-height: 132px; }

/* :user-invalid, not :invalid — :invalid paints every required field red on
   first paint, before the visitor has typed anything. */
.cf input:user-invalid, .cf textarea:user-invalid { border-color: var(--red); }

.cf__btn { align-self: flex-start; margin-top: 4px; }
.cf__btn[disabled] { opacity: .6; cursor: not-allowed; }

.cf__msg { font-size: 14px; line-height: 1.55; margin: 0; }
.cf__msg[data-state="err"] { color: var(--red); }
.cf__msg[data-state="ok"] { color: var(--green); }
.cf__msg:empty { display: none; }

.cf__consent { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 2px 0 0; }
.cf__consent a { color: var(--muted); text-decoration: underline; }

.pg__aside { display: flex; flex-direction: column; gap: 14px; }

/* ── /thankyou ───────────────────────────────────────────────── */
.pg--center { text-align: center; }
.pg--center .pg__in { max-width: 34rem; }
.pg--center .pg__check {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line);
}
.pg--center .pg__check svg { width: 24px; height: 24px; stroke: var(--green); }

@media (max-width: 560px) {
  .pg { padding: 48px 0 68px; }
  .pg h2 { margin-top: 34px; }
}

/* The honeypot. Off-screen rather than display:none — a bot reading the DOM
   skips anything hidden, which defeats the point; this stays a real, focusable,
   fillable field that no sighted or assistive user is sent to. */
.cf__hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ---- /welcome/ ──────────────────────────────────────────────────────
   Read for about two seconds before the redirect fires, so everything here
   has to be legible at a glance and nothing may move under the eye. */
.wl__recap {
  max-width: 22rem; margin: 22px auto 0; padding: 4px 18px;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface-2); text-align: left;
}
.wl__recap[hidden] { display: none; }
.wl__line {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 11px 0; font-size: 14px;
}
.wl__line + .wl__line { border-top: 1px solid var(--line); }
.wl__line span { color: var(--muted); }
.wl__line b { color: var(--ink); font-weight: 600; text-align: right; }

.wl__go { margin: 24px 0 0; min-height: 48px; }
/* The button is reserved space rather than an element that pops in: without
   the min-height the recap jumps upward the moment the fetch resolves. */
.wl__go .btn[hidden] { display: none; }

.wl__redirect { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.wl__redirect[hidden] { display: none; }

.wl__note {
  max-width: 30rem; margin: 20px auto 0; padding: 12px 16px;
  border: 1px solid var(--amber-line); background: var(--amber-soft);
  border-radius: var(--r-m); font-size: 13.5px; line-height: 1.55;
  color: var(--ink-2); text-align: left;
}
.wl__note[hidden] { display: none; }

.wl__help { margin: 26px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* The CTA is a .btn inside .pg, and `.pg a { color: var(--violet-3) }` was
   winning over the gradient button's own white — violet text on a violet
   fill, which read as a blank button. */
.pg .btn-grad { color: #fff; }
