/*
 * vak-factuur.css: the example invoice of a tradesperson, as HTML.
 *
 * Used in the hero of every /voor-* page (rendered by
 * scripts/generate-branche-pages.mjs from branches-data.mjs) and on
 * /factuurprogramma. It follows the invoice PDF that the app renders
 * (apps/api/src/shared/templates/invoiceHtml.js, the same look as
 * images/offerte-schilderwerk-voorbeeld.webp): paper, a monogram, a serif
 * "Factuur", the meta row, both parties, the lines and the totals box.
 * Under it the "Betaal nu met iDEAL" button the customer sees on the
 * invoice link (portal: payNowIdeal).
 *
 * It is a document, so the paper stays light in the dark theme, like a PDF
 * does. Everything around it (caption) follows the landing tokens. Figures
 * are Inter with tabular numerals, never a monospace face.
 */

.vk-invoice {
  text-align: left;
  --vk-paper: #fbfaf8;
  --vk-ink: #1f2a26;
  --vk-ink-soft: #4b5751;
  --vk-ink-faint: #7d8782;
  --vk-rule: rgba(31, 42, 38, 0.14);
  --vk-rule-soft: rgba(31, 42, 38, 0.07);
  --vk-band: #5d7469;
  --vk-total-bg: #f2f0ec;
  --vk-mono-bg: #1565c0;
  --vk-ideal: #2e7d32;
  margin: 0;
  min-width: 0;
}

.vk-doc {
  background: var(--vk-paper);
  color: var(--vk-ink);
  border-top: 6px solid var(--vk-band);
  border-radius: 6px 6px 0 0;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow:
    0 24px 48px -24px rgba(8, 30, 70, 0.32),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  font-size: 0.875rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.vk-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vk-rule);
}
.vk-doc-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.vk-doc-mono {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--vk-mono-bg);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
}
.vk-doc-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.25;
}
.vk-doc-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  color: #3f4f48;
}

.vk-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--vk-rule);
}
.vk-doc-meta dt,
.vk-doc-label,
.vk-doc-lines th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vk-ink-faint);
}
.vk-doc-meta dd {
  margin: 0.125rem 0 0;
  font-weight: 500;
}

.vk-doc-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0 0.25rem;
  color: var(--vk-ink-soft);
}
.vk-doc-parties b {
  color: var(--vk-ink);
  font-weight: 600;
}
.vk-doc-label {
  display: block;
  margin-bottom: 0.25rem;
}
.vk-doc-faint {
  color: var(--vk-ink-faint);
}

.vk-doc-lines {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.vk-doc-lines th {
  text-align: left;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--vk-ink-soft);
}
.vk-doc-lines td {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--vk-rule-soft);
  vertical-align: top;
}
.vk-doc-lines th + th,
.vk-doc-lines td + td {
  padding-left: 0.75rem;
}
.vk-doc-desc,
.vk-doc-lines th:first-child {
  font-weight: 600;
  /* landing table styles set nowrap on every cell; the description wraps. */
  white-space: normal !important;
}
.vk-doc-num {
  text-align: right !important;
  white-space: nowrap;
}
.vk-doc-rate {
  color: var(--vk-ink-faint);
}
.vk-doc-amt {
  font-weight: 700;
}

.vk-doc-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17.5rem);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}
.vk-doc-note {
  margin: 0.5rem 0 0;
  color: var(--vk-ink-soft);
  font-size: 0.8125rem;
}
.vk-doc-totals {
  margin: 0;
  background: var(--vk-total-bg);
  border-radius: 6px;
  padding: 0.75rem 0.875rem;
}
.vk-doc-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.1875rem 0;
  color: var(--vk-ink-soft);
}
.vk-doc-totals dt {
  white-space: nowrap;
}
.vk-doc-totals dd {
  margin: 0;
  white-space: nowrap;
}
.vk-doc-totals .vk-doc-total {
  margin-top: 0.375rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--vk-ink-soft);
  color: var(--vk-ink);
  font-size: 1rem;
}
.vk-doc-total dd {
  font-weight: 700;
  font-size: 1.125rem;
}
.vk-doc-transfer {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--vk-rule-soft);
  color: var(--vk-ink-soft);
  font-size: 0.8125rem;
}

/* What the customer sees under the invoice link: the amount and the button. */
.vk-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--vk-paper);
  border-top: 1px dashed var(--vk-rule);
  border-radius: 0 0 6px 6px;
  padding: 0.875rem 1.75rem 1.125rem;
  box-shadow:
    0 24px 48px -24px rgba(8, 30, 70, 0.32),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  color: var(--vk-ink);
  font-variant-numeric: tabular-nums;
}
.vk-pay-amount {
  font-weight: 700;
  font-size: 1.125rem;
}
.vk-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--vk-ideal);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  padding: 0.625rem 1rem;
}
.vk-ideal {
  background: #fff;
  color: #2e7d32;
  font-size: 0.6875rem;
  font-weight: 800;
  font-style: italic;
  border-radius: 4px;
  padding: 0.0625rem 0.3125rem;
}

.vk-invoice figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--landing-text-muted, #5a6878);
}

@media (max-width: 640px) {
  .vk-doc {
    padding: 1.25rem 1rem 1rem;
    font-size: 0.8125rem;
  }
  .vk-doc-title {
    font-size: 1.5rem;
  }
  .vk-doc-name {
    font-size: 0.9375rem;
  }
  .vk-doc-meta {
    gap: 0.5rem 1.25rem;
  }
  /* The unit price is in the quantity x total already; on a phone it goes. */
  .vk-col-price {
    display: none;
  }
  .vk-doc-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .vk-doc-note {
    order: 2;
    margin: 0;
  }
  .vk-pay {
    padding: 0.75rem 1rem 1rem;
  }
}

/* ───── /factuurprogramma: hero with the invoice, and text in one column ─────
   The page used to be a centred hero with no picture, small app screenshots
   and rows of icon cards. Now: the invoice in the hero, then one left-aligned
   column per section with subheads (the het-verhaal rhythm). */
.page-factuurprogramma .fp-hero-inner {
  max-width: 75rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 33rem);
  gap: 3.5rem;
}
.page-factuurprogramma .fp-hero-content {
  text-align: left;
}
.page-factuurprogramma .fp-hero-content .landing-hero-subtitle {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 2rem;
}
.page-factuurprogramma .fp-hero-content .landing-hero-actions {
  justify-content: flex-start;
}
.fp-hero-foot {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--landing-text-muted, #64748b);
}
/* Text first, also on a phone: a visual above the heading read as "kapot". */
.page-factuurprogramma .fp-hero-content {
  order: 0;
}
.page-factuurprogramma .fp-hero-inner > .vk-invoice {
  order: 1;
}
@media (max-width: 1024px) {
  .page-factuurprogramma .fp-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 40rem;
    gap: 2.5rem;
  }
}

.vk-column {
  max-width: 46rem;
  margin-inline: auto;
}
.vk-column > .landing-section-title,
.vk-column > .landing-section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.vk-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.vk-points h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 0.375rem;
  color: var(--landing-text, #0f172a);
}
.vk-points p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--landing-text-secondary, #1e293b);
}
.vk-points a,
.vk-column .landing-section-subtitle a {
  color: var(--landing-accent, #1565c0);
}

.vk-faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.vk-faq-item {
  background: var(--landing-bg-section, #fff);
  border: 1px solid var(--landing-border, rgba(15, 23, 42, 0.08));
  border-radius: 12px;
  padding: 0 1.125rem;
}
.vk-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.0625rem 2rem 1.0625rem 0;
  position: relative;
  color: var(--landing-text, #0f172a);
}
.vk-faq-item summary::-webkit-details-marker {
  display: none;
}
.vk-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--landing-accent, #1565c0);
}
.vk-faq-item[open] summary::after {
  content: "\2212";
}
.vk-faq-item p {
  margin: 0 0 1.125rem;
  line-height: 1.6;
  color: var(--landing-text-muted, #64748b);
}
.page-factuurprogramma .landing-section:has(.vk-column) {
  padding-block: 4.5rem;
}
.vk-column > .landing-section-title {
  line-height: 1.15;
}

/* ───── Trade pages, round 1 (29-10-2026) ─────
   The button right under "Een week als ...": that is where a visitor
   recognises his own week. And the closing price block reads left-aligned
   like the rest of the page instead of a centred grey paragraph. */
.vk-week-cta {
  margin-top: 1.75rem;
}
.vk-week-cta .vakmens-cta-foot {
  margin-top: 0.75rem !important;
  font-size: 0.9375rem;
  color: var(--landing-text-muted, #5a6878);
}
.vakmens-cta-inner.vk-cta-left {
  text-align: left;
}
.vakmens-cta-inner.vk-cta-left p {
  color: var(--landing-text, #2a3947);
}
@media (max-width: 640px) {
  .vk-week-cta .landing-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}
