/* Owned partner landing. Design tokens lifted from apps/web/src/index.css so the
   marketing site and the product read as one thing — a partner clicking through
   should not feel a seam. Hand-authored rather than Tailwind: this page has no
   build step, which is what lets it deploy as a bare Cloudflare Pages project. */

:root {
  --canvas: #0b0b0d;
  --sidebar: #000;
  --surface: #161618;
  --surface-raised: #202024;
  --line: rgba(255, 255, 255, 0.07);
  --ink: #f5f5f6;
  --ink-muted: #a1a1a8;
  --ink-dim: #74747b;
  --ink-faint: #58585f;
  --primary: #2f6bff;
  --primary-hover: #3f78ff;
  --primary-soft: rgba(47, 107, 255, 0.16);
  --ok: #2fcb6e;
  --warn: #f5a524;
  --violet: #8b5cf6;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 118px;
  aspect-ratio: 1667 / 353;
  overflow: hidden;
  background: #000;
}
.brand-logo img {
  position: absolute;
  top: -285%;
  left: -21.6%;
  width: 142.77%;
  max-width: none;
  height: auto;
  user-select: none;
  pointer-events: none;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-nav a.text-link {
  font-size: 14px;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: 8px;
}
.header-nav a.text-link:hover { color: var(--ink); background: var(--surface); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--violet));
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(47, 107, 255, 0.7);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-outline {
  border-color: var(--line);
  color: var(--ink-muted);
  background: transparent;
}
.btn-outline:hover { background: var(--surface); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(47, 107, 255, 0.16),
    transparent 68%
  );
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ok);
}
h1 {
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 22px 0 0;
  max-width: 16ch;
}
h1 .grad {
  background: linear-gradient(90deg, var(--primary), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 56ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-dim);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 12px 0 0;
}
.section-lede {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 15.5px;
  max-width: 60ch;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.card h3 {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.card p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 17px;
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step + .step { margin-top: 28px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet));
}
.step h3 { margin: 4px 0 0; font-size: 16.5px; font-weight: 650; }
.step p { margin: 6px 0 0; color: var(--ink-muted); font-size: 14.5px; line-height: 1.65; }

/* Pricing */
.price-card {
  background: linear-gradient(
    150deg,
    rgba(47, 107, 255, 0.09),
    rgba(139, 92, 246, 0.05)
  );
  border: 1px solid rgba(47, 107, 255, 0.25);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
}
.price {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 0;
}
.price small {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 10px;
  letter-spacing: 0;
}
.price-list {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  max-width: 420px;
  text-align: left;
}
.price-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}
.price-list li:first-child { border-top: 0; }
.tick { color: var(--ok); font-weight: 700; flex-shrink: 0; }
.cross { color: var(--ink-faint); font-weight: 700; flex-shrink: 0; }

/* FAQ */
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
details summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  color: var(--ink-dim);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}
details[open] summary::after { content: '−'; }
details p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 72ch;
}

/* CTA band */
.cta-band {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top, rgba(47, 107, 255, 0.14), transparent 70%),
    var(--surface);
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { margin: 0; }
.cta-band p { margin: 12px auto 0; color: var(--ink-muted); max-width: 52ch; }
.cta-band .hero-cta { justify-content: center; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--ink-dim);
  font-size: 13.5px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 18px; }
footer a:hover { color: var(--ink); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .header-nav a.text-link { display: none; }
  .price { font-size: 48px; }
  .price-card, .cta-band { padding: 32px 20px; }
}

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