:root {
  color-scheme: light;

  /* Calm Daylio-ish palette */
  --bg: #eef6ff;
  --surface: #ffffff;
  --surface-soft: #f6fbff;

  --text: #0f172a;
  --muted: #556277;
  --border: rgba(15, 23, 42, 0.10);

  --accent: #19a974; /* gentle green */
  --accent-ink: #0b3b2a;
  --link: #0b66ff;

  --maxw: 1040px;
  --radius: 18px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b1220;
  --surface: #0f1a2b;
  --surface-soft: #111f33;

  --text: #e9eef8;
  --muted: #a3b2c7;
  --border: rgba(233, 238, 248, 0.12);

  --accent: #39d98a;
  --accent-ink: #052214;
  --link: #7cb4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.container {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

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

.theme-toggle {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

/* Hero */
.hero {
  background:
    radial-gradient(1100px 600px at 70% 20%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(900px 520px at 20% 10%, color-mix(in srgb, var(--link) 14%, transparent), transparent 58%),
    var(--bg);
  padding: 50px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  align-items: center;
  gap: 44px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  line-height: 1.08;
  margin: 30px 0 12px;
  letter-spacing: -0.02em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 1 0 12px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0;
}

.hero-logo {
  width: 120px;
  border-radius: 26px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.hero-trust {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-radius: 14px;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.trust-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual {
  justify-self: center;
}

.visual-card {
  width: min(380px, 92%);
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.12);
  display: grid;
  place-items: center;
  padding: 22px;
  position: relative;
  text-align: center;
  gap: 10px;
}

.visual-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.85rem;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 6px 10px;
  border-radius: 999px;
}

.visual-card img {
  width: 150px;
  border-radius: 30px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.16);
}

.visual-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

/* Main spacing */
main {
  padding: 50px 0 80px;
}

.section {
  padding: 40px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* Grid + cards */
.grid {
  display: grid;
  gap: 20px;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--text);
  fill: currentColor;
  flex: 0 0 auto;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.card-list li {
  margin: 8px 0;
}

/* Articles */
.article-list {
  display: grid;
  gap: 16px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-radius: var(--radius);
}

.article-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Store badges */
.store-badge {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-1px) scale(1.02);
  opacity: 0.92;
}

/* Screens (kept for other pages if used) */
.screens {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.screens img {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* CTA */
.cta {
  margin-top: 60px;
  padding: 26px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.cta p {
  margin: 0 0 16px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Article pages (kept) */
.page-hero {
  margin-bottom: 32px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  align-items: start;
}

.article {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2,
.article-content h3 {
  margin-top: 32px;
}

.article-content blockquote {
  margin: 24px 0;
  padding-left: 16px;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  font-size: 0.95rem;
}

.article-toc {
  position: sticky;
  top: 96px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc li {
  margin: 8px 0;
  font-size: 0.9rem;
}

.toc-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.toc-empty {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Responsive */
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 72px 0 44px;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .grid-two,
  .grid-three {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
