/* LGM Property Tax — v0.5
   Mobile-first. Plain, readable, no flourishes. */

:root {
  --color-bg: #ffffff;
  --color-fg: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-brand: #0a4d68;
  --color-good: #1f6d3a;
  --color-okay: #8a6a14;
  --color-neutral: #4a4a4a;
  --color-error: #a02828;
  --color-error-bg: #fff3f3;
  --color-card-bg: #f6f6f4;
  --color-border: #d8d8d4;
  --maxw: 640px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-fg);
  background: var(--color-bg);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--color-brand);
  color: #fff;
  padding: 16px 0;
}
.site-header .brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

/* Main spacing */
main { padding: 28px 0 40px; }

/* Hero */
.hero h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 12px;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0 0 28px;
}

/* Form card */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 32px;
}
.card label {
  display: block;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 6px;
}
.card label:first-child { margin-top: 0; }
.card input[type="text"],
.card input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-family: inherit;
  background: #fff;
}
.card .hint {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 6px 0 0;
}
.btn-primary {
  display: inline-block;
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-brand);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover { background: #08394f; }

/* Errors */
.errors {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.errors ul { margin: 0; padding-left: 18px; color: var(--color-error); }

/* How-it-works */
.copy h2 { font-size: 1.25rem; margin: 0 0 10px; }
.copy ol { padding-left: 22px; }
.copy ol li { margin-bottom: 8px; }

/* Result page */
.result-pin {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 4px;
}
.result-headline {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 12px;
}
.result-headline.good     { color: var(--color-good); }
.result-headline.okay     { color: var(--color-okay); }
.result-headline.neutral  { color: var(--color-neutral); }
.lede {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0 0 24px;
}
.savings-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  text-align: center;
}
.savings-label {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.savings-amount {
  margin: 0 0 4px;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-good);
}
.savings-amount .per {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 6px;
}
.savings-cycle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}
.next-step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.next-step h2 { margin: 0 0 8px; font-size: 1.15rem; }
.next-step p { margin: 0 0 10px; }
.next-step p:last-child { margin-bottom: 0; }
.coming-soon { color: var(--color-muted); font-size: 0.95rem; }

.note {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 16px;
}
.note.small { font-size: 0.9rem; }

/* Intake form */
.intake-headline {
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 12px;
}
.q-card {
  margin-bottom: 18px;
  padding: 18px 22px 14px;
}
.q-card legend {
  font-weight: 600;
  padding: 0 4px;
  margin-bottom: 6px;
  line-height: 1.35;
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  border-top: 1px solid var(--color-border);
}
.q-card .radio:first-of-type { border-top: none; }
.radio input[type="radio"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.radio span { flex: 1; }
.disclosure {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.summary-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 22px;
}
.summary-card p { margin: 0 0 10px; }
.summary-card p:last-of-type { margin-bottom: 16px; }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.85rem;
}
.footer-note { margin: 0 0 6px; }
.footer-meta { margin: 0; }

/* Opt-in reminder choice (Session 35) */
.optin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-brand);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}
.optin-block { margin-top: 22px; }

/* Recent-sale intake fields (Design Decision 12) */
.field-label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}
.field-label:first-of-type { margin-top: 0; }
.month-year {
  display: flex;
  gap: 10px;
}
.card select.select-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-family: inherit;
  background: #fff;
}
ol.steps {
  margin: 8px 0 0;
  padding-left: 22px;
}
ol.steps li { margin-bottom: 8px; }

/* Session 73: PIN alternative disclosure on the check form */
.pin-toggle {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 6px 0 4px;
  background: var(--color-card-bg);
}
.pin-toggle summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.pin-toggle[open] summary { margin-bottom: 10px; }
.pin-toggle label { margin-top: 0; }

/* Session 73: wait-state line under the Check button */
.screen-status {
  margin-top: 12px;
  font-weight: 600;
  color: var(--color-muted);
}

/* Session 73: attorney-comparison card at the result decision point */
.compare-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-good);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.compare-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.compare-card p { margin: 0 0 10px; }
.compare-card p:last-child { margin-bottom: 0; }

/* Larger screens */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .hero h1, .result-headline { font-size: 2.25rem; }
}
