/* Factuurpost — postal/editorial design language.
   Paper, ink, one stamp-red accent. Hairlines instead of boxes.
   Type: Fraunces (display serif) · Instrument Sans (body) · IBM Plex Mono (data). */

:root {
  --paper: #FAF7F2;
  --paper-deep: #F3EEE5;
  --ink: #21201C;
  --ink-soft: #6E6A61;
  --hairline: #E2DCD0;
  --accent: #C8401F;
  --accent-deep: #A93417;
  --ok-ink: #2E6E4E;
  --ok-paper: #EFF4EE;
  --warn-ink: #8A5A1F;
  --warn-paper: #F8F1E2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 660px; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 550;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.06; margin: 0.35em 0 0.4em; }
h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; margin: 0.2em 0 0.5em; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.35em; }

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6em;
}

.tiny { font-size: 0.82rem; color: var(--ink-soft); }

/* Header — quiet bar, hairline below */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
/* Optically center the mark against the wordmark's x-height: the flex line
   box centers on the full line, which reads as "sagging" next to serif caps. */
.brand-mark { transform: translateY(-1px); }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 108px 0 96px; }
.lede {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0;
}
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 40px; }
.hero-note {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  max-width: 36em;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Buttons & links */
.btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.btn:hover { background: var(--accent-deep); color: var(--paper); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.text-link { font-size: 0.95rem; color: var(--ink-soft); text-decoration: none; }
.text-link:hover { color: var(--accent); }

/* Sections — rhythm via whitespace + hairlines, no boxes */
.section { padding: 88px 0; border-top: 1px solid var(--hairline); }
.section-lede { color: var(--ink-soft); max-width: 34em; margin: 0 0 2.2em; }

/* Peppol-check */
.check-section { background: var(--paper-deep); }
.check-form { display: flex; gap: 12px; flex-wrap: wrap; }
.check-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.check-form input[type="text"]:focus,
.lead-fields input:focus {
  outline: none;
  border-color: var(--ink);
}
.check-result {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 3px solid var(--hairline);
  font-size: 0.97rem;
}
.check-result strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 550;
  margin-bottom: 6px;
}
.check-result.ok { border-left-color: var(--ok-ink); background: var(--ok-paper); }
.check-result.ok strong { color: var(--ok-ink); }
.check-result.warn { border-left-color: var(--warn-ink); background: var(--warn-paper); }
.check-result.warn strong { color: var(--warn-ink); }
.check-result span { color: var(--ink-soft); }

/* Lead forms */
.lead-form { margin-top: 26px; }
.lead-form > p { max-width: 34em; }
.lead-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.lead-fields input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.lead-done { margin-top: 18px; color: var(--ok-ink); font-weight: 500; }
.lead-error { margin-top: 18px; color: var(--accent-deep); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Reasons — numbered editorial list, hairline separators */
.reasons { list-style: none; counter-reset: reason; margin: 0; padding: 0; }
.reasons li {
  counter-increment: reason;
  position: relative;
  padding: 30px 0 30px 72px;
  border-top: 1px solid var(--hairline);
}
.reasons li::before {
  content: "0" counter(reason);
  position: absolute;
  left: 0;
  top: 34px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
}
.reasons li p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 34em; }

/* Pricing — three columns divided by hairlines, not cards */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}
.tier { padding: 34px 30px 34px 0; }
.tier + .tier { border-left: 1px solid var(--hairline); padding-left: 30px; }
.tier h3 { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.tier.featured h3 { color: var(--accent); }
.price {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 550;
  margin: 6px 0 18px;
  line-height: 1.1;
}
.price span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 6px;
}
.tier ul { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; color: var(--ink-soft); }
.tier li { padding: 7px 0; border-top: 1px solid var(--hairline); }
.tier li:first-child { border-top: none; }
.pricing-section .tiny { margin-top: 40px; max-width: 44em; }

/* FAQ — hairlines only */
.faq-section details { border-top: 1px solid var(--hairline); }
.faq-section details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 34px;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 15px;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.18s ease;
}
.faq-section details[open] summary::after { transform: rotate(45deg); }
.faq-section details p { margin: 0 0 20px; color: var(--ink-soft); font-size: 0.95rem; max-width: 36em; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 44px 0 52px; }
.site-footer p { margin: 6px 0; font-size: 0.88rem; color: var(--ink-soft); }
.site-footer strong { font-family: var(--serif); font-weight: 550; color: var(--ink); }

@media (max-width: 760px) {
  .hero { padding: 68px 0 60px; }
  .section { padding: 60px 0; }
  .site-nav { display: none; }
  .reasons li { padding-left: 48px; }
  .tiers { grid-template-columns: 1fr; }
  .tier { padding: 26px 0; }
  .tier + .tier { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; }
}
