/* It Takes A Village – marketing site theme (matches app light theme) */
:root {
  --background: #E8F1F2;
  --foreground: #2D5873;
  --primary: #2D5873;
  --primary-foreground: #ffffff;
  --accent: #E9A595;
  --accent-foreground: #ffffff;
  --card: #ffffff;
  --card-foreground: #2D5873;
  --muted: #7BA7BC;
  --muted-bg: #f3f4f6;
  --border: rgba(45, 88, 115, 0.2);
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: #1e4054;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  background: #e08f7d;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--muted-bg);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
  line-height: 0;
}

.logo:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.logo img {
  display: block;
  height: 2.5rem;
  width: auto;
  vertical-align: middle;
  border: none;
  background: transparent;
}

.logo-text {
  margin-left: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.logo:hover .logo-text,
.logo:focus .logo-text {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--foreground);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--primary);
}

.btn-header {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
}

.btn-header:hover {
  background: #e08f7d;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 639px) {
  .header-inner {
    gap: 1rem;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav a:not(.btn) {
    font-size: 0.875rem;
  }

  .logo img {
    height: 2.25rem;
  }
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-text {
  max-width: 42rem;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0 4rem;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-image {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 20px var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  object-fit: cover;
}

/* Features */
.features {
  padding: 3rem 0 4rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.section-subtitle {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.section-lead {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 6px 20px var(--shadow-lg);
}

.feature-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.feature-image {
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--muted-bg);
  aspect-ratio: 3 / 4;
  min-height: 280px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.feature-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

/* Waitlist */
.waitlist {
  padding: 3rem 0 4rem;
}

.waitlist-card {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow-lg);
}

.waitlist-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.waitlist-card > p {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.waitlist-form .form-row {
  margin-bottom: 1rem;
}

.waitlist-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--foreground);
}

.waitlist-form input::placeholder {
  color: var(--muted);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 88, 115, 0.15);
}

.waitlist-form .btn {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
}

.hidden {
  display: none !important;
}

.waitlist-success {
  padding: 1rem 0 0;
  font-weight: 500;
  color: var(--primary);
}

.waitlist-success p {
  margin: 0;
}

/* Honeypot and a11y */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

form .hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.footer-brand {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
}

.footer-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-links {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--muted);
}

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