/* Everyday Family — Modern, Conversion-Focused, Mobile-First Stylesheet */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #2563eb;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --alert-bg: #fffbeb;
  --alert-border: #fcd34d;
  --alert-text: #92400e;
  --error-bg: #fef2f2;
  --error-border: #fca5a5;
  --error-text: #b91c1c;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, -apple-system, Helvetica, Arial, sans-serif;
  --max-width: 760px;
  --max-width-wide: 1060px;
}

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

body {
  font-family: var(--font-stack);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-wide {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--primary);
  text-decoration: none;
}

.tag-badge {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 0.8125rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Hero Section (Above the Fold) */
.hero-section {
  padding: 1.5rem 0 2rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.88fr;
    gap: 2.25rem;
    align-items: start;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

@media (min-width: 900px) {
  .hero-left {
    gap: 0.95rem;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.hero-headline {
  font-size: 2.2rem;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  text-wrap: balance;
  max-width: 540px;
}

.break-desktop {
  display: none;
}

@media (min-width: 900px) {
  .hero-headline {
    font-size: 2.65rem;
  }
  .break-desktop {
    display: inline;
  }
}

.hero-subcopy {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  max-width: 500px;
}

/* Single Short Dialogue Example */
.hero-dialogue-block {
  width: 100%;
}

.dialogue-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 3.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hero Image Styling */
.hero-image-block {
  width: 100%;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: block;
}

@media (min-width: 900px) {
  .hero-image {
    max-height: 220px;
  }
}

.dialogue-parent {
  font-size: 0.96875rem;
  font-weight: 600;
  color: var(--text-main);
}

.dialogue-arrow {
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 0 0.5rem;
}

.dialogue-child {
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 700;
  color: #b91c1c;
  background: #fef2f2;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Compact Prominent Lead Card (Above the Fold) */
.hero-right {
  width: 100%;
}

.lead-card {
  background-color: var(--bg-surface);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

@media (min-width: 600px) {
  .lead-card {
    padding: 2rem 1.75rem;
  }
}

.lead-card-header {
  margin-bottom: 1.25rem;
  text-align: left;
}

.lead-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.lead-card-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.05rem;
}

.form-label {
  display: block;
  font-size: 0.84375rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.form-label .optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.8125rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.96875rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

.other-situation-wrapper {
  margin-top: 0.65rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 0.825rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 48px;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.25);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.reassurance-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0.8rem;
  text-align: center;
}

.reassurance-note svg {
  width: 14px;
  height: 14px;
  color: #10b981;
}

/* Problem Section */
.problem-section {
  padding: 4.5rem 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.section-headline {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .section-headline {
    font-size: 2.15rem;
  }
}

.text-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.text-body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.text-body:last-child {
  margin-bottom: 0;
}

.problem-dialogues {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
  max-width: 540px;
}

/* What is being developed */
.development-section {
  padding: 4.5rem 0;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
}

.development-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

/* Situations Covered Grid */
.situations-section {
  padding: 4.5rem 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.situations-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.situations-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.situations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 960px) {
  .situations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.situation-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.situation-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

.situation-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.situation-title {
  font-size: 0.96875rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* Second CTA Section */
.second-cta-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-page) 0%, #ffffff 100%);
}

.second-cta-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

/* Alert Boxes */
.alert-box {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.alert-warning {
  background-color: var(--alert-bg);
  border: 1px solid var(--alert-border);
  color: var(--alert-text);
}

.alert-error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.alert-box code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
  background-color: var(--bg-surface);
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.75rem;
}

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

.footer-disclaimer {
  max-width: 600px;
  margin: 0.5rem auto 1rem;
  line-height: 1.5;
}

/* Utilities */
.hidden {
  display: none !important;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Thank You & Privacy Styles (Preserved) */
.confirmation-section {
  padding: 4rem 0 3rem;
  text-align: center;
}

.icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.confirmation-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.confirmation-card h1 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-align: center;
}

.next-steps-list {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.next-steps-list li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  font-size: 0.9375rem;
}

.policy-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.policy-card h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.policy-card h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}

.policy-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
