/* swipvox.com — landing page. Vanilla CSS, no build step. Dark, sharp, developer-credible. */

:root {
  --bg:        #0A0A0F;
  --bg-2:      #101017;
  --surface:   #14141D;
  --surface-2: #1A1A25;
  --border:    #262632;
  --border-2:  #33334A;
  --text:      #ECECF3;
  --text-dim:  #9A9AB2;
  --text-mute: #6A6A82;

  --brand:     #8B7CFF;   /* swipvox violet — primary action */
  --brand-2:   #B3A6FF;
  --free:      #5EE6A8;   /* 🔓 free / open code   */
  --gated:     #56B6FF;   /* ✉️ free, drop an email */
  --locked:    #F5C451;   /* 🔒 paid / locked       */
  --wdd:       #FF8F6B;   /* would-do-differently label */

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1100px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
::selection { background: rgba(139,124,255,0.32); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.lede { color: var(--text-dim); font-size: clamp(16px, 2.4vw, 19px); }

/* ---------- top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(10,10,15,0.72);
  border-bottom: 1px solid var(--border);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.brand__dot { width: 11px; height: 11px; border-radius: 3px; background: linear-gradient(135deg, var(--brand), var(--free)); box-shadow: 0 0 16px rgba(139,124,255,0.6); }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a { color: var(--text-dim); font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav__links a:hover { color: var(--text); background: var(--surface); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #0B0713; }
.btn--primary:hover { background: var(--brand-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--brand); background: var(--surface); }
.btn--free { background: transparent; color: var(--free); border-color: rgba(94,230,168,0.4); }
.btn--free:hover { background: rgba(94,230,168,0.08); border-color: var(--free); }
/* "On sale soon" — the paid CTA before the licence is finalized. Deliberately un-clickable-looking. */
.btn--soon { background: var(--surface-2); color: var(--text-mute); border-color: var(--border-2); cursor: default; }
.btn--soon:hover { background: var(--surface-2); }

/* ---------- hero ---------- */
.hero { padding: 74px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 460px; z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, rgba(139,124,255,0.20), transparent 70%);
}
.hero h1 { font-size: clamp(34px, 6.4vw, 62px); max-width: 15ch; }
.hero h1 .accent { background: linear-gradient(120deg, var(--brand-2), var(--free)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 20px; max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 14px; font-size: 13px; color: var(--text-mute); font-family: var(--font-mono); }

.video {
  margin-top: 44px; position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  aspect-ratio: 16 / 9; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.video video, .video img { width: 100%; height: 100%; object-fit: cover; }
.video__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center;
  background:
    radial-gradient(50% 60% at 30% 20%, rgba(139,124,255,0.18), transparent 60%),
    radial-gradient(50% 60% at 80% 90%, rgba(94,230,168,0.14), transparent 60%),
    var(--surface);
  color: var(--text-mute); font-family: var(--font-mono); font-size: 13px;
}
.video__tap { position: absolute; right: 14px; bottom: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text); background: rgba(0,0,0,0.55); border: 1px solid var(--border-2); padding: 6px 11px; border-radius: 20px; cursor: pointer; }

/* ---------- generic section ---------- */
.block { padding: 64px 0; border-top: 1px solid var(--border); }
.block h2 { font-size: clamp(26px, 4vw, 38px); max-width: 20ch; }
.block > .wrap > .lede { margin-top: 16px; max-width: 62ch; }

/* problem — three sentences, big */
.problem p { font-size: clamp(19px, 3vw, 26px); line-height: 1.45; max-width: 24ch; }
.problem .grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
.problem .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.problem .card b { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); }
.problem .card p { font-size: 15px; line-height: 1.55; color: var(--text-dim); margin-top: 10px; max-width: none; }

/* ---------- the tree ---------- */
.tree__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--free { background: var(--free); } .dot--gated { background: var(--gated); } .dot--locked { background: var(--locked); }
.tree__expand { margin-left: auto; }
.tree__expand button { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.tree__expand button:hover { color: var(--text); border-color: var(--border-2); }

.tree { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.node { border-top: 1px solid var(--border); }
.node:first-child { border-top: 0; }
.node__row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer; user-select: none; }
.node__row:hover { background: var(--surface); }
.node--section > .node__row { background: var(--surface); }
.node--section > .node__row:hover { background: var(--surface-2); }
.node__caret { width: 16px; flex: 0 0 16px; margin-top: 3px; color: var(--text-mute); transition: transform .18s ease; font-size: 12px; }
.node.open > .node__row > .node__caret { transform: rotate(90deg); }
.node__caret--leaf { visibility: hidden; }
.node__state { flex: 0 0 auto; margin-top: 1px; font-size: 15px; width: 20px; text-align: center; }
.node__body { flex: 1 1 auto; min-width: 0; }
.node__title { font-family: var(--font-mono); font-size: 14.5px; color: var(--text); line-height: 1.45; }
.node--section .node__title { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.node__teaser { color: var(--text-dim); font-size: 13.5px; margin-top: 5px; line-height: 1.5; }
.node__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.badge { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border-2); color: var(--text-dim); }
.badge--free { color: var(--free); border-color: rgba(94,230,168,0.35); }
.badge--gated { color: var(--gated); border-color: rgba(86,182,255,0.35); }
.badge--locked { color: var(--locked); border-color: rgba(245,196,81,0.35); }
.badge--bt { color: var(--free); border-color: rgba(94,230,168,0.3); }
.badge--wdd { color: var(--wdd); border-color: rgba(255,143,107,0.35); }
.badge--proto { color: var(--text-dim); border-color: var(--border-2); }
.node__link { font-family: var(--font-mono); font-size: 12.5px; color: var(--gated); margin-top: 9px; display: inline-flex; gap: 6px; }
.node--free .node__link { color: var(--free); }
.node__children { display: none; padding-left: 20px; }
.node.open > .node__children { display: block; }
.node__count { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); margin-left: 8px; }

/* ---------- reuse proof / cost / limits ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel h3 { font-size: 20px; margin-bottom: 10px; }
.panel p { color: var(--text-dim); font-size: 15px; }
.panel .tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-2); }

.costs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.cost { font-family: var(--font-mono); font-size: 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.cost b { color: var(--free); font-weight: 600; }
.cost span { color: var(--text-mute); display: block; font-size: 12px; margin-top: 4px; }

.attest { font-family: var(--font-display); font-size: clamp(20px, 3vw, 27px); line-height: 1.4; max-width: 30ch; color: var(--text); }
.attest .q { color: var(--brand-2); }
.attest__by { font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); margin-top: 16px; }

.limits ul { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.limits li { display: flex; gap: 11px; color: var(--text-dim); font-size: 15px; }
.limits li::before { content: "→"; color: var(--brand); flex: 0 0 auto; }

/* ---------- pricing / CTAs ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan--paid { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(139,124,255,0.3), 0 24px 60px -30px rgba(139,124,255,0.5); }
.plan__k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.plan__price { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.plan__price s { color: var(--text-mute); font-size: 18px; font-weight: 400; margin-left: 8px; }
.plan__note { font-size: 13px; color: var(--text-dim); flex: 1 1 auto; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.founding { font-family: var(--font-mono); font-size: 12px; color: var(--locked); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-mute); font-size: 13px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.foot a { color: var(--text-dim); } .foot a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .problem .grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .costs { grid-template-columns: 1fr; }
  .nav__links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}
