:root {
  --ember-50: #fff7ed;
  --ember-200: #fed7aa;
  --ember-700: #c2410c;
  --ember-800: #9a3412;
  --bg: #ffffff;
  --elevated: #fafaf9;
  --text: #1c1917;
  --muted: #78716c;
  --dimmed: #a8a29e;
  --border: #e7e5e4;
  --primary: var(--ember-700);
  --primary-contrast: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ember-50: #431407;
    --bg: #1c1917;
    --elevated: #292524;
    --text: #fafaf9;
    --muted: #a8a29e;
    --dimmed: #78716c;
    --border: #44403c;
    --primary: #fb923c;
    --primary-contrast: #1c1917;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.wordmark {
  font-family: 'Bricolage Grotesque', 'Figtree', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

.wrap {
  margin: 0 auto;
  max-width: 72rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  display: block;
  width: auto;
  height: 3rem;
  border-radius: 8px;
}

@media (prefers-color-scheme: dark) {
  .logo-img {
    background: #ffffff;
    padding: 0.25rem;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 399px) {
  .nav-actions {
    gap: 0.25rem;
  }

  .nav-actions .btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.nav-actions .nav-pricing {
  display: none;
}

@media (min-width: 640px) {
  .nav-actions .nav-pricing {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--ember-800);
  color: #ffffff;
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
}

/* Legal page */
.legal-main {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

@media (min-width: 640px) {
  .legal-main {
    padding-top: 5rem;
    padding-bottom: 6rem;
  }
}

.legal {
  max-width: 70ch;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.08;
}

@media (min-width: 640px) {
  h1 {
    font-size: 3.25rem;
  }
}

.legal-updated {
  margin: 1rem 0 0;
  color: var(--dimmed);
  font-size: 0.875rem;
}

.legal-intro {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.legal h2 {
  margin: 2.5rem 0 0;
  font-size: 1.375rem;
  line-height: 1.3;
}

.legal h3 {
  margin: 1.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.legal p {
  margin: 0.875rem 0 0;
  line-height: 1.75;
}

.legal ul {
  margin: 0.875rem 0 0;
  padding-left: 1.25rem;
}

.legal li {
  margin-top: 0.625rem;
  line-height: 1.7;
}

.legal strong {
  font-weight: 600;
}

.legal a {
  color: var(--primary);
}

.legal-note {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  color: var(--dimmed);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.footer-link {
  font-weight: 500;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text);
}
