/* Zero-Platform SOC 2 series: the shared fee block, published prompts, checklists and the kit block.
   Values come from tokens.css; the fee figures are rendered from scripts/content/offers/. The offer page
   also loads promo.css for the form, the result panel and the headcount selector. */

/* ---------- the fee block ---------- */
.offer-fee {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.offer-fee p {
  margin: 0 0 var(--space-3);
}

.offer-fee p:last-child {
  margin-bottom: 0;
}

.offer-fee h2.offer-fee__title {
  margin: 0 0 var(--space-3);
  padding: 0;
  border: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.offer-fee .data-table {
  margin: var(--space-4) 0 var(--space-3);
}

.offer-fee .fees-as-of {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.offer-fee .cta-primary {
  display: inline-block;
  margin-top: var(--space-2);
}

/* Inside an article the prose-link rule (.long-form p > a) would otherwise colour the button's label like a
   text link, which is the colour of the button itself. */
.long-form .offer-fee p > a.cta-primary,
.long-form .offer-fee p > a.cta-primary:hover {
  color: var(--text-inverse);
  text-decoration: none;
}

/* On the offer page and the cost page the block holds the whole table and sits in the page flow. */
.offer-fee--full {
  padding: 0;
  border: 0;
  background: transparent;
}

.offer-fees td {
  white-space: nowrap;
}

/* The comparison table holds sentences as well as fees: its cells wrap, so it fits its column. */
.offer-compare :is(td, th) {
  white-space: normal;
}

.offer-fees tbody tr.is-selected > :is(th, td) {
  --table-cell-bg: color-mix(in srgb, var(--gold) 14%, var(--surface));
}

/* ---------- published prompts ---------- */
pre.prompt {
  margin: var(--space-3) 0 var(--space-2);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-warm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt-copy {
  display: inline-block;
  min-height: 36px;
  margin: 0 0 var(--space-5);
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s;
}

.prompt-copy:hover {
  border-color: var(--accent);
}

/* ---------- checklists ---------- */
.long-form :is(ul, ol).checklist {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.long-form .checklist > li {
  position: relative;
  padding-left: var(--space-6);
}

.long-form .checklist > li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 1em;
  height: 1em;
  border: 1.5px solid var(--text-muted);
  border-radius: var(--radius-sm);
}

/* ---------- the kit block ---------- */
.offer-kit {
  margin: var(--space-5) 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-warm);
}

.offer-kit h2 {
  margin: 0 0 var(--space-3);
  padding: 0;
  border: 0;
  font-size: 1.25rem;
}

.offer-kit__form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-3);
}

.offer-kit__form label {
  flex-basis: 100%;
  font-size: 0.875rem;
  font-weight: 600;
}

.offer-kit__form input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: var(--space-3) 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
}

@media (max-width: 700px) {
  .offer-fees td {
    white-space: normal;
  }

  .offer-fee {
    padding: var(--space-4);
  }
}

/* The headcount selector's label in the page's language (promo.css writes the English one). */
:lang(fr) .promo-headcount::before {
  content: "Votre effectif";
}

:lang(es) .promo-headcount::before {
  content: "Tamaño de su empresa";
}
