.seo-tool {
  margin: 26px 0 34px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, var(--cream));
  box-shadow: var(--shadow-sm);
}

.seo-tool-header {
  max-width: 720px;
  margin-bottom: 22px;
}

.seo-tool-header h2,
.seo-tool-header h3 {
  margin: 6px 0 8px;
}

.seo-tool-header p {
  margin: 0;
  color: var(--muted);
}

.seo-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: end;
}

.seo-tool .form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.seo-tool .form-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.seo-tool .form-field input:focus {
  outline: 3px solid rgba(245, 142, 115, .25);
  border-color: var(--coral-deep);
}

.seo-tool-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.seo-tool-output > div {
  min-height: 104px;
  padding: 16px;
  border-radius: 15px;
  background: var(--sage-100);
}

.seo-tool-output span,
.date-route span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.seo-tool-output strong {
  display: block;
  color: var(--ink-deep);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.date-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.date-route {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.date-route strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-deep);
  font-size: 1.15rem;
}

.date-route p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.seo-tool-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .75rem;
}

.seo-topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
}

.seo-topic-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .75rem;
  font-weight: 800;
}

.seo-topic-links a:hover {
  border-color: var(--coral-deep);
  color: var(--coral-deep);
}

.footer-email {
  display: inline-block;
  margin-top: 8px;
  color: var(--sage-200);
  font-size: .82rem;
  font-weight: 800;
}

.footer-email:hover {
  color: #fff;
}

.timing-advice-section {
  padding: 42px 0;
  background: var(--paper);
}

.timing-advice {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--sage-100), #fff 68%);
  box-shadow: var(--shadow-sm);
}

.timing-advice-mark {
  display: grid;
  width: 126px;
  height: 126px;
  place-content: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink-deep);
  text-align: center;
  box-shadow: 0 16px 34px rgba(245, 142, 115, .24);
}

.timing-advice-mark strong {
  display: block;
  font-size: 3rem;
  line-height: .9;
}

.timing-advice-mark span {
  display: block;
  margin-top: 7px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timing-advice-copy h2 {
  max-width: 850px;
  margin: 6px 0 10px;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
}

.timing-advice-copy p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
}

.timing-advice-copy small {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-weight: 750;
}

@media (max-width: 760px) {
  .seo-tool-grid,
  .date-routes {
    grid-template-columns: 1fr;
  }

  .seo-tool-output {
    grid-template-columns: 1fr;
  }

  .seo-tool-output > div {
    min-height: 0;
  }

  .timing-advice-section {
    padding: 28px 0;
  }

  .timing-advice {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 17px;
    padding: 22px 18px;
    border-radius: 21px;
  }

  .timing-advice-mark {
    width: 82px;
    height: 82px;
  }

  .timing-advice-mark strong {
    font-size: 2.25rem;
  }

  .timing-advice-mark span {
    margin-top: 4px;
    font-size: .59rem;
  }

  .timing-advice-copy h2 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }
}

@media (max-width: 430px) {
  .timing-advice {
    grid-template-columns: 1fr;
  }
}
