/* zeknio.com: the same ink blue, canvas and Inter as the app (src/index.css). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #3752ae;
  --ink-strong: #2b4291;
  --ink-wash: #eef1fc;
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: #e2e8f0;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 32px -12px rgb(15 23 42 / 0.14);
  /* The server's view stays night-dark in both schemes. */
  --vault: #0b1222;
  --vault-line: #1d2740;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #5b78d6;
    --ink-strong: #8ba0e6;
    --ink-wash: #161e36;
    --canvas: #0a0e16;
    --surface: #111726;
    --text: #e8ecf4;
    --muted: #a3adc2;
    --faint: #8390a8;
    --line: #222a3b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    --vault: #05080f;
    --vault-line: #1a2236;
  }
}

/* One language at a time: site.js sets data-lang (Czech without JS). */
html[data-lang="cs"] [lang="en"]:not([data-set-lang]),
html[data-lang="en"] [lang="cs"]:not([data-set-lang]) { display: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(56rem 28rem at 50% -10rem, var(--ink-wash), transparent 72%),
    var(--canvas);
  color: var(--text);
  font: 400 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.top, main, .foot { width: 100%; max-width: 70rem; margin: 0 auto; padding-inline: 1.5rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.mark { width: 2rem; height: 2rem; flex-shrink: 0; }
.wordmark { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; }
.top-actions { display: flex; align-items: center; gap: 0.75rem; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs button {
  border: 0; background: none; color: var(--faint); font-family: inherit; font-size: 0.75rem; font-weight: 600; line-height: 1;
  padding: 0.4rem 0.6rem; border-radius: 999px; cursor: pointer;
}
html[data-lang="cs"] [data-set-lang="cs"], html[data-lang="en"] [data-set-lang="en"] { background: var(--ink-wash); color: var(--ink-strong); }

main { flex: 1; }

/* Hero */
.hero { max-width: 50rem; margin: 0 auto; padding-block: clamp(3rem, 9vw, 6.5rem) 0; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.75rem;
  padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted); font-size: 0.8125rem; font-weight: 500;
}
.dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px color-mix(in srgb, #10b981 22%, transparent); }
h1 {
  margin: 0; font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.02;
  font-weight: 680; letter-spacing: -0.045em; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--ink); }
.lead { margin: 1.6rem auto 0; max-width: 37rem; color: var(--muted); font-size: clamp(1.0625rem, 2vw, 1.1875rem); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.note { margin: 1rem 0 0; color: var(--faint); font-size: 0.875rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem;
  padding: 0 1.35rem; border-radius: 0.8rem; font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 0.12), 0 8px 20px -8px color-mix(in srgb, var(--ink) 70%, transparent); }
.btn-primary:hover { background: var(--ink-strong); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink-strong); }
.btn-ghost { min-height: 2.25rem; padding: 0 0.9rem; color: var(--ink-strong); }
.btn-ghost:hover { background: var(--ink-wash); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The demo: the same invoice as you see it and as the server stores it. */
.demo { position: relative; margin: clamp(3.5rem, 8vw, 5.5rem) auto 0; max-width: 60rem; }
.motif {
  position: absolute; z-index: 0; width: 34rem; height: 34rem; right: -9rem; top: -7rem;
  fill: var(--ink); opacity: 0.045; pointer-events: none;
}
.demo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1.25rem; }
.pane { margin: 0; border-radius: 1.25rem; padding: 1.25rem 1.35rem; display: flex; flex-direction: column; }
.pane-label {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.pane-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; }

.pane-plain { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pane-plain .pane-label { color: var(--faint); }
.pane-plain .pane-dot { background: #10b981; }
.invoice { flex: 1; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.9375rem; }
.invoice p { margin: 0; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; }
.inv-kind { color: var(--faint); font-size: 0.8125rem; }
.inv-no { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
.chip {
  padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b45309;
}
@media (prefers-color-scheme: dark) { .chip { color: #fbbf24; } }
.inv-party { display: flex; flex-direction: column; margin-bottom: 0.25rem; }
.inv-caption { color: var(--faint); font-size: 0.75rem; }
.inv-party > span:last-child { font-weight: 550; }
.inv-row, .inv-total { display: flex; justify-content: space-between; gap: 1rem; }
.inv-row { padding-top: 0.6rem; border-top: 1px solid var(--line); }
.inv-row.muted { color: var(--muted); }
.inv-total { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--line); font-weight: 600; }
.inv-total strong { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; color: var(--ink); }
.bridge-icon {
  width: 2.75rem; height: 2.75rem; padding: 0.65rem; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.bridge-label { font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.04em; color: var(--faint); }

.pane-cipher {
  background:
    radial-gradient(22rem 14rem at 85% 0%, rgb(91 120 214 / 0.2), transparent 70%),
    var(--vault);
  border: 1px solid var(--vault-line);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.pane-cipher .pane-label { color: #7186c4; }
.pane-cipher .pane-dot { background: #5b78d6; box-shadow: 0 0 0 3px rgb(91 120 214 / 0.25); }
.cipher {
  flex: 1; margin: 0; font: 500 0.875rem/2.3 var(--mono); letter-spacing: 0.02em;
  white-space: pre; overflow: hidden; color: #a5b6ec;
}
.cipher-foot {
  margin: 1rem 0 0; padding-top: 0.85rem; border-top: 1px solid var(--vault-line);
  font-size: 0.8125rem; color: #8193c9;
}

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; max-width: 60rem; margin: clamp(3.5rem, 8vw, 5rem) auto 0; padding-bottom: 5rem; }
.feature { padding: 1.75rem; border: 1px solid var(--line); border-radius: 1.25rem; background: color-mix(in srgb, var(--surface) 65%, transparent); }
.feature-kicker { margin: 0; color: var(--ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.feature h2 { margin: 0.5rem 0; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.feature p:last-child { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center;
  padding-block: 1.75rem 2.25rem; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.8125rem;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink-strong); text-decoration: underline; }

@media (max-width: 52rem) {
  .demo-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .bridge { flex-direction: row; }
  .bridge-icon { width: 2.25rem; height: 2.25rem; padding: 0.5rem; }
  .motif { display: none; }
}
@media (max-width: 30rem) {
  .top, main, .foot { padding-inline: 1rem; }
  .top-actions { gap: 0.4rem; }
  .btn-ghost { padding: 0 0.5rem; }
  .cta .btn { width: 100%; }
  .cipher { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
