/* Structur — shared styles. No external fonts or scripts: nothing is loaded from other servers. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1d1f24;
  --muted: #5b606b;
  --line: #e2e0d8;
  --accent: #3d6a9f;
  --accent-ink: #ffffff;
  --grid: rgba(29, 31, 36, 0.045);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --focus: #3d6a9f;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a;
    --surface: #1c1f25;
    --ink: #eceae4;
    --muted: #a3a7b0;
    --line: #2c3038;
    --accent: #8fb4e3;
    --accent-ink: #10141a;
    --grid: rgba(236, 234, 228, 0.04);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --focus: #8fb4e3;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 16px; }

/* Header and footer */

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.15rem; letter-spacing: 0.01em;
}
.brand-mark { width: 26px; height: 26px; }

.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav { align-items: center; }
.site-nav .lang-link {
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; padding: 2px 9px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
}
.site-nav .lang-link:hover { border-color: var(--accent); }

.site-footer { margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Typography */

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 650; color: var(--accent); margin-bottom: 12px; }

section { margin-top: 80px; }

/* Home hero */

.hero { padding: 56px 0 8px; }

/* Product cards */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card img { width: 56px; height: 56px; border-radius: 12px; }
.card h3 { margin: 4px 0 0; }
.card p { color: var(--muted); margin: 0; }
.card .card-link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(.card-link:hover) { border-color: var(--accent); }

.card.upcoming { background: transparent; box-shadow: none; border-style: dashed; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  align-self: flex-start; font-size: 0.75rem; font-weight: 650; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.tag.muted { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* Product page */

.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0 0; }
.product-title { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.product-title img { width: 64px; height: 64px; border-radius: 14px; }
.product-title h1 { margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }

.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border: 0; font: inherit;
}
.button[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: default; }
.button svg { width: 20px; height: 20px; }

.fine { font-size: 0.88rem; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature p { color: var(--muted); margin: 0; }

kbd {
  font: 600 0.85em/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface);
}

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 24px 0 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

/* Panel illustration (synthetic content, drawn in HTML so it stays sharp and contains no real data) */

.panel {
  --p-bg: #eef1f5; --p-cell: #ffffff; --p-ink: #1f2933; --p-muted: #66707c;
  --s1: #dbe7f6; --s1-edge: #3d6a9f; --s2: #f7e1e8; --s2-edge: #b4587a; --s3: #e1f0e4; --s3-edge: #4f8a5b;
  margin: 0; min-width: 0;
  background: var(--p-bg); border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
  color: var(--p-ink); font-size: 0.82rem; line-height: 1.3; user-select: none;
}
.panel-search {
  display: flex; align-items: center; gap: 8px; background: var(--p-cell); border: 1.5px solid var(--s1-edge);
  border-radius: 999px; padding: 8px 14px; color: var(--p-muted); margin-bottom: 12px;
}
.panel-search svg { width: 14px; height: 14px; flex: none; }
.panel-cols { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; }
.panel-col { display: flex; flex-direction: column; gap: 6px; }
.panel-cell { background: var(--p-cell); border-radius: 6px; padding: 8px 10px; border-left: 3px solid transparent; }
.panel-cell.s1 { background: var(--s1); border-left-color: var(--s1-edge); font-weight: 600; }
.panel-cell.s2 { background: var(--s2); border-left-color: var(--s2-edge); font-weight: 600; }
.panel-cell.s3 { background: var(--s3); border-left-color: var(--s3-edge); font-weight: 600; }
.panel-cell.entry { background: var(--s1); }
.panel-cell small { display: block; color: var(--p-muted); font-weight: 400; margin-top: 2px; }
.panel-cell.add { background: transparent; border: 1px dashed #b9c2cd; color: var(--p-muted); }

/* Legal / long text */

.prose > * { max-width: 46em; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Small screens */

@media (max-width: 820px) {
  .product-hero { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 32px; }
  section { margin-top: 56px; }
}

@media (max-width: 520px) {
  .site-nav { gap: 14px; }
  .site-nav a:first-child { display: none; }  /* Products: the logo already leads home */
}

@media (max-width: 480px) {
  .panel-cols { grid-template-columns: 1fr 1fr; }
  .panel-col:first-child { display: none; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .card, .button { transition: border-color 0.15s, background-color 0.15s; }
}

/* Feedback form */

.feedback { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.feedback .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feedback .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feedback label { font-weight: 600; }
.feedback input, .feedback select, .feedback textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.feedback textarea { resize: vertical; min-height: 9em; }
.feedback input:focus-visible, .feedback select:focus-visible, .feedback textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus);
}
.feedback .hint { margin: 0; font-size: 0.88rem; color: var(--muted); }
.feedback .button { align-self: flex-start; cursor: pointer; }
.feedback .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  .feedback .row { grid-template-columns: 1fr; }
}
