/* errors.nl marketing site. Colors follow the dashboard (web/src/styles.css). */
:root {
  --bg: #ffffff;
  --alt: #f6f7f9;
  --card: #ffffff;
  --border: #e2e5ea;
  --btn-border: #cfd4db;
  --text: #1b1f24;
  --body: #4a525e;
  --muted: #5d6673;
  --link: #b33b0c;
  --link-hover: #8f2f0a;
  --accent: #c2410c;
  --accent-hover: #a8380a;
  --soft: #fff1ea;
  --soft-text: #8f2f0a;
  --free-bg: #e6f4ea;
  --free-text: #1e6b31;
  --band: #1b1f24;
  --shadow: 0 12px 32px rgb(16 24 40 / 10%);
  --code-bg: #14171b;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317;
    --alt: #171a1f;
    --card: #1d2127;
    --border: #2d323a;
    --btn-border: #3a404a;
    --text: #e6e8eb;
    --body: #b9c0c9;
    --muted: #98a1ad;
    --link: #ff9b5e;
    --link-hover: #ffb38a;
    --soft: #3a2116;
    --soft-text: #ffb38a;
    --free-bg: #183a22;
    --free-text: #8fd19e;
    --band: #0b0d10;
    --shadow: 0 12px 32px rgb(0 0 0 / 40%);
    --code-bg: #0b0d10;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111317;
  --alt: #171a1f;
  --card: #1d2127;
  --border: #2d323a;
  --btn-border: #3a404a;
  --text: #e6e8eb;
  --body: #b9c0c9;
  --muted: #98a1ad;
  --link: #ff9b5e;
  --link-hover: #ffb38a;
  --soft: #3a2116;
  --soft-text: #ffb38a;
  --free-bg: #183a22;
  --free-text: #8fd19e;
  --band: #0b0d10;
  --shadow: 0 12px 32px rgb(0 0 0 / 40%);
  --code-bg: #0b0d10;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
code, pre { font-family: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; font-variant-ligatures: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 38px; font-weight: 800; margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--body); max-width: 44em; margin-bottom: 48px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.button.large { min-height: 52px; padding: 0 24px; font-size: 17px; }
.button.primary { background: var(--accent); color: #ffffff; }
.button.primary:hover { background: var(--accent-hover); color: #ffffff; }
.button.secondary { background: var(--card); color: var(--text); border-color: var(--btn-border); }
.button.secondary:hover { border-color: var(--muted); color: var(--text); }

/* Header */
.header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header .container { display: flex; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.nav { flex: 1 1 auto; display: flex; justify-content: flex-end; align-items: center; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--body); text-decoration: none; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--btn-border);
  background: var(--card); color: var(--text); cursor: pointer;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--muted); }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

/* Phones: the links fold into a menu below the bar; logo, theme and
   "Gratis starten" stay on one line. */
@media (max-width: 760px) {
  .header .container { flex-wrap: wrap; gap: 8px 12px; }
  .logo { flex: 1 1 auto; }
  .menu-toggle { display: inline-flex; }
  .nav {
    order: 3; flex: 1 1 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--border); margin: 2px -24px -14px; padding: 4px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; font-size: 17px; }
}
@media (max-width: 420px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header .container { gap: 8px; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding: 0 10px; font-size: 15px; }
  .theme-toggle, .menu-toggle { width: 42px; height: 42px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo svg { width: 24px; height: 24px; }
  .nav { margin-left: -16px; margin-right: -16px; }
  .nav a { padding-left: 16px; padding-right: 16px; }
}
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Hero */
.hero { background: var(--alt); border-bottom: 1px solid var(--border); }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--soft-text); background: var(--soft); border-radius: 999px; padding: 6px 14px; }
.hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.hero-text > p { font-size: 19px; color: var(--body); max-width: 34em; }
.hero .note { font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mock { flex: 1 1 440px; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--alt); font-size: 13px; color: var(--muted); }
.mock-bar span[aria-hidden] { width: 10px; height: 10px; border-radius: 50%; background: var(--btn-border); }
.mock-bar .title { margin-left: 8px; }
.mock ul { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.issue { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.status { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: #ffffff; }
.status.new { background: #1c64d6; }
.status.reopened { background: #c2410c; }
.status.resolved { background: #2b8a3e; }
.issue-main { flex: 1 1 auto; min-width: 0; }
.issue-title { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-where { font-size: 13px; color: var(--muted); }
.issue-count { flex: none; text-align: right; font-weight: 700; font-size: 15px; }
.issue-count small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* Steps */
.steps-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.steps { flex: 1 1 360px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 28px; }
.steps li { display: flex; gap: 18px; }
.step-number { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--soft-text); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { color: var(--body); }
.code { flex: 1 1 460px; min-width: 0; background: var(--code-bg); color: #e6e8eb; border-radius: 14px; padding: 24px; overflow-x: auto; }
.code-name { font-size: 13px; color: #98a1ad; margin-bottom: 12px; }
.code pre { margin: 0; font-size: 14px; line-height: 1.7; }
.code .kw { color: #ff9b5e; }
.code .str { color: #a5d6a7; }
.code .comment { color: #9aa4b2; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--soft-text); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--body); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border: 2px solid var(--accent); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-name { font-weight: 700; font-size: 17px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--soft-text); }
.badge.free { background: var(--free-bg); color: var(--free-text); }
.price { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-credits { font-size: 15px; font-weight: 600; }
.plan-per { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.plan .button { margin-top: auto; }
.pack { margin-top: 24px; border: 1px dashed var(--btn-border); border-radius: 14px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.pack a { font-weight: 600; }

/* Closing band and footer */
.band { background: var(--band); color: #ffffff; border-top: 1px solid var(--border); }
.band .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 80px; padding-bottom: 80px; }
.band h2 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.band p { color: #c3c9d1; font-size: 17px; }
.band-text { flex: 1 1 420px; min-width: 0; }
.footer { border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand p { margin-top: 10px; max-width: 22em; }
.footer-brand .logo { font-size: 18px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: 4px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--border); }

/* Content pages: help, terms, privacy, disclaimer */
.page-head { background: var(--alt); border-bottom: 1px solid var(--border); }
.page-head .container { padding-top: 56px; padding-bottom: 48px; }
.page-head h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.page-head p { margin-top: 12px; font-size: 18px; color: var(--body); max-width: 40em; }
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 40px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); }
.table-wrap { overflow-x: auto; }
.notice { border: 1px solid var(--border); background: var(--alt); border-radius: 12px; padding: 16px 20px; color: var(--body); margin-bottom: 32px; }

/* Help center */
.faq { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 8px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; }
.contact-card { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; align-items: start; margin-top: 16px; }
.contact-card .button { grid-column: 1 / -1; justify-self: start; }
.prose .contact-card p { margin: 0; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero .container { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero-text > p { font-size: 17px; }
  .section h2 { font-size: 30px; }
  .band h2 { font-size: 28px; }
  .page-head h1 { font-size: 34px; }
  .header { position: static; }
}

/* Blog and long pages */
.prose .code { margin: 12px 0 16px; }
.prose .code pre { white-space: pre; }
.prose :not(pre) > code { overflow-wrap: anywhere; }
.post-teaser { padding: 24px 0; border-bottom: 1px solid var(--border); }
.post-teaser:first-child { padding-top: 0; }
.post-teaser h2 { margin: 0 0 4px; }
.post-teaser h2 a { color: var(--text); text-decoration: none; }
.post-teaser h2 a:hover { color: var(--accent); }
.prose .muted, .page-head .muted { color: var(--muted); font-size: 15px; }
.page-head .muted a { color: inherit; }
