/* ==========================================================================
   Migraine Diary — landing page
   Extends the tokens defined in styles.css (:root vars, fonts). No overrides
   of app-specific selectors (.app, header, .day-cell, etc.) — this file only
   touches its own namespaced classes so it's safe to load alongside styles.css.
   ========================================================================== */

body.home {
  margin: 0;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  body.home * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Nav ---------- */
.home-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(27, 24, 38, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.home-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgba(169, 150, 214, 0.18);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.nav-actions .btn {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 24px 110px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 34px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Ambient aura — the app's per-day "aura" ring motif, scaled up and set
   adrift behind the hero. Same visual language as .day-cell .aura in
   styles.css, reused here as the page's signature element. */
.hero-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.hero-aura .ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  opacity: 0;
  animation: aura-drift 12s ease-in-out infinite;
}

.ring-1 { width: 260px; height: 260px; animation-delay: 0s; }
.ring-2 { width: 440px; height: 440px; animation-delay: 1.4s; }
.ring-3 { width: 640px; height: 640px; animation-delay: 2.8s; }
.ring-4 { width: 860px; height: 860px; animation-delay: 4.2s; }

@keyframes aura-drift {
  0%   { opacity: 0;    transform: scale(0.92); }
  35%  { opacity: 0.28; transform: scale(1); }
  70%  { opacity: 0.1;  transform: scale(1.05); }
  100% { opacity: 0;    transform: scale(1.1); }
}

/* ---------- About ---------- */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.about {
  padding: 20px 0 70px;
}

.about-intro {
  max-width: 620px;
  margin: 0 0 40px;
}

.about-intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.about-intro p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.feature-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Donate ---------- */
.donate {
  padding: 20px 0 90px;
  display: flex;
  justify-content: center;
}

.donate-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 44px 36px;
}

.donate-card .eyebrow { text-align: center; }

.donate-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 16px;
}

.donate-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 26px;
}

.donate-note {
  margin: 18px 0 0 !important;
  font-size: 12.5px !important;
  color: var(--text-faint) !important;
}

/* ---------- Footer ---------- */
.home-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  border-top: 1px solid var(--border);
}

.home-footer p {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.6;
  max-width: 640px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero h1 { font-size: 32px; }
  .hero-aura { width: 620px; height: 620px; }
  .ring-4 { width: 560px; height: 560px; }
  .ring-3 { width: 420px; height: 420px; }
  .ring-2 { width: 300px; height: 300px; }
  .ring-1 { width: 190px; height: 190px; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .home-nav-inner { padding: 14px 18px; }
  .brand-name { font-size: 15px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 12px; }
  .hero { padding: 60px 18px 80px; }
  .hero h1 { font-size: 27px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
