/* ClearPortals — dark co-op */
:root {
  --bg: #0b0c0e;
  --bg-2: #12141a;
  --bg-3: #181b22;
  --ink: #ece8df;
  --mute: #9a9488;
  --line: rgba(236,232,223,.12);
  --gold: #c4a574;
  --gold-dim: #8a7349;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font: 18px/1.55 Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--gold); }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 8%;
  border-bottom: 1px solid var(--line);
  background: rgba(11,12,14,.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo { font-weight: 600; text-decoration: none; color: var(--ink); letter-spacing: .04em; }
nav a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--mute);
  font-size: 14px;
  font-family: system-ui, sans-serif;
}
nav a:hover { color: var(--ink); }
.btn {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--gold);
  text-decoration: none;
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
}
.btn-dark, .btn.btn-dark {
  background: var(--gold);
  color: #14110c;
  border-color: var(--gold);
}
.hero, .split, .wide, .wrap, .band, .faq { padding: 80px 8%; }
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  min-height: 78vh;
}
.hero img {
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0,0,0,.55);
}
.eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
h1 { font-size: 58px; line-height: 1.02; font-weight: 500; margin: 0 0 18px; }
h2 { font-size: 30px; font-weight: 500; margin: 0 0 12px; }
h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; font-family: system-ui, sans-serif; }
.lead { color: var(--mute); max-width: 30em; font-size: 20px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
img { width: 100%; height: auto; display: block; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--bg-2);
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split p, .wide p, .band p { color: var(--mute); }
.wide { text-align: center; }
.wide img { margin: 0 auto 32px; max-width: 920px; border: 1px solid var(--line); }
.band { background: var(--bg-3); }
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  text-align: left;
}
.tile {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--bg);
  font-family: system-ui, sans-serif;
  font-size: 15px;
  color: var(--mute);
}
.tile h3 { color: var(--ink); font-size: 16px; }
.ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0 12px;
}
.rung {
  border: 1px solid var(--line);
  padding: 22px 18px;
  text-align: center;
  font-family: system-ui, sans-serif;
}
.rung .n { display: block; color: var(--gold); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.rung .p { display: block; font-size: 32px; margin: 8px 0 4px; color: var(--ink); }
.rung .s { color: var(--mute); font-size: 13px; }
.note { font-size: 14px; color: var(--mute); font-family: system-ui, sans-serif; }
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}
.plan {
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--bg-2);
}
.plan .price { font-size: 40px; margin: 8px 0 16px; }
.plan ul { padding-left: 1.1em; color: var(--mute); font-family: system-ui, sans-serif; font-size: 15px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-family: system-ui, sans-serif;
}
.faq summary { cursor: pointer; color: var(--ink); font-size: 16px; }
.faq p { color: var(--mute); margin: 10px 0 0; font-size: 15px; }
footer {
  padding: 40px 8%;
  font-size: 14px;
  color: var(--mute);
  font-family: system-ui, sans-serif;
  border-top: 1px solid var(--line);
}
form.card, .card {
  max-width: 420px;
  margin: 0 auto;
  font-family: system-ui, sans-serif;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 28px;
}
label { display: block; font-size: 13px; margin: 14px 0 6px; color: var(--mute); }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font: 16px system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.err { color: #e07a7a; font-family: system-ui, sans-serif; font-size: 14px; }
.ok { color: #8fbf8a; font-family: system-ui, sans-serif; font-size: 14px; }
.app {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 72px);
  font-family: system-ui, sans-serif;
}
.log { padding: 24px 8%; overflow-y: auto; }
.msg { margin: 0 0 16px; max-width: 40em; }
.msg.user { color: var(--mute); }
.composer {
  display: flex;
  gap: 8px;
  padding: 16px 8%;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.composer textarea { min-height: 52px; }
.bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 8%;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  background: var(--bg-2);
}
@media (max-width: 900px) {
  .hero, .split, .grid3, .ladder, .plans { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .hero { min-height: 0; }
}

/* gold ball, faint objects */
.stage {
  position: relative;
  height: calc(100vh - 64px);
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, #1a1d28 0%, #0b0c0e 62%);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.stage:active { cursor: grabbing; }
.stage-desk {
  position: absolute;
  inset: -10%;
  background: url('/img/hero.jpg') center 40% / cover no-repeat;
  filter: blur(18px) saturate(.5) brightness(.22);
  transform: scale(1.08);
  z-index: 0;
  pointer-events: none;
  opacity: .45;
}
.stage-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(11,12,14,.2) 0%, rgba(11,12,14,.7) 52%, #0b0c0e 88%);
}
.stage-copy {
  position: absolute;
  left: 6%;
  bottom: 7%;
  z-index: 50;
  max-width: 26em;
  pointer-events: none;
}
.stage-copy .hero-actions,
.stage-copy a { pointer-events: auto; }
.stage-copy h1 { font-size: 48px; text-shadow: 0 12px 40px #000; }
.stage-copy .lead { color: #c9c3b6; text-shadow: 0 6px 18px #000; }
.orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.orbit canvas.web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font: 600 11px/1.2 system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 25%, #2a2e3c, #14161c 70%);
  border: 1px solid rgba(196,165,116,.35);
  box-shadow:
    0 18px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
  will-change: transform;
  transform: translate3d(0,0,0) scale(.2);
}
.orb { cursor: pointer; }
.orb:hover { border-color: var(--gold); color: #fff; }
.orb.you {
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  background: radial-gradient(circle at 30% 25%, #c4a574, #6d5428 72%);
  color: #14110c;
  border-color: #e8d5b0;
  font-size: 13px;
  z-index: 4;
  box-shadow:
    0 0 60px rgba(196,165,116,.35),
    0 24px 50px rgba(0,0,0,.6);
}
.orb small { display: block; font-weight: 500; opacity: .7; font-size: 9px; margin-top: 4px; letter-spacing: .12em; }
.orb.pic {
  overflow: hidden;
  color: #ece8df;
  text-shadow: 0 2px 8px #000;
}
.orb.pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  z-index: 0;
}
.orb.pic span { position: relative; z-index: 1; }
.orb.pulse {
  animation: pulse 1.8s ease-in-out infinite;
  border-color: var(--gold);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 0 rgba(196,165,116,.45); }
  50% { box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 28px 6px rgba(196,165,116,.28); }
}
.hint {
  position: absolute;
  right: 8%;
  top: 28px;
  z-index: 5;
  font: 12px system-ui, sans-serif;
  color: var(--mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}
.stage.in-app {
  height: calc(100vh - 73px);
  min-height: 520px;
}
body.workspace { overflow: hidden; }
.app .bar a { font-family: system-ui, sans-serif; font-size: 13px; }
@media (max-width: 800px) {
  .stage { min-height: 520px; height: 78vh; }
  .stage-copy h1 { font-size: 32px; }
  .orb { width: 72px; height: 72px; margin: -36px 0 0 -36px; font-size: 10px; }
  .orb.you { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
}

.orb.pic::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52%;
  background: linear-gradient(to top, rgba(0,0,0,.62), transparent);
  pointer-events: none;
  z-index: 0;
}
.orb.you.pic {
  color: #ece8df;
  text-shadow: 0 2px 8px #000;
}
.orb-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  width: max-content;
  max-width: 220px;
  padding: 12px 14px 13px;
  background: #12141a;
  border: 1px solid rgba(196,165,116,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.orb-tip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.orb-tip strong {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 6px;
}
.orb-tip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
}

.tbox {
  border: 1px solid rgba(196,165,116,.4);
  background: var(--bg-2);
  margin: 22px 0 32px;
}
.thead {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  letter-spacing: .14em;
  text-transform: uppercase;
  font: 600 12px system-ui, sans-serif;
}
.tcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.tcols > div { padding: 12px 16px 16px; }
.tcols > div + div { border-left: 1px solid var(--line); }
.tside {
  margin: 0 0 10px;
  font: 12px system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.trow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 14px/1.4 system-ui, sans-serif;
  color: var(--ink);
  margin: 0 0 8px;
}
.trow b { font-weight: 600; white-space: nowrap; }
.tbal {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font: 14px system-ui, sans-serif;
  color: var(--gold);
}
.bank-table { width: 100%; border-collapse: collapse; font: 14px system-ui, sans-serif; margin: 16px 0 28px; }
.bank-table th {
  text-align: left; color: var(--gold); letter-spacing: .1em; text-transform: uppercase;
  font-size: 11px; padding: 10px 8px; border-bottom: 1px solid var(--line);
}
.bank-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bank-table form { display: inline; }
.ok { color: #c4a574; font-family: system-ui, sans-serif; }
.err { color: #d4a0a0; font-family: system-ui, sans-serif; }
@media (max-width: 800px) {
  .tcols { grid-template-columns: 1fr; }
  .tcols > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* quiver catalog */
.quiver-racks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 20px;
}
.quiver-chip {
  font: 12px system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--gold);
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
}
.quiver-chip.active {
  background: var(--gold);
  color: #14110c;
}
.quiver {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.tool-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 20px 18px;
  background: var(--bg-2);
  font-family: system-ui, sans-serif;
}
.tool-card:hover { border-color: var(--gold); color: var(--ink); }
.tool-card h3 { margin: 0 0 4px; color: var(--ink); font-size: 18px; }
.tool-card .rack {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.tool-card p { color: var(--mute); font-size: 14px; margin: 0 0 12px; line-height: 1.4; }
.tool-card .pill {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 3px 7px;
}
.desk-form { max-width: 40em; margin: 28px 0; font-family: system-ui, sans-serif; }
.desk-form textarea { min-height: 160px; }
.desk-out {
  white-space: pre-wrap;
  border: 1px solid var(--gold-dim);
  background: var(--bg-2);
  padding: 20px;
  margin: 20px 0;
  max-width: 40em;
  font-family: system-ui, sans-serif;
  font-size: 15px;
}
