:root {
  --accent: #6366f1;
  --accent-hover: #3730a3;
  --card-bg: #fff;
  --card-bg-mobile: #f9faff;
  --shadow: 0 2px 18px rgba(130,137,217,0.09);
  --shadow-hover: 0 8px 32px rgba(99,102,241,.10), 0 2px 8px rgba(60,80,160,.10);
}

/* ========== General ========== */
html, body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f6f7fb;
  color: #232346;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ========== Sticky Top Nav ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f0f6ff;
  box-shadow: 0 1px 10px rgba(60,80,160,.08);
  padding: 1rem 1.2rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
header a, .nav-link {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.07rem;
  padding: 0.2em 0.5em;
  border-radius: 0.6em;
  transition: background .15s, color .15s;
  cursor: pointer;
  font-family: inherit;
}
header a:hover, .nav-link:hover {
  background: #e0e7ff;
  color: var(--accent-hover);
}

/* ========== Main Content ========== */
main {
  width: 100%;
  padding: 1.8rem 2.5vw 2.5rem 2.5vw;
  min-height: 60vh;
  background: #fff;
  box-sizing: border-box;
}
main.fill-vertical {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 0;
}

/* ========== Hero Section ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2.5rem 0 2.7rem 0;
  background: linear-gradient(100deg, #e0e7ff 0%, #f0f6ff 100%);
  border-radius: 2.1rem;
  box-shadow: 0 4px 32px rgba(130, 137, 217, 0.09);
  margin-bottom: 2.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content {
  flex: 1 1 60%;
  min-width: 250px;
  padding-left: 2.5rem;
}
.hero-title {
  font-size: 2.3rem;
  color: #232346;
  font-weight: 800;
  margin-bottom: 0.35em;
}
.hero-subtitle {
  font-size: 1.45rem;
  font-weight: 600;
  color: #4547af;
  margin-bottom: 0.7em;
}
.hero-description {
  font-size: 1.18rem;
  color: #5b5f86;
  font-weight: 500;
  line-height: 1.6;
  max-width: 520px;
}
.hero-image {
  flex: 1 1 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding-right: 2.5rem;
}
.hero-image img {
  max-width: 340px;
  width: 100%;
  border-radius: 1.8rem;
  box-shadow: 0 8px 36px rgba(99,102,241,.16), 0 2px 8px rgba(60,80,160,.08);
  object-fit: cover;
  border: 2.5px solid #e0e7ff;
  background: #fff;
}

/* ========== Features Section ========== */
.features {
  max-width: 1100px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}
.feature-card,
.feature-card.reverse {
  display: flex;
  align-items: center;
  gap: 2.3rem;
  background: var(--card-bg);
  border-radius: 1.8rem;
  box-shadow: var(--shadow);
  padding: 1.8rem 2.3rem;
  transition: box-shadow .19s;
  margin-bottom: 0;
  box-sizing: border-box;
}
.feature-card:hover,
.feature-card.reverse:hover {
  box-shadow: var(--shadow-hover);
}
.feature-card.reverse {
  flex-direction: row-reverse;
}

.feature-img {
  flex: 0 0 175px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-img img {
  width: 150px;
  height: 150px;
  border-radius: 1.2rem;
  object-fit: cover;
  box-shadow: 0 3px 15px rgba(130,137,217,0.11);
  border: 2px solid #e0e7ff;
  background: #f8fafc;
  transition: border-radius 0.2s;
}
.feature-text {
  flex: 1 1 70%;
  min-width: 170px;
}
.feature-text h3 {
  color: #3730a3;
  font-size: 1.24rem;
  font-weight: 700;
  margin: 0 0 .45em 0;
}
.feature-text p {
  color: #4b4f80;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

/* ========== Headings ========== */
h1, h2, h3, h4 {
  color: #3730a3;
  margin-top: 0;
  font-family: inherit;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.45rem; }

/* ========== Links ========== */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color .14s;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ========== Footer ========== */
footer {
  background: #f0f6ff;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  text-align: center;
  color: #7073c0;
  font-size: 1rem;
  border-top: 1px solid #e0e7ff;
  margin-top: 2.5rem;
}
footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: .8rem;
}
footer .footer-links a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
footer .footer-links a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

/* ========== Responsive Modern Mobile ========== */
@media (max-width: 900px) {
  .hero, .features {
    max-width: 98vw;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .hero-content, .hero-image {
    padding: 0;
  }
}

@media (max-width: 700px) {
  main {
    padding: 0.7rem 0.3rem 1.5rem 0.3rem;
    background: #f6f7fb;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.5rem;
  }
  header nav {
    gap: 0.9rem;
  }
  .hero {
    flex-direction: column;
    padding: 1.2rem 0 1.4rem 0;
    gap: 1.2rem;
    border-radius: 1.3rem;
    box-shadow: 0 2px 12px rgba(130, 137, 217, 0.10);
    background: linear-gradient(104deg, #e0e7ff 60%, #f0f6ff 100%);
    margin-bottom: 1.4rem;
    max-width: 98vw;
  }
  .hero-content {
    padding: 0 0.6rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 1.13rem;
  }
  .hero-description {
    font-size: 1.02rem;
    max-width: 100vw;
  }
  .hero-image img {
    max-width: 92vw;
    min-width: 0;
    border-radius: 1.1rem;
    box-shadow: 0 3px 15px rgba(99,102,241,.12);
    margin-top: 0.6rem;
  }
  .features {
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    padding: 0;
  }
  .feature-card, .feature-card.reverse {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    background: var(--card-bg-mobile);
    box-shadow: 0 1px 8px rgba(99,102,241,.08);
    border-radius: 1.1rem;
    padding: 1.1rem 0.6rem;
    gap: 0.7rem;
    text-align: center;
    margin-bottom: 1.2rem;
    border: 1.5px solid #e5e7fa;
    /* Remove reverse stacking: all cards same layout */
    flex-direction: unset;
  }
  .feature-img {
    justify-content: center;
    align-items: center;
    margin-bottom: 0.2rem;
  }
  .feature-img img {
    width: 80px;
    height: 80px;
    border-radius: 0.8rem;
    box-shadow: 0 1px 6px rgba(130,137,217,0.08);
    border: 1px solid #e0e7ff;
  }
  .feature-text {
    padding: 0 0.4rem;
    min-width: 0;
  }
  .feature-text h3 {
    margin-top: 0.5em;
    margin-bottom: 0.3em;
    font-size: 1.08rem;
  }
  .feature-text p {
    font-size: 0.98rem;
  }
  /* Visual separation between feature cards */
  .feature-card:not(:last-child) {
    border-bottom: 1px solid #f0f0f5;
  }
}

/* ========== Utility ========== */
hr.idea-divider { display: none; }
ul, li { all: unset; }

.child-group select, 
.child-group input[type="number"], 
.child-group input[type="text"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  border: 1.5px solid #e0e7ff;
  border-radius: 0.8em;
  box-shadow: 0 2px 12px rgba(99,102,241,0.04);
  font-family: inherit;
  font-size: 1.08rem;
  padding: 0.55em 2.1em 0.55em 0.95em;
  color: #232346;
  transition: border 0.17s, box-shadow 0.17s;
  outline: none;
  margin-right: 0.4em;
}

.child-group select:focus {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 2px #6366f130;
}

/* Add a custom arrow to the select */
.child-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L8 8L14 2' stroke='%236366f1' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  background-size: 1.3em 0.7em;
  cursor: pointer;
}

/* Remove default arrow in Firefox */
.child-group select::-ms-expand { display: none; }
.child-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Responsive for small screens */
@media (max-width: 700px) {
  .child-group select {
    font-size: 1rem;
    padding-right: 1.6em;
  }
}

#addChildBtn {
  margin-top: 1.5em;
}


