:root {
  color-scheme: light dark;

  /* The app icon's gradient */
  --brand: linear-gradient(135deg, #fc8538, #e84d21);

  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-contrast: #ffffff;
  --accent-soft: #fff1e8;

  --bg: #fcfbfa;
  --surface: #ffffff;
  --surface-alt: #f7f4f1;
  --border: #ebe3dc;
  --text: #1f1b18;
  --text-muted: #5e5650;

  --radius: 12px;
  --wrap: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff9a5c;
    --accent-hover: #ffb98c;
    --accent-contrast: #1a120d;
    --accent-soft: #3a2015;

    --bg: #131110;
    --surface: #1c1917;
    --surface-alt: #171514;
    --border: #38312c;
    --text: #f4efeb;
    --text-muted: #b6aca4;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

p, ul, ol {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow {
  max-width: 44rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

section {
  padding: 3.5rem 0;
}

.section-intro {
  color: var(--text-muted);
  max-width: 44rem;
  margin-bottom: 2rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22%;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

/* A soft wash of the icon's gradient, fading into the page */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand);
  opacity: 0.14;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}

.hero-icon {
  display: block;
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.5rem;
  border-radius: 22%;
  box-shadow: 0 14px 34px -14px rgb(232 77 33 / 0.55);
}

.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.5vw, 3.5rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 auto 1.25rem;
}

.hero h1 em {
  font-style: normal;
  white-space: nowrap;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-contrast);
}

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

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

.coming-soon {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
}

/* Screenshots */

.screenshots {
  padding-top: 0;
}

.screenshots .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem;
}

.screenshots figure {
  margin: 0;
  text-align: center;
}

.screenshots img {
  display: block;
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
  background: #1c1c1e;
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.35);
}

.screenshots figcaption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Features */

.features {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features h2 {
  margin-bottom: 1.5rem;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.feature-grid li {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(1.25rem + 3px) 1.25rem 0.25rem;
}

/* The gradient as a top stripe on each card */
.feature-grid li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand);
}

.feature-grid p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* How it works */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.steps p {
  color: var(--text-muted);
}

/* Privacy */

.about {
  font-size: 1.0625rem;
}

.about p {
  color: var(--text-muted);
}

/* Research */

.research-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.research-list li + li {
  margin-top: 0.4em;
}

.note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Compatible sites */

.sites {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.site-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 0.25rem;
}

.site-list h3 a {
  color: var(--text);
  text-decoration: none;
}

.site-list h3 a:hover {
  color: var(--accent);
}

.site-list p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* Text pages: privacy, support */

.page {
  padding-top: 3rem;
}

.page h1 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.page h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

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

.page strong {
  color: var(--text);
}

.page li + li {
  margin-top: 0.35em;
}

.updated {
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
