@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/geist/Geist%5Bwght%5D.woff2") format("woff2");
}

@font-face {
  font-family: "Geist";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/geist/Geist-Italic%5Bwght%5D.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/geist/GeistMono%5Bwght%5D.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: oklch(0.985 0.003 250);
  --bg-subtle: oklch(0.965 0.005 250);
  --surface: oklch(1 0 0);
  --fg: oklch(0.135 0.025 250);
  --fg-muted: oklch(0.43 0.025 250);
  --fg-subtle: oklch(0.555 0.025 250);
  --border: oklch(0.925 0.008 250);
  --border-strong: oklch(0.87 0.012 250);
  --brand: oklch(0.65 0.18 38);
  --brand-hover: oklch(0.57 0.175 36);
  --brand-soft: oklch(0.95 0.035 50);
  --brand-soft-fg: oklch(0.48 0.155 34);
  --success: oklch(0.6 0.13 152);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px oklch(0.18 0.025 250 / 0.05);
  --shadow-sm: 0 1px 2px oklch(0.18 0.025 250 / 0.05), 0 1px 3px oklch(0.18 0.025 250 / 0.06);
  --shadow-xl: 0 24px 48px -12px oklch(0.18 0.025 250 / 0.18);
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 750;
}

.wordmark img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.signin:hover,
.github-link:hover,
.footer a:hover {
  color: var(--fg);
}

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

.signin {
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.github-link:hover {
  background: var(--bg-subtle);
}

.github-link:active {
  transform: translateY(0.5px);
}

.github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.button:active {
  transform: translateY(0.5px);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-primary {
  background: var(--brand);
  color: white;
}

.button-primary:hover {
  background: var(--brand-hover);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
}

.button-secondary:hover {
  background: var(--bg-subtle);
}

.button-small {
  min-height: 36px;
  padding-inline: 14px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 420px;
  background: radial-gradient(60% 70% at 50% 0%, color-mix(in oklch, var(--brand) 18%, transparent), transparent 72%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.16;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), color-mix(in oklch, var(--bg) 90%, transparent) 34%, var(--bg) 88%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 82px 80px;
  text-align: center;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.04;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--fg-muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.microcopy {
  margin: 16px 0 0;
  color: var(--fg-subtle);
  font-size: 13px;
}

.hero-shot {
  width: 100%;
  height: auto;
  margin: 48px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
}

.hero-shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left top;
}

.screenshot-zoom {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.screenshot-zoom:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--brand) 72%, white);
  outline-offset: 4px;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

.logo-strip {
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.logo-strip h2,
.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

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

.customers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 44px;
  margin-top: 26px;
  color: var(--fg-muted);
  font-size: 17px;
  font-weight: 700;
}

.section,
.feature,
.pricing,
.faq,
.feature-set {
  padding: 96px 0;
}

.section-header {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.section-header h2,
.feature-copy h2,
.faq h2,
.feature-set h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 750;
  line-height: 1.15;
}

.section-header p:not(.eyebrow),
.feature-copy > p:not(.eyebrow),
.faq p,
.feature-set p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.65;
}

.section-header p:not(.eyebrow) {
  margin: 18px 0 0;
}

.pricing .section-header {
  max-width: 860px;
}

.pricing-title span {
  display: block;
}

.pillars,
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

.icon-box,
.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-soft-fg);
}

.icon-box {
  width: 42px;
  height: 42px;
}

.icon-box svg {
  width: 20px;
  height: 20px;
}

.card h3,
.feature-list h3,
.plan h3 {
  margin: 20px 0 0;
  font-size: 18px;
  font-weight: 750;
}

.card p,
.plan p,
.feature-list p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 750;
}

.feature {
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
}

.feature-grid-reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.feature-grid-reverse .feature-copy {
  order: 2;
}

.feature-copy > p:not(.eyebrow) {
  margin: 20px 0 0;
}

.feature-list {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.feature-list > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mini-icon {
  width: 34px;
  height: 34px;
  margin-top: 2px;
}

.mini-icon svg {
  width: 16px;
  height: 16px;
}

.feature-list h3 {
  margin: 0;
  font-size: 14px;
}

.feature-list p {
  margin: 5px 0 0;
}

.shot {
  margin: 0;
  aspect-ratio: 1440 / 1100;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
}

.screenshot-dialog {
  width: min(96vw, 1320px);
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0;
  box-shadow: var(--shadow-xl);
}

.screenshot-dialog::backdrop {
  background: oklch(0.15 0.025 250 / 0.72);
  backdrop-filter: blur(6px);
}

.screenshot-dialog-inner {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.screenshot-dialog-image {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: var(--surface);
}

.screenshot-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.screenshot-close:hover {
  background: var(--surface);
}

.screenshot-close svg {
  width: 18px;
  height: 18px;
}

.pricing,
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.pricing-model {
  position: relative;
  margin-top: 34px;
}

.pricing-state {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 28px;
}

.deployment-tabs,
.billing-toggle {
  border: 0;
  margin: 0;
  padding: 0;
}

.deployment-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(136px, 1fr));
  gap: 4px;
  border-radius: var(--radius-lg);
  background: var(--border);
  padding: 5px;
}

.deployment-tab,
.billing-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius-md);
  color: var(--fg-muted);
  font-size: 16px;
  font-weight: 550;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.deployment-tab {
  gap: 8px;
  padding-inline: 16px;
}

.deployment-tab svg {
  width: 18px;
  height: 18px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.billing-label {
  min-height: auto;
  padding: 8px 3px;
}

.billing-switch {
  position: relative;
  width: 39px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: oklch(0.34 0.08 240);
  padding: 0;
  cursor: pointer;
}

.billing-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px oklch(0.18 0.025 250 / 0.22);
  transition: transform 150ms ease;
}

#deployment-cloud:focus-visible ~ .pricing-controls [for="deployment-cloud"],
#deployment-self-hosted:focus-visible ~ .pricing-controls [for="deployment-self-hosted"],
#billing-monthly:focus-visible ~ .pricing-controls [for="billing-monthly"],
#billing-yearly:focus-visible ~ .pricing-controls [for="billing-yearly"] {
  outline: 3px solid color-mix(in oklch, var(--brand) 72%, white);
  outline-offset: 3px;
}

#deployment-cloud:checked ~ .pricing-controls [for="deployment-cloud"],
#deployment-self-hosted:checked ~ .pricing-controls [for="deployment-self-hosted"] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
}

#billing-monthly:checked ~ .pricing-controls [for="billing-monthly"],
#billing-yearly:checked ~ .pricing-controls [for="billing-yearly"] {
  color: var(--fg);
}

#billing-yearly:checked ~ .pricing-controls .billing-switch span {
  transform: translateX(17px);
}

.pricing-note {
  max-width: 780px;
  margin: 22px auto 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.pricing-panels {
  margin-top: 38px;
}

.pricing-panel {
  display: none;
}

#deployment-cloud:checked ~ .pricing-panels .pricing-cloud,
#deployment-self-hosted:checked ~ .pricing-panels .pricing-self-hosted {
  display: grid;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.popular {
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 28px 0;
}

.price span {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.price-yearly {
  display: none;
}

#billing-yearly:checked ~ .pricing-panels .price-monthly {
  display: none;
}

#billing-yearly:checked ~ .pricing-panels .price-yearly {
  display: inline;
}

.plan .button {
  width: 100%;
}

.plan .check-list {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 28px;
}

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

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

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

details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 750;
  list-style: none;
}

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

details p {
  max-width: 720px;
  margin: 14px 0 0;
}

.feature-set {
  border-top: 1px solid var(--border);
}

.feature-set-header {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.feature-set-header p:not(.eyebrow) {
  margin: 18px 0 0;
}

.parity-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.parity-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

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

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.feature-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.feature-bullets {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.feature-bullets li {
  position: relative;
  padding-left: 17px;
}

.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.footer {
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 42px;
}

.footer p {
  max-width: 320px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

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

.fine-print {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--fg-subtle);
  font-size: 12px;
}

.status {
  position: relative;
  padding-left: 16px;
}

.status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .nav-links,
  .signin {
    display: none;
  }

  .hero-inner {
    padding-block: 52px 56px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-shot {
    margin-top: 34px;
  }

  .pillars,
  .plans,
  .feature-grid,
  .feature-grid-reverse,
  .faq-grid,
  .feature-set-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid-reverse .feature-copy {
    order: initial;
  }

  .section,
  .feature,
  .pricing,
  .faq,
  .feature-set {
    padding: 72px 0;
  }

  .feature-grid {
    gap: 40px;
  }

  .footer-grid {
    gap: 28px;
  }

  .fine-print {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 10px;
  }

  .nav-actions {
    gap: 8px;
  }

  .wordmark img {
    width: 27px;
    height: 27px;
  }

  .button {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .screenshot-dialog-inner,
  .screenshot-dialog-image {
    width: 720px;
    max-width: none;
  }

  .screenshot-dialog-image {
    max-height: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .customers {
    gap: 16px 26px;
    font-size: 15px;
  }

  .section-header h2,
  .feature-copy h2,
  .faq h2,
  .feature-set h2 {
    font-size: 31px;
  }

  .card,
  .feature-card {
    padding: 24px;
  }

  .popular {
    position: static;
    align-self: flex-start;
    margin-bottom: 16px;
  }
}

@media (max-width: 360px) {
  .wordmark span {
    display: none;
  }

  .button-small {
    padding-inline: 12px;
  }
}
