/* Landing page only. The legal pages and 404 use styles.css. */
:root {
  color-scheme: light dark;
  --text: #1d1b22;
  --muted: #5c5866;
  --background: #ffffff;
  --surface: #f4f1fb;
  --line: #e4def3;
  --accent: #6d3fd0;
  --on-accent: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #efedf4;
    --muted: #aaa5b8;
    --background: #17151c;
    --surface: #24212d;
    --line: #34303f;
    --accent: #b9a0f5;
    --on-accent: #17151c;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, sans-serif;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

code,
kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

kbd {
  padding: 0.05em 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 0.3em;
  background: var(--surface);
}

pre {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 0.6rem;
  background: var(--surface);
  white-space: pre-wrap;
}

mark {
  background: none;
  color: var(--accent);
  font-weight: 600;
}

.screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

/* Hero */

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
  }
}

.brand {
  float: left;
  margin-right: 0.6rem;
}

.brand img {
  display: block;
}

.hero h1 {
  font-size: 1.1rem;
  line-height: 32px;
  margin-bottom: 2rem;
}

.tagline {
  clear: both;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.tabs {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.25rem;
  border-radius: 0.75rem;
  background: var(--surface);
}

.tabs button {
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 0.55rem;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--background);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}

.tabs button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.panel {
  min-height: 8.5rem;
}

.checks {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 1.75rem;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 0.6rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.fine {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.shots {
  padding: 1rem;
  background: radial-gradient(circle at 50% 30%, var(--surface), transparent 70%);
}

.shots .screenshot {
  width: auto;
  max-height: 34rem;
  margin: 0 auto;
}

/* Section bar */

.jump {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(8px);
}

.jump a {
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

/* Walkthrough */

.track {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.track + .track {
  border-top: 1px solid var(--line);
}

.track > p:not(.eyebrow):not(.fine) {
  margin-top: 1rem;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 2.5rem 3.75rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -0.35rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  bottom: 0.25rem;
  left: 1.2rem;
  width: 2px;
  background: var(--line);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  display: none;
}

.steps p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.steps .screenshot {
  max-width: min(100%, 22rem);
  margin-top: 1rem;
}

.steps .screenshot[width="1018"] {
  max-width: 100%;
}

.callout {
  max-width: 48rem;
  border-radius: 1.25rem;
  background: var(--surface);
}

.callout pre {
  background: var(--background);
}

.callout .checks {
  margin-top: 1.25rem;
}

.faq {
  margin: 1.5rem 0 0;
}

.faq dt {
  margin-top: 1.25rem;
  font-weight: 600;
}

.faq dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* Footer */

footer {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
