/* Anwesend — employer-facing pages (/pricing, /fit)
   Loaded after style.css and built entirely on its tokens. Nothing here
   redefines a colour or a font: these are only the components that do not
   appear on the static employee pages — the plan grid, the wizard's radio
   cards, and the verdict findings.

   The palette keeps its meaning from style.css: indigo is what we recorded
   and stand behind, amber is what we are not sure about. So a caution on the
   fit result is amber and a blocker is not — a blocker is not uncertainty,
   it is a decision, and it gets its own red. */

:root { --stop: #9B2C2C; --stop-pale: #F5DEDE; --go: #2F6B4F; --go-pale: #DCE8E1; }

.masthead nav a.current { color: var(--ink); text-decoration: underline; }

/* ---------- shared bits ---------- */

.stack-lede { max-width: var(--measure); }

.note {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 1.25rem;
  max-width: var(--measure);
}

/* A panel in the ledger's idiom — paper on ground, hairline rule. */
.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  margin-top: 2rem;
}
.panel > :last-child { margin-bottom: 0; }

.notice--go { background: var(--go-pale); border-left: 3px solid var(--go); }
.notice--stop { background: var(--stop-pale); border-left: 3px solid var(--stop); }
.notice--wide { max-width: none; }

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
  align-items: start;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--featured { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); }

.plan .flag-lead {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--indigo);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin: -0.35rem 0 1rem;
}

.plan .price {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.plan .period {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.35rem 0 1rem;
}
.plan .tagline { font-size: 0.9375rem; color: var(--ink-soft); margin: 0 0 1.25rem; }

.bands { border-top: 1px solid var(--rule); margin-bottom: 1.25rem; }
.band {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.45;
}
.band-price { white-space: nowrap; color: var(--ink); }
.band-label { color: var(--ink-soft); }

.plan .includes { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.plan .includes li {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 0.45rem 0 0.45rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  position: relative;
}
.plan .includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--indigo);
}

.plan .best-for {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Add-ons and the refusal list read as documents, so they borrow .doc's
   table treatment rather than inventing a second one. */
.ledger-table { border-collapse: collapse; width: 100%; margin-top: 2rem; }
.ledger-table th, .ledger-table td {
  text-align: left;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 0.9375rem;
}
.ledger-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.ledger-table td:first-child { font-family: var(--display); font-weight: 600; }
.ledger-table .cell-price { font-family: var(--mono); font-size: 0.8125rem; white-space: nowrap; }
.ledger-table tr.is-unavailable td { color: var(--ink-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.facts dd {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.01em;
}

/* The headline number at the top of /pricing — bigger than anything a plan
   card carries, so the answer to "how much" is visible before scrolling
   past a single line of copy. */
.price-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.75rem 0 0.5rem;
}
.price-headline .amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-headline .unit {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

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

.faq-item { padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item h3 { margin-bottom: 0.5rem; }
.faq-item p { margin: 0; max-width: var(--measure); color: var(--ink-soft); }

/* ---------- the fit wizard ---------- */

.progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.progress-track { flex: 1; height: 3px; background: var(--ground-deep); }
.progress-fill { height: 100%; background: var(--indigo); }
.progress-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

fieldset { border: 0; padding: 0; margin: 0 0 2.25rem; }
legend {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  padding: 0;
  margin-bottom: 0.35rem;
}
.field-help { font-size: 0.9375rem; color: var(--ink-soft); margin: 0 0 1rem; max-width: var(--measure); }
.optional-mark { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.choice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.choice:hover { border-color: var(--indigo); }
.choice:has(input:checked) { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); }
.choice input { margin: 0.35rem 0 0; flex: none; accent-color: var(--indigo); }
.choice-label { font-size: 0.9688rem; line-height: 1.45; }
.choice-note {
  display: block;
  font-family: var(--mono);
  font-size: 0.7188rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.text-input {
  width: 100%;
  max-width: var(--measure);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.text-input:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 2px; }

/* ---------- the verdict ---------- */

.finding { border-left: 3px solid var(--rule); padding-left: 1.125rem; margin-bottom: 1.75rem; }
.finding:last-child { margin-bottom: 0; }
.finding--blocker { border-left-color: var(--stop); }
.finding--caution { border-left-color: var(--amber); }
.finding p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); max-width: var(--measure); }

.transcript { margin: 0; }
.transcript > div {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--rule);
}
.transcript > div:last-child { border-bottom: none; }
.transcript dt { font-size: 0.9375rem; color: var(--ink-soft); flex: 1 1 55%; margin: 0; }
.transcript dd {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
  flex: 1 1 45%;
  text-align: right;
}

.error-summary {
  background: var(--stop-pale);
  border-left: 3px solid var(--stop);
  padding: 1rem 1.125rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}
.error-summary ul { margin: 0.4rem 0 0; padding-left: 1.125rem; }
.error-summary p { margin: 0; font-family: var(--display); font-weight: 600; }

@media (max-width: 40rem) {
  .transcript > div { flex-direction: column; gap: 0.25rem; }
  .transcript dd { text-align: left; }

  /* Prose in two columns, not a data grid: stacking keeps the second
     column readable instead of hiding it behind a sideways scroll. */
  .ledger-table, .ledger-table tbody, .ledger-table tr, .ledger-table td { display: block; width: 100%; }
  .ledger-table thead { display: none; }
  .ledger-table tr { padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
  .ledger-table td { border: 0; padding: 0.1rem 0; }
  .actions .button { width: 100%; text-align: center; }
}
