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

:root {
  --bg: #fdf6f0;
  --card: #ffffff;
  --ink: #4a3f4c;
  --muted: #9a8fa0;
  --accent: #e8a0bf;
  --accent-dark: #d4749e;
  --mint: #b8e0d2;
  --lavender: #d5c6e0;
  --gold: #f5d491;
  --shadow: 0 6px 24px rgba(180, 140, 160, 0.18);
}

body {
  font-family: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(160deg, #fdf6f0 0%, #fbe8ef 55%, #eef4fb 100%);
  min-height: 100vh;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.container {
  width: min(920px, 94vw);
  margin: 0 auto;
  padding: 40px 0 24px;
  flex: 1;
}

.hero { text-align: center; margin-bottom: 28px; }
.hero h1 { font-size: 2.4rem; letter-spacing: -0.5px; }
.tagline { color: var(--muted); margin-top: 10px; max-width: 560px; margin-inline: auto; }

.card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-card {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

input[type="date"], select {
  padding: 10px 14px;
  border: 2px solid #f0dce6;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--ink);
  background: #fffafc;
  outline: none;
}
input[type="date"]:focus, select:focus { border-color: var(--accent); }

button {
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 116, 158, 0.35);
  transition: transform 0.15s ease;
}
button:hover { transform: translateY(-2px); }
button:disabled { opacity: 0.6; cursor: wait; }

.error {
  text-align: center;
  color: #c0392b;
  margin-top: 16px;
  font-weight: 600;
}

.hidden { display: none !important; }

#results { margin-top: 26px; display: flex; flex-direction: column; gap: 22px; }

.row { display: flex; gap: 22px; flex-wrap: wrap; }
.row > .card { flex: 1 1 280px; }

h2 { font-size: 1.15rem; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }

.life-path-card { text-align: center; }
.lp-title { font-size: 1.25rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 10px; }
.lp-summary { text-align: left; color: var(--ink); font-size: 0.92rem; line-height: 1.55; margin-bottom: 16px; }

.lp-lists {
  display: flex;
  gap: 16px;
  text-align: left;
  margin-bottom: 16px;
}
.lp-lists > div { flex: 1; }
.lp-lists h3, .lp-parenting h3, .reading h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.lp-lists ul { list-style: none; }
.lp-lists li {
  font-size: 0.86rem;
  padding: 3px 0 3px 18px;
  position: relative;
}
#lp-strengths li::before { content: '✦'; position: absolute; left: 0; color: var(--accent); }
#lp-challenges li::before { content: '◦'; position: absolute; left: 0; color: var(--muted); }

.lp-parenting {
  text-align: left;
  background: #fdf4e6;
  border: 2px solid #f5e3c2;
  border-radius: 14px;
  padding: 12px 14px;
}
.lp-parenting p { font-size: 0.88rem; line-height: 1.5; color: #6e5a3a; }
.big-number {
  font-size: 4.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-dark), #9b6bb3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin: 12px 0 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
  margin: 0 auto;
}

.cell {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f4fbf7;
  border: 2px solid var(--mint);
  font-weight: 700;
  font-size: 1.1rem;
}
.cell .digits { font-size: 1.15rem; letter-spacing: 2px; }
.cell .label { font-size: 0.66rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.cell.missing {
  background: #fdf0f5;
  border: 2px dashed var(--accent);
  color: var(--accent-dark);
}
.cell.missing .digits { opacity: 0.55; font-size: 1rem; }

.missing-line { margin-top: 14px; text-align: center; font-weight: 600; }
.missing-line .chip { margin: 0 2px; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.chip.gold { background: var(--gold); color: #7a5c14; }
.chip.ghost { background: #fdf0f5; color: var(--accent-dark); border: 2px dashed var(--accent); }

.reading { margin-top: 18px; text-align: left; }
.reading-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f6ecf2;
}
.reading-line:last-child { border-bottom: none; }
.reading-line .chip { flex-shrink: 0; margin-top: 2px; }
.reading-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.86rem; line-height: 1.45; }
.reading-area { font-weight: 700; color: var(--accent-dark); text-transform: capitalize; }
.reading-line.missing .reading-area { color: var(--muted); }
.reading-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.reading-badge.strong { background: var(--gold); color: #7a5c14; }
.reading-badge.missing { background: #fdf0f5; color: var(--accent-dark); border: 1px dashed var(--accent); }

.suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.name-card {
  border: 2px solid #f3e6ee;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fffcfd;
}

.name-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.name-head .name { font-size: 1.3rem; font-weight: 800; }
.tags { display: flex; gap: 6px; }
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--lavender);
  color: #5d4a70;
}
.tag.girl { background: #fbdce8; color: #b3527e; }
.tag.boy { background: #d3e5f5; color: #4a6f96; }
.tag.unisex { background: var(--mint); color: #3d7a63; }

.letters { display: flex; flex-wrap: wrap; gap: 5px; }
.letter {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 26px;
  padding: 4px 3px;
  border-radius: 8px;
  background: #f6f1f8;
  font-size: 0.8rem;
  font-weight: 700;
}
.letter .num { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.letter.fills { background: var(--accent); color: #fff; }
.letter.fills .num { color: #ffe3f0; }

.fills-line { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 18px 0 26px;
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.9rem; }
  .form-card { flex-direction: column; align-items: stretch; }
}
