/* =========================================================================
   DACH Invoicing Pro – Docs / Help Site
   Single-page landing + FAQ. Plain CSS, no external dependencies.
   ========================================================================= */

:root {
  --c-brand: #2c5f2d;
  --c-brand-dark: #224722;
  --c-brand-soft: #e8f3e9;
  --c-accent: #ffb454;
  --c-bg: #ffffff;
  --c-bg-tinted: #f6f8f5;
  --c-bg-dark: #0e2110;
  --c-text: #1a2818;
  --c-text-soft: #4a5a48;
  --c-text-muted: #7a8678;
  --c-border: #e3e7e0;
  --c-border-strong: #c9d1c4;
  --c-card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 40, 18, 0.06);
  --shadow-md: 0 6px 24px -8px rgba(20, 40, 18, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(20, 40, 18, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --container: 1200px;
  --container-narrow: 800px;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0e1410;
    --c-bg-tinted: #14201a;
    --c-text: #eef3ec;
    --c-text-soft: #c0cdb9;
    --c-text-muted: #8a978a;
    --c-border: #233529;
    --c-border-strong: #34503b;
    --c-card: #14201a;
    --c-brand-soft: #1c3220;
  }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--c-brand);
  text-decoration: none;
}
a:hover {
  color: var(--c-brand-dark);
  text-decoration: underline;
}
code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--c-brand-soft);
  color: var(--c-brand-dark);
  padding: 0 4px;
  border-radius: 3px;
}
@media (prefers-color-scheme: dark) {
  code {
    color: #b9d8b8;
  }
}
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 700;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
p {
  margin: 0 0 var(--space-3);
}
ul {
  padding-left: 1.2em;
  margin: 0 0 var(--space-3);
}

.muted {
  color: var(--c-text-muted);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-9) 0;
}
.section-tinted {
  background: var(--c-bg-tinted);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}
.section-head .eyebrow {
  margin-bottom: var(--space-2);
}
.section-lead {
  color: var(--c-text-soft);
  font-size: 1.05rem;
  margin-top: var(--space-3);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-brand);
  margin: 0 0 var(--space-2);
}
.accent {
  color: var(--c-brand);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.05s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-brand-dark);
  color: #fff;
  text-decoration: none;
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn-ghost:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  text-decoration: none;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 90%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 14px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.primary-nav {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
  font-size: 0.95rem;
}
.primary-nav a {
  color: var(--c-text-soft);
  font-weight: 500;
}
.primary-nav a:hover {
  color: var(--c-brand);
  text-decoration: none;
}
.nav-cta {
  margin-left: var(--space-4);
}
.mobile-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) 24px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}
.mobile-menu a {
  color: var(--c-text);
  font-weight: 500;
  padding: 4px 0;
}
.mobile-menu .btn {
  margin-top: var(--space-3);
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-9) 0;
  background:
    radial-gradient(ellipse at 80% 0%, var(--c-brand-soft) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(255, 180, 84, 0.18) 0%, transparent 50%),
    var(--c-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: var(--space-4);
}
.lead {
  font-size: 1.15rem;
  color: var(--c-text-soft);
  margin-bottom: var(--space-5);
  max-width: 56ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.trust li {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  color: var(--c-text-soft);
  font-weight: 500;
}

/* Hero visual (mock invoice card) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.invoice-card {
  width: 100%;
  max-width: 420px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}
.invoice-card:hover {
  transform: rotate(0deg);
}
.invoice-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-dark) 100%);
  color: #fff;
}
.invoice-card-head strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.85;
}
.invoice-card-head span {
  font-size: 1.2rem;
  font-weight: 700;
}
.badge-zugferd {
  background: var(--c-accent);
  color: #2b1700;
  padding: 4px 10px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.invoice-card-body {
  padding: 24px;
}
.invoice-card-body .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--c-text-soft);
}
.invoice-card-body .row span:last-child {
  color: var(--c-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.invoice-card-body .divider {
  height: 1px;
  background: var(--c-border);
  margin: 8px 0;
}
.invoice-card-body .total span {
  font-weight: 700 !important;
  color: var(--c-text) !important;
  font-size: 1.05rem;
}
.invoice-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--c-brand-soft);
  font-size: 0.85rem;
  color: var(--c-brand-dark);
  border-top: 1px solid var(--c-border);
}
.invoice-card-foot .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-brand);
  display: inline-block;
}
.invoice-card-foot code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-weight: 600;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.feature {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature p {
  color: var(--c-text-soft);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}
.steps li {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}
.steps p {
  color: var(--c-text-soft);
  margin: 0;
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--c-card);
  border: 2px solid var(--c-brand);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.pricing-card-head h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
}
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: var(--space-3) 0;
}
.price .amount {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.price .period {
  color: var(--c-text-muted);
  font-size: 1rem;
}
.trial {
  color: var(--c-brand);
  font-weight: 600;
  margin: 0 0 var(--space-5);
  font-size: 0.95rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: var(--space-5) 0;
  display: grid;
  gap: 8px;
}
.pricing-features li {
  position: relative;
  padding-left: 28px;
  color: var(--c-text-soft);
  font-size: 0.95rem;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  background-color: var(--c-brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}
.pricing-note {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-top: var(--space-4);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item[open] {
  border-color: var(--c-brand);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  color: var(--c-text);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--c-text-muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center / contain no-repeat;
  margin-left: var(--space-4);
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--c-brand);
}
.faq-body {
  padding: 0 22px 20px;
  color: var(--c-text-soft);
  font-size: 0.96rem;
}
.faq-body p {
  margin: 0;
  line-height: 1.65;
}

/* ---------- Support cards ---------- */
.support-block {
  text-align: center;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: var(--space-5);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  color: var(--c-text);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.support-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-brand);
  text-decoration: none;
  color: var(--c-brand);
}
.support-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.support-icon svg {
  width: 22px;
  height: 22px;
}
.support-card strong {
  font-size: 1rem;
}
.support-card span:not(.support-icon) {
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-bg-dark);
  color: #c5d3c0;
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
}
.site-footer .brand {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  color: #b6c4b1;
  font-size: 0.95rem;
}
.footer-grid a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-tag {
  color: #91a08c;
  margin: var(--space-3) 0 0;
  max-width: 30ch;
  font-size: 0.9rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid #1f3324;
  font-size: 0.85rem;
  color: #91a08c;
}

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  .primary-nav,
  .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-menu[data-open="true"] {
    display: flex;
  }
  .hero {
    padding: var(--space-7) 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
  .hero-visual {
    order: -1;
  }
  .invoice-card {
    transform: rotate(0);
    max-width: 360px;
  }
  .section {
    padding: var(--space-7) 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    padding: var(--space-5);
  }
  .price .amount {
    font-size: 2.6rem;
  }
}

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible {
  outline-offset: 2px;
}
