:root {
  --bg: #0b0b0e;
  --panel: #141418;
  --line: #2a2a32;
  --text: #f2f2f4;
  --muted: #9a9aa6;
  --faint: #6d6d78;
  --accent: #ff6a18;
  --accent-dim: rgba(255, 106, 24, 0.16);
  --cyan: #2ad4ee;
  --good: #3dbe8c;
  --good-dim: rgba(61, 190, 140, 0.14);
  --bad: #e35d73;
  --bad-dim: rgba(227, 93, 115, 0.12);
  --side: 220px;
  --font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.ok { color: var(--good); }
.bad { color: var(--bad); }

img { display: block; }
.fluid { width: 100%; height: auto; max-width: 100%; }
.brand-mark { width: 24px; height: 24px; max-width: 24px; max-height: 24px; object-fit: contain; flex: 0 0 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
}
.brand:hover { color: var(--text); }
.brand .tag { color: var(--faint); font-weight: 500; letter-spacing: 0.08em; font-size: 0.68rem; text-transform: uppercase; margin-left: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; padding: 9px 14px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  background: var(--accent); color: #160800; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); color: #160800; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.btn.wide { width: 100%; }
.btn.sm { padding: 6px 10px; font-size: 0.8rem; }
.badge {
  display: inline-flex; align-items: center;
  border-radius: 4px; padding: 2px 7px; font-size: 0.72rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg);
}
.badge.pro { color: #160800; background: var(--accent); border-color: var(--accent); }
.badge.life { color: #062026; background: var(--cyan); border-color: var(--cyan); }
label { display: block; margin: 12px 0 5px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
input, textarea, select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: 9px 10px; outline: none;
}
input:focus { border-color: var(--accent); }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.site-nav {
  position: sticky; top: 0; z-index: 20; height: 56px;
  display: flex; align-items: center;
  background: #0b0b0e; border-bottom: 1px solid var(--line);
}
.site-nav .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted); padding: 7px 10px; border-radius: 6px; font-size: 0.88rem;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.btn { color: #160800; padding: 8px 14px; }
.nav-links a.btn:hover { color: #160800; background: var(--accent); }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 40px 0 28px; }
.eyebrow { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 16ch; }
.lede { color: var(--muted); margin-top: 12px; max-width: 36rem; }
.hero-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; }
.hero-frame img { width: 100%; height: auto; max-height: 340px; object-fit: cover; object-position: top; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 8px 0 48px; }
.strip div { padding: 14px 16px; border-right: 1px solid var(--line); background: var(--panel); }
.strip div:last-child { border-right: 0; }
.strip b { display: block; font-size: 0.9rem; }
.strip span { color: var(--muted); font-size: 0.78rem; }

.section { padding: 0 0 56px; }
.section h2 { font-size: 1.4rem; margin-bottom: 8px; }
.section-lead { color: var(--muted); max-width: 40rem; margin-bottom: 18px; }
.steps, .points, .price-grid, .split, .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.steps { grid-template-columns: 1fr 1fr 1fr; }
.step, .point, .panel, .price {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px;
}
.step .n { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.step h3, .point h3, .panel h3 { font-size: 1rem; margin-bottom: 6px; }
.step p, .point p, .panel p, .panel li { color: var(--muted); font-size: 0.9rem; }
.panel ul { margin: 8px 0 0; padding-left: 18px; }
.panel li { margin: 5px 0; }
.panel li b { color: var(--text); }
.shot { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; }
.shot img { width: 100%; max-height: 320px; object-fit: cover; object-position: top; }
.shot figcaption { padding: 8px 12px; color: var(--faint); font-size: 0.75rem; border-top: 1px solid var(--line); }
.price.featured { border-color: rgba(255,106,24,0.5); }
.price h3 { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.price .n { font-size: 2rem; font-weight: 700; margin: 4px 0; }
.price .n span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.price ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.price .btn { margin-top: 16px; width: 100%; }
.start-list { list-style: none; margin: 0; padding: 0; counter-reset: go; }
.start-list li { counter-increment: go; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.start-list li:last-child { border-bottom: 0; }
.start-list li::before {
  content: counter(go); width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: var(--text);
}
.start-list b { color: var(--text); display: block; }
.site-foot { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--faint); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* Auth — centred card, no giant brand panel */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.auth-card h2 { font-size: 1.25rem; margin: 14px 0 6px; }
.tabs { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 16px 0 4px; }
.tabs button { flex: 1; background: transparent; border: 0; padding: 8px; cursor: pointer; color: var(--muted); }
.tabs button.on { background: #1c1c22; color: var(--text); font-weight: 600; }

/* App shell */
.app { height: 100vh; display: grid; grid-template-columns: var(--side) 1fr; overflow: hidden; }
.side {
  background: #101014; border-right: 1px solid var(--line);
  padding: 14px 10px; display: flex; flex-direction: column; min-height: 0;
}
.side-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 4px; }
.side a, .side button.nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: 0; color: var(--muted); padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 0.88rem;
}
.side a:hover, .side button.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.side button.nav-item.on { background: var(--accent-dim); color: var(--text); }
.side .soon { margin-left: auto; font-size: 0.62rem; color: var(--faint); text-transform: uppercase; }
.side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.topbar {
  height: 52px; flex: 0 0 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 0.98rem; }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }
.content { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px 24px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 5px 9px; cursor: pointer; }

/* Control desks */
.desk {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.desk-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.desk-head h3 { font-size: 0.95rem; }
.desk-body { padding: 14px; }
.metrics { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 12px; background: var(--panel); }
.metrics div { padding: 10px 12px; border-right: 1px solid var(--line); }
.metrics div:last-child { border-right: 0; }
.metrics span { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.metrics strong { font-size: 1.15rem; }
.workbench { display: grid; grid-template-columns: 1fr 320px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); min-height: calc(100vh - 140px); }
.work-main { min-width: 0; display: flex; flex-direction: column; }
.inspector { border-left: 1px solid var(--line); padding: 14px; background: #121216; }
.form-desk { max-width: 460px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.toolbar input { max-width: 240px; margin: 0; }
.table-wrap { overflow: auto; flex: 1; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--faint); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: rgba(255,255,255,0.03); }
tr.row-on td { background: var(--accent-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg); border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 5px 9px; cursor: pointer; font-size: 0.8rem; }
.chip.on { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.choice button { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px; cursor: pointer; color: var(--muted); }
.choice button b { display: block; color: var(--text); margin-bottom: 2px; font-size: 0.88rem; }
.choice button.on { border-color: var(--accent); background: var(--accent-dim); }
.presets { display: flex; gap: 6px; margin: 6px 0; }
.keybox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin: 10px 0; }
.keybox code { font-family: var(--mono); font-size: 0.82rem; flex: 1; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 6px 10px; margin: 10px 0; font-size: 0.86rem; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.fields { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; align-items: center; }
.fields label { margin: 0; }
.banner { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; background: #121216; color: var(--muted); font-size: 0.86rem; }
.banner.good { border-color: rgba(61,190,140,0.35); background: var(--good-dim); color: var(--good); }
.banner.bad { border-color: rgba(227,93,115,0.35); background: var(--bad-dim); color: var(--bad); }
.check { list-style: none; margin: 8px 0 0; padding: 0; }
.check li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.check li:last-child { border-bottom: 0; }
.check .tick { color: var(--good); width: 14px; }
.check .no { color: var(--faint); width: 14px; }
.audit-row { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.audit-row b { color: var(--text); }
.empty { color: var(--muted); padding: 16px 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

@media (max-width: 960px) {
  .hero, .steps, .split, .points, .price-grid, .strip, .grid-2, .grid-3, .workbench, .choice, .metrics, .app, .fields {
    grid-template-columns: 1fr;
  }
  .strip div, .metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn) { display: none; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(80vw, 260px); z-index: 30; transform: translateX(-110%); transition: transform .18s ease; }
  body.side-open .side { transform: none; }
  .menu-btn { display: inline-flex; }
  .app { height: auto; min-height: 100vh; overflow: visible; }
  .workbench { min-height: 0; }
}
