/* Talk with Mira Mam — public SEO landing */
.page-talk-mam {
  --tm-rose: #fb7185;
  --tm-leaf: #2f6b45;
}

.tm-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) 1rem 1rem;
  text-align: center;
}

@media (min-width: 780px) {
  .tm-hero {
    grid-template-columns: 1.15fr 0.85fr;
    text-align: left;
  }
  .tm-hero .learn-hero-actions { justify-content: flex-start; }
  .tm-hero .learn-lead { margin-left: 0; }
}

.tm-hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 800;
}

.tm-auth-hint {
  font-size: 0.88rem;
  color: #5a6f64;
  margin: 0.85rem 0 0;
}

.tm-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tm-mira {
  width: min(220px, 55vw);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(47, 107, 69, 0.18));
  animation: tm-float 4.5s ease-in-out infinite;
}

@keyframes tm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.tm-mira-caption {
  margin: 0.35rem 0 0;
  font-weight: 800;
  color: var(--tm-leaf);
}

.tm-main .learn-sec h2 {
  scroll-margin-top: 4.5rem;
}

.tm-content-sec p,
.tm-guide-sec p {
  color: #2f4639;
  font-size: 1.01rem;
  line-height: 1.75;
  margin: 0 0 0.85rem;
}

.tm-content-sec p:last-child,
.tm-guide-sec p:last-child {
  margin-bottom: 0;
}

.tm-content-sec p + p {
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(47, 107, 69, 0.16);
}

.tm-guide-sec {
  background: linear-gradient(155deg, #fffdf8 0%, #f2faf5 100%);
  border-left: 4px solid var(--tm-leaf);
}

.tm-howto {
  margin-top: 2rem;
  padding: 1.5rem 1.15rem 2rem;
  background: linear-gradient(165deg, #fffdf8 0%, #eef8f2 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(47, 107, 69, 0.12);
}

.tm-howto h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
}

.tm-howto-lead {
  color: #3d5348;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.tm-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tm-step;
  display: grid;
  gap: 0.85rem;
}

.tm-steps li {
  counter-increment: tm-step;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 34, 0.08);
  scroll-margin-top: 4.5rem;
}

.tm-steps li::before {
  content: counter(tm-step);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--tm-leaf);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.tm-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.tm-steps p {
  margin: 0;
  color: #3d5348;
  line-height: 1.55;
  font-size: 0.98rem;
}

.tm-howto-cta {
  margin-top: 1.35rem;
}

.tm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 35, 25, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.tm-modal-backdrop.hidden { display: none; }

.tm-modal {
  position: relative;
  width: min(400px, 100%);
  background: #fffdf8;
  border-radius: 1.1rem;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.tm-modal h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.tm-modal p { margin: 0 0 0.85rem; color: #3d5348; font-size: 0.95rem; }
.tm-modal label { display: block; font-weight: 700; margin: 0.5rem 0 0.25rem; font-size: 0.9rem; }
.tm-modal input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid #c5d5cb;
  font: inherit;
}
.tm-modal .err {
  color: #b91c1c;
  min-height: 1.2em;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.tm-modal .hidden { display: none !important; }
.tm-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #5a6f64;
}
