/* Landing page for a map tool: hero, drop card, how-it-works, prose.
   The map stays hidden until a track is ready.
   Buttons, cards and FAQ rows are in components.css. */

.tool-landing {
  position: relative;
}

.tool-wrap {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.tool-hero {
  padding: 2.75rem 0 1.25rem;
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.tool-kicker {
  margin: 0 0 0.85rem;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.tool-landing h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.tool-lead {
  margin-top: 0.9rem;
  font-size: 1.125rem;
  line-height: 1.45;
}

.tool-copy {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  line-height: 1.55;
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.tool-pills li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 650;
}

.tool-drop {
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--text) 28%, var(--bg));
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
}

.tool-drop:hover {
  background: var(--tint);
}

.tool-landing.is-dragover .tool-drop {
  background: var(--tint-strong);
}

.tool-drop-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.tool-drop-note,
.tool-file {
  margin: 0;
  color: color-mix(in srgb, var(--text) 68%, transparent);
  font-size: 0.92rem;
  line-height: 1.4;
}

.tool-file {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  word-break: break-all;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.tool-privacy {
  margin: 0.9rem 0 0;
  color: var(--brand);
  font-weight: 650;
}

.tool-error {
  margin: 0.85rem 0 0;
  color: #b91c1c;
  font-weight: 650;
  line-height: 1.4;
}

[data-theme="dark"] .tool-error {
  color: #f87171;
}

.tool-progress {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.tool-progress[hidden] {
  display: none;
}

.tool-progress p {
  margin: 0;
  font-weight: 650;
  line-height: 1.35;
}

.tool-section {
  padding: 0.5rem 0 1.75rem;
}

.tool-section h2 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.tool-section p,
.tool-section li {
  line-height: 1.55;
}

.tool-section p + p,
.tool-section ul,
.tool-section ol {
  margin-top: 0.7rem;
}

.tool-section ul,
.tool-section ol {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.tool-prose {
  width: min(42rem, calc(100% - 2rem));
}

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

.tool-step {
  margin: 0;
  padding: 1.15rem 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tool-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
}

.tool-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}

.tool-step p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: 0.95rem;
}

.tool-landing .faq-item summary {
  font-weight: 650;
}

.tool-credit {
  margin: 0;
  color: color-mix(in srgb, var(--text) 62%, transparent);
  font-size: 0.85rem;
  line-height: 1.45;
}

.landing-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--tint-strong);
  text-align: center;
}

.landing-overlay[hidden] {
  display: none;
}

.landing-overlay p {
  margin: 0;
  max-width: 22rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: 1.05rem;
  font-weight: 650;
}

@media (max-width: 800px) {
  .tool-hero {
    padding-top: 1.75rem;
  }

  .tool-hero-grid,
  .tool-steps {
    grid-template-columns: 1fr;
  }

  .tool-drop {
    display: none;
  }

  .tool-card h2 {
    margin-bottom: 0;
  }
}
