:root {
  --bg: #0a0f1c;
  --panel: #121a2b;
  --panel-2: #0e1626;
  --ink: #eef2fb;
  --muted: #93a3c2;
  --line: #20304c;
  --accent: #7c5cff;       /* Make/automation violet */
  --accent-2: #29c7c9;     /* engine teal */
  --accent-deep: #5b3fd6;
  --warn: #f0a93b;
  --bad: #ef5f6b;
  --good: #36d399;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 620px at 82% -12%, #1a2140 0%, var(--bg) 58%);
  color: var(--ink);
  min-height: 100vh;
}

/* topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.logo-accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { color: var(--muted); font-size: 14px; }
.mode { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.mode.gateway { color: var(--accent-2); border-color: var(--accent-2); }
.mode.demo { opacity: .6; font-style: italic; }

/* hero one-liner under the brand (council-seat fix) */
.hero-sub { max-width: 1100px; margin: 20px auto 0; padding: 0 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* product selector */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1100px; margin: 24px auto 6px; padding: 0 24px; }
@media (max-width: 880px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }
.product {
  text-align: left; cursor: pointer; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; color: var(--ink); transition: border-color .15s, transform .12s;
}
.product:hover { transform: translateY(-2px); border-color: var(--accent-deep); }
.product.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.product .p-name { font-weight: 800; font-size: 16px; }
.product .p-sector { color: var(--muted); font-size: 12px; margin: 2px 0 10px; }
.product .p-price { font-size: 13px; }
.product .p-price b { color: var(--accent-2); }
.product .p-metric { color: var(--muted); font-size: 11px; margin-top: 6px; }

/* layout */
.layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; max-width: 1100px; margin: 16px auto; padding: 0 24px; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { margin: 0 0 8px; font-size: 18px; }
.muted { color: var(--muted); font-size: 13px; }
.meta { margin: 8px 0 0; }
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
input, select, textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

button { cursor: pointer; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; padding: 11px 16px; }
button.primary { width: 100%; margin-top: 18px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); color: #fff; }
button.primary:disabled { opacity: .55; cursor: default; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
button.ghost:hover { border-color: var(--accent); color: var(--ink); }
button.small { padding: 5px 10px; font-size: 12px; }

/* studio output */
.output { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.output-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.out-channel { font-size: 12px; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: .5px; }
.draft { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.analysis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.chip { padding: 5px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.chip b { color: var(--ink); font-weight: 700; }
.chip.good { border-color: var(--good); color: var(--good); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.chip.bad { border-color: var(--bad); color: var(--bad); }

/* onboarding plan */
.plan { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.plan .plan-head { font-size: 15px; font-weight: 800; }
.plan .plan-sub { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.plan .plan-price { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.plan .pill { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.plan .pill b { color: var(--accent-2); }
.plan h4 { margin: 14px 0 6px; font-size: 13px; }
.plan ul { margin: 0; padding-left: 18px; }
.plan li { font-size: 13px; line-height: 1.6; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.timeline .day { color: var(--accent); font-weight: 800; font-size: 12px; }
.timeline .t-title { font-weight: 700; font-size: 13px; }
.timeline .t-detail { color: var(--muted); font-size: 12px; }
.plan-note { color: var(--muted); font-size: 12px; margin-top: 12px; font-style: italic; }

.foot { max-width: 1100px; margin: 8px auto 40px; padding: 0 24px; }
.foot p { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* floating subscribe CTA — same family as .primary, gold to stand off the violet */
.cta-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 99999;
  background: linear-gradient(90deg, #c9a84c, #e6c976); color: #0a0a0a;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 14px;
  font-family: inherit; text-decoration: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  transition: transform .12s, box-shadow .12s;
}
.cta-float:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
