/* Matches the main site (index.html): Playfair Display + Jost, linen and sage. */
:root {
  --night: #2c2a27;
  --panel: #ffffff;
  --card: #f0ebe3;
  --border: rgba(160,148,128,0.25);
  --gold: #8b6f47;
  --gold-light: #b8956a;
  --gold-dim: rgba(139,111,71,0.12);
  --warm: #5a5248;
  --muted: #8a8078;
  --sage: #6b7f6e;
  --sage-dark: #56685a;
  --sage-light: #eef2ee;
  --linen: #f7f4ef;
  --linen-deep: #ede8df;
  --alert: #9a4a2e;
  --alert-light: #f8ece6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--linen); color: var(--night);
  font-family: 'Jost', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--sage-dark); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
/* Headings get focus after each step for screen readers; no visible ring needed there. */
.no-ring:focus, .no-ring:focus-visible { outline: none; }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 60px; background: rgba(247,244,239,0.95); border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--night); text-decoration: none;
}
.nav-logo span { color: var(--sage); font-style: italic; }
.nav-back { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm); text-decoration: none; }
.nav-back:hover { color: var(--sage); }

main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.loading { color: var(--muted); }

.prototype-ribbon {
  background: var(--gold-dim); color: var(--gold); border: 1px dashed var(--gold-light);
  font-size: 12px; padding: 8px 14px; border-radius: 4px; margin-bottom: 28px;
}

/* Progress steps */
.steps { display: flex; gap: 6px; margin-bottom: 36px; flex-wrap: wrap; }
.steps li {
  list-style: none; flex: 1 1 0; min-width: 90px; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--linen-deep);
}
.steps li.done { color: var(--sage-dark); border-color: var(--sage); }
.steps li.current { color: var(--night); border-color: var(--night); font-weight: 600; }

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.eyebrow .line { width: 30px; height: 1px; background: var(--sage); }
.eyebrow .label { font-size: 10px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sage); }

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 18px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 14px; }
h3 { font-size: 21px; margin-bottom: 10px; }
h1 em, h2 em { color: var(--sage); font-style: italic; }
.lede { font-size: 18px; font-weight: 300; color: var(--warm); max-width: 620px; margin-bottom: 28px; }
p + p { margin-top: 12px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  padding: 32px; box-shadow: 0 8px 40px rgba(0,0,0,0.04); margin-bottom: 24px;
}
.callout {
  background: var(--sage-light); border-left: 3px solid var(--sage); padding: 16px 20px;
  border-radius: 0 4px 4px 0; margin: 20px 0; font-size: 15px;
}
.callout.alert { background: var(--alert-light); border-color: var(--alert); }
.callout.gold { background: var(--gold-dim); border-color: var(--gold); }

/* Buttons */
.actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--night); color: #fff; font-family: 'Jost', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 16px 30px; border: none; border-radius: 2px; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover:not(:disabled) { background: var(--sage); transform: translateY(-1px); }
.btn:disabled { background: #b9b2a8; cursor: not-allowed; }
.btn.sage { background: var(--sage); }
.btn.sage:hover:not(:disabled) { background: var(--night); }
.link-btn {
  background: none; border: none; border-bottom: 1px solid var(--border); padding: 0 0 2px;
  font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--night); cursor: pointer;
}
.link-btn:hover { color: var(--sage); border-color: var(--sage); }

/* Welcome */
.how { counter-reset: how; display: grid; gap: 14px; margin: 8px 0 28px; }
.how li {
  list-style: none; counter-increment: how; display: grid; grid-template-columns: 36px 1fr;
  gap: 14px; align-items: start; font-size: 16px;
}
.how li::before {
  content: counter(how); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--sage); color: var(--sage-dark); font-size: 14px; font-weight: 500;
}
.how strong { font-weight: 500; }

/* Forms */
form .field { margin-bottom: 22px; }
label, .q { display: block; font-weight: 500; margin-bottom: 8px; }
.q { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; margin-bottom: 18px; }
.help { font-size: 13px; color: var(--muted); margin: -4px 0 8px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; color: var(--night);
  border: 1px solid rgba(160,148,128,0.45); border-radius: 3px; background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input[type=number] { max-width: 160px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 4px; background: #fff; cursor: pointer; font-weight: 400;
}
.choice:hover { border-color: var(--sage); }
.choice:has(input:checked) { border-color: var(--sage); background: var(--sage-light); }
.choice input[type=checkbox], .choice input[type=radio] { margin-top: 5px; accent-color: var(--sage); width: 17px; height: 17px; flex-shrink: 0; }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.choice .count { margin-top: 10px; display: none; align-items: center; gap: 10px; flex-wrap: wrap; }
.choice:has(input[type=checkbox]:checked) .count { display: flex; }
.choice .count input { width: 90px; padding: 8px 10px; font-size: 16px; }
.inline-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-choices .choice { margin: 0; padding: 10px 16px; }
.states {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px;
  max-height: 220px; overflow-y: auto; padding: 10px; border: 1px solid var(--border); border-radius: 4px; background: #fff;
}
.states label { font-weight: 400; font-size: 14px; display: flex; gap: 6px; align-items: center; margin: 0; cursor: pointer; }
.states input { accent-color: var(--sage); }
.error { color: var(--alert); font-size: 14px; margin-top: 10px; }
fieldset { border: none; }
legend { font-weight: 500; margin-bottom: 8px; }

/* Quote */
.quote-tier { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-dark); font-weight: 600; }
.quote-price { font-family: 'Playfair Display', serif; font-size: 64px; line-height: 1; margin: 8px 0 6px; }
.quote-price sup { font-size: 28px; vertical-align: top; position: relative; top: 8px; }
ul.reasons { margin: 10px 0 0 18px; }
ul.reasons li { margin-bottom: 4px; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 18px 0; }
dl.facts dt { color: var(--muted); font-size: 14px; }
dl.facts dd { font-weight: 500; }

.mini {
  font: inherit; font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--night); background: #fff; color: var(--night);
}
.mini.primary { background: var(--night); color: #fff; }
.mini:hover { border-color: var(--sage); color: var(--sage); }
.mini.primary:hover { background: var(--sage); color: #fff; }

/* Delivery date page (Cal.com embed) */
.cal-embed { margin: 8px 0 12px; min-height: 560px; width: 100%; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); overflow: hidden; }
.cal-placeholder { border: 1px dashed var(--gold-light); border-radius: 6px; padding: 56px 24px; margin: 8px 0 24px; text-align: center; color: var(--muted); background: var(--panel); }

/* Organizer (/tax-prep/organizer/) */
main.wide { max-width: 1120px; }
.how-plain { margin: 8px 0 28px 18px; display: grid; gap: 10px; }
.how-plain strong { font-weight: 500; }
.org-banner { background: var(--night); color: #f5efe6; border-radius: 6px; padding: 16px 22px; margin-bottom: 24px; font-size: 14px; }
.bar { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold-light); transition: width 0.3s; }
.org-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.org-nav { position: sticky; top: 16px; display: grid; gap: 2px; }
.org-nav button {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  text-align: left; background: none; border: none; border-left: 2px solid var(--linen-deep);
  padding: 9px 12px; font: inherit; font-size: 14px; color: var(--warm); cursor: pointer;
}
.org-nav button:hover { color: var(--sage-dark); }
.org-nav button.current { border-color: var(--night); color: var(--night); font-weight: 500; background: #fff; }
.org-nav button .tick { color: var(--sage); }
.badge { display: inline-block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; margin-left: 6px; vertical-align: middle; font-weight: 500; }
.badge.req { background: var(--gold-dim); color: var(--gold); }
.missing-list { margin: 8px 0 0 18px; font-size: 14px; }
.people { display: grid; gap: 14px; margin-bottom: 14px; }
.person { border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; background: var(--linen); }
.person-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.person-fields { display: grid; grid-template-columns: var(--cols, 1fr 1fr 1fr); gap: 12px; }
.person-fields label { font-size: 13px; margin-bottom: 4px; }
.person-fields input[type=number] { max-width: none; }
.btn-add { background: none; border: 1px dashed var(--sage); color: var(--sage-dark); border-radius: 4px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-add:hover { background: var(--sage-light); }
.address { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; grid-template-areas: "street street" "unit unit" "city city" "state zip"; }
.address label { font-size: 13px; margin-bottom: 4px; }
@media (min-width: 761px) { .address { grid-template-columns: 3fr 1fr 1.3fr; grid-template-areas: "street street unit" "city state zip"; } }
.addr-street { grid-area: street; } .addr-unit { grid-area: unit; } .addr-city { grid-area: city; } .addr-state { grid-area: state; } .addr-zip { grid-area: zip; }
.payments { width: 100%; border-collapse: collapse; font-size: 14px; }
.payments th, .payments td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.payments thead th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.payments tbody th { font-weight: 500; white-space: nowrap; }
.payments input { width: 100%; min-width: 80px; padding: 8px 10px; font-size: 15px; }
.missing-list .link-btn { font-size: 14px; }

/* Staff panel (prototype only) */
details.staff { margin-top: 48px; border: 1px dashed var(--gold-light); border-radius: 6px; padding: 14px 18px; background: #fffdf9; font-size: 14px; }
details.staff summary { cursor: pointer; color: var(--gold); font-weight: 500; }
details.staff pre { background: var(--linen); padding: 12px; border-radius: 4px; overflow-x: auto; font-size: 12px; margin-top: 6px; }
details.staff .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

footer {
  background: var(--night); padding: 36px 60px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 17px; color: #f5ede0; text-decoration: none; }
.footer-logo span { color: var(--gold-light); font-style: italic; }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 11px; letter-spacing: 0.12em; color: #a99f94; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 11px; color: #a99f94; }

@media (max-width: 760px) {
  .nav { padding: 16px; }
  main { padding: 32px 16px 64px; }
  .card { padding: 22px 18px; }
  .two,   .org-layout { grid-template-columns: 1fr; }
  .person-fields { grid-template-columns: 1fr; }
  .person-fields > div { grid-column: auto !important; }
  .payments thead { display: none; }
  .payments tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .payments th, .payments td { border: none; padding: 0; }
  .payments td:nth-child(3)::before { content: "Federal ($)"; display: block; font-size: 12px; color: var(--muted); }
  .payments td:nth-child(4)::before { content: "State ($)"; display: block; font-size: 12px; color: var(--muted); }
  .org-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .org-nav button { border-left: none; border-bottom: 2px solid var(--linen-deep); white-space: nowrap; width: auto; }
  .org-nav button.current { border-color: var(--night); }
  footer { padding: 32px 16px; flex-direction: column; align-items: flex-start; }
}
