/* Shared design system.
   Editorial, restrained, typographic. Matches the report renderer:
   near-black ink on warm white, one teal accent, deep red reserved for
   the guarantees. No images, no webfonts, no frameworks. */

:root {
  --ink: #1a1a1e;
  --paper: #fbfbf9;
  --card: #ffffff;
  --accent: #1f6f6b;
  --accent-dark: #17534f;
  --deep-red: #8f1d1d;
  --rule: #e2e2e0;
  --muted: #54545a;
  --field-border: #b9b9b4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ---- layout ---- */

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--rule); }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h2 { font-size: 28px; margin: 0 0 20px; }
main h1 { font-size: 28px; margin: 0 0 20px; } /* page h1 outside the hero (intake) */
h3 { font-size: 18px; margin: 0 0 8px; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.kicker {
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin: 0 0 10px;
}

/* ---- preview (demo-flag) banner ---- */

.preview-banner {
  display: none;
  background: var(--ink);
  color: #fbfbf9;
  text-align: center;
  font-size: 13px;
  letter-spacing: .06em;
  padding: 8px 12px;
}
body.is-demo .preview-banner { display: block; }

/* ---- header / nav ---- */

.site-header {
  border-bottom: 3px solid var(--accent);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand-mark {
  font-size: 15px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.site-nav a:hover { color: var(--accent-dark); text-decoration: underline; }

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

.hero { padding: 72px 0 64px; }
.hero h1 {
  font-size: clamp(32px, 6vw, 46px);
  margin: 0 0 18px;
  max-width: 15em;
}
.hero .sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 30px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 5px;
  border: 2px solid var(--accent-dark);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--accent-dark); color: #ffffff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent-dark); }
.btn-secondary:hover { background: #eef4f3; color: var(--accent-dark); }

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

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 24px 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li:last-child { padding-bottom: 0; }

/* ---- product menu ---- */

.menu-grid {
  display: grid;
  /* 2x2 at desktop (4 launch products), single column on narrow screens */
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 560px) { .menu-grid { grid-template-columns: 1fr; } }
.product {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product.bundle { border: 2px solid var(--accent-dark); }
.product h3 { margin: 0; font-size: 17px; }
.price {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-dark);
}
.price .rush { font-size: 13px; font-weight: 400; color: var(--muted); }
.product p { font-size: 14.5px; color: var(--muted); flex: 1; margin: 0; }
.product .btn { text-align: center; font-size: 15px; padding: 9px 0; }
.menu-note { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Coming-soon waitlist: deliberately quiet — no cards, no buttons. */
.coming-soon { margin-top: 28px; }
.coming-soon h3 { margin: 0 0 6px; font-size: 16px; color: var(--muted); }
.coming-soon p { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; }
.coming-soon ul { margin: 0; padding: 0 0 0 20px; }
.coming-soon li { font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.coming-soon li:last-child { margin-bottom: 0; }

/* ---- guarantees ---- */

.guarantees {
  border: 2px solid var(--deep-red);
  border-radius: 6px;
  background: var(--card);
  padding: 28px 30px;
}
.guarantees h2 { color: var(--deep-red); margin-bottom: 14px; }
.guarantees ul { margin: 0; padding: 0 0 0 22px; }
.guarantees li { margin-bottom: 10px; }
.guarantees li:last-child { margin-bottom: 0; }
.guarantees strong { color: var(--deep-red); }

/* ---- FAQ ---- */

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 12px 0;
  color: var(--ink);
}
.faq summary:hover { color: var(--accent-dark); }
.faq .a { padding: 0 0 16px; max-width: 44em; }

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

.site-footer {
  border-top: 3px solid var(--accent);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer p { margin: 0 0 8px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

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

.form-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
  margin-top: 8px;
}
.field { margin-bottom: 22px; }
.field > label, fieldset legend {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.hint { font-size: 13.5px; color: var(--muted); margin: 0 0 6px; }
.req { color: var(--deep-red); }

input[type="text"], input[type="email"], input[type="number"],
select, textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  padding: 9px 11px;
}
textarea { min-height: 88px; resize: vertical; }

fieldset {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 16px 14px;
  margin: 0;
}
.radio-row, .check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0;
}
.radio-row input, .check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--accent-dark);
}
.radio-row label, .check-row label { font-weight: 400; }

.comps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .comps-row { grid-template-columns: 1fr; } }

.field-error {
  display: none;
  color: var(--deep-red);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 5px;
}
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid select,
.field.invalid textarea, .field.invalid fieldset {
  border-color: var(--deep-red);
}

.pay-note {
  display: none;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent-dark);
  background: #f2f6f5;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  margin-top: 10px;
}
.pay-note.show { display: block; }

/* ---- confirmation panel ---- */

.confirm-panel {
  display: none;
  border: 2px solid var(--accent-dark);
  border-radius: 6px;
  background: var(--card);
  padding: 28px;
  margin-top: 8px;
}
.confirm-panel.show { display: block; }
.confirm-panel h2 { color: var(--accent-dark); }
.confirm-panel ol { padding-left: 22px; }
.confirm-panel li { margin-bottom: 10px; }
.mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  background: #f2f2ef;
  padding: 1px 6px;
  border-radius: 3px;
}

/* Tally embed frame */
.tally-frame { width: 100%; min-height: 900px; border: 0; }

/* ---- small screens ---- */

@media (max-width: 420px) {
  section { padding: 44px 0; }
  .hero { padding: 52px 0 44px; }
  .form-card, .confirm-panel { padding: 20px 16px; }
  .guarantees { padding: 20px 18px; }
  .btn { width: 100%; text-align: center; }
  .cta-row { flex-direction: column; align-items: stretch; }
}
