/* PetPhase site — tokens mirrored from the app (src/theme/colors.ts, typography.ts).
   Coral (#FF5C5C) is alerts-only in the app, so it is intentionally unused here. */

:root {
  --background: #F4F8FB;
  --surface: #FFFFFF;
  --primary: #1A2B4A;
  --success: #4DD4AC;
  --success-text: #1E8F73;
  --primary-action: #1A2B4A;
  --on-primary-action: #FFFFFF;
  --text-primary: #1A2B4A;
  --text-secondary: #6B7280;
  --text-tertiary: #79808E;
  --border: #E5E7EB;
  --divider: #F3F4F6;
  --hero-bg: #1A2B4A;
  --muted-surface: #F4F6F9;
  --on-fill: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0A0E1A;
    --surface: #151B2E;
    --primary: #FFFFFF;
    --success: #4DD4AC;
    --success-text: #4DD4AC;
    --primary-action: #FFFFFF;
    --on-primary-action: #1A2B4A;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;
    --border: #2D3548;
    --divider: #1F2940;
    --hero-bg: #1A2B4A;
    --muted-surface: #1F2940;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ---- Header ---- */

.site-header { padding: 20px 0; }

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.wordmark svg { width: 26px; height: 26px; fill: var(--primary); }

.header-links { display: flex; gap: 20px; }

.header-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.header-links a:hover { color: var(--text-primary); }

/* ---- Hero ---- */

.hero {
  background: var(--hero-bg);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 56px 32px;
  margin-top: 8px;
  text-align: center;
}

.hero .kicker {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--success);
}

.hero h1 {
  font-weight: 800;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-top: 12px;
}

.hero .intro {
  max-width: 640px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.hero .cta { margin-top: 32px; }

.appstore-badge { display: inline-block; line-height: 0; }

.appstore-badge svg { height: 52px; width: auto; }

.appstore-badge:hover { opacity: 0.9; }

/* ---- Features ---- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 0;
}

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

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--muted-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.feature p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

/* ---- Legal pages ---- */

.legal { max-width: 680px; margin: 0 auto; padding: 24px 24px 0; width: 100%; }

.legal h1 {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.legal .updated {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.legal .intro { margin-top: 16px; }

.legal h2 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin-top: 32px;
}

.legal p { color: var(--text-secondary); margin-top: 10px; }

.legal a { color: var(--success-text); text-decoration: none; font-weight: 500; }

.legal a:hover { text-decoration: underline; }

/* ---- Footer ---- */

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover { color: var(--text-primary); }

.footer-links { display: flex; gap: 20px; }

main { flex: 1; }

@media (max-width: 640px) {
  .hero { padding: 44px 24px; border-radius: 20px; }
  .hero h1 { font-size: 34px; }
  .features { grid-template-columns: 1fr; }
  .legal h1 { font-size: 28px; }
}
