/* SafeSpoon — shared site styles */

/* ── Custom properties ── */
:root {
  --primary:        #4F8A5B;
  --primary-light:  #7DB88A;
  --primary-dark:   #2E6B3C;
  --secondary:      #F5A623;
  --bg:             #FAFAF8;
  --surface:        #FFFFFF;
  --text:           #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted:     #9CA3AF;
  --border:         #E5E7EB;
  --warning-bg:     #FEF3C7;
  --warning-border: #D97706;
  --warning-text:   #92400E;
}

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

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

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { display: block; }

a { color: var(--primary); }

/* ── Site header ── */
.site-header {
  background-color: var(--primary);
  padding: 0.875rem 1.5rem;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.1;
}

.brand-tagline {
  font-weight: 600;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

/* ── Site footer ── */
.site-footer {
  background-color: #F3F4F6;
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-links a:hover { text-decoration: underline; }

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

/* ── Coming Soon — hero ── */
.hero {
  background: linear-gradient(175deg, #EBF5EE 0%, var(--bg) 55%);
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 580px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background-color: var(--secondary);
  color: #fff;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(79, 138, 91, 0.28);
  margin: 0 auto 1.25rem;
}

.hero-title {
  font-weight: 800;
  font-size: 3rem;
  color: var(--primary-dark);
  line-height: 1.05;
  margin-bottom: 0.375rem;
}

.hero-subtitle {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.hero-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hero-launch::before,
.hero-launch::after {
  content: '';
  display: block;
  height: 1px;
  width: 32px;
  background: var(--border);
}

/* ── Coming Soon — features ── */
.features {
  padding: 3rem 1.5rem 3.5rem;
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
}

.features-heading {
  text-align: center;
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.feature-emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.feature-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Legal pages ── */
.legal-main {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem 2rem;
}

.legal-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 2rem 2.25rem;
}

.legal-title {
  font-weight: 800;
  font-size: 1.625rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.legal-disclaimer {
  background-color: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warning-text);
}

.legal-section {
  margin-bottom: 1.75rem;
}

.legal-section:last-child { margin-bottom: 0; }

.section-heading {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
}

.legal-section p {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section p.caps {
  font-weight: 600;
  color: var(--text);
}

.legal-section ul {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
}

.legal-section ul li {
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.2rem 0 0.2rem 1.25rem;
  position: relative;
}

.legal-section ul li::before {
  content: '•';
  color: var(--primary);
  font-weight: 800;
  position: absolute;
  left: 0;
}

.legal-section ul li strong { font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }

  .hero-title { font-size: 2.25rem; }
  .hero-icon  { width: 80px; height: 80px; }

  .features-grid { grid-template-columns: 1fr; }

  .legal-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }

  .legal-title { font-size: 1.375rem; }
}
