.home {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding-top: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  background: var(--paper-alt);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral-art);
}

.display .mark {
  color: var(--coral);
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 6px;
  text-underline-offset: 6px;
}

.home-copy .lead {
  margin: 16px 0 24px;
  font-size: 1.1rem;
  max-width: 52ch;
  color: var(--muted);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.microcopy {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.home-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sprout-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 5px 0 var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sprout-bird {
  margin: 4px 0;
}

.sprout-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.sprout-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.sprout-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.last-result {
  width: 100%;
  text-align: left;
  background: var(--paper-alt);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
}

.last-result:hover {
  background: var(--surface);
}

.last-result strong {
  font-size: 1rem;
}

.last-result small {
  color: var(--muted);
  font-weight: 600;
}

.band {
  padding-top: 32px;
  border-top: 2px solid var(--line);
}

.band-intro {
  margin-bottom: 18px;
}

.band-intro p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.kid-box {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 5px 0 var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kid-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-alt);
  border: 1.5px solid var(--line);
  font-size: 0.88rem;
  font-weight: 800;
}

.status-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.status-chip.is-ready {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--good-ink);
}

.status-chip.is-ready i {
  background: var(--teal);
}

.kid-box-meta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-label {
  font-weight: 800;
  font-size: 0.94rem;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
}

.input:focus {
  background: var(--surface);
  border-color: var(--teal);
}

.field-hint {
  font-size: 0.84rem;
  color: var(--muted);
}

.kid-box-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
  border-top: 2px dashed var(--line);
}

.field-age {
  max-width: 240px;
}

.age-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-input span {
  font-weight: 700;
  color: var(--muted);
}

.kid-box-error {
  margin: 0;
  color: var(--alert-ink);
  font-weight: 800;
  flex: 1 1 220px;
}

.age-table {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.age-row {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.age-months {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.age-months small {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-left: 3px;
}

.age-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.age-copy em {
  font-style: normal;
  font-size: 0.86rem;
  color: var(--muted);
}

.domain-dots {
  display: inline-flex;
  gap: 5px;
  margin-top: auto;
}

.domain-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--d);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-no {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.step-tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-alt);
  font-size: 0.82rem;
  font-weight: 800;
}

.source-text {
  background: var(--paper-alt);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.source-text p {
  margin: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.guide-block {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-block p {
  margin: 0;
  color: var(--muted);
}

.guide-steps {
  margin: 4px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-section {
  margin-top: 28px;
}

.guide-section .h2 {
  margin-bottom: 14px;
}

.guide-domains,
.rule-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-domain,
.rule-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.guide-domain {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.guide-domain-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--d);
  margin-top: 5px;
  flex-shrink: 0;
}

.guide-domain p,
.rule-card p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.rule-score {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.rule-card.tone-good {
  border-color: var(--teal);
  background: var(--good-bg);
}

.rule-card.tone-warn {
  border-color: #B47A12;
  background: var(--warn-bg);
}

.rule-card.tone-alert {
  border-color: var(--coral);
  background: var(--alert-bg);
}

.rule-card p {
  color: var(--ink);
}

.guide-cta {
  margin-top: 28px;
  padding: 20px;
  background: var(--paper-alt);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.guide-cta p {
  margin: 0;
  max-width: 56ch;
}

@media (max-width: 960px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

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

  .age-table {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-domains,
  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home {
    gap: 28px;
  }

  .form-grid,
  .age-table,
  .steps,
  .guide-grid,
  .guide-domains,
  .rule-grid {
    grid-template-columns: 1fr;
  }

  .kid-box {
    padding: 18px;
  }

  .field-age {
    max-width: none;
    width: 100%;
  }

  .kid-box-foot .btn {
    width: 100%;
  }
}
