/* ============================================================================
   TripTwo design system — shared by landing page and app
   ========================================================================== */
:root {
  --bg: #fffaf6;
  --bg-soft: #fff1ea;
  --card: #ffffff;
  --ink: #241d1a;
  --ink-soft: #5f534d;
  --muted: #948880;
  --brand: #ff5a5f;
  --brand-deep: #e0484d;
  --brand-tint: #fff0ef;
  --accent: #ffb400;
  --teal: #11b3a3;
  --line: #efe4dc;
  --ok: #1f9d6b;
  --shadow-sm: 0 2px 8px rgba(120, 80, 60, 0.08);
  --shadow: 0 12px 34px rgba(120, 80, 60, 0.14);
  --shadow-lg: 0 24px 60px rgba(120, 80, 60, 0.20);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1080px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Reusable buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(255,90,95,.35); }
.btn.primary:hover:not(:disabled) { background: var(--brand-deep); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink-soft); box-shadow: none; }
.btn.ghost:hover { color: var(--ink); background: var(--bg-soft); }
.btn.outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.outline:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn.lg { padding: 16px 30px; font-size: 17px; }
.btn.block { width: 100%; }

/* ---- Site chrome --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(255, 250, 246, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; text-decoration: none; color: var(--ink); }
.brand span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a.text { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.nav-links a.text:hover { background: var(--bg-soft); color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  background: var(--bg-soft);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner a { color: var(--ink-soft); text-decoration: none; margin-left: 16px; }
.footer-inner a:hover { color: var(--brand-deep); }

/* ============================================================================
   LANDING PAGE
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, #ffe2d0 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 10%, #ffe9ef 0%, transparent 55%);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 20px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 18px 0 14px;
}
.hero h1 .hl { color: var(--brand); }
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 0 26px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hero-note b { color: var(--ink-soft); }

.hero-visual { position: relative; }
.hero-card-stack { position: relative; height: 420px; }
.hero-card {
  position: absolute;
  width: 230px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border: 5px solid #fff;
}
.hero-card img { height: 200px; object-fit: cover; width: 100%; }
.hero-card .cap { padding: 10px 12px; font-weight: 700; font-size: 14px; }
.hero-card .cap small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.hero-card.c1 { top: 0; left: 0; transform: rotate(-5deg); }
.hero-card.c2 { top: 60px; right: 0; transform: rotate(5deg); z-index: 2; }
.hero-card.c3 { bottom: 0; left: 60px; transform: rotate(-2deg); z-index: 3; }

.section { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.8px; text-align: center; margin: 0 0 8px; }
.section .sub { text-align: center; color: var(--ink-soft); max-width: 34em; margin: 0 auto 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.step .num {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-deep);
  font-weight: 800; margin-bottom: 14px; font-size: 18px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { display: flex; gap: 14px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature .ico { font-size: 26px; }
.feature h3 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pv {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
}
.pv img { height: 100%; width: 100%; object-fit: cover; }
.pv .lbl { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 12px 10px; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

.cta-band {
  background: linear-gradient(120deg, var(--brand), #ff8a3d);
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
  padding: 48px 24px;
  margin: 10px auto;
  max-width: var(--maxw);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 32em; margin: 0 auto 22px; }
.cta-band .btn.dark { background: #fff; color: var(--brand-deep); }
.cta-band .btn.dark:hover { background: #fff8f6; }

/* ============================================================================
   APP (questionnaire + results)
   ========================================================================== */
.app {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 18px 48px;
  min-height: 70vh;
}

.progress-wrap { margin: 6px 0 22px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.progress { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--brand)); transition: width .4s cubic-bezier(.4,0,.2,1); border-radius: 99px; }

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  border: 1px solid var(--line);
}
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.q-title { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.6px; }
.q-sub { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.opt {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font);
  transition: transform .08s ease, border-color .15s ease, background .15s ease, box-shadow .15s;
}
.opt:hover { transform: translateY(-2px); border-color: #ffd2cd; box-shadow: var(--shadow-sm); }
.opt:focus-visible { outline: 3px solid #ffd2cd; outline-offset: 2px; }
.opt.sel { border-color: var(--brand); background: var(--brand-tint); }
.opt.sel::after {
  content: "✓"; position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
}
.opt-emoji { font-size: 28px; }
.opt-label { font-weight: 700; font-size: 15px; }
.opt-desc { font-size: 12.5px; color: var(--muted); }

.nav-row { display: flex; gap: 10px; margin-top: 24px; align-items: center; }
.nav-row .spacer { flex: 1; }

/* Loading state while "crafting" results */
.crafting { text-align: center; padding: 70px 20px; }
.spinner {
  width: 46px; height: 46px; margin: 0 auto 20px;
  border: 4px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.crafting p { color: var(--ink-soft); font-weight: 600; }

/* Results */
.result-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.result-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 22px; }
.chip-sm { font-size: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); padding: 5px 11px; border-radius: 999px; font-weight: 600; }

.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.spot {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .15s ease;
}
.spot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.spot-photo { height: 160px; background-size: cover; background-position: center; position: relative; background-color: var(--bg-soft); }
.spot-region { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.fav-btn {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); cursor: pointer; font-size: 17px;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .1s;
}
.fav-btn:hover { transform: scale(1.12); }
.spot-body { padding: 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.spot-body h3 { margin: 0; font-size: 16.5px; letter-spacing: -0.3px; }
.spot-body p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.45; flex: 1; }
.match-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.match-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); border-radius: 99px; }
.match-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; background: var(--brand-tint); color: var(--brand-deep); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.book {
  background: var(--ink); color: #fff; text-align: center; text-decoration: none;
  font-size: 14px; font-weight: 700; padding: 11px; border-radius: 11px; margin-top: 2px;
  transition: background .15s;
}
.book:hover { background: #000; }
.disclaimer { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 26px; }
.empty { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty .big { font-size: 40px; margin-bottom: 10px; }

/* Toasts */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Modal (auth) */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(30,20,15,.5); z-index: 80;
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .2s ease both;
}
.modal {
  background: #fff; border-radius: var(--radius-lg); padding: 30px;
  max-width: 400px; width: 100%; box-shadow: var(--shadow-lg);
}
.modal h3 { margin: 0 0 6px; font-size: 21px; }
.modal p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }
.modal input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: var(--font); margin-bottom: 12px;
}
.modal input:focus { outline: none; border-color: var(--brand); }
.modal .close { float: right; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }

/* Itinerary */
.itin-day { padding: 20px 22px; margin-bottom: 14px; }
.itin-daytitle { margin: 0 0 14px; font-size: 18px; letter-spacing: -0.3px; }
.itin-list { display: flex; flex-direction: column; gap: 12px; }
.itin-row { display: flex; gap: 14px; align-items: center; }
.itin-slot {
  flex: 0 0 78px; font-size: 12px; font-weight: 800; color: var(--brand-deep);
  text-transform: uppercase; letter-spacing: .04em;
}
.itin-thumb {
  flex: 0 0 56px; height: 56px; border-radius: 12px;
  background-size: cover; background-position: center; background-color: var(--bg-soft);
}
.itin-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.itin-info strong { font-size: 15px; }
.itin-info span { font-size: 13px; color: var(--ink-soft); }
.itin-info a { font-size: 13px; font-weight: 700; color: var(--brand-deep); text-decoration: none; margin-top: 2px; }
.itin-info a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .itin-slot { flex-basis: 60px; font-size: 11px; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; }
  .hero-card-stack { height: 300px; max-width: 360px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .card { padding: 22px; }
  .nav-links a.text { display: none; }
}

/* ---- NorthHop additions: mode picker, FX widget, merchant cards ---------- */
.options.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .options.two { grid-template-columns: 1fr; } }
.opt.big { padding: 26px 20px; gap: 6px; align-items: flex-start; text-align: left; }
.opt.big .opt-emoji { font-size: 34px; }
.opt.big .opt-label { font-size: 18px; }

/* FX widget */
.fx { padding: 18px 20px; margin-bottom: 16px; }
.fx-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.fx-rate { margin-left: auto; font-weight: 800; color: var(--teal); }
.fx-calc { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.fx-calc label { display: flex; align-items: center; gap: 6px; font-weight: 700; flex: 1; }
.fx-calc input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 12px; font: inherit; font-weight: 700; background: var(--bg);
}
.fx-calc input:focus { outline: none; border-color: var(--brand); }
.fx-eq { font-weight: 800; color: var(--muted); }
.fx-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* merchant card extras */
.saving {
  display: inline-block; background: #eafaf2; color: var(--ok);
  font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.card-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.book.outline {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.book.outline:hover { border-color: var(--brand); color: var(--brand-deep); }
