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

:root {
  --primary: #284D3F;          /* DarkAccent — buttons, primary actions */
  --primary-dark: #1A3329;     /* OnLightAccent — hover state */
  --primary-light: #99C19B;    /* LightAccent — supporting elements */
  --primary-medium: #6DA370;   /* MediumAccent — secondary actions */
  --primary-subtle: #E4F0E4;   /* AccentSubtle — light tint backgrounds */
  --text: #1A2622;             /* TextPrimary */
  --text-light: #6B7C75;       /* TextSecondary */
  --bg: #FAF6F5;               /* BackgroundLight */
  --bg-surface: #FEFCFD;       /* SurfaceLight */
  --bg-light: #E4F0E4;         /* AccentSubtle — feature section bg */
  --border: #DDD8D7;           /* OutlineLight */
  --success: #6DA370;          /* MediumAccent */
  --error: #BA1A1A;            /* ErrorLight */
  --error-bg: #FFDAD6;         /* ErrorContainerLight */
  --radius: 12px;
  --max-width: 960px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ── */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero .cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.app-store-badge img {
  height: 52px;
}

.google-play-badge img {
  width: 180px !important;
  height: auto !important;
  max-width: 180px !important;
}

.hero-screenshot {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ── Features ── */
.features {
  padding: 60px 0;
  background: var(--bg-light);
}

.features h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

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

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ── Footer ── */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 12px;
}

/* ── Auth pages (reset-password, verify-email) ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card .subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40, 77, 63, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: var(--primary);
  color: #FEFCFD;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Status messages ── */
.status {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 0.95rem;
  display: none;
}

.status.success {
  display: block;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.status.error {
  display: block;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #f5b7b1;
}

/* ── Spinner ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Legal pages ── */
.legal {
  padding: 60px 0;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal p,
.legal ul {
  margin-bottom: 16px;
  color: var(--text-light);
}

.legal ul {
  padding-left: 24px;
}

.legal li {
  margin-bottom: 6px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .nav-links {
    gap: 16px;
  }
}
