/* VeFlow sign-up — same tokens as the app, so the page feels like the product
   the customer is about to use. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg: #f5f2eb; --surface: #ffffff; --border: #e0dbd0; --text: #1a1814; --muted: #7a7568;
  --green-bg: #e8f4e8; --green-text: #2d6a2d; --red-bg: #fdeaea; --red-text: #8a2020;
  --amber-bg: #fdf3dc; --amber-text: #8a5c00;
  --accent: #1e3d4a; --accent-ink: #f5f2eb;
  --font-ui: 'DM Mono', monospace; --font-display: 'Fraunces', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 1.5; }

header { background: var(--accent); color: var(--accent-ink); padding: 18px 24px; }
header .wordmark { font-family: var(--font-display); font-size: 26px; font-weight: 300; letter-spacing: 0.01em; }
header .wordmark small { font-family: var(--font-ui); font-size: 11px; opacity: 0.7; margin-left: 12px; letter-spacing: 0.08em; }

main { max-width: 900px; margin: 0 auto; padding: 32px 24px 64px; }
@media (max-width: 640px) { main { padding: 20px 14px 48px; } }
h1 { font-family: var(--font-display); font-weight: 300; font-size: 34px; line-height: 1.15; margin: 0 0 8px; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
p { margin: 0 0 12px; max-width: 60ch; }
.lead { color: var(--muted); margin-bottom: 24px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; min-height: 42px;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .choice:focus-within, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.field .err { color: var(--red-text); font-size: 12px; margin-top: 5px; display: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--red-text); }
.field.bad .err { display: block; }
.hint { font-size: 12px; color: var(--muted); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row, .row3 { grid-template-columns: 1fr; } }

button, .btn { font: inherit; font-size: 14px; letter-spacing: 0.04em; cursor: pointer; border-radius: 4px; min-height: 42px; padding: 0 18px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button[disabled] { opacity: 0.55; cursor: default; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }

/* Wizard rail: the steps are a real sequence, so numbering is information. */
.rail { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.rail li { flex: 1; height: 1px; background: var(--border); }
.rail li.is-done, .rail li.is-now { background: var(--accent); }
.rail li.is-now { opacity: 0.55; }
.step-count { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.step { display: none; }
.step.active { display: block; }

/* Plan choices: three period cards, chosen one outlined by the accent. */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choices.two { grid-template-columns: repeat(2, 1fr); }
.choices.one { grid-template-columns: minmax(0, 320px); }
@media (max-width: 520px) { .choices, .choices.two { grid-template-columns: 1fr; } }
.choice { position: relative; border: 1px solid var(--border); border-radius: 6px; padding: 14px; cursor: pointer; background: var(--surface); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .name { font-size: 13px; }
.choice .rate { font-family: var(--font-display); font-size: 24px; font-weight: 300; line-height: 1.1; margin: 6px 0 2px; }
.choice .per { font-size: 11px; color: var(--muted); }
.choice.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice .save { position: absolute; top: 10px; right: 10px; font-size: 10px; background: var(--green-bg); color: var(--green-text); padding: 2px 6px; border-radius: 3px; }

/* The live price — the one memorable element; everything else stays quiet. */
.readout { margin-top: 20px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; }
.readout .big { font-family: var(--font-display); font-size: 40px; font-weight: 300; line-height: 1; color: var(--green-text); }
.readout .sub { font-size: 12px; color: var(--muted); }
.readout .right { text-align: right; font-size: 12px; color: var(--muted); }

.cars { display: flex; align-items: center; gap: 14px; }
/* An admin-quoted plan: the figures come from the link, not the list. */
.quoted { margin: 0 0 16px; padding: 14px 16px; background: var(--green-bg); color: var(--green-text); border-radius: 6px; font-size: 13px; line-height: 1.5; }
.quoted strong { font-family: var(--font-display); font-size: 22px; font-weight: 400; display: block; margin-bottom: 2px; }
.quote-title { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 6px 0 4px; }
.cars input[type=range] { flex: 1; accent-color: var(--accent); }
.cars output { font-family: var(--font-display); font-size: 30px; font-weight: 300; min-width: 64px; text-align: right; }

.method { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .method { grid-template-columns: 1fr; } }
.method .choice .why { font-size: 12px; color: var(--muted); margin-top: 4px; }
.reco { font-size: 12px; background: var(--amber-bg); color: var(--amber-text); padding: 8px 12px; border-radius: 4px; margin-top: 12px; display: none; }
.reco.show { display: block; }

/* The contract, in its own scrolling box; the accept line sits outside it. */
.contract { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; max-height: 64vh; overflow: auto; padding: 22px 28px; font-family: Georgia, 'Times New Roman', serif; font-size: 13.5px; line-height: 1.55; }
.contract h3 { font: inherit; font-weight: 700; font-size: 14px; margin: 18px 0 6px; }
.contract p { margin: 0 0 9px; max-width: none; }
.contract .t { font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.contract .of { background: var(--bg); padding: 12px 14px; border-radius: 4px; margin: 10px 0; }
.accept, .check-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; }
.check-row { margin-top: 0; font-size: 13px; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.accept input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.scrolled-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

.done { text-align: center; padding: 36px 24px; }
.done p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green-text); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }
.error-banner { background: var(--red-bg); color: var(--red-text); padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; display: none; }
.error-banner.show { display: block; }
.loading { color: var(--muted); font-size: 13px; margin: 24px 0; }
footer { text-align: center; font-size: 11px; color: var(--muted); padding: 20px; }
@media (prefers-reduced-motion: no-preference) { .choice, .readout .big { transition: border-color 0.15s, box-shadow 0.15s; } }

/* The demo offer (11 Oct 2026): body.demo-offer swaps the 14-day texts for the 30-day ones. */
.demo-terms { display: none; }
.demo-offer .demo-terms { display: inline; }
.demo-offer .std-terms { display: none; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
