/* 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: 1.25rem 0 1.75rem;
}

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

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

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

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

.hero-badge {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36rem;
  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%;
  height: auto;
  display: block;
}

/* Hero banner: compact; corners match --background */
.hero-image--banner {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: var(--background);
  box-shadow: none;
}

.hero-image--banner img {
  width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px var(--shadow-lg);
}

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

.store-ctas--centered {
  margin-top: 1rem;
}

/* Shared section rhythm (homepage) */
.section-block {
  padding: 1.75rem 0;
}

/* Features */
.features {
  padding: 1.75rem 0 2rem;
}

.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 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

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

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

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

.feature-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem 1.125rem;
  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: 0.75rem 0 0.375rem;
  font-size: 1.0625rem;
  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);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0.5rem;
}

.feature-image img {
  width: 100%;
  max-width: min(456px, 100%);
  height: auto;
  object-fit: contain;
  object-position: center top;
  margin-inline: auto;
  image-rendering: -webkit-optimize-contrast;
}

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

/* Get the app */
.get-app {
  padding: 1.5rem 0 1.75rem;
  text-align: center;
}

.get-app-note {
  margin: 0.875rem auto 0;
  max-width: 32rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Feedback form */
.feedback {
  padding: 1.5rem 0 2.5rem;
}

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

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

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

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

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  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);
}

.feedback-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--muted);
}

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

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

.hidden {
  display: none !important;
}

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

.form-success p {
  margin: 0;
}

/* About page */
.about-page {
  max-width: 52rem;
  margin: 2rem auto;
  padding: 0 1.25rem 2.5rem;
}

.about-page h1 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
}

.about-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .about-layout {
    grid-template-columns: minmax(0, 16rem) 1fr;
    gap: 2.5rem;
  }
}

.about-portrait {
  margin: 0 auto;
  max-width: min(100%, 18rem);
}

.about-portrait img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow-lg);
}

.about-bio p {
  margin: 0 0 1.25rem;
  line-height: 1.65;
  color: var(--foreground);
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-ctas {
  margin-top: 2.5rem;
  text-align: center;
}

.legal-page {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.25rem 2.5rem;
}

/* 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: 1.5rem 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);
}

/* Join / auth bridge pages (itav/join-bridge.html, etc.) */
.join-bridge-steps {
  margin: 1.75rem 0 1.25rem;
  padding: 1.25rem 1.25rem 1rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px var(--shadow);
}

.join-bridge-steps-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.join-bridge-steps-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--foreground);
  font-size: 0.9375rem;
}

.join-bridge-steps-list li + li {
  margin-top: 0.5rem;
}

.join-bridge-notice {
  margin: 1rem 0 0;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  text-align: left;
}

.join-bridge-notice--warn {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
}

.join-bridge-store-ctas {
  margin-top: 0.5rem;
}

.join-bridge-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 36rem;
}
