/* Geist, latin subsets only. Variable weight, so one file covers 100-900. */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --muted: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
  --primary: oklch(0.205 0 0);
  --primary-hover: oklch(0.35 0 0);
  --on-primary: oklch(0.985 0 0);
  --popover: oklch(1 0 0);
  --hover: oklch(0.97 0 0);
  --ring: oklch(0.708 0 0);
  /* Backdrop behind the product window: a cool slate wash. */
  --stage-from: oklch(0.94 0.018 245);
  --stage-to: oklch(0.85 0.03 245);
  --window-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 24px 60px -12px rgb(0 0 0 / 0.35);
  --menu-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 8px 24px -8px rgb(0 0 0 / 0.25);

  --font-sans: Geist, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --muted: oklch(0.708 0 0);
    --border: oklch(1 0 0 / 10%);
    --primary: oklch(0.922 0 0);
    --primary-hover: oklch(0.78 0 0);
    --on-primary: oklch(0.205 0 0);
    --popover: oklch(0.205 0 0);
    --hover: oklch(0.269 0 0);
    --ring: oklch(0.556 0 0);
    --stage-from: oklch(0.27 0.02 250);
    --stage-to: oklch(0.17 0.015 250);
    --window-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 24px 60px -12px rgb(0 0 0 / 0.7),
      inset 0 0 0 1px rgb(255 255 255 / 0.06);
    --menu-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px -8px rgb(0 0 0 / 0.6);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }
}

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

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

body {
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

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

::selection {
  background: var(--hover);
}

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

.frame {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .frame {
    border-inline: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  }
}

/* Header ------------------------------------------------------------------ */

.header {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
}

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

.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-link {
  display: flex;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.15s;
}

.icon-link:hover {
  color: var(--foreground);
}

/* Buttons and the download disclosure ------------------------------------- */

.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.15s, transform 0.05s;
}

.btn::-webkit-details-marker {
  display: none;
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 28px;
  gap: 4px;
  padding-inline: 10px;
  font-size: 0.8rem;
}

.btn-lg {
  height: 40px;
  gap: 6px;
  padding-inline: 16px;
  font-size: 14px;
}

.btn .chevron {
  opacity: 0.7;
}

.menu {
  position: relative;
  display: inline-flex;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 18rem;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--popover);
  box-shadow: var(--menu-shadow);
}

.menu[data-align="end"] .menu-panel {
  right: 0;
}

.menu[data-align="start"] .menu-panel {
  left: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.menu-item:hover,
.menu-item:focus-visible {
  background: var(--hover);
}

.menu-item > span {
  display: flex;
  flex-direction: column;
}

.menu-item-title {
  font-weight: 500;
}

.menu-item-detail,
.menu-item-size {
  font-size: 12px;
  color: var(--muted);
}

.menu-item-size {
  flex-shrink: 0;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  padding: 56px var(--gutter);
}

@media (min-width: 768px) {
  .hero {
    padding-top: 96px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  max-width: 56rem;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.4rem;
    line-height: 1.04;
  }
}

.lede {
  max-width: 36rem;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.625;
  color: var(--muted);
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

.version {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--muted) 80%, transparent);
}

.formats {
  margin-top: 64px;
}

.formats ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 16px;
  list-style: none;
}

.formats li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: color-mix(in oklab, var(--muted) 70%, transparent);
  cursor: default;
  transition: color 0.15s;
}

.formats li:hover {
  color: var(--foreground);
}

/* Product window ---------------------------------------------------------- */

.stage {
  padding: 40px 24px;
  background: radial-gradient(120% 90% at 50% 0%, var(--stage-from) 0%, var(--stage-to) 100%);
}

@media (min-width: 640px) {
  .stage {
    padding: 56px 40px;
  }
}

@media (min-width: 768px) {
  .stage {
    padding: 80px 64px;
  }
}

.stage img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--window-shadow);
}

/* Features ---------------------------------------------------------------- */

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

.features-head {
  padding: 56px var(--gutter) 0;
}

/* The 1px gaps are the grid background showing through, so the rules between
   cards meet the section border exactly. */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--border) 70%, transparent);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-grid article {
  padding: 24px;
  background: var(--background);
}

@media (min-width: 768px) {
  .feature-grid article {
    padding: 32px;
  }
}

.feature-grid h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.feature-grid h3 svg {
  flex-shrink: 0;
  color: var(--muted);
}

.feature-grid p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--muted);
}

/* Download ---------------------------------------------------------------- */

.download {
  padding: 64px var(--gutter);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .download {
    padding-block: 80px;
  }
}

.download h2 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.download .cta-row {
  margin-top: 24px;
}

/* FAQ --------------------------------------------------------------------- */

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

.faq-list {
  max-width: 42rem;
  margin-top: 24px;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s;
}

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

.faq p {
  max-width: 38rem;
  padding-bottom: 16px;
  font-size: 14px;
  line-height: 1.625;
  color: var(--muted);
}

/* Footer ------------------------------------------------------------------ */

.footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.footer img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  opacity: 0.8;
  filter: grayscale(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
