/* General Sans — kept loaded but no longer the dominant face. Used by the
   thanks-state form controls so they don't read as "different page". */
@font-face {
  font-family: 'General Sans';
  src: url('/fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-accent: #8b5cf6;
  --color-accent-bright: #7c3aed;
  --color-text-primary: #1a1924;
  --color-text-secondary: #3a3850;
  --color-text-muted: #6e6c7a;
  --color-text-faint: rgba(26, 25, 36, 0.42);
  --color-border: rgba(26, 25, 36, 0.12);
  --color-border-hover: rgba(26, 25, 36, 0.22);
  --color-card-bg: rgba(167, 139, 250, 0.08);
  --color-card-border: rgba(167, 139, 250, 0.30);

  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

body { position: relative; overflow-x: hidden; }

/* Site-wide link hover — every text link transitions to the brand purple.
   Buttons (.btn, .primary-cta) are excluded so they keep their background hover.
   The :not() chain also outranks per-component hovers (footer, cards, hub-back)
   so the whole site hovers to one consistent purple. */
a:not(.btn):not(.primary-cta) { transition: color 0.15s ease; }
a:not(.btn):not(.primary-cta):hover { color: var(--color-accent); }

/* Aurora — soft radial gradients in the background. Fixed so it doesn't scroll. */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(167, 139, 250, 0.12) 0%, transparent 38%),
    radial-gradient(circle at 82% 72%, rgba(94, 103, 234, 0.10) 0%, transparent 42%);
}

.frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 32px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------- Top bar (brand + status) ---------------- */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}
.brand-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  transform: translateY(-6px);
}

.top-status {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------------- Hero (centered) ---------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.55;
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 22px;
}
.display em {
  font-style: italic;
  color: var(--color-accent-bright);
}

.lede {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 0 40px;
  line-height: 1.6;
}

/* ---------------- Rotating card (featured, centered) ---------------- */

.card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 124px;
  margin: 0 0 40px;
}
.ex-card {
  position: absolute;
  inset: 0;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 18px 22px;
  text-align: left;
  opacity: 0;
  will-change: opacity, transform;
  /* Cards are decorative; never let them swallow clicks intended for the CTA. */
  pointer-events: none;
}
.ex-card[data-card-idx="0"] { opacity: 1; } /* JS-free fallback */
.ex-card .city {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.ex-card .meta {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.ex-card .catch {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--color-accent-bright);
  opacity: 0.95;
}

/* ---------------- Form ---------------- */

.form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}
.form.is-hidden { display: none; }

.email {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.email::placeholder { color: var(--color-text-muted); }
.email:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
}

.btn {
  padding: 13px 22px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--color-accent-bright); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------------- Thanks state (post-submit) ---------------- */

.thanks {
  width: 100%;
  max-width: 440px;
  text-align: left;
}
.thanks[hidden] { display: none; }
.thanks .ack {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.thanks .lead-in {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 13.5px;
}
.thanks .q { margin-bottom: 20px; }
.thanks .q-label {
  display: block;
  color: var(--color-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 8px;
}
.thanks .q-label .hint {
  color: rgba(255, 255, 255, 0.32);
  font-weight: 400;
  font-size: 12px;
}

.pick-group { display: flex; gap: 6px; flex-wrap: wrap; }
.pick {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pick:hover { border-color: var(--color-border-hover); color: var(--color-text-primary); }
.pick.is-selected {
  border-color: var(--color-accent);
  color: var(--color-accent-bright);
  background: rgba(167, 139, 250, 0.10);
}
.pick:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
}
.text-input:focus {
  outline: none;
  border-color: var(--color-accent);
}
textarea.text-input { min-height: 64px; resize: vertical; }

.actions { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.done-btn {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.done-btn:hover { background: var(--color-accent-bright); }
.skip-link {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 12.5px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.skip-link:hover { color: var(--color-text-secondary); }

/* ---------------- Footer ---------------- */

.footer {
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  margin-top: 24px;
}
.footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.18);
}
.footer a:hover { color: var(--color-text-secondary); }

/* ---------------- Responsive ---------------- */

@media (max-width: 540px) {
  .frame { padding: 24px 20px; }
  .top-bar { margin-bottom: 40px; }
  .brand { font-size: 18px; }
  .eyebrow { margin-bottom: 22px; }
  .eyebrow::before, .eyebrow::after { width: 18px; }
  .lede { margin-bottom: 32px; }
  .card-stack { margin-bottom: 32px; }
  .form { flex-wrap: wrap; }
  .email { min-width: 100%; }
  .btn { width: 100%; }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .ex-card { opacity: 0 !important; transform: none !important; transition: none !important; }
  .ex-card[data-card-idx="0"] { opacity: 1 !important; }
}

/* ---------------- /go page ---------------- */

.brand-link {
  color: inherit;
  text-decoration: none;
}

.go-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 16px;
}

.go-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.go-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-label {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.form-label > span { font-weight: 500; }

.form-label select, .form-label input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
}
.form-label select:focus, .form-label input:focus {
  outline: none;
  border-color: var(--color-accent);
}
/* OS-rendered dropdown options inherit the select's color but render on a
   white system background by default — white-on-white. Force readable colors. */
.form-label select option {
  background: #1a1a1f;
  color: var(--color-text-primary);
}

.trip-nights {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--color-text-secondary);
  font-size: 13.5px;
}
.trip-nights legend {
  padding: 0 4px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.trip-nights label {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.vibe-chips {
  border: none;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vibe-chips legend {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.chip {
  border: 1px solid var(--color-border);
  padding: 7px 13px;
  border-radius: 100px;
  color: var(--color-text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip input { display: none; }
.chip:has(input:checked) {
  border-color: var(--color-accent);
  color: var(--color-accent-bright);
  background: rgba(167,139,250,0.10);
}

/* ----- Result cards ----- */

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.trip-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
}
.card-price {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--color-accent-bright);
}
.card-meta {
  font-size: 12.5px;
  color: var(--color-text-muted);
}
.card-catch {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--color-accent-bright);
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin: 0;
}
.card-details div { display: flex; gap: 6px; }
.card-details dt {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--color-text-faint);
  flex-basis: 100px;
}
.card-details dd { margin: 0; }
.card-link {
  margin-top: 6px;
  color: var(--color-accent);
  font-size: 13.5px;
  text-decoration: none;
}
.card-link:hover { color: var(--color-accent-bright); }

.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ----- Notify strip ----- */

.notify-strip {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}
.notify-form {
  margin-top: 12px;
  display: inline-flex;
  gap: 8px;
}
.notify-form input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.04);
  color: var(--color-text-primary);
  font-size: 13.5px;
  min-width: 220px;
}
.btn-secondary {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent-bright);
  border-radius: 10px;
  font-size: 13.5px;
  cursor: pointer;
}
.btn-secondary:hover { background: rgba(167,139,250,0.10); }

/* ----- Email gate modal ----- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,14,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #0e0e16;
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  padding: 32px 30px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: left;
}
.modal input[type=email] {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.04);
  color: var(--color-text-primary);
}

/* ---------------- Landing page primary CTA ---------------- */

.cta-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  /* Explicit stacking so the rotating cards (also positioned) can never
     paint over the primary CTA. */
  position: relative;
  z-index: 2;
}
.primary-cta {
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}
.primary-cta:hover { background: var(--color-accent-bright); }

.secondary-form { opacity: 0.85; }
