/* OFC Lab site design system — dark "poker lab" aesthetic shared with the desktop app. */

:root {
  color-scheme: dark;
  --bg: #0b0b10;
  --bg-raise: #101018;
  --panel: #14141c;
  --panel-2: #181820;
  --border: #292934;
  --text: #eeeef4;
  --muted: #8d8d9d;
  --purple: #a56bff;
  --purple-ink: #110a19;
  --teal: #62d9dc;
  --gold: #e8c15a;
  --gold-ink: #1a1405;
  --red: #fa7f7f;
  --green: #3fb96b;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: Consolas, "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: 0.92em; color: var(--teal); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.muted { color: var(--muted); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }

/* ---------- Suits ---------- */
.suit { font-style: normal; }
.suit-red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 15px var(--font);
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--purple); color: var(--purple-ink); box-shadow: 0 6px 24px rgba(165, 107, 255, 0.25); }
.btn-primary:hover { background: #b584ff; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 24px rgba(232, 193, 90, 0.2); }
.btn-gold:hover { background: #f0cd74; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--purple); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .brand-mark { width: 28px; height: 28px; flex: none; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--panel-2); }
.nav-cta { margin-left: 8px; }
.nav-links a.nav-cta {
  background: var(--teal);
  color: #062426;
  box-shadow: 0 6px 24px rgba(98, 217, 220, 0.22);
}
.nav-links a.nav-cta:hover { background: #8ae6e8; color: #062426; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(720px 320px at 50% -80px, rgba(165, 107, 255, 0.18), transparent 70%),
    radial-gradient(480px 240px at 85% 10%, rgba(98, 217, 220, 0.08), transparent 70%);
}
.hero-mark { width: 72px; height: 72px; margin: 0 auto 22px; display: block; }
.form-mark { width: 48px; height: 48px; margin-bottom: 14px; display: block; }
.hero p.lede { max-width: 620px; margin: 0 auto 30px; color: var(--muted); font-size: 18px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.hero-suits {
  margin-top: 44px;
  font-size: 26px;
  letter-spacing: 18px;
  opacity: 0.5;
  user-select: none;
}

/* ---------- Format strip ---------- */
.format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chip {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
}
.chip strong { color: var(--text); font-weight: 700; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .card-icon { font-size: 22px; margin-bottom: 12px; display: block; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--purple);
  font-weight: 800;
  font-size: 17px;
}

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 36px;
  font-weight: 600;
  font-size: 15px;
}
.billing-toggle .save { color: var(--green); font-size: 13px; font-weight: 700; }
.switch {
  position: relative;
  width: 52px; height: 28px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--purple);
  transition: left 0.15s ease;
}
.switch[aria-checked="true"]::after { left: 27px; }

.plan-card { display: flex; flex-direction: column; position: relative; }
.plan-card.highlighted { border-color: var(--purple); box-shadow: 0 10px 40px rgba(165, 107, 255, 0.18); }
.plan-card.gold { border-color: rgba(232, 193, 90, 0.5); }
.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: var(--purple-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 19px; font-weight: 800; }
.plan-price { margin: 12px 0 4px; }
.plan-price .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .per { color: var(--muted); font-size: 15px; }
.plan-blurb { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.plan-features { list-style: none; margin: 18px 0 24px; padding: 0; flex: 1; }
.plan-features li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 14.5px;
  color: var(--text);
}
.plan-features li::before {
  content: "♠";
  position: absolute;
  left: 4px;
  color: var(--purple);
}
.plan-card.gold .plan-features li::before { content: "♦"; color: var(--gold); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--panel); }
table.compare th, table.compare td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
table.compare thead th { background: var(--panel-2); font-size: 15px; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td { color: var(--muted); }
table.compare td.yes { color: var(--green); font-weight: 700; }
table.compare td.no { color: #55556a; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px; top: 13px;
  font-size: 20px;
  color: var(--purple);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 15px; font-size: 15px; }

/* ---------- Forms ---------- */
.form-card { max-width: 440px; margin: 0 auto; }
label { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
  border-color: var(--purple);
}
textarea { min-height: 140px; resize: vertical; }
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  user-select: none;
}
.checkbox input { width: auto; margin: 0; accent-color: var(--purple); cursor: pointer; }
.form-error { color: var(--red); font-size: 14px; min-height: 20px; margin-top: 10px; }
.form-success {
  background: rgba(63, 185, 107, 0.12);
  border: 1px solid rgba(63, 185, 107, 0.4);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  margin-top: 14px;
}

/* ---------- Alerts & badges ---------- */
.alert {
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  margin-bottom: 16px;
}
.alert-warn { border-left-color: var(--gold); }
.alert-error { border-left-color: var(--red); }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge-active { color: var(--green); border-color: rgba(63, 185, 107, 0.5); }
.badge-trial { color: var(--purple); border-color: rgba(165, 107, 255, 0.5); }
.badge-revoked { color: var(--red); border-color: rgba(250, 127, 127, 0.5); }
.badge-gold { color: var(--gold); border-color: rgba(232, 193, 90, 0.5); }

/* ---------- Usage meter ---------- */
.meter {
  height: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 6px;
}
.meter > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 999px;
}

/* ---------- Account ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(600px 240px at 50% 120%, rgba(165, 107, 255, 0.16), transparent 70%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 24px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); font-size: 14.5px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: #55556a;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }

/* ---------- Blog / articles ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.35rem; margin-top: 2em; }
.article h3 { font-size: 1.05rem; margin-top: 1.6em; color: var(--text); }
.article p, .article li { color: var(--muted); font-size: 16px; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: 0.45em; }
.article strong { color: var(--text); font-weight: 700; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}
.article-lead { font-size: 18px; color: var(--muted); }
.blog-grid .card h3 { margin-bottom: 8px; }
.blog-grid .card h3 a { color: var(--text); }
.blog-grid .card h3 a:hover { color: var(--teal); text-decoration: none; }
.blog-grid .card .card-meta { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.related { display: grid; gap: 12px; margin-top: 12px; }
.related a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-weight: 600;
}
.related a:hover { border-color: var(--purple); text-decoration: none; }
.related a span { display: block; color: var(--muted); font-size: 13.5px; font-weight: 500; margin-top: 4px; }

/* ---------- Page head (interior pages) ---------- */
.page-head { padding: 64px 0 36px; text-align: center; }
.page-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .account-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 64px 0 56px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-raise);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-cta { margin: 8px 0 0; }
}
