/* docsbills.com website — tokens copied from the docsbills app
 * (ext.dev/docsbills.com, web/static/app.css; approved design in docs/design/).
 * Keep them in sync with the app; change a token there first. Fonts are self-hosted. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  /* Ground and ink */
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --ink: #17211F;
  --ink-2: #2C3835;
  --muted: #4A5652;
  --subtle: #5E6A66;
  --faint: #8A9591;
  --line: #E3E6E1;
  --line-soft: #EEF0EC;
  --chip: #F0F2EE;
  --track: #EEF0EC;

  /* Accent (petrol) */
  --accent: #0B5E5E;
  --accent-hover: #084646;
  --accent-soft: #EAF1EF;
  --accent-ink: #0B4A4A;
  --avatar: #DDE8E5;

  /* Status */
  --ok: #1E6B45;       --ok-bg: #E3F2E8;       --ok-dot: #2F8A57;
  --warn: #9A6200;     --warn-bg: #FBF1DC;     --warn-dot: #C98A0B;
  --bad: #A3251A;      --bad-bg: #FCEBE8;      --bad-ink: #8E1F14;
  --neutral: #4A5652;  --neutral-bg: #EEF0EC;

  /* Dunning levels (bar chart) */
  --dun-0: var(--accent);
  --dun-1: #C98A0B;
  --dun-2: #D9772B;
  --dun-3: #B8321F;

  /* Login panel */
  --panel: #17211F;
  --panel-ink: #EEF2F0;
  --panel-muted: #B9C6C2;
  --panel-faint: #8FA09B;
  --panel-accent: #7CC4BC;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --sidebar-w: 256px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-feature-settings: "tnum" 1;
  color: var(--ink); background: var(--bg); line-height: 1.6;
}
main { flex: 1; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[id] { scroll-margin-top: 96px; }
.icon { flex-shrink: 0; }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); }
.num { text-align: right; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
@media (min-width: 1100px) { .wrap { padding: 0 48px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); }
.skip-link:focus { left: 16px; }

.wordmark { font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.wordmark__tld { color: var(--accent); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: #CBD2CD; }
.btn--secondary:hover { color: var(--ink); border-color: var(--ink-2); }
.btn--sm { min-height: 44px; padding: 0 18px; }

/* Header + navigation (details/summary: works without JavaScript) */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(244, 245, 242, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }
.site-header__home { font-size: 20px; }
.site-header__home:hover { text-decoration: none; }
.site-nav__toggle { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; }
.site-nav__toggle::-webkit-details-marker { display: none; }
.site-nav__links { position: absolute; left: 0; right: 0; top: 64px; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-nav__links a:not(.btn) { color: var(--ink-2); padding: 10px 4px; font-size: 16px; }
.site-nav__links .btn { margin-top: 8px; }
.site-nav-desktop { display: none; }
@media (min-width: 960px) {
  .site-header__inner { min-height: 84px; }
  .site-header__home { font-size: 22px; }
  .site-nav { display: none; }
  .site-nav-desktop { display: flex; align-items: center; gap: 28px; }
  .site-nav-desktop a:not(.btn) { color: var(--ink-2); font-size: 15px; padding: 10px 2px; }
  .site-nav-desktop .btn { margin-left: 12px; }
  [id] { scroll-margin-top: 108px; }
}

/* Hero */
.hero { display: grid; gap: 48px; padding-top: 40px; padding-bottom: 56px; }
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: 34px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.dot--ok { background: var(--ok-dot); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.assurances { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances .icon { color: var(--accent); }
@media (min-width: 720px) {
  .hero h1 { font-size: 46px; }
  .lead { font-size: 19px; }
  .actions { flex-direction: row; align-items: center; }
  .badge { font-size: 13px; }
}
@media (min-width: 1100px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 96px; }
  .hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -0.03em; }
  .lead { font-size: 20px; }
}

/* Product mock (sample data, not a screenshot) */
.mock { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mock__window { background: var(--surface); border: 1px solid #DDE2DD; border-radius: 18px; box-shadow: 0 24px 60px rgba(23, 33, 31, 0.10); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #FAFBF9; }
.mock__bar span { width: 10px; height: 10px; border-radius: 999px; background: #DDE2DD; }
.mock__bar code { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.mock__body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mock__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.mock__head strong { font-size: 17px; font-weight: 600; }
.mock__head span { font-size: 12px; color: var(--subtle); }
.mock__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock__kpis div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.mock__kpis span { font-size: 11px; line-height: 1.3; color: var(--muted); hyphens: auto; overflow-wrap: anywhere; }
.mock__kpis strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.mock__table { width: 100%; border-collapse: collapse; font-size: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mock__table th { padding: 8px 10px; text-align: left; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); background: #FAFBF9; }
.mock__table th.num { text-align: right; }
.mock__table td { padding: 9px 10px; border-top: 1px solid var(--line-soft); color: var(--ink-2); white-space: nowrap; }
.mock__table td:nth-child(2) { color: var(--muted); }
.mock figcaption { font-size: 13px; color: var(--subtle); text-align: right; }
@media (max-width: 519px) { .mock__table th:nth-child(2), .mock__table td:nth-child(2) { display: none; } }
@media (min-width: 720px) {
  .mock__body { padding: 20px; gap: 16px; }
  .mock__kpis { gap: 10px; }
  .mock__kpis div { padding: 14px 16px; }
  .mock__kpis span { font-size: 12px; }
  .mock__kpis strong { font-size: 26px; }
  .mock__table { font-size: 13px; }
  .mock__table th, .mock__table td { padding-left: 16px; padding-right: 16px; }
}
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill--ok { color: var(--ok); background: var(--ok-bg); }
.pill--warn { color: #7A4A00; background: var(--warn-bg); }
.pill--bad { color: var(--bad-ink); background: var(--bad-bg); }

/* Pilot figures */
.stats { display: grid; gap: 24px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats strong { font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.stats span { font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 32px 40px; } .stats strong { font-size: 40px; } }

/* Sections */
.section { padding-top: 80px; display: flex; flex-direction: column; gap: 36px; }
.section--last { padding-bottom: 88px; }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section__head h2 { font-size: 28px; line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; }
.section__head p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 720px) {
  .section { padding-top: 120px; gap: 48px; }
  .section--last { padding-bottom: 120px; }
  .section__head h2 { font-size: 40px; line-height: 1.15; }
  .section__head p { font-size: 18px; }
  .kicker { font-size: 13px; }
}
@media (min-width: 1100px) {
  .section--split { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  #preise.section--split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
}

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.card h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (min-width: 720px) { .card { padding: 28px; } .card h3 { font-size: 20px; } }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card__icon--sm { width: 40px; height: 40px; border-radius: var(--radius); }
.step__no { width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
.step__note { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--subtle); }

.features { display: grid; gap: 28px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; } }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature div { display: flex; flex-direction: column; gap: 6px; }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Dark security panel (same palette as the app's login panel) */
.dark-panel { display: flex; flex-direction: column; gap: 36px; padding: 32px 20px; background: var(--panel); border-radius: 20px; }
.dark-panel .kicker { color: var(--panel-accent); }
.dark-panel .section__head h2 { color: #FFFFFF; }
.dark-panel .section__head p { color: var(--panel-muted); }
@media (min-width: 720px) { .dark-panel { padding: 56px; gap: 48px; border-radius: 24px; } }
@media (min-width: 1100px) { .dark-panel { padding: 72px; } }
.card--dark { background: #1D2927; border-color: #2E3B38; gap: 12px; }
.card--dark .icon { color: var(--panel-accent); }
.card--dark h3 { font-size: 18px; color: #FFFFFF; }
.card--dark p { font-size: 15px; color: var(--panel-muted); }

/* Pricing */
.price { gap: 22px; padding: 28px 24px; border-radius: 20px; }
@media (min-width: 720px) { .price { padding: 36px; } }
.price__kicker { font-size: 14px; font-weight: 600; color: var(--accent); }
.price__title { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 720px) { .price__title { font-size: 28px; } }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.checklist .icon { color: var(--accent); margin-top: 2px; }
.price .btn { align-self: flex-start; }

/* Text pages (Impressum, Datenschutz, Nutzungsbedingungen) */
.prose { padding-top: 48px; padding-bottom: 88px; max-width: 800px; }
.prose h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.prose h2 { margin: 40px 0 10px; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.prose h3 { margin: 28px 0 6px; font-size: 17px; font-weight: 600; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose__meta { margin: 0 0 28px; color: var(--subtle); font-size: 14px; }
@media (min-width: 720px) { .prose { padding-top: 72px; padding-bottom: 120px; } .prose h1 { font-size: 44px; } .prose h2 { font-size: 22px; } }

.legal { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 88px; }
.legal .prose { padding: 0; }
.legal__toc { padding: 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.legal__toc-title { display: block; padding: 0 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.legal__toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-2); }
.legal__toc a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.legal__toc a span:first-child { flex-shrink: 0; width: 30px; color: var(--subtle); }
.legal__version { display: inline-block; margin-right: 12px; padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.legal .para { display: grid; grid-template-columns: 36px minmax(0, 1fr); }
.legal .para > span:first-child { color: var(--subtle); }
@media (min-width: 1100px) {
  .legal { grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: start; padding-top: 72px; padding-bottom: 120px; }
  .legal__toc { position: sticky; top: 108px; }
}

/* Footer */
.site-footer { background: var(--panel); color: var(--panel-muted); font-size: 14px; }
.site-footer__inner { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; padding-bottom: 28px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 420px; font-size: 20px; }
.site-footer__brand p { font-size: 14px; line-height: 1.6; }
.site-footer .wordmark { color: #FFFFFF; }
.site-footer .wordmark__tld { color: var(--panel-accent); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--panel-ink); }
.site-footer__legal { padding-top: 18px; padding-bottom: 32px; border-top: 1px solid #2E3B38; font-size: 13px; color: var(--panel-faint); }
@media (min-width: 900px) { .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; padding-top: 56px; } }
