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

/* === Theme (from the app icon: deep green, gold lion, mint eyes) === */
:root {
  color-scheme: dark light;
  --bg-top: #0d2a22;
  --bg-bottom: #06120f;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: #10271f;
  --stroke: rgba(255, 255, 255, 0.1);
  --tint: #3ddc97;
  --accent: #f5a623;
  --text: #f3f0e6;
  --muted: #a8b8b0;
  --shadow: rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg-top: #f7f8f4;
    --bg-bottom: #eef3ee;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: #ffffff;
    --stroke: rgba(16, 39, 31, 0.12);
    --tint: #0b7a53;
    --accent: #a85a0c;
    --text: #10211b;
    --muted: #55665e;
    --shadow: rgba(16, 39, 31, 0.14);
  }
}

/* === Base === */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-bottom) linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 720px) no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--tint);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
}

/* === Hero === */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 10vw, 104px) 0 clamp(36px, 6vw, 64px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto 0;
  height: 520px;
  background:
    radial-gradient(420px 300px at 22% 40%, color-mix(in srgb, var(--tint) 20%, transparent), transparent 70%),
    radial-gradient(420px 300px at 78% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-icon {
  width: clamp(104px, 22vw, 128px);
  height: clamp(104px, 22vw, 128px);
  border-radius: 22.5%;
  margin: 0 auto 24px;
  box-shadow: 0 16px 40px var(--shadow);
}

.hero h1 {
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-tagline {
  font-size: clamp(18px, 2.6vw, 23px);
  color: var(--text);
  max-width: 620px;
  margin: 0 auto 10px;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.store-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge img {
  height: 54px;
  width: auto;
}

.hero-qr {
  display: none;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px var(--shadow);
}

.hero-qr img {
  width: 72px;
  height: 72px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* The QR code only helps when the page is open on something other than the phone. */
@media (min-width: 900px) and (hover: hover) {
  .hero-qr {
    display: block;
  }
}

/* === Screenshots === */
.screens {
  padding: 8px 0 clamp(40px, 7vw, 72px);
}

.screens-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  --gutter: max(20px, calc((100vw - 1040px) / 2));
  scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--stroke) transparent;
  -webkit-overflow-scrolling: touch;
}

.screens-track img {
  flex: 0 0 auto;
  width: min(64vw, 260px);
  aspect-ratio: 600 / 1303;
  border-radius: 26px;
  border: 1px solid var(--stroke);
  box-shadow: 0 14px 34px var(--shadow);
  scroll-snap-align: start;
  background: var(--surface-strong);
}

/* === Features === */
.features {
  padding: 0 0 clamp(48px, 8vw, 88px);
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto clamp(24px, 4vw, 40px);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 22px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 14px;
}

.feature p {
  font-size: 15px;
  color: var(--muted);
}

/* === Privacy band === */
.band {
  padding: 0 0 clamp(48px, 8vw, 88px);
}

.band-inner {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: clamp(26px, 5vw, 48px);
  text-align: center;
}

.band h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.band p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 8px;
}

.band .band-links {
  margin-top: 18px;
  font-weight: 600;
}

/* === Sub-page header (privacy, support) === */
.page-head {
  text-align: center;
  padding: 40px 0 28px;
}

.page-head .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 26px;
}

.page-head .brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.page-head .brand img {
  width: 40px;
  height: 40px;
  border-radius: 22.5%;
}

.page-head h1 {
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-head p {
  color: var(--muted);
}

/* === Text pages === */
.prose {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 38px 0 12px;
}

.prose h2:first-child {
  margin-top: 8px;
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 6px;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.prose p {
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -20px 16px;
  padding: 0 20px;
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--stroke);
  color: var(--muted);
  line-height: 1.55;
}

.prose th {
  color: var(--text);
  font-weight: 600;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin-bottom: 12px;
}

.contact-card p {
  margin-bottom: 14px;
}

.contact-card p:last-child {
  margin-bottom: 0;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #06120f;
  background: var(--tint);
  border-radius: 14px;
  padding: 12px 22px;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: opacity 180ms ease;
}

.btn:hover {
  opacity: 0.86;
  text-decoration: none;
}

@media (prefers-color-scheme: light) {
  .btn {
    color: #fff;
  }
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 22px 0 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
}

.footer-sep {
  opacity: 0.4;
}

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

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

.footer-note {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
}

/* === 404 === */
.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page img {
  width: 88px;
  height: 88px;
  border-radius: 22.5%;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px var(--shadow);
}

.error-page h1 {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 6px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 22px;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
