/* Everyday Family — H3 Calm-Down Corner Stylesheet
 * Mobile-first, responsive, accessible, calming, warm visual design
 */

:root {
  /* Palette: Warm linen, deep slate-teal, soft sage, warm amber honey */
  --bg-page: #FAF8F4;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3EFE9;
  --bg-card: #FFFFFF;
  --bg-teal-soft: #EDF5F6;
  --bg-sage-soft: #EFF4EE;
  --bg-amber-soft: #FDF4EB;

  --color-primary: #D47E35;
  --color-primary-hover: #BF6C26;
  --color-primary-light: #FDF3E7;

  --color-teal: #234E5A;
  --color-teal-dark: #193B45;
  --color-teal-light: #E4F0F2;

  --color-sage: #3E6B5C;
  --color-sage-light: #E9F1EC;

  --text-main: #212529;
  --text-muted: #596166;
  --text-light: #7E878C;

  --border-color: #E6E1D7;
  --border-subtle: #F0EBE2;
  --border-focus: #234E5A;

  --status-error-bg: #FDF2F2;
  --status-error-text: #991B1B;
  --status-error-border: #F87171;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(33, 37, 41, 0.05);
  --shadow-md: 0 4px 16px rgba(33, 37, 41, 0.07);
  --shadow-lg: 0 12px 32px rgba(25, 59, 69, 0.1);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w-content: 1120px;
  --max-w-narrow: 760px;
  --max-w-form: 520px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* Header */
.site-header {
  background-color: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-teal);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-block;
}

.badge-tag {
  display: inline-block;
  background-color: var(--bg-teal-soft);
  color: var(--color-teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-teal-light);
  letter-spacing: 0.02em;
}

/* Hero Section */
.hero-section {
  padding: 2rem 0 3.5rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-intro {
  text-align: left;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2.1rem;
  line-height: 1.18;
  font-weight: 800;
  color: var(--color-teal-dark);
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
}

.hero-subhead {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 620px;
}

/* Hero Media (Image) */
.hero-media {
  width: 100%;
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Lead Form Card (Hero & Secondary) */
.hero-form-container {
  width: 100%;
}

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

.form-header {
  margin-bottom: 1.25rem;
}

.form-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}

.form-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.optional-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  background-color: var(--bg-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23596166' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(35, 78, 90, 0.15);
}

.form-submit-btn {
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  color: #FFFFFF;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(212, 126, 53, 0.25);
  margin-top: 0.25rem;
}

.form-submit-btn:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 6px 16px rgba(212, 126, 53, 0.35);
}

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

.form-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
  text-align: center;
  margin-top: 0.35rem;
}

.form-status-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.4;
}

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

.hidden {
  display: none !important;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Section Shared Styling */
.section-problem,
.section-concept,
.section-developing,
.section-cta-secondary {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-color);
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.section-heading {
  font-size: 1.85rem;
  line-height: 1.22;
  font-weight: 800;
  color: var(--color-teal-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 2rem;
}

/* Problem / Recognition Section */
.section-problem {
  background-color: var(--bg-surface);
}

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

.moment-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.moment-card:hover {
  border-color: var(--border-color);
}

.moment-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-teal-soft);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.moment-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin-bottom: 0.35rem;
}

.moment-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Core Idea Section */
.section-concept {
  background-color: var(--bg-page);
}

.concept-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.concept-box p {
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.6;
}

.components-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.component-item {
  background-color: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.component-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-sage-soft);
  color: var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.component-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.component-info p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.concept-notice {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background-color: var(--bg-teal-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-teal);
}

.concept-notice p {
  font-size: 0.9rem;
  color: var(--color-teal-dark);
  line-height: 1.5;
}

/* What We Are Developing */
.section-developing {
  background-color: var(--bg-surface);
}

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

.kit-card {
  padding: 1.25rem;
  background-color: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.kit-badge-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--color-teal);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kit-details h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin-bottom: 0.3rem;
}

.kit-details p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.guidance-banner {
  background-color: var(--bg-amber-soft);
  border: 1px solid #F5D3B3;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.guidance-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.guidance-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #7A3E0E;
  margin-bottom: 0.25rem;
}

.guidance-text p {
  font-size: 0.95rem;
  color: #7A3E0E;
  line-height: 1.5;
}

/* Secondary CTA Section */
.section-cta-secondary {
  background-color: var(--bg-page);
  padding-bottom: 4.5rem;
}

.cta-secondary-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: var(--max-w-form);
  margin: 0 auto;
}

/* Confirmation / Thank-You Page */
.confirmation-section {
  padding: 3.5rem 0 5rem;
}

.confirmation-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 1.75rem;
  max-width: 620px;
}

.confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--bg-teal-soft);
  color: var(--color-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.confirmation-card h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-teal-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.confirmation-situation-pill {
  display: inline-block;
  background-color: var(--bg-teal-soft);
  color: var(--color-teal);
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-teal-light);
  margin-bottom: 1.25rem;
}

.confirmation-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.confirmation-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  margin: 1.75rem 0 2rem;
  padding: 1.25rem;
  background-color: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.confirmation-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.45;
}

.confirmation-points svg {
  flex-shrink: 0;
  color: var(--color-sage);
  margin-top: 0.15rem;
}

.brand-link {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.brand-link:hover {
  color: var(--color-teal-dark);
}

/* Privacy Page */
.policy-content {
  padding: 3rem 0 4rem;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.policy-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-teal-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.policy-date {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.policy-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.policy-content p {
  font-size: 1.025rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.policy-content ul {
  margin: 0 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.policy-content li {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.55;
}

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

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.footer-disclaimer {
  max-width: 680px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Media Queries (Responsive Breakpoints) */
@media (min-width: 640px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .moments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .components-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kit-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-card {
    padding: 2rem;
  }
}

@media (min-width: 960px) {
  .hero-section {
    padding: 3rem 0 4.5rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    grid-template-rows: auto auto;
    column-gap: 2.75rem;
    row-gap: 1.5rem;
    align-items: start;
  }

  .hero-intro {
    grid-column: 1 / 3;
    max-width: 820px;
  }

  .hero-media {
    grid-column: 1 / 2;
  }

  .hero-form-container {
    grid-column: 2 / 3;
  }

  .hero-title {
    font-size: 2.85rem;
  }

  .hero-subhead {
    font-size: 1.25rem;
  }

  .moments-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .components-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kit-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}
