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

/* ===== Theme — Light (default) ===== */
:root {
  --color-bg: #f8fafc;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-link: #3b82f6;
}

/* ===== Theme — Dark ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f172a;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-link: #60a5fa;
  }
}

/* ===== Base ===== */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
header nav,
main,
footer {
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ===== Header ===== */
header {
  border-bottom: 1px solid var(--color-border);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
}

.nav-link {
  color: var(--color-link);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link:hover {
  text-decoration: underline;
}

/* ===== Hero ===== */
#hero {
  text-align: center;
  padding-block: 5rem 3rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ===== CTA Badge ===== */
#hero .cta-badge {
  margin-bottom: 2rem;
}

.cta-badge {
  display: inline-block;
  transition: opacity 0.15s ease;
}

.cta-badge:hover {
  opacity: 0.85;
}

.cta-badge img {
  height: 75px;
  width: auto;
  border-radius: 16px;
}

.badge-border {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .badge-light {
    display: none;
  }

  .badge-border {
    display: inline;
  }
}

.nav-link:focus-visible,
.cta-badge:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== Screenshots ===== */
#screenshots {
  text-align: center;
  padding-block: 1rem 4rem;
}

.screenshot {
  display: block;
  width: 80%;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
}

#screenshots .cta-badge {
  margin-top: 1rem;
}

/* ===== Privacy ===== */
#privacy {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: 3rem 4rem;
}

#privacy h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.last-updated {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

#privacy h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

#privacy p {
  margin-bottom: 1rem;
}

#privacy ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

#privacy li {
  margin-bottom: 0.5rem;
}

/* ===== Support ===== */
#support {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: 3rem 4rem;
}

#support h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 2rem;
}

#support h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

#support h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

#support p {
  margin-bottom: 1rem;
}

#support ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

#support li {
  margin-bottom: 0.5rem;
}

#support code {
  font-size: 0.875em;
  background: var(--color-border);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

#support a {
  color: var(--color-link);
  text-decoration: none;
}

#support a:hover {
  text-decoration: underline;
}

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

footer p {
  padding-block: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
