/* ============================================================
   Landing page (ui-redesign/index.html) — hero, how-it-works,
   sample strip, trust, FAQ, pricing. Reuses .btn/.chip/nav/footer
   grammar + tokens from styles.css (foundation commit ff7d6b8).
   Sample-strip cards render via the real .tile-card grammar
   already defined in styles.css — only container/scroll layout
   for that strip is defined here (PORT-CONTRACT.md decision 1).
   ============================================================ */

.page-kicker {
  display: flex;
  align-items: center;
  margin: 0 0 0.625rem;
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-kicker::before {
  content: '';
  width: 18px;
  height: 3px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 99px;
  background: currentColor;
}

.stamp {
  display: inline-flex;
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 9px;
  padding: 0.375rem 0.5625rem;
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* ── Hero ──────────────────────────────────────────────────── */
.landing-page {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  align-items: center;
  padding: clamp(2.75rem, 8vw, 6.25rem) 0;
  position: relative;
  overflow: hidden;
}
.landing-page::before {
  content: '';
  position: absolute;
  width: min(780px, 70vw);
  aspect-ratio: 1;
  right: -18%;
  top: -28%;
  border: 2px dashed var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(191, 226, 206, .18), 0 0 0 150px rgba(255, 202, 86, .08);
  pointer-events: none;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  gap: clamp(2rem, 6vw, 5.625rem);
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .landing-hero-grid { padding: 0 2.5rem; } }
@media (min-width: 1200px) { .landing-hero-grid { padding: 0 3rem; } }
.landing-inner { max-width: 47.5rem; }

.landing-eyebrow,
.mode-label,
.popular-label {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-headline {
  margin: 1rem 0 1.375rem;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.2vw, 6.15rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.landing-headline em { color: var(--coral-dark); font-style: normal; }

.landing-sub {
  max-width: 56ch;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Destination input */
.destination-form { margin: 0 0 1.25rem; }
.destination-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.375rem;
  background: var(--paper);
  box-shadow: 7px 8px 0 var(--ink);
  transition: box-shadow var(--duration-fast) var(--ease-smooth);
}
.destination-wrap:focus-within { box-shadow: 4px 5px 0 var(--ink); }
.destination-icon { padding-left: 0.9375rem; color: var(--coral-dark); font-family: var(--font-display); font-size: 1.4rem; }
.destination-input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.875rem;
  background: transparent;
  color: var(--ink-deep);
  font-size: 1.05rem;
  font-weight: 800;
}
.destination-input::placeholder { color: var(--muted); font-weight: 600; }
.destination-submit {
  width: 3rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  color: white;
  cursor: pointer;
  font-weight: 900;
  font-size: 1.1rem;
  transition: background var(--duration-fast) var(--ease-smooth);
}
.destination-submit:hover { background: var(--coral-dark); }
.destination-submit.loading { background: var(--ink); cursor: not-allowed; }
.destination-submit .spinner { display: none; }
.destination-submit.loading .arrow { display: none; }
.destination-submit.loading .spinner {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spinRing 0.8s linear infinite;
}

.trip-modes,
.demo-cta-row,
.popular-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.trip-modes { margin: 1.25rem 0; }
.demo-cta-row { margin: 1.125rem 0; }
.demo-cta-row p { margin: 0; color: var(--muted); font-size: 0.83rem; }

.popular-row { align-items: flex-start; margin-top: 1.375rem; }
.popular-label { padding-top: 0.625rem; }
.popular-chips { display: flex; flex-wrap: wrap; gap: 0.4375rem; }
.popular-chip {
  min-height: 2.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.4375rem 0.75rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  transition: background var(--duration-fast) var(--ease-smooth);
}
.popular-chip:hover { background: var(--sun-soft); }

/* Boarding-card aside */
.boarding-card {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 1.75rem;
  background: var(--ink-deep);
  box-shadow: 10px 11px 0 var(--sun);
  color: white;
  transform: rotate(1.5deg);
}
.boarding-card::before { content: ''; position: absolute; inset: 10px; border: 1px dashed rgba(255, 255, 255, .24); border-radius: 15px; pointer-events: none; }
.boarding-card > * { position: relative; z-index: 1; }
.boarding-card h2 { margin: 1.25rem 0; font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1.05; }
.boarding-card ul { margin: 0; padding: 0; list-style: none; }
.boarding-card li { display: flex; justify-content: space-between; gap: 1.25rem; border-bottom: 1px dashed rgba(255, 255, 255, .3); padding: 0.625rem 0; }
.boarding-card li strong { color: var(--sun); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; }
.boarding-card li span { text-align: right; }
.boarding-note { margin: 1.25rem 0 0; color: var(--mint); font-size: 0.85rem; }

/* ── Section bands ─────────────────────────────────────────── */
.section-band { padding: clamp(4.375rem, 9vw, 7.5rem) 0; border-top: 2px solid var(--ink); }
.section-band.alt { background: rgba(255, 253, 247, .7); }
.section-band-header { max-width: 47.5rem; margin-bottom: 2.25rem; }
.section-band-header h2,
.pricing-card h2 { margin: 0 0 0.75rem; color: var(--ink-deep); font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 4.25rem); font-weight: 400; line-height: 1.02; }
.section-band-header > p:last-child { color: var(--muted); font-size: 1.05rem; }

/* How it works */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.how-steps article { min-height: 16.5rem; border: 2px solid var(--ink); border-radius: 18px; padding: 1.625rem; background: var(--paper); box-shadow: 6px 7px 0 var(--ink); }
.how-steps article:nth-child(2) { background: var(--sun-soft); transform: translateY(1.125rem); }
.how-steps article:nth-child(3) { background: var(--mint-light); }
.how-steps article > span { color: var(--coral-dark); font-family: var(--mono); font-weight: 700; }
.how-steps h3 { margin: 3.25rem 0 0.625rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; }
.how-steps p { margin: 0; color: var(--muted); }

/* Sample strip — cards render via the real .tile-card grammar (styles.css) */
.sample-strip {
  display: grid;
  grid-auto-columns: minmax(270px, 31%);
  grid-auto-flow: column;
  gap: 1.125rem;
  overflow-x: auto;
  padding: 0.3125rem 0.5rem 1.25rem 0.125rem;
  scroll-snap-type: x mandatory;
}
.sample-strip .tile-card { scroll-snap-align: start; cursor: default; }
.sample-strip-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); padding: 2rem 0; text-align: center; width: 100%; }
.section-cta { margin: 1.875rem 0 0; }

/* Trust band */
.trust-band { background: var(--ink-deep); color: white; }
.trust-band .section-band-header h2 { color: white; }
.trust-band .section-band-header > p:last-child { color: var(--mint); }
.trust-band a { color: var(--sun); }
.trust-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.trust-facts li { border: 1px solid rgba(255, 255, 255, .42); border-radius: 14px; padding: 1.125rem; color: white; font-weight: 800; }
.trust-facts li::before { content: '✓'; margin-right: 0.5625rem; color: var(--sun); }

/* FAQ */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
.faq-list article { border-top: 2px solid var(--ink); padding: 1.375rem 0.3125rem 0.75rem; }
.faq-list article:last-child { grid-column: 1 / -1; }
.faq-list h2 { margin: 0 0 0.625rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.faq-list p { margin: 0; color: var(--muted); }
.faq-list a { color: var(--blue); }

/* Pricing */
.pricing-card { max-width: 51.875rem; margin: 0 auto; text-align: center; border: 2px solid var(--ink); border-radius: 24px; padding: clamp(1.75rem, 6vw, 4rem); background: var(--sun-soft); box-shadow: 10px 11px 0 var(--ink); }
.pricing-card p { margin: 0.75rem 0 0; color: var(--muted); }
.pricing-card small { display: block; margin-top: 1.125rem; font-size: 0.78rem; color: var(--muted); }
#pricing-cta.btn { margin-top: 0.75rem; background: var(--sun); color: var(--ink-deep); }
#pricing-cta.btn:not(:disabled):hover { background: var(--sun-soft); }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding: 2.125rem 1.25rem; text-align: center; }
.site-footer > p { max-width: 60ch; margin: 0 auto 1rem; color: var(--muted); font-size: 0.78rem; }
.site-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.125rem; font-weight: 800; font-size: 0.82rem; }
.site-footer-links a { color: var(--muted); }
.site-footer-links a:hover { color: var(--coral-dark); }

@media (max-width: 880px) {
  .landing-hero-grid { grid-template-columns: 1fr; }
  .boarding-card { width: min(32.5rem, 100%); transform: none; }
  .how-steps,
  .trust-facts { grid-template-columns: 1fr; }
  .how-steps article { min-height: 0; }
  .how-steps article:nth-child(2) { transform: none; }
  .sample-strip { grid-auto-columns: minmax(270px, 75%); }
}

@media (max-height: 500px) and (orientation: landscape) {
  /* Short landscape phones can be wider than the 880px breakpoint above but
     too short for a 2-column hero to read well — stack it like portrait. */
  .landing-hero-grid { grid-template-columns: 1fr; }
  .boarding-card { width: min(32.5rem, 100%); transform: none; }
}

@media (max-width: 620px) {
  .landing-page { padding-top: 2.375rem; }
  .landing-headline br { display: none; }
  .landing-headline { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .destination-wrap { border-radius: 18px; grid-template-columns: minmax(0, 1fr) auto; }
  .destination-icon { display: none; }
  .trip-modes { align-items: stretch; }
  .faq-list { grid-template-columns: 1fr; }
  .faq-list article:last-child { grid-column: auto; }
  .sample-strip { grid-auto-columns: 88%; }
}
