/* Vertizin — the public page.
 *
 * THE PALETTE COMES FROM THE LOGO, not from the app.
 *
 * The mark is a black wordmark with a golden-amber angled stroke on the V and
 * an amber exclamation point, on a white ground. There is no green in it at
 * all — so the app's cream-and-deep-green family does not carry over, and
 * pretending otherwise would have produced a page that clashes with the one
 * thing on it nobody can change. The amber is sampled straight off the file:
 * #FEC303.
 *
 * Two consequences worth stating, because both are contrast decisions:
 *
 * 1. AMBER IS NEVER TEXT ON WHITE. #FEC303 on white is about 1.7:1 — unreadable
 *    as body copy and marginal even as a heading. It earns its place as a
 *    block, a rule and a button GROUND, where black sits on it at roughly 11:1.
 * 2. The buttons are therefore amber with black type, which is the logo's own
 *    combination rather than an invention.
 *
 * The logo file is a JPEG with a BAKED WHITE BACKGROUND. There is no
 * transparency to work with, so it only ever sits on white sections; the
 * alternating bands are the warm off-white below and the logo never touches
 * one. Fighting a baked background with blend modes would look like a fight.
 */

:root {
  --ink: #14140F;          /* near-black, a hair warm so it agrees with the amber */
  --ink-soft: #55554C;
  --muted: #77776C;
  --accent: #FEC303;       /* sampled from the logo's V and exclamation mark */
  --accent-deep: #E0A800;  /* for hovers and rules, where amber needs to darken */
  --white: #FFFFFF;
  --band: #FAF9F5;         /* warm off-white; the app's cream, quieted */
  --line: #E7E5DE;
  --radius: 14px;
  /* The content column, in rem rather than ch. `ch` is relative to the
     ELEMENT's own font size, so a 2rem heading and a 1rem card given the same
     `68ch` centre to wildly different widths — which is exactly what it did:
     the heading spanned the viewport while the cards sat in the middle. A
     column is one width or it is not a column. */
  --measure: 46rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin-block: 0; }
p { margin-block: 0; }

/* ------------------------------------------------------------------ bar --- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-logo { display: block; line-height: 0; }
.bar-logo img { width: 124px; height: auto; }
.bar-cta {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
}
.bar-cta:hover { border-color: var(--accent-deep); }

/* ----------------------------------------------------------------- hero --- */

section { padding: 72px 20px; }
section > * { max-width: var(--measure); margin-inline: auto; }

.hero { text-align: center; padding-top: 48px; }
.hero-logo {
  width: min(460px, 86vw);
  margin: 0 auto 26px;
}
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: 800;
  max-width: 16ch;
  margin: 0 auto 18px;
}
.hero .sub {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 28px;
}
.hero .micro { margin-top: 14px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);          /* black on amber — the logo's own pairing, ~11:1 */
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 20, 15, 0.08), 0 6px 18px rgba(254, 195, 3, 0.28);
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn-block { display: block; width: 100%; margin-top: 8px; }

.micro { font-size: 0.84rem; color: var(--muted); }

/* ---------------------------------------------------------------- bands --- */

.band { background: var(--band); border-block: 1px solid var(--line); }

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-block: 0 28px;
}
/* The one place amber carries meaning on its own: a short rule under every
   section heading, echoing the stroke through the V. */
h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 12px;
  background: var(--accent);
  border-radius: 2px;
}

.cards { display: grid; gap: 18px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------------------------------------------------------------- steps --- */

/* `margin-block`, not `margin` — a blanket `margin: 0` here would reset the
   `margin-inline: auto` that centres every direct child of a section, and the
   list would sit hard against the left edge under a centred heading. */
.steps {
  list-style: none;
  margin-block: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}
.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}
.step-n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}
.steps h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }

/* -------------------------------------------------------------- reasons --- */

.reasons {
  list-style: none;
  margin-block: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.reasons li {
  position: relative;
  padding-left: 30px;
  font-size: 1.06rem;
  font-weight: 600;
}
.reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* ----------------------------------------------------------------- form --- */

.book { background: var(--white); }
/* In the column with the heading and the form, left-aligned like both. A
   paragraph that hugs the viewport edge under a centred heading reads as a
   mistake, and so does a centred one — it belongs in the same column. */
.book .sub {
  color: var(--ink-soft);
  margin-block: 0 30px;
  max-width: var(--measure);
}

/* The quiz reuses these — the old standalone form is gone, the inputs are not. */
.quiz-step label > span,
.form label > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.quiz-step input[type="text"],
.quiz-step input[type="tel"],
.quiz-step input[type="email"],
.quiz-text,
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
}
.quiz-text, .form textarea { resize: vertical; min-height: 96px; }
.quiz-step input:focus, .quiz-text:focus,
.form input:focus, .form textarea:focus {
  outline: 3px solid rgba(254, 195, 3, 0.45);
  outline-offset: 1px;
  border-color: var(--accent-deep);
}
.row { display: grid; gap: 16px; }
.hint { font-size: 0.84rem; color: var(--muted); margin-top: -6px; }

.chips { border: 0; padding: 0; margin: 0; }
.chips legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0;
  margin-bottom: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  margin: 0 8px 8px 0;
  font-weight: 600;
  cursor: pointer;
}
.chip input { accent-color: var(--accent-deep); margin: 0; }
.chip:has(input:checked) {
  border-color: var(--ink);
  background: var(--band);
}

/* The honeypot. Off-screen rather than display:none, because the bots worth
   catching skip anything the browser would not render at all. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 11px;
  background: var(--band);
  border: 1px solid var(--line);
}
.form-note.is-error { border-color: #E2B4AC; background: #FCF3F1; color: #8C3A2C; }
.form-note.is-done { border-color: var(--accent); background: #FFF9E6; }

/* --------------------------------------------------------------- footer --- */

.foot {
  padding: 34px 20px 46px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot a { color: var(--ink-soft); }

/* ------------------------------------------------------------------ wide -- */

@media (min-width: 760px) {
  section { padding: 96px 24px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .row { grid-template-columns: 1fr 1fr; }
  .reasons { grid-template-columns: 1fr 1fr; gap: 18px 28px; }
  /* The submit button stays full-width even here. It is a grid item in a
     one-column form, so `width: auto` would stretch anyway — and a wide
     primary action under a wide form is the right shape regardless. */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}

/* ================= the quiz =================
   Four screens, one question each. A long form asks somebody to decide up front
   whether the whole thing is worth their time; four questions ask for one small
   answer at a time, and each one is easier than the last. The screen that wants
   a phone number is the last one, by which point they have already invested
   three taps. */

.quiz { max-width: var(--measure); }

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.quiz-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.quiz-bar-fill {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.quiz-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.quiz-step { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.quiz-step[hidden] { display: none; }
.quiz-q {
  padding: 0;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

/* Big targets. This is a thumb on a phone, and an option that answers the
   question AND advances is one tap, not two. */
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
}
.quiz-option:hover { border-color: var(--ink); }
.quiz-option:active { background: var(--band); }
.quiz-option[aria-pressed="true"] {
  border-color: var(--accent-deep);
  background: #FFF9E6;
  box-shadow: inset 3px 0 0 var(--accent);
}

.quiz-back {
  justify-self: start;
  margin-top: 6px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0;
}
.quiz-back:hover { color: var(--ink); }

/* The success state REPLACES the quiz rather than appearing under it, so there
   is nothing left to click and no doubt it went through. */
.quiz-done { text-align: center; padding: 20px 0 8px; }
.quiz-tick {
  margin: 0 auto 12px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
}
.quiz-done h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }

/* ---------- section pages ---------- */

.page-hero { padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; }

.prose { color: var(--ink-soft); }
.prose h2 { margin-top: 32px; }
.prose p { margin-block: 0 16px; }
.index-list { list-style: none; margin-block: 0; padding: 0; display: grid; gap: 12px; }
.index-list a { color: var(--ink); font-weight: 700; }
.muted { color: var(--muted); font-weight: 400; }

.bar-nav { display: none; gap: 18px; margin-left: auto; margin-right: 18px; }
.bar-nav a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.bar-nav a:hover { color: var(--ink); }
@media (min-width: 760px) { .bar-nav { display: flex; } }
