:root {
  --ink: #17201b;
  --muted: #5e6b63;
  --paper: #fbfaf6;
  --mist: #eef4ef;
  --bay: #166a76;
  --bay-dark: #0d4148;
  --cherry: #b5233d;
  --sun: #f3b84b;
  --leaf: #496d3a;
  --line: rgba(23, 32, 27, 0.14);
  --shadow: 0 20px 60px rgba(18, 29, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.hero {
  min-height: 92vh;
  background:
    linear-gradient(90deg, rgba(13, 34, 29, 0.76), rgba(13, 34, 29, 0.28) 54%, rgba(13, 34, 29, 0.08)),
    url("https://upload.wikimedia.org/wikipedia/commons/1/10/Grand_Traverse_Bay_from_Elk_Rapids.jpg") center / cover;
  color: white;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #f8fff9;
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.brand-mark svg {
  width: 40px;
  height: 40px;
}

.logo-sun {
  fill: var(--sun);
}

.logo-pine {
  fill: var(--leaf);
}

.logo-wave,
.logo-trail {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-wave {
  stroke: var(--bay);
  stroke-width: 5;
}

.logo-trail {
  stroke: var(--cherry);
  stroke-width: 4;
}

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

.nav-links a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: auto auto 9vh;
  padding-top: 80px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cherry);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffd56e;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.primary {
  background: var(--cherry);
  color: white;
}

.secondary {
  background: var(--ink);
  color: white;
}

.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.full {
  width: 100%;
}

.proof {
  width: min(1180px, calc(100% - 32px));
  margin: -48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.proof article {
  min-height: 145px;
  padding: 22px;
  background: white;
}

.proof strong {
  display: block;
  color: var(--bay);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.proof span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

section {
  padding: 88px 0;
}

.section-heading,
.planner,
.map-band,
.share-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.planner-band,
.smart-builder {
  background: var(--mist);
}

.planner,
.builder-shell {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  align-items: start;
}

.controls,
.plan-output,
.profile-panel,
.recommendation-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(18, 29, 23, 0.08);
}

.controls,
.profile-panel {
  padding: 18px;
  display: grid;
  gap: 15px;
}

label,
legend {
  color: var(--ink);
  font-weight: 800;
}

select {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
}

.interest-field {
  grid-template-columns: repeat(2, 1fr);
}

.interest-field legend {
  grid-column: 1 / -1;
}

input[type="checkbox"] {
  accent-color: var(--cherry);
}

.plan-output,
.recommendation-panel {
  min-height: 520px;
  padding: 22px;
}

.match-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

.match-summary span,
.score-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--mist);
  color: var(--bay-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.25rem;
}

.itinerary {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.smart-itinerary {
  display: grid;
  gap: 12px;
  padding: 18px 0;
}

.smart-stop {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.smart-stop time {
  color: var(--bay-dark);
  font-weight: 900;
}

.smart-stop h4 {
  margin: 0;
}

.smart-stop p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.rating {
  white-space: nowrap;
  color: var(--cherry);
  font-weight: 950;
}

.matches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.match-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-card strong,
.match-card span {
  display: block;
}

.match-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.day {
  border-left: 4px solid var(--bay);
  padding: 14px 16px;
  background: var(--paper);
}

.day h4 {
  margin: 0 0 8px;
}

.day ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.category-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  background: var(--bay);
  position: relative;
  box-shadow: 0 14px 36px rgba(18, 29, 23, 0.13);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72));
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card .content {
  position: relative;
  padding: 22px;
  display: grid;
  gap: 10px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.78rem;
  font-weight: 800;
}

.map-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
  padding: 88px 0;
}

.map-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.08rem;
}

.route-list {
  display: grid;
  gap: 12px;
}

.route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
}

.route-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  font-weight: 900;
}

.route p {
  margin: 4px 0 0;
  color: var(--muted);
}

.route small {
  color: var(--bay-dark);
  font-weight: 900;
}

.stays {
  background: #fff;
}

.research-band {
  background: var(--mist);
}

.partner-band {
  background: var(--mist);
}

.qr-band {
  background: white;
}

.qr-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: center;
}

.qr-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.qr-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}

.qr-card img {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card strong {
  margin-top: 10px;
  color: var(--bay-dark);
}

.qr-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.partner-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  background: var(--bay-dark);
  color: white;
  border-radius: 8px;
  padding: 34px;
}

.partner-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 720px;
}

.partner-card {
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 22px;
}

.partner-card strong {
  display: block;
  color: var(--cherry);
  font-size: 3rem;
  line-height: 1;
}

.partner-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
}

.partner-card ul {
  margin: 16px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.trail-band,
.sip-band,
.eats-band,
.fun-band {
  background: white;
}

.trail-shell,
.sip-shell,
.eats-shell,
.fun-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  align-items: start;
}

.trail-controls,
.trail-results,
.sip-controls,
.sip-results,
.eats-controls,
.eats-results,
.fun-controls,
.fun-results {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(18, 29, 23, 0.08);
}

.trail-controls,
.sip-controls,
.eats-controls,
.fun-controls {
  padding: 18px;
  display: grid;
  gap: 15px;
}

.trail-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.trail-results,
.sip-results,
.eats-results,
.fun-results {
  min-height: 520px;
  padding: 22px;
}

.trail-grid,
.sip-grid,
.eats-grid,
.fun-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 18px;
}

.trail-card,
.sip-card,
.eat-card,
.fun-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.trail-card h4,
.sip-card h4,
.eat-card h4,
.fun-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.trail-card p,
.sip-card p,
.eat-card p,
.fun-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.trail-meta,
.sip-meta,
.eat-meta,
.fun-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trail-meta span,
.sip-meta span,
.eat-meta span,
.fun-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--mist);
  color: var(--bay-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.research-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.research-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.research-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.stay-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stay-grid article {
  background: var(--paper);
  padding: 22px;
  min-height: 210px;
}

.stay-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.share-panel {
  background: var(--bay-dark);
  color: white;
  padding: 34px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.share-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  max-width: 660px;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 0.92rem;
}

footer a {
  color: var(--bay-dark);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .proof,
  .category-grid,
  .stay-grid,
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .planner,
  .builder-shell,
  .trail-shell,
  .sip-shell,
  .eats-shell,
  .fun-shell,
  .map-band {
    grid-template-columns: 1fr;
  }

  .share-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-panel {
    grid-template-columns: 1fr;
  }

  .qr-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 86vh;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.5rem);
  }

  .proof,
  .category-grid,
  .stay-grid,
  .research-grid,
  .trail-grid,
  .sip-grid,
  .eats-grid,
  .fun-grid,
  .matches {
    grid-template-columns: 1fr;
  }

  section,
  .map-band {
    padding: 62px 0;
  }

  .proof {
    margin-top: -28px;
  }

  .route {
    grid-template-columns: auto 1fr;
  }

  .smart-stop {
    grid-template-columns: 1fr;
  }

  .route small {
    grid-column: 2;
  }
}
