/* SkyFarm — Shared Stylesheet */

:root {
  --blue-900: #001F3F;
  --blue-800: #003366;
  --blue-700: #004C99;
  --blue-600: #0066CC;
  --blue-500: #3B82F6;
  --blue-100: #EBF5FF;
  --bg: #EFF2FA;
  --surface: #FFFFFF;
  --surface-alt: #F9FAFB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--blue-900);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ── */
.nav {
  background: var(--blue-900);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.nav-links a:hover {
  color: white;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(59,130,246,0.25);
  border: 1px solid rgba(59,130,246,0.4);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #93c5fd;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--blue-600);
  color: white;
}

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

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
}

/* ── Features grid ── */
.section {
  padding: 4rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: 0.975rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0,31,63,0.1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Page content (legal/about pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  color: white;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  flex: 1;
}

.page-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.25rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.page-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.page-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.page-body ul, .page-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-body li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.35rem;
}

.page-body a {
  color: var(--blue-600);
  text-decoration: none;
}

.page-body a:hover {
  text-decoration: underline;
}

.info-box {
  background: var(--blue-100);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.info-box p {
  margin: 0;
  color: var(--blue-800);
  font-size: 0.9rem;
}

/* ── About page ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.team-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
}

.team-card h3 {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Support page ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.support-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue-600);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.support-card p, .support-card a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.support-card a:hover {
  color: var(--blue-600);
}

/* ── FAQ ── */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-q {
  padding: 1.1rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-a {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}

/* ── Stats strip ── */
.stats-strip {
  background: var(--blue-900);
  padding: 3rem 2rem;
  color: white;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 4px;
}

/* ── Store badges ── */
.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-900);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}

.store-badge:hover {
  background: var(--blue-800);
}

.store-badge svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.store-badge-text small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.store-badge-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Footer ── */
footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.55);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 240px;
}

.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ── Delete account page ── */
.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps-list li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.steps-list li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  background: var(--blue-600);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.steps-list li p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.steps-list li strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.warning-box {
  background: #FFF7ED;
  border-left: 4px solid var(--warning);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.warning-box p {
  margin: 0;
  color: #92400E;
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blue-900);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.95rem;
  }

  .hamburger {
    display: flex;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .page-hero {
    padding: 2.5rem 1.25rem 2rem;
  }

  .page-body {
    padding: 2rem 1.25rem 3rem;
  }
}
