/* OPN Flow */

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --line: #e4e8f0;
  --ink: #131722;
  --ink-2: #59617a;
  --ink-3: #8b93a8;
  --brand: #1f6feb;
  --brand-soft: #e8f0fe;
  --flow: #0ea5a5;
  --good: #0f9d58;
  --bad: #d64545;
  --r: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f16;
    --surface: #141922;
    --line: #232a38;
    --ink: #e9edf5;
    --ink-2: #98a2b8;
    --ink-3: #6b7488;
    --brand: #5a9bff;
    --brand-soft: #16233a;
    --flow: #3fd0c9;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

.num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------------- header ---------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 660; letter-spacing: -0.02em; }

.drop {
  width: 16px; height: 16px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(140deg, var(--flow), var(--brand));
}

.top-nav { display: flex; align-items: center; gap: 10px; }

.chip {
  font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
  background: var(--surface); white-space: nowrap;
}

/* ---------------- layout ---------------- */

main { max-width: 940px; margin: 0 auto; padding: 44px 20px 80px; }
section { margin-bottom: 64px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 11.5px; font-weight: 640; color: var(--brand); margin: 0 0 12px;
}

h1 {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.06;
  letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 660;
}
h1 em { font-style: normal; color: var(--flow); }

h2 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 640; }

.lede { font-size: 17px; color: var(--ink-2); max-width: 60ch; margin: 0 0 26px; }
.section-sub { color: var(--ink-2); margin: 0 0 20px; max-width: 68ch; font-size: 15px; }
.fineprint { color: var(--ink-3); font-size: 13px; max-width: 66ch; }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 10px; padding: 10px 18px; font: inherit; font-size: 14.5px;
  font-weight: 560; cursor: pointer; transition: all 120ms ease;
}
.btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------------- why / compare ---------------- */

.why p { color: var(--ink-2); max-width: 68ch; }
.why strong { color: var(--ink); }

.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 22px 0 14px;
}

.compare-col {
  display: flex; flex-direction: column; gap: 5px;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; background: var(--surface);
}
.compare-col.win { border-color: var(--flow); background: color-mix(in srgb, var(--flow) 6%, var(--surface)); }

.compare-label { font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.compare-big { font-size: 24px; font-weight: 640; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.compare-sub { font-size: 13px; color: var(--ink-3); }
.compare-verdict { font-size: 13.5px; margin-top: 6px; }
.compare-verdict.bad { color: var(--bad); }
.compare-verdict.good { color: var(--good); }

/* ---------------- live ---------------- */

.pulse {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--flow); display: inline-flex; align-items: center; gap: 6px;
}
.pulse::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--flow); animation: blip 1.6s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.stat {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 15px 17px;
  display: flex; flex-direction: column; gap: 3px;
}
.stat span {
  font-size: 21px; font-weight: 640; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.stat label { font-size: 12.5px; color: var(--ink-3); }

.streams { display: flex; flex-direction: column; gap: 11px; }

.empty {
  border: 1px dashed var(--line); border-radius: var(--r);
  padding: 26px; text-align: center; color: var(--ink-3); font-size: 14.5px;
}

.stream {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 16px 18px;
}

.stream-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.stream-who { font-weight: 600; font-size: 15px; }
.stream-who small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }

.stream-live { text-align: right; }
.stream-live b {
  display: block; font-size: 20px; letter-spacing: -0.02em; color: var(--flow);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.stream-live small { color: var(--ink-3); font-size: 12px; }

.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--flow)); transition: width 200ms linear; }

.stream-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 10px; font-size: 12.5px; color: var(--ink-3);
}
.stream-meta b { color: var(--ink-2); font-weight: 560; }

.tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-3);
}
.tag.cliff { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

/* ---------------- form ---------------- */

.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }

.fields input[type=text] {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink); outline: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.fields input[type=text]:focus { border-color: var(--brand); }

.input-wrap {
  display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); padding: 0 12px;
}
.input-wrap:focus-within { border-color: var(--brand); }
.input-wrap input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14px; padding: 10px 0; color: var(--ink);
}
.input-wrap span { color: var(--ink-3); font-size: 12.5px; padding-left: 8px; }

.quote { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); }
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------------- how ---------------- */

.steps { margin: 0; padding-left: 20px; color: var(--ink-2); max-width: 70ch; }
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--ink); }

/* ---------------- footer ---------------- */

footer {
  border-top: 1px solid var(--line); padding: 24px 20px 42px;
  text-align: center; color: var(--ink-3); font-size: 13px;
}
.deployed { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------------- toast ---------------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 18px; font-size: 14px; z-index: 60;
  max-width: min(90vw, 560px); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
}
.toast.err { border-color: var(--bad); color: var(--bad); }
.toast.ok { border-color: var(--good); color: var(--good); }

@media (max-width: 620px) {
  .compare { grid-template-columns: 1fr; }
  main { padding: 30px 15px 60px; }
}
