:root {
  --bg: #f5f7fb;
  --ink: #152039;
  --muted: #52607b;
  --panel: #ffffff;
  --line: #d9dfed;
  --brand: #0f766e;
  --brand-2: #1d4ed8;
  --accent: #f59e0b;
  --shadow: 0 20px 50px rgba(21, 32, 57, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at -10% 0%, #d8f5f1 0, transparent 60%),
    radial-gradient(1000px 650px at 100% 0%, #dbe7ff 0, transparent 65%),
    var(--bg);
}

.bg-orb {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  filter: blur(32px);
  z-index: 0;
  opacity: 0.45;
}

.orb-a { background: #8ee5d8; top: 80px; left: -60px; }
.orb-b { background: #a8befa; bottom: 80px; right: -60px; }

.shell {
  width: min(980px, 92vw);
  margin: 32px auto 60px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pill {
  background: #e7f5f3;
  color: #0f766e;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

h1 {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.04;
}

.sub {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 220px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.metric strong {
  font-size: 24px;
  line-height: 1;
  color: var(--brand-2);
}

.metric span {
  font-size: 13px;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.intent-form {
  display: grid;
  gap: 10px;
}

.intent-form label {
  font-weight: 700;
  font-size: 13px;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  background: #fdfdff;
}

textarea:focus,
select:focus {
  outline: 2px solid rgba(29, 78, 216, 0.22);
  border-color: #a2b5eb;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.run-btn {
  border: 0;
  background: linear-gradient(135deg, var(--brand) 0, var(--brand-2) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.run-btn:hover {
  filter: brightness(1.04);
}

.chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips button {
  border: 1px solid #cad4f1;
  background: #f2f6ff;
  color: #2b3f75;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.results-wrap {
  margin-top: 24px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.results-head h2 {
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  margin: 0;
  font-size: 26px;
}

.results-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.results {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.route-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.route-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.route-title {
  margin: 0;
  font-size: 20px;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: #f0f7f6;
  color: #146b63;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.price {
  background: #fff2da;
  color: #8b5b00;
}

.route-copy {
  margin: 0;
  color: var(--muted);
}

.route-link {
  justify-self: start;
  text-decoration: none;
  color: #fff;
  background: #1d4ed8;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.footnote {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

code {
  background: #eef2ff;
  color: #27408f;
  border-radius: 6px;
  padding: 2px 6px;
}

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

  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .run-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .results-head {
    display: grid;
  }
}
