/* Wrulx - the same deep teal as the apps, so site and software look like one family. */
:root {
  --brand: #0f7f6c;
  --brand-dark: #0f6659;
  --brand-tint: #eefbf7;
  --ink: #0f172a;
  --soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --good: #047857;
  --good-bg: #ecfdf5;
  --bad: #be123c;
  --bad-bg: #fff1f2;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 8px 24px -12px rgb(15 23 42 / 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #1b9e85;
    --brand-dark: #3bbb9f;
    --brand-tint: rgb(27 158 133 / 0.14);
    --ink: #f1f5fb;
    --soft: #d0d9e8;
    --muted: #93a3c0;
    --line: #2a3550;
    --bg: #0b1120;
    --card: #151f33;
    --good: #6ee7b7;
    --good-bg: rgb(16 185 129 / 0.14);
    --bad: #fda4af;
    --bad-bg: rgb(244 63 94 / 0.14);
    --warn-bg: rgb(245 158 11 / 0.12);
    --warn-line: rgb(245 158 11 / 0.4);
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { font-family: 'Cascadia Mono', Consolas, ui-monospace, monospace; font-size: 0.9em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 0.8rem; padding-top: 16px; padding-bottom: 32px; }
.small-print { font-size: 0.85rem; margin-top: 12px; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 46rem; }
.center .lead { margin-left: auto; margin-right: auto; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.section { margin-top: 32px; }
/* Pages that start with a plain column - account, pricing, support - get room under the header. */
main > section:first-child:not(.hero):not(.product-head):not(.auth):not(.prose) { padding-top: 48px; }

/* ── header and footer ── */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand.small { font-size: 1rem; }
.top nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
.top nav a { color: var(--soft); padding: 6px 12px; border-radius: 8px; white-space: nowrap; font-size: 0.95rem; }
.top nav a:hover { background: var(--brand-tint); text-decoration: none; }
.top nav a[aria-current='page'] { color: var(--brand); font-weight: 600; }
.who { margin-left: auto; }
.foot { border-top: 1px solid var(--line); background: var(--card); margin-top: 80px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding-top: 40px; }
.foot h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.foot a:not(.brand) { display: block; color: var(--soft); font-size: 0.95rem; margin-bottom: 6px; }

/* ── buttons and forms ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 0.95rem/1 inherit; font-family: inherit;
  cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--brand); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.small { height: 34px; padding: 0 14px; font-size: 0.875rem; }
.btn.current { border-color: var(--brand); color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; }
input {
  height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 400;
}
input:focus { outline: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); border-color: var(--brand); }
.error { color: var(--bad); font-size: 0.9rem; margin: 0; }
.note { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 10px 14px; }

/* ── home ── */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); max-width: 14em; }
.cards { display: grid; gap: 24px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pad { padding: 24px; }
.product .shot { display: block; border-bottom: 1px solid var(--line); background: var(--bg); }
.product .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
.product h2 a { color: var(--ink); }
.tagline { font-size: 1.1rem; font-weight: 600; color: var(--brand); }
.cards + section { margin-top: 32px; }
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.points h3 { margin-bottom: 4px; }

/* ── product ── */
.product-head { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; padding-top: 56px; }
.shot-big { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: 0.95rem; }
.faq { margin-top: 56px; max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--soft); }

/* ── pricing ── */
.price .amount { font-size: 2.4rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--soft); }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ── account ── */
.auth { display: grid; place-items: center; padding-top: 72px; }
.auth .card { width: 100%; max-width: 440px; }
.licence { margin-bottom: 16px; }
.licence h2 { margin-bottom: 2px; }
.key-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 6px; }
.key { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; word-break: break-all; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.pcs { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.pcs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pcs form { margin: 0; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.stats .amount { font-size: 1.8rem; font-weight: 700; margin: 0; }
.stats p { margin: 0; }
.search { margin: 16px 0; }
.search input { flex: 1; min-width: 200px; height: 38px; }

/* ── legal ── */
.prose { padding-top: 48px; }
.prose h2 { margin-top: 28px; }
.prose li { margin-bottom: 6px; }

@media (max-width: 860px) {
  .cards.two, .product-head, .features, .points, .foot-grid, .stats { grid-template-columns: 1fr; }
  .bar { gap: 12px; }
  .top nav { order: 3; position: absolute; left: 0; right: 0; top: 64px; background: var(--card); border-bottom: 1px solid var(--line); padding: 6px 12px; }
  .top { padding-bottom: 46px; }
  .hero { padding-top: 40px; }
  .product-head { padding-top: 32px; }
  .table { display: block; overflow-x: auto; }
}

/* Datasheets and manuals on the product pages */
.docs { margin-top: 36px; }
.docs h2 { margin-bottom: 12px; }
.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line, #d9e2ec); border-radius: 12px; color: inherit; }
.doc:hover { border-color: var(--brand); }
.doc b { display: block; }
.doc .muted { font-size: 0.9em; }
.doc-icon { flex: none; width: 40px; height: 48px; border-radius: 6px; background: var(--brand-tint); color: var(--brand); font: 700 11px/48px system-ui, sans-serif; text-align: center; }

/* Feedback form */
textarea, select {
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 400;
}
select { height: 46px; }
textarea { resize: vertical; min-height: 140px; }
textarea:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); border-color: var(--brand); }
.optional { font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
