/* Orbit landing page. The tokens match the app's (web/src/index.css):
   shadcn's neutral palette, Geist, and the same stage colors. */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #f5f5f5;
  --muted-fg: #737373;
  --card: #ffffff;
  --border: #e5e5e5;
  --primary: #171717;
  --primary-fg: #fafafa;
  --ring: #a3a3a3;
  --radius: 10px;

  --slate: #94a3b8;
  --sky: #0ea5e9;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --emerald: #10b981;
  --rose: #f43f5e;

  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12);
  color-scheme: light;
}

.dark {
  --bg: #0a0a0a;
  --fg: #fafafa;
  --muted: #171717;
  --muted-fg: #a3a3a3;
  --card: #111111;
  --border: rgb(255 255 255 / 0.1);
  --primary: #e5e5e5;
  --primary-fg: #171717;
  --ring: #525252;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.6 "Geist",
    ui-sans-serif,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
}

.muted {
  color: var(--muted-fg);
}

.fine {
  color: var(--muted-fg);
  font-size: 13px;
}

.i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    opacity 0.15s;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
}

.btn-lg {
  height: 42px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: var(--bg);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.btn-outline:hover,
.btn-ghost:hover {
  background: var(--muted);
}

.btn-ghost {
  background: transparent;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--muted);
}

.i-moon,
.dark .i-sun {
  display: none;
}

.dark .i-moon {
  display: block;
}

/* ----------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s;
}

.nav.stuck {
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #171717;
}

.brand-mark.sm {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted-fg);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(
    ellipse 70% 55% at 50% 0%,
    #000 40%,
    transparent 100%
  );
  opacity: 0.7;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted-fg);
  font-size: 13px;
}

.pill:hover {
  color: var(--fg);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 25%, transparent);
}

.hero h1 {
  max-width: 820px;
  margin-top: 24px;
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero h1 .muted {
  display: block;
}

.lede {
  max-width: 600px;
  margin-top: 20px;
  color: var(--muted-fg);
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero .fine {
  margin-top: 14px;
}

/* The product still. */
.shot {
  position: relative;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow:
    var(--shadow),
    0 40px 80px -40px rgb(0 0 0 / 0.25);
  overflow: hidden;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.shot-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.shot-url {
  margin: 0 auto;
  padding: 2px 40px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted-fg);
  font:
    12px "Geist Mono",
    ui-monospace,
    monospace;
}

.shot-body {
  display: flex;
  min-height: 360px;
}

.shot-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 180px;
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 50%, var(--card));
  font-size: 13px;
}

.side-ws {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}

.side-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted-fg);
}

.side-item.on {
  background: var(--muted);
  color: var(--fg);
  font-weight: 500;
}

.side-item b {
  font-weight: 500;
  font-size: 11px;
}

.board {
  display: flex;
  gap: 12px;
  flex: 1;
  padding: 16px;
  overflow: hidden;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 210px;
  flex-shrink: 0;
}

.col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 500;
}

.col-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

.col-head .n {
  color: var(--muted-fg);
  font-weight: 400;
}

.col-head .sum {
  margin-left: auto;
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 400;
}

.col-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 60%, transparent);
}

.card {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  font-size: 13px;
}

.card .t {
  font-weight: 500;
}

.card .s {
  color: var(--muted-fg);
  font-size: 12px;
}

.card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.card .v {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.av {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 9px;
  font-weight: 600;
}

.card.lift {
  transform: rotate(-2deg) translateY(-2px);
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------ sections */

.section {
  padding: 96px 0;
}

.section-muted {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 50%, var(--bg));
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  color: var(--muted-fg);
  font:
    500 12px "Geist Mono",
    ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-lede {
  margin-top: 14px;
  color: var(--muted-fg);
  font-size: 17px;
}

/* Feature tiles. */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.tile-wide {
  grid-column: span 2;
}

.tile-full {
  grid-column: 1 / -1;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--muted);
}

.tile h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tile p {
  color: var(--muted-fg);
  font-size: 14px;
}

.mini-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.mini-stages span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
}

.mini-stages span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
  margin-top: auto;
  padding-top: 16px;
}

.mini-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--emerald) 75%, var(--bg));
}

/* ------------------------------------------------------------- pricing */

.toggle {
  display: flex;
  width: max-content;
  margin: -16px auto 32px;
  padding: 3px;
  border-radius: 10px;
  background: var(--muted);
}

.toggle[hidden] {
  display: none;
}

.toggle-opt {
  padding: 6px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-fg);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.toggle-opt.is-on {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.save {
  color: var(--emerald);
  font-size: 12px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.plan-pro {
  border-color: var(--fg);
  box-shadow: var(--shadow);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan h3 {
  font-size: 18px;
  font-weight: 600;
}

.badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 12px;
  font-weight: 500;
}

.plan-blurb {
  margin-top: -8px;
  color: var(--muted-fg);
  font-size: 14px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.amount {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.per,
.plan-billed,
.plan-current {
  color: var(--muted-fg);
  font-size: 14px;
}

.plan-billed {
  margin-top: -10px;
}

.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-current {
  margin-top: 8px;
  text-align: center;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 14px;
}

.features li {
  display: flex;
  gap: 10px;
}

.features li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: var(--emerald);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ----------------------------------------------------------------- faq */

.faq {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.faq details + details {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--muted-fg);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 18px;
  color: var(--muted-fg);
  font-size: 15px;
}

/* -------------------------------------------------------------- closer */

.closer {
  position: relative;
  padding: 64px 24px;
  border-radius: 20px;
  background: #0a0a0a;
  color: #fafafa;
  text-align: center;
  overflow: hidden;
}

.dark .closer {
  border: 1px solid var(--border);
  background: #141414;
}

.closer::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 520px;
  height: 260px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-12deg);
}

.closer h2 {
  position: relative;
  margin: 0;
}

.closer p {
  position: relative;
  margin-top: 12px;
  color: #a3a3a3;
}

.closer .btn-primary {
  background: #fafafa;
  color: #0a0a0a;
}

.closer .btn-outline {
  border-color: rgb(255 255 255 / 0.18);
  background: transparent;
  color: #fafafa;
}

.closer .btn-outline:hover {
  background: rgb(255 255 255 / 0.08);
}

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

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.footer nav {
  display: flex;
  gap: 20px;
  margin-right: auto;
  color: var(--muted-fg);
  font-size: 14px;
}

.footer nav a:hover,
.footer .fine a:hover {
  color: var(--fg);
}

.footer .fine a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .shot-side {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding-top: 48px;
  }

  .bento,
  .plans {
    grid-template-columns: 1fr;
  }

  .tile-wide,
  .tile-full {
    grid-column: auto;
  }

  .section {
    padding: 72px 0;
  }

  .nav [data-signed-out] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
