/* Good Deals — shared flow styles */
:root {
  --bg: #FAF7F2;
  --bg-elev: #F3EEE5;
  --bg-deep: #E8E0CC;
  --ink: #1A1F2E;
  --ink-soft: #4A5160;
  --ink-faint: #8A8F9C;
  --rule: #D9D2C5;
  --accent: #2D4A3E;
  --accent-soft: #E8EFEA;
  --warn: #8B4513;
  --bad: #A14040;
  --neutral: #7A7568;
  --gold: #B8893E;
  --radius: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif {
  font-family: 'Iowan Old Style', 'Palatino', 'Georgia', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 0.5rem; }
h2 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 0.5rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--ink); }
a { color: var(--accent); }
hr { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Header */
header.brand {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.brand .mark {
  font-family: 'Iowan Old Style', 'Palatino', 'Georgia', serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.brand .tag { font-size: 0.85rem; color: var(--ink-soft); }

/* Stage progress bar */
.stage-progress {
  display: flex; gap: 0.3rem;
  margin-bottom: 1.75rem;
}
.stage-progress .seg {
  flex: 1;
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
}
.stage-progress .seg.done { background: var(--accent); opacity: 0.5; }
.stage-progress .seg.active { background: var(--accent); }
.stage-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
  display: flex; justify-content: space-between;
}

/* Step label */
.step-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Forms */
fieldset { border: none; padding: 0; margin: 0 0 1.5rem; }
legend {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 1rem;
}
.helper {
  font-size: 0.85rem; color: var(--ink-soft);
  margin: 0.25rem 0 0.75rem;
}
.field { display: flex; flex-direction: column; margin-bottom: 0.9rem; }
.field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=url],
textarea, select {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
}

/* Option cards (radio / checkbox) */
label.opt {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
label.opt:hover { border-color: var(--accent); }
label.opt input { margin-right: 0.6rem; vertical-align: top; margin-top: 0.2rem; }
label.opt.checked {
  border-color: var(--accent);
  background: var(--accent-soft);
}
label.opt .name { font-weight: 500; }
label.opt .desc { font-size: 0.85rem; color: var(--ink-soft); display: block; margin-top: 0.15rem; margin-left: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn.secondary:hover { border-color: var(--ink); opacity: 1; }
.btn.lg { padding: 0.95rem 1.8rem; font-size: 1.1rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Bottom nav */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  gap: 1rem;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.card.elev { background: var(--bg-elev); }
.card .card-title {
  font-family: 'Iowan Old Style', 'Palatino', 'Georgia', serif;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.card .card-sub {
  font-size: 0.85rem; color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

/* Track cards (clickable selection) */
.track-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.track-card:hover { border-color: var(--accent); }
.track-card.selected { border-color: var(--accent); background: var(--accent-soft); border-width: 2px; padding: calc(1.25rem - 1px) calc(1.5rem - 1px); }
.track-card h3 { margin: 0 0 0.3rem; color: var(--accent); }
.track-card .track-sub { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.track-card ul { margin: 0; padding-left: 1.2rem; font-size: 0.92rem; }
.track-card li { padding: 0.1rem 0; }

/* Checklist (intake / onboarding) */
.checklist .item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.checklist .item:last-child { border-bottom: none; }
.checklist .item-status {
  width: 22px; height: 22px;
  border: 2px solid var(--rule);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  background: #fff;
}
.checklist .item.done .item-status { background: var(--accent); border-color: var(--accent); }
.checklist .item.done .item-status::after {
  content: '✓'; color: #fff;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px; line-height: 1;
}
.checklist .item-body { flex: 1; }
.checklist .item-name { font-weight: 600; }
.checklist .item-sub { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.15rem; }
.checklist .item-action { margin-top: 0.4rem; }

/* Section header */
.section-h {
  font-family: 'Iowan Old Style', 'Palatino', 'Georgia', serif;
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}
.section-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

/* Pull-quote stat */
.stat-row {
  display: flex; gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.stat {
  flex: 1; min-width: 140px;
}
.stat-value {
  font-family: 'Iowan Old Style', 'Palatino', 'Georgia', serif;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--accent);
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 0.25rem;
}

/* Footnote */
.footnote {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* Sidenote */
.sidenote {
  border-left: 3px solid var(--ink-faint);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
}
.sidenote strong { color: var(--ink); font-style: normal; }

/* Print-friendly */
@media print {
  .stage-progress, .nav, .brand .tag, header.brand { display: none !important; }
  body { background: #fff; }
  .shell { padding: 0; max-width: none; }
  .card, .track-card { break-inside: avoid; }
}
