/* ══════════════════════════════════════════════
   gopack.now — style.css
   Theme: Dark editorial / luxury travel magazine
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
  --ink:        #0E0D0B;
  --ink-2:      #1C1A17;
  --ink-3:      #2A2722;
  --paper:      #F5F1EB;
  --paper-2:    #EDE8E0;
  --orange:     #E85D3A;
  --orange-h:   #C94D2E;
  --orange-dim: rgba(232, 93, 58, 0.15);
  --amber:      #F5A623;
  --muted:      rgba(245, 241, 235, 0.45);
  --muted-2:    rgba(245, 241, 235, 0.25);
  --border-d:   rgba(245, 241, 235, 0.1);
  --border-l:   rgba(14, 13, 11, 0.1);
  --glass:      rgba(255, 255, 255, 0.04);
  --glass-b:    rgba(255, 255, 255, 0.07);
  --r-sm:  8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Body — dark with paper grain ── */
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Grain overlay ── */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ══════════════════════════════════════════════
   SCREENS
   ══════════════════════════════════════════════ */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* ══════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.75rem 2.5rem;
  border-bottom: 1px solid var(--border-d);
}

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; cursor: pointer; user-select: none;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--orange); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.logo-word {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.5px; color: var(--paper);
}
.logo-word em { font-style: normal; color: var(--orange); }
.logo-tld { font-size: 0.85rem; color: var(--muted); font-weight: 400; margin-top: 2px; }

.nav-trip-info { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.nav-dest { color: var(--paper); font-weight: 500; }
.nav-sep { opacity: 0.4; }

.nav-actions { display: flex; gap: 8px; }
.nav-btn {
  padding: 8px 16px; border-radius: var(--r-sm); font-size: 0.85rem;
  font-weight: 500; color: var(--muted); border: 1px solid var(--border-d);
  transition: all 0.18s; background: transparent;
}
.nav-btn:hover { color: var(--paper); border-color: rgba(245,241,235,0.25); }
.nav-btn.accent { background: var(--orange); color: white; border-color: transparent; }
.nav-btn.accent:hover { background: var(--orange-h); }

/* ══════════════════════════════════════════════
   SCREEN 1 — HERO
   ══════════════════════════════════════════════ */
.hero {
  max-width: 680px; margin: 0 auto;
  padding: 5rem 2.5rem 3rem;
}

.hero-kicker {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); font-weight: 500; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 10px;
}
.hero-kicker::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--orange);
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--paper);
  margin-bottom: 1.25rem;
}
.hero-title-accent {
  color: var(--orange);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem; color: var(--muted); line-height: 1.6;
  margin-bottom: 3rem; max-width: 420px;
}

/* ── Form ── */
.create-form { display: flex; flex-direction: column; gap: 1.75rem; }

.field-group { display: flex; flex-direction: column; gap: 0.6rem; }

.field-label {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute; left: 14px; font-size: 1rem;
  pointer-events: none; line-height: 1;
}

.field-input {
  width: 100%; padding: 14px 16px;
  background: var(--glass);
  border: 1px solid var(--border-d);
  border-radius: var(--r-md);
  color: var(--paper);
  font-size: 1rem; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.input-wrap .field-input { padding-left: 42px; }
.field-input::placeholder { color: var(--muted-2); }
.field-input:focus {
  border-color: var(--orange);
  background: rgba(232, 93, 58, 0.06);
}

/* ── Day pills ── */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 10px 16px; border-radius: 100px;
  border: 1px solid var(--border-d);
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  background: transparent; transition: all 0.15s;
}
.pill:hover { border-color: rgba(245,241,235,0.3); color: var(--paper); }
.pill.selected { background: var(--orange); border-color: var(--orange); color: white; }

/* ── Vibe grid ── */
.vibe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vibe-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border-d);
  font-size: 0.88rem; color: var(--muted);
  background: var(--glass); transition: all 0.15s;
}
.vibe-btn:hover { border-color: rgba(245,241,235,0.25); color: var(--paper); background: var(--glass-b); }
.vibe-btn.selected { border-color: var(--orange); background: var(--orange-dim); color: var(--paper); }
.vibe-icon { font-size: 1.1rem; }

/* ── CTA button ── */
.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 17px 28px;
  background: var(--orange); color: white;
  border-radius: var(--r-md); font-size: 1.05rem; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; letter-spacing: 0.01em;
  margin-top: 0.25rem;
}
.cta-btn:hover { background: var(--orange-h); transform: translateY(-1px); }
.cta-btn:active { transform: none; }
.cta-arrow { font-size: 1.2rem; transition: transform 0.2s; }
.cta-btn:hover .cta-arrow { transform: translateX(4px); }

/* ── Error ── */
.form-error {
  background: rgba(232, 93, 58, 0.12);
  border: 1px solid rgba(232, 93, 58, 0.3);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  font-size: 0.88rem; color: #ff9070;
  display: none;
}
.form-error.dark {
  background: rgba(232, 93, 58, 0.1);
  border-color: rgba(232, 93, 58, 0.2);
  color: rgba(255, 144, 112, 0.9);
}

/* ── How it works ── */
.how-it-works {
  max-width: 680px; margin: 0 auto;
  padding: 2.5rem 2.5rem 4rem;
  border-top: 1px solid var(--border-d);
}
.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 1.5rem;
}
.steps-row {
  display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.step { flex: 1; min-width: 120px; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 700; color: var(--orange);
  line-height: 1; margin-bottom: 6px;
}
.step-text { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.step-divider { color: var(--border-d); font-size: 1.2rem; padding-top: 0.5rem; align-self: flex-start; }

/* ══════════════════════════════════════════════
   SCREEN 2 — COLLABORATE
   ══════════════════════════════════════════════ */
.collab-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 4rem;
  align-items: start;
}

.collab-header { margin-bottom: 1.75rem; }

.dest-badge {
  display: inline-block;
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(232, 93, 58, 0.25);
  border-radius: 100px;
  padding: 6px 16px; font-size: 0.88rem; font-weight: 500;
  margin-bottom: 1rem;
}

.collab-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -1px; color: var(--paper);
  margin-bottom: 0.5rem;
}
.collab-sub { font-size: 0.92rem; color: var(--muted); }

/* ── Glass card ── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border-d);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
}

/* ── Name row ── */
.name-row { display: flex; gap: 10px; align-items: center; margin-bottom: 1.5rem; }
.name-row .field-input { flex: 1; margin: 0; }
.name-tag {
  background: var(--orange); color: white;
  border-radius: 100px; padding: 9px 16px;
  font-size: 0.85rem; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}

/* ── Wishes ── */
.wishes-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.wish-badge {
  background: var(--orange); color: white;
  border-radius: 100px; padding: 2px 10px;
  font-size: 0.7rem; font-weight: 600;
}
.wish-input-row { display: flex; gap: 8px; margin-bottom: 1rem; }
.wish-input-row .field-input { flex: 1; }
.wish-add {
  background: var(--orange); color: white;
  border-radius: var(--r-sm); padding: 0 18px;
  font-size: 1.5rem; line-height: 1; flex-shrink: 0;
  transition: background 0.18s;
}
.wish-add:hover { background: var(--orange-h); }

.wish-list { display: flex; flex-direction: column; gap: 8px; }
.wish-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-d);
  border-radius: var(--r-md); padding: 11px 13px;
  animation: wishIn 0.2s ease;
}
@keyframes wishIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.wish-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--orange-dim); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.wish-content { flex: 1; min-width: 0; }
.wish-text { font-size: 0.9rem; color: var(--paper); line-height: 1.4; }
.wish-meta { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.wish-remove { color: var(--muted-2); font-size: 1.1rem; padding: 2px 4px; opacity: 0.5; transition: opacity 0.15s; line-height: 1; flex-shrink: 0; }
.wish-remove:hover { opacity: 1; color: var(--orange); }

/* ── Right column ── */
.collab-right { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 1.5rem; }

.invite-card { }
.invite-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--paper); margin-bottom: 4px; }
.invite-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.4; }

.link-display {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-d);
  border-radius: var(--r-sm); padding: 10px 10px 10px 14px;
  margin-bottom: 1.25rem;
}
.link-text { font-family: 'Courier New', monospace; font-size: 0.82rem; color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-copy {
  background: var(--orange); color: white;
  border-radius: 6px; padding: 6px 13px;
  font-size: 0.78rem; font-weight: 500; flex-shrink: 0;
  transition: background 0.18s;
}
.link-copy:hover { background: var(--orange-h); }

.pack-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.6rem; }
.pack-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pack-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--orange-dim); border: 1px solid rgba(232,93,58,0.2);
  border-radius: 100px; padding: 5px 12px;
  font-size: 0.8rem; color: #ff9070;
}
.pack-chip.waiting { background: var(--glass); border-color: var(--border-d); color: var(--muted); font-style: italic; }
.chip-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 700; flex-shrink: 0; }

/* ── Build card ── */
.build-card {
  background: linear-gradient(145deg, #1C1108, #2A1A0E);
  border: 1px solid rgba(232, 93, 58, 0.2);
  border-radius: var(--r-xl);
  padding: 1.75rem;
}
.build-eyebrow { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
.build-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 700; line-height: 1.05;
  letter-spacing: -0.5px; color: var(--paper);
  margin-bottom: 0.5rem;
}
.build-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.25rem; }
.build-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px;
  background: var(--orange); color: white;
  border-radius: var(--r-md); font-size: 1rem; font-weight: 500;
  transition: all 0.2s;
}
.build-btn:hover { background: var(--orange-h); transform: translateY(-1px); }
.build-arrow { font-size: 1.1rem; transition: transform 0.2s; }
.build-btn:hover .build-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════════
   SCREEN 3 — LOADING
   ══════════════════════════════════════════════ */
.loading-scene {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2rem; text-align: center;
}
.loading-globe {
  font-size: 3.5rem; margin-bottom: 2rem;
  display: block;
  animation: soar 2.5s ease-in-out infinite;
}
@keyframes soar {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-18px) rotate(5deg); }
}
.loading-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; letter-spacing: -1px;
  color: var(--paper); line-height: 1.1; margin-bottom: 0.75rem;
}
.loading-dest { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.5rem; }

.loading-bar-track {
  width: 260px; height: 2px;
  background: var(--border-d); border-radius: 100px;
  overflow: hidden; margin: 0 auto 2.5rem;
}
.loading-bar-fill {
  height: 100%; background: var(--orange);
  border-radius: 100px; width: 0%;
  transition: width 0.5s ease;
}

.loading-steps { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.lstep { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--muted-2); transition: color 0.35s; }
.lstep.done { color: var(--muted); }
.lstep.active { color: var(--paper); }
.lstep-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-d); flex-shrink: 0; transition: background 0.35s;
}
.lstep.done .lstep-dot { background: var(--orange); }
.lstep.active .lstep-dot { background: var(--amber); animation: dotpulse 0.75s ease-in-out infinite alternate; }
@keyframes dotpulse { from { transform: scale(1); } to { transform: scale(1.7); } }

/* ══════════════════════════════════════════════
   SCREEN 4 — ITINERARY
   ══════════════════════════════════════════════ */
.itin-hero {
  padding: 3.5rem 2.5rem 2.5rem;
  max-width: 860px; margin: 0 auto;
  border-bottom: 1px solid var(--border-d);
}
.itin-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.itin-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--orange); }
.itin-dest {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; letter-spacing: -3px; line-height: 1;
  color: var(--paper); margin-bottom: 1rem;
}
.itin-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.itin-tag {
  background: var(--glass); border: 1px solid var(--border-d);
  border-radius: 100px; padding: 6px 14px;
  font-size: 0.82rem; color: var(--muted);
}

/* ── Day blocks ── */
.itin-days {
  max-width: 860px; margin: 0 auto;
  padding: 2rem 2.5rem 5rem;
  display: flex; flex-direction: column; gap: 3rem;
}

.day-block { animation: fadeUp 0.45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.day-header {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-d);
}
.day-num-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
}
.day-theme {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.5px;
  color: var(--paper); line-height: 1.1;
}

.activities { display: flex; flex-direction: column; gap: 1px; }

.activity-card {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 0 1.25rem; align-items: start;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-d);
  background: var(--glass);
  transition: background 0.18s, border-color 0.18s;
}
.activity-card:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.activity-card:last-child  { border-radius: 0 0 var(--r-md) var(--r-md); }
.activity-card:only-child  { border-radius: var(--r-md); }
.activity-card + .activity-card { border-top: none; }
.activity-card:hover { background: var(--glass-b); border-color: rgba(245,241,235,0.14); }

.act-time {
  font-size: 0.72rem; font-weight: 500; color: var(--muted-2);
  padding-top: 3px; letter-spacing: 0.02em;
}
.act-body { }
.act-name { font-weight: 500; font-size: 0.96rem; color: var(--paper); margin-bottom: 4px; }
.act-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.act-tag {
  display: inline-block; margin-top: 7px;
  background: var(--orange-dim); color: #ff9070;
  border: 1px solid rgba(232,93,58,0.2);
  border-radius: 100px; padding: 2px 10px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 760px) {
  .nav { padding: 1.25rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .how-it-works { padding: 2rem 1.25rem 3rem; }
  .collab-layout { grid-template-columns: 1fr; padding: 1.5rem 1.25rem 3rem; }
  .collab-right { position: static; }
  .vibe-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { flex-direction: column; gap: 1rem; }
  .step-divider { display: none; }
  .itin-hero { padding: 2rem 1.25rem 1.5rem; }
  .itin-days { padding: 1.5rem 1.25rem 4rem; }
  .activity-card { grid-template-columns: 60px 1fr; }
}

/* ── Join row ── */
.join-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 2rem 0 1.25rem;
  color: var(--muted-2); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.join-divider::before, .join-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-d);
}

.join-row { display: flex; gap: 10px; }
.join-code { flex: 1; margin: 0; font-family: 'Courier New', monospace; letter-spacing: 0.05em; }
.join-btn {
  background: transparent; color: var(--paper);
  border: 1px solid var(--border-d); border-radius: var(--r-md);
  padding: 13px 20px; font-size: 0.95rem; font-weight: 500;
  white-space: nowrap; transition: all 0.18s; flex-shrink: 0;
}
.join-btn:hover { border-color: rgba(245,241,235,0.3); background: var(--glass); }

/* ── Itinerary pack members ── */
.itin-pack-label {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 1.5rem; margin-bottom: 0.75rem;
}
.itin-pack-members {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.itin-member {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass);
  border: 1px solid var(--border-d);
  border-radius: 100px;
  padding: 6px 14px 6px 6px;
}
.itin-member-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.itin-member-name {
  font-size: 0.88rem; color: var(--paper); font-weight: 500;
}

/* ── Activity footer (tag + suggester) ── */
.act-footer {
  display: flex; align-items: center; gap: 10px;
  margin-top: 7px; flex-wrap: wrap;
}
.act-suggester {
  font-size: 0.72rem; color: var(--orange);
  font-style: italic; opacity: 0.85;
}
