/* Junk Mail Cleaner — marketing site */
@import url("assets/tokens.css");

:root {
  --bg: var(--gc-bg);
  --surface: var(--gc-surface);
  --text: var(--gc-text);
  --muted: var(--gc-text-muted);
  --accent: var(--gc-accent);
  --accent-hover: var(--gc-accent-muted);
  --border: var(--gc-border);
  --radius: var(--gc-radius-card);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --font: var(--gc-font);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding-top: max(0px, env(safe-area-inset-top, 0px));
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--gc-radius-icon);
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
}

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

.hero {
  padding: 3rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero .tagline {
  margin: 0 auto 1.75rem;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  text-decoration: none;
}

.section {
  padding: 2rem 0 3rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.section-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36rem;
}

.section-video .wrap {
  max-width: 920px;
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.video-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-footnote {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.privacy-short {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.card li + li {
  margin-top: 0.5rem;
}

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

.site-footer a {
  color: var(--muted);
}

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

.footer-tagline {
  color: var(--muted);
  font-style: italic;
}

/* Privacy / legal pages */
.legal {
  padding: 2rem 0 4rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.legal .updated {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal .section-link-help {
  margin: -1.25rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.legal .section-link {
  margin-left: 0.35rem;
  font-size: 0.95em;
  color: var(--muted);
  text-decoration: none;
}

.legal .section-link:hover,
.legal .section-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.legal h2:target {
  scroll-margin-top: 80px;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
  color: var(--text);
}

.legal ul {
  padding-left: 1.35rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal a {
  word-break: break-word;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* 404 */
.not-found {
  padding: 3rem 0 4rem;
  text-align: center;
}

.not-found-code {
  margin: 0 0 0.75rem;
  font-size: clamp(3.25rem, 11vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--muted);
  opacity: 0.5;
}

.not-found h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.not-found .lead {
  margin: 0 auto 1.75rem;
  max-width: 440px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* —— Responsive / mobile —— */
@media (max-width: 640px) {
  .site-header .inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .brand {
    justify-content: center;
    text-align: center;
    font-size: 1rem;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 0.5rem;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero .tagline {
    font-size: 1rem;
    max-width: none;
  }

  .section {
    padding: 1.5rem 0 2.25rem;
  }

  .section h2 {
    font-size: 1.2rem;
  }

  .section-lead {
    font-size: 0.98rem;
    margin-bottom: 1rem;
  }

  .video-footnote {
    font-size: 0.85rem;
    text-align: left;
  }

  .legal {
    padding: 1.25rem 0 3rem;
  }

  .legal h1 {
    font-size: clamp(1.35rem, 6vw + 0.5rem, 1.75rem);
    line-height: 1.25;
  }

  .legal h2 {
    font-size: 1.05rem;
  }

  .not-found {
    padding: 2rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .cta-row .btn {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }

  .card {
    padding: 1.125rem 1rem 1rem;
  }

  .site-footer {
    padding: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.65;
  }

  .site-footer p {
    margin: 0;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

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

  .btn {
    transition: none;
  }
}
