/* E-Invoice Engine UI. Warm light theme, Geist + Doto, glass on glow. */
:root {
  --i-canvas: #ebe8e3;
  --i-card: #ffffff;
  --i-soft: #f6f4f1;
  --i-ink: #21130f;
  --i-ink-2: #5c514c;
  --i-muted: #8f8a88;
  --i-line: #e4dfd8;
  --i-orange: #f87f23;
  --i-orange-ink: #b8520c;
  --i-red: #cc0a0d;
  --i-cream: #f0dfcb;
  --i-grey: #9e9a9a;
  --i-good: #4f8a5b;
  --shadow-card: 0 1px 0 rgba(33, 19, 15, 0.03), 0 18px 40px -24px rgba(33, 19, 15, 0.18);
  --grad: linear-gradient(135deg, #f87f23, #cc0a0d);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  background: var(--i-canvas);
  color: var(--i-ink);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--i-orange); outline-offset: 2px; }
.tabular { font-variant-numeric: tabular-nums; }
.dot-num { font-family: "Doto", "Geist", monospace; font-weight: 800; letter-spacing: -0.02em; line-height: 0.85; }
.muted { color: var(--i-muted); }
.ink-2 { color: var(--i-ink-2); }

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

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border-radius: 28px; padding: 12px 14px 12px 20px; box-shadow: var(--shadow-card);
  position: sticky; top: 12px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.brand .mark { width: 28px; height: 28px; border-radius: 999px; background: var(--grad); box-shadow: 0 8px 20px -6px rgba(204, 10, 13, 0.5); }
.topnav { display: none; gap: 4px; }
@media (min-width: 900px) { .topnav { display: flex; } }
.topnav a { height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--i-ink-2); }
.topnav a:hover, .topnav a[aria-current] { background: var(--i-soft); color: var(--i-ink); }
.topright { display: flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .topright .pill { display: none; } }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 999px; border: 1px solid var(--i-line);
  padding: 0.3rem 0.8rem; font-size: 12.5px; color: var(--i-ink-2); background: rgba(255, 255, 255, 0.6); white-space: nowrap;
}
.live-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--i-orange); animation: intel-pulse 2.4s ease-out infinite; }
.glass .live-dot { background: #fff; }

/* cards */
.card { background: var(--i-card); border-radius: 28px; box-shadow: var(--shadow-card); padding: 20px; }
@media (min-width: 640px) { .card { padding: 28px; } }
.card-soft { background: var(--i-soft); border-radius: 22px; padding: 18px; }
.card-dark { background: var(--i-ink); color: #f3ece6; border-radius: 28px; padding: 24px; }
.card-dark .muted { color: #9e9a9a; }
.card-dark .intro { color: #b9aea7; }
.card-title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.card-intro { font-size: 13px; color: var(--i-muted); margin: 4px 0 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section { margin-top: 20px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-12 { grid-template-columns: repeat(12, 1fr); } .span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; } }

/* glow hero */
.glow {
  position: relative; overflow: hidden; border-radius: 32px; color: #fff; isolation: isolate;
  /* blurred blobs bleed past overflow:hidden at rounded corners; a rounded clip-path and an own compositing layer stop it */
  clip-path: inset(0 round 32px); transform: translateZ(0);
  background:
    radial-gradient(120% 90% at 85% 10%, #ffb36b 0%, rgba(255, 179, 107, 0) 45%),
    radial-gradient(90% 120% at 10% 100%, #cc0a0d 0%, rgba(204, 10, 13, 0) 60%),
    linear-gradient(135deg, #f87f23 0%, #ef5a1c 55%, #d8230f 100%);
  padding: 28px;
}
@media (min-width: 900px) { .glow { padding: 48px; } }
.glow .orb { position: absolute; right: -40px; top: -64px; width: 288px; height: 288px; border-radius: 999px; background: #ffd29e; opacity: 0.4; filter: blur(64px); pointer-events: none; }
.glow .dots { position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: overlay; background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.blob { position: absolute; border-radius: 999px; pointer-events: none; will-change: transform; }
.blob-a { left: -20%; top: -25%; width: 80%; height: 80%; background: #cc0a0d; opacity: 0.8; filter: blur(90px); animation: intel-drift-a 18s ease-in-out infinite; }
.blob-b { right: -15%; top: 10%; width: 65%; height: 70%; background: #ffb56b; opacity: 0.9; filter: blur(90px); animation: intel-drift-b 22s ease-in-out infinite; }
.blob-c { left: 15%; bottom: -30%; width: 70%; height: 70%; background: #f0dfcb; opacity: 0.7; filter: blur(100px); animation: intel-drift-c 16s ease-in-out infinite; }
.glow > .rel { position: relative; }
.glass { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.glass.pill { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero-grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero h1 { font-size: 40px; font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 14px; }
@media (min-width: 640px) { .hero h1 { font-size: 56px; letter-spacing: -0.035em; } }
.hero p { font-size: 16px; max-width: 560px; margin: 0 0 24px; color: rgba(255, 255, 255, 0.9); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; border-radius: 999px; border: 0;
  background: var(--i-ink); color: #fff; padding: 0 8px 0 24px; font-size: 15px; font-weight: 500;
}
.btn-primary:hover { background: #3a2620; }
.btn-primary .arrow { width: 40px; height: 40px; border-radius: 999px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; }
.btn-small { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; border: 0; background: var(--i-ink); color: #fff; padding: 6px 6px 6px 16px; font-size: 13px; font-weight: 500; }
.btn-small:hover { background: #3a2620; }
.btn-small .arrow { width: 28px; height: 28px; border-radius: 999px; background: #fff; color: var(--i-ink); display: inline-flex; align-items: center; justify-content: center; }
.btn-small:disabled { opacity: 0.5; cursor: wait; }
.btn-ghost { display: inline-flex; align-items: center; height: 56px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.kpi-glass { border-radius: 28px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* dark ink on the glass tiles: the glow gets very light where the cream blob sits */
.kpi-glass .tile { border-radius: 16px; padding: 14px 16px; min-height: 124px; display: flex; flex-direction: column; transition: background 0.2s; color: var(--i-ink); background: rgba(255, 255, 255, 0.42); border-color: rgba(255, 255, 255, 0.55); }
.kpi-glass .tile:hover { background: rgba(255, 255, 255, 0.55); }
.kpi-glass .label { font-size: 13px; font-weight: 500; color: var(--i-ink); }
.kpi-glass .num { margin-top: auto; padding-top: 14px; font-size: 44px; color: var(--i-ink); }
.kpi-glass .cap { font-size: 11.5px; color: rgba(33, 19, 15, 0.7); margin-top: 6px; }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 36px; margin-top: 10px; }
.bars i { display: block; width: 10px; border-radius: 999px; background: var(--i-ink); opacity: 0.85; transform-origin: bottom; animation: intel-rise 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* tabs and forms */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--i-line); background: #fff; font-size: 13.5px; font-weight: 500; color: var(--i-ink-2); }
.tab[aria-selected="true"] { background: var(--i-ink); color: #fff; border-color: var(--i-ink); }
.panel { display: none; margin-top: 20px; }
.panel.active { display: block; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--i-ink-2); }
.input { height: 48px; border-radius: 16px; border: 0; background: #fff; padding: 0 18px; font-size: 14px; box-shadow: 0 10px 30px -20px rgba(33, 19, 15, 0.35); width: 100%; }
.card .input { background: var(--i-soft); box-shadow: none; }
.select { height: 36px; border-radius: 999px; border: 1px solid var(--i-line); background: #fff; padding: 0 14px; font-size: 13px; }
textarea.code {
  width: 100%; min-height: 320px; border-radius: 18px; border: 1px solid var(--i-line); background: var(--i-soft); padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; resize: vertical; color: var(--i-ink);
}
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--i-ink-2); }
.check input[type="checkbox"] { accent-color: var(--i-orange); width: 16px; height: 16px; margin: 0; flex: none; }
.drop {
  border: 1.5px dashed var(--i-line); border-radius: 22px; background: var(--i-soft); padding: 36px 20px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.drop:hover, .drop.over { border-color: var(--i-orange); background: #fff7f0; }
.drop .big { font-size: 15px; font-weight: 500; }
.drop .small { font-size: 12.5px; color: var(--i-muted); margin-top: 4px; }
.drop .file { margin-top: 12px; }
.key-box { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.key-row { display: flex; align-items: center; gap: 6px; }
.key-box input[type="password"], .key-box input[type="text"] { height: 36px; border-radius: 999px; border: 1px solid var(--i-line); background: #fff; padding: 0 14px; font-size: 13px; width: 240px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.key-box .tab { height: 36px; padding: 0 12px; }
.hint { font-size: 11.5px; color: var(--i-muted); max-width: 300px; }

/* results */
.result { margin-top: 18px; display: none; }
.result.show { display: block; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 500; }
.chip.orange { background: #fde3cf; color: var(--i-orange-ink); }
.chip.red { background: #fbe0e0; color: var(--i-red); }
.chip.green { background: #e7f1e9; color: var(--i-good); }
.chip.ink { background: var(--i-ink); color: #fff; }
.chip.grey { background: #efebe6; color: var(--i-ink-2); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--i-soft); border-radius: 22px; padding: 16px; min-height: 120px; display: flex; flex-direction: column; }
.kpi .label { font-size: 13px; color: var(--i-ink-2); }
.kpi .num { margin-top: auto; padding-top: 14px; font-size: 40px; }
.kpi .cap { font-size: 12px; color: var(--i-muted); margin-top: 6px; }
.issues { list-style: none; margin: 14px 0 0; padding: 0; }
.issues li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 10px 2px; border-top: 1px solid var(--i-line); font-size: 13px; }
.issues li:first-child { border-top: 0; }
.issues .path { color: var(--i-muted); font-size: 11.5px; margin-top: 2px; }
pre.json {
  margin: 14px 0 0; border-radius: 22px; background: var(--i-ink); color: #f3ece6; padding: 18px; font-size: 12px; line-height: 1.5;
  overflow: auto; max-height: 420px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.conf-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.conf-table th { text-align: left; font-weight: 400; color: var(--i-muted); font-size: 12px; padding: 6px 2px; }
.conf-table td { border-top: 1px solid var(--i-line); padding: 8px 2px; }
.conf-table .bar { height: 6px; border-radius: 999px; background: #efe9e2; overflow: hidden; width: 100%; }
.conf-table .bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.status { font-size: 13px; color: var(--i-ink-2); margin-top: 10px; }

/* how it works */
.stage { position: relative; }
.stage .num { font-size: 52px; color: var(--i-orange); }
.stage h3 { margin: 10px 0 6px; font-size: 18px; font-weight: 500; }
.stage p { margin: 0; font-size: 13.5px; color: var(--i-ink-2); }
.round-btn { position: absolute; right: 20px; top: 20px; width: 36px; height: 36px; border-radius: 999px; background: var(--i-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.format { display: flex; flex-direction: column; gap: 6px; }
.format .name { font-weight: 500; font-size: 15px; }
.format .desc { font-size: 12.5px; color: var(--i-ink-2); }
pre.curl { background: #2c1b16; border-radius: 18px; padding: 16px; font-size: 12px; overflow: auto; color: #f3ece6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 14px 0 0; }
.promise { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.promise li { display: block; position: relative; padding-left: 20px; }
.promise li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 999px; background: var(--grad); }
.promise code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--i-soft); padding: 1px 6px; border-radius: 6px; }
footer { margin: 28px 0 10px; font-size: 12.5px; color: var(--i-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 8px; }

@keyframes intel-drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, -6%) scale(1.12); } }
@keyframes intel-drift-b { 0%, 100% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(-10%, 8%) scale(0.92); } }
@keyframes intel-drift-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6%, 10%); } }
@keyframes intel-rise { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }
@keyframes intel-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(248, 127, 35, 0.55); } 60% { box-shadow: 0 0 0 7px rgba(248, 127, 35, 0); } }
@media (prefers-reduced-motion: reduce) { .blob, .live-dot, .bars i { animation: none !important; } * { transition-duration: 0ms !important; } }

/* pricing */
.plans { display: grid; gap: 20px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan .tier { font-size: 13px; color: var(--i-ink-2); }
.plan.card-dark .tier { color: #b9aea7; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.plan .price .amount { font-size: 56px; }
.plan .price .per { font-size: 13px; color: var(--i-muted); }
.plan .who { font-size: 13.5px; color: var(--i-ink-2); margin: 10px 0 0; min-height: 42px; }
.plan.card-dark .who { color: #b9aea7; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 13.5px; }
.plan li { display: block; position: relative; padding-left: 18px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 999px; background: var(--grad); }
.plan .cta { margin-top: auto; }
.plan .badge { position: absolute; right: 20px; top: 20px; }
.btn-light { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; border: 0; background: #fff; color: var(--i-ink); padding: 6px 6px 6px 16px; font-size: 13px; font-weight: 500; }
.btn-light .arrow { width: 28px; height: 28px; border-radius: 999px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.compare { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.compare th { text-align: left; font-weight: 400; font-size: 12px; color: var(--i-muted); padding: 8px 6px; }
.compare td { border-top: 1px solid var(--i-line); padding: 11px 6px; vertical-align: top; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.faq details { border-top: 1px solid var(--i-line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--i-orange); font-size: 18px; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 8px 0 0; font-size: 13.5px; color: var(--i-ink-2); max-width: 760px; }
.pitch { font-size: 17px; line-height: 1.55; max-width: 720px; margin: 0; }
.steps { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-radius: 16px; padding: 14px 16px; }
.step .n { font-size: 30px; color: var(--i-ink); }
.step .t { font-size: 13.5px; margin-top: 8px; }

/* SafeCloud logo: inline SVG symbols (same stacked lockup safecloud.at uses in its header), fill follows the text colour */
.sc-logo, .sc-word { display: block; fill: currentColor; }
.powered a { display: inline-flex; align-items: center; line-height: 0; }
.card-title .sc-logo { position: relative; top: -3px; }
footer .sc-word { height: 10px; width: 52px; }
.pill .sc-word { height: 10px; width: 52px; }
.sc-blue { color: #12b4e8; }
.powered { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* Legal pages (Impressum, privacy, terms, DPA): one card, German and English blocks toggled by html[data-lang] */
.legal { max-width: 880px; margin: 0 auto; padding: 28px; }
.legal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch .tab { height: 36px; padding: 0 14px; }
html[data-lang="de"] .lang-en, html[data-lang="en"] .lang-de { display: none; }
.legal h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 8px; }
.legal h3 { font-size: 14.5px; font-weight: 600; margin: 18px 0 6px; color: var(--i-ink); }
.legal p, .legal li, .legal dd, .legal dt { font-size: 14.5px; line-height: 1.6; color: var(--i-ink-2); }
.legal p { margin: 0 0 10px; }
.legal p.lead { font-size: 16px; color: var(--i-ink); margin: 14px 0 6px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--i-orange-ink); text-decoration: underline; text-decoration-color: rgba(184, 82, 12, 0.35); text-underline-offset: 2px; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--i-soft); padding: 1px 5px; border-radius: 6px; }
.legal .facts { display: grid; grid-template-columns: 190px 1fr; gap: 6px 16px; background: var(--i-soft); border-radius: 18px; padding: 18px 20px; margin: 12px 0 18px; }
.legal .facts dt { color: var(--i-muted); }
.legal .facts dd { margin: 0; color: var(--i-ink); }
.legal-more { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--i-line); font-size: 13px; }
.legal-more a { color: var(--i-ink); text-decoration: none; }
@media (max-width: 640px) { .legal { padding: 22px 18px; } .legal .facts { grid-template-columns: 1fr; gap: 2px 0; } .legal .facts dt { margin-top: 8px; } }
