/* EU E-Invoice API landing page. No external fonts, no images from other hosts, no JavaScript. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #4a5870;
  --border: #dce3ed;
  --accent: #1747c9;
  --accent-hover: #0f379f;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefc;
  --ok: #0d7a4a;
  --err: #b42318;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --code-muted: #8b9ab3;
  --code-key: #93c5fd;
  --code-str: #a7f3d0;
  --todo-bg: #fff3c4;
  --todo-text: #5c4300;
  --radius: 10px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #101a2d;
    --surface: #131f35;
    --text: #e6ebf3;
    --muted: #a3b0c4;
    --border: #253350;
    --accent: #7aa7ff;
    --accent-hover: #a3c2ff;
    --accent-ink: #0b1220;
    --accent-soft: #1a2a4a;
    --ok: #4ade80;
    --err: #f87171;
    --code-bg: #070c17;
    --todo-bg: #4a3a00;
    --todo-text: #ffe9a3;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

code, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .05em .35em;
  overflow-wrap: anywhere;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  min-height: 64px; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto;
}
.brand img { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .lang { border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: .85rem; }
@media (max-width: 719px) {
  .nav .hide-sm { display: none; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  line-height: 1.3;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-secondary:hover { border-color: var(--accent); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.is-soon { opacity: .65; cursor: default; }
.btn.is-soon:hover { border-color: var(--border); }

/* Hero */
.hero { padding: 56px 0 48px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 12px; margin-bottom: 16px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 6px; color: var(--muted); }
.hero-points li { position: relative; padding-left: 24px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Code blocks */
.code {
  background: var(--code-bg); color: var(--code-text);
  border-radius: var(--radius); overflow: hidden; border: 1px solid #1e293b;
  min-width: 0;
}
.code-title {
  font: 600 .8rem/1 var(--font); color: var(--code-muted);
  padding: 12px 16px; border-bottom: 1px solid #1e293b;
}
.code pre { margin: 0; padding: 16px; overflow-x: auto; line-height: 1.55; font-size: .84rem; }
.code .c { color: var(--code-muted); }
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }
.code .t { color: #fca5a5; }

/* Sections */
section { padding: 64px 0; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card p:last-child { margin-bottom: 0; }
.card .endpoint {
  display: inline-block; font: 600 .8rem/1.4 var(--mono); color: var(--accent);
  background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.card p { color: var(--muted); }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 999px;
  padding: 1px 9px; border: 1px solid var(--border); color: var(--muted); margin-left: 6px; vertical-align: middle;
}

.formats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.formats li {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 4px 12px; font-size: .9rem;
}

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.timeline strong { display: block; font-size: 1.1rem; }
.timeline span { color: var(--muted); font-size: .95rem; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 20px; }

.trust h3 { display: flex; align-items: center; gap: 10px; }
.trust .ic {
  flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  display: inline-grid; place-items: center; font-size: 1rem;
}

/* Example */
.example { display: grid; gap: 16px; }
@media (min-width: 960px) { .example { grid-template-columns: 1fr 1fr; } }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--accent); }
.plan .badge {
  position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--accent-ink);
  font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px;
}
.plan h3 { margin-bottom: 4px; }
.price { font-size: 1.75rem; white-space: nowrap; font-weight: 700; line-height: 1.1; margin: 8px 0 2px; }
.price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan .per { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 7px; font-size: .92rem; }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; padding: 10px 12px; font-size: .92rem; }

/* FAQ */
.faq { max-width: 50em; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* CTA band */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }
.cta p { color: var(--muted); max-width: 40em; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer .copy { margin-right: auto; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { margin-top: 1.5em; }
.legal address { font-style: normal; }
.todo {
  background: var(--todo-bg); color: var(--todo-text); border-radius: 4px; padding: 0 .3em;
  font-weight: 600;
}
.notice {
  background: var(--todo-bg); color: var(--todo-text); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 28px;
}
.notice p:last-child { margin-bottom: 0; }

/* 404 */
.notfound { padding: 96px 0; text-align: center; }
.notfound .btn-row { justify-content: center; }
