:root {
  --bg-main: #f5f5f7;
  --bg-section-alt: #eef2ff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout helpers */

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 600;
}

.logo-text {
  letter-spacing: 0.03em;
}

.logo-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: var(--text-main);
  background: rgba(229, 231, 235, 0.8);
}

.nav-cta {
  background: var(--accent);
  color: #ffffff !important;
  padding-inline: 0.85rem;
}

.nav-cta:hover {
  background: var(--accent-strong);
}

/* Hero */

.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #e5efff, #f5f5f7);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 3vw + 1.5rem, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 34rem;
}

.hero-cta-group {
  margin-top: 2rem;
}

.small-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #f9fafb;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.5);
}

.btn-large {
  font-size: 1.05rem;
  padding-inline: 1.8rem;
}

/* Hero visual: featured image (no stretching) */

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-card {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.featured-card img {
  display: block;
  width: 100%;
  height: auto; /* keep original aspect ratio */
}

.feature-caption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sections */

.section {
  padding: 4rem 0;
  background: var(--bg-main);
}

.section-alt {
  background: var(--bg-section-alt);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.section-intro {
  color: var(--text-muted);
}

/* Grids */

.grid {
  display: grid;
  gap: 1.5rem;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

/* Cards */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

/* Steps */

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.7rem;
  margin-top: 1.5rem;
}

.step {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid #d4d4d8;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.25);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* Screenshots */

.screenshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.8rem;
}

.screenshot-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
}

.screenshot-card img {
  width: 100%;
  height: auto; /* keep natural aspect ratio */
  display: block;
}

.screenshot-card figcaption {
  padding: 0.8rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ */

.faq-list {
  margin-top: 1.5rem;
}

.faq-list details {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] {
  border-color: #c4b5fd;
}

.faq-list p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

/* Download section */

.section-download {
  text-align: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1.2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Fade-in animation */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .nav-container {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .nav {
    justify-content: flex-start;
  }
}

/* Mental health benefits section */

.benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.benefits-grid .card {
  /* reuse existing .card styles; extra spacing: */
  min-height: 0;
}

.research-note {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 44rem;
}

/* Full-width feature image below FAQ */
/* Feature image with same max width & alignment as main content */
.feature-fullbleed {
  padding: 2.5rem 1.5rem 0;    /* same horizontal padding as .container */
  background: var(--bg-main);  /* keep page background consistent */
}

.feature-fullbleed img {
  display: block;
  width: 100%;
  max-width: 1100px;           /* matches .container’s max width */
  margin: 0 auto;              /* center it */
  height: auto;                /* preserve aspect ratio */
  border-radius: 1.25rem;      /* optional: same radius as cards */
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); /* optional: subtle lift */
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }
}
