/* =========================================================
   Saanidhya — home page
   ========================================================= */

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Ambient breathing field — true background decor, never in layout flow */
.breath {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 620px;
  pointer-events: none;
  z-index: 0;
}

.breath circle {
  fill: none;
  stroke: var(--sage);
  opacity: 0.16;
  transform-origin: center;
  transform-box: fill-box;
}

.breath .ring-1 { animation: breathe 7s ease-in-out infinite; }
.breath .ring-2 { animation: breathe 7s ease-in-out infinite; animation-delay: 0.7s; }
.breath .ring-3 { animation: breathe 7s ease-in-out infinite; animation-delay: 1.4s; }

@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.10; }
  50%      { transform: scale(1.04); opacity: 0.22; }
}

/* Content layers above the background decor — exclude .breath so it
   stays absolute and does not create empty space */
.home > *:not(.breath) { position: relative; z-index: 1; }

.home__brand {
  margin-bottom: 2.75rem;
}

.home__intro {
  max-width: 480px;
  text-align: center;
  margin-bottom: 2rem;
}

.home__intro h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.home__intro p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Card */
.card-form {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.25rem 2rem 2rem;
}

.field {
  margin-bottom: 1.6rem;
}

.field:last-of-type {
  margin-bottom: 1.9rem;
}

.field__label {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.field__hint {
  display: block;
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.input {
  width: 100%;
  border: 1.5px solid var(--mist);
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 160ms ease;
}

.input::placeholder { color: var(--ink-faint); }

.input:focus {
  border-color: var(--sage);
  outline: none;
}

/* Chip choice groups (age band / gender) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1.5px solid var(--mist);
  background: var(--ivory);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.chip:hover {
  border-color: var(--sage);
}

.chip[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

/* Primary action */
.btn-primary {
  width: 100%;
  background: var(--sage-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.btn-primary:hover { background: var(--sage); }
.btn-primary:active { transform: scale(0.99); }

.btn-primary:disabled {
  background: var(--mist);
  color: var(--ink-faint);
  cursor: not-allowed;
}

.form-error {
  color: #A3503D;
  font-size: 0.85rem;
  margin-top: 0.9rem;
  min-height: 1.1em;
}

.home__footnote {
  max-width: 440px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  margin-top: 2rem;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .card-form { padding: 1.75rem 1.35rem; }
}
