:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --fg: #10223d;
  --muted: #4f6484;
  --card: #ffffff;
  --accent: #276ef1;
  --accent-dark: #174bb3;
  --shadow: rgba(15, 36, 69, 0.18);
}

html {
  margin: 0;
  padding: 0;
  /* background-color: var(--bg); */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2fb 65%, #ffffff 100%);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center 22%,
      rgba(177, 201, 255, 0.85) 0%,
      rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1530;
    --fg: #f2f6ff;
    --muted: #b6c3dc;
    --card: rgba(20, 34, 64, 0.78);
    --accent: #6e8cff;
    --accent-dark: #4a5dd1;
    --shadow: rgba(5, 16, 36, 0.48);
  }

  body {
    background: #070d1b;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center 18%,
        rgba(112, 148, 226, 0.4) 0%,
        rgba(9, 16, 32, 1) 100%);
    pointer-events: none;
    z-index: -1;
  }

  footer {
    background: rgba(10, 20, 42, 0.72);
  }

  .landing-page .cta .badge-link img {
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  }
}

header {
  padding: 32px 24px 24px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.brand span {
  display: inline-block;
}

.brand,
.brand:visited {
  color: inherit;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: inherit;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  box-shadow:
    0 10px 22px var(--shadow),
    inset 0 1px 4px rgba(255, 255, 255, 0.6);
}

.brand-icon picture,
.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

h1 {
  font-family: "SF Pro Rounded", "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 16px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 16px;
}

.landing-page .hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.landing-page .app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  background: var(--card);
  box-shadow:
    0 18px 32px var(--shadow),
    inset 0 1px 6px rgba(255, 255, 255, 0.65);
}

.landing-page .app-icon picture,
.landing-page .app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.landing-page .cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.landing-page .cta .badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  border-radius: 12px;
}

.landing-page .cta .badge-link img {
  height: 54px;
  width: auto;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(15, 36, 69, 0.22));
}

.landing-page .cta .badge-link:hover,
.landing-page .cta .badge-link:focus {
  transform: translateY(-2px);
}

.landing-page .cta span {
  font-size: 14px;
  color: var(--muted);
}

footer {
  padding: 32px 24px;
  background: rgba(15, 34, 61, 0.06);
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-content a {
  color: inherit;
  text-decoration: underline;
}

.footer-content a:hover,
.footer-content a:focus {
  color: var(--accent);
}

body.policy-page main {
  padding: 32px 24px 96px;
}

.policy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 36px 72px;
  background: var(--card);
  border-radius: 28px;
  box-shadow:
    0 32px 56px var(--shadow),
    inset 0 1px 6px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  color: var(--fg);
}

.policy-content h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 40px);
}

.policy-content .policy-updated {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
}

.policy-content p {
  color: var(--fg);
  margin-bottom: 16px;
}

.policy-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.policy-content ul {
  padding-left: 20px;
  margin: 0 0 20px;
  color: var(--fg);
}

.policy-content li {
  margin-bottom: 10px;
}

.policy-content a {
  color: var(--accent);
  text-decoration: underline;
}

.policy-content a:hover,
.policy-content a:focus {
  color: var(--accent-dark);
}

@media (max-width: 640px) {
  header {
    padding: 24px 20px 16px;
  }

  .landing-page .hero {
    padding: 16px 20px 60px;
  }

  .landing-page .app-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 22px;
  }

  .landing-page .cta .badge-link img {
    height: 48px;
  }

  body.policy-page main {
    padding: 24px 18px 72px;
  }

  .policy-content {
    padding: 32px 24px 56px;
    border-radius: 22px;
  }
}
