:root {
  color-scheme: light dark;
  --ink: #27232a;
  --muted: #6f6870;
  --surface: rgba(255, 255, 255, 0.86);
  --line: rgba(77, 60, 72, 0.14);
  --purple: #714b67;
  --green: #21b799;
  --canvas: #f7f4f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 0%, rgba(113, 75, 103, 0.14), transparent 34rem), var(--canvas);
}

a {
  color: var(--purple);
  font-weight: 650;
  text-underline-offset: 0.2em;
}

.site-header,
main,
.site-footer {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 5px;
  box-shadow:
    0 0 0 1px rgba(39, 35, 42, 0.08),
    0 5px 14px rgba(39, 35, 42, 0.12);
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.hero {
  padding: 76px 0 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.lede {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 224px;
  padding: 11px 16px;
  color: #fff;
  background: var(--purple);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(55, 39, 50, 0.12);
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(55, 39, 50, 0.18);
}

.store-button--firefox {
  background: #5e3a78;
}

.store-button__mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--purple);
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  background: #fff;
  border-radius: 9px;
}

.store-button--firefox .store-button__mark {
  color: #5e3a78;
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1.2;
}

.store-button small {
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.78;
}

.store-button strong {
  font-size: 14px;
  font-weight: 750;
}

.store-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent);
  outline-offset: 3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px 0 64px;
}

.card,
.policy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(55, 39, 50, 0.07);
}

.card {
  padding: 24px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.policy {
  max-width: 780px;
  margin: 48px auto 72px;
  padding: clamp(24px, 5vw, 54px);
}

.policy h1 {
  font-size: clamp(36px, 6vw, 56px);
}

.policy h2 {
  margin-top: 32px;
  font-size: 20px;
}

.policy p,
.policy li {
  color: var(--muted);
}

.callout {
  margin-top: 36px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 42px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1edf1;
    --muted: #bcb4bd;
    --surface: rgba(39, 36, 45, 0.88);
    --line: rgba(255, 255, 255, 0.12);
    --purple: #c2a3bb;
    --canvas: #1d1b21;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 44px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .store-actions,
  .store-button {
    width: 100%;
  }
}
