/* CrewRoam theme. Same class skeleton as the EveryPort stylesheet so pages
   stay structurally interchangeable; the palette vars keep their names but
   carry CrewRoam's night-indigo / violet / amber identity. */
:root {
  --navy: #1b1f3a;        /* night indigo */
  --navy-2: #272c52;
  --sea: #6d5bd0;         /* violet */
  --sea-light: #efecfb;
  --coral: #f59e0b;       /* amber CTA */
  --coral-dark: #d97706;
  --sand: #faf8f4;
  --ink: #23263a;
  --muted: #626880;
  --line: #e6e5f0;
  --ok: #17976a;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1020px;
  margin: 0 auto;
}
.logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: #fff; }
.logo span { color: #b6a6ff; }
.nav a.cta { text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 55%, var(--sea) 100%);
  color: #fff;
  padding: 72px 0 96px;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 760px;
  margin: 0 auto 18px;
}
.hero p.sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: #d4cdf2;
  max-width: 640px;
  margin: 0 auto 30px;
}
.trust {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
  color: #b6adde;
  font-size: 0.95rem;
}
.wave { display: block; width: 100%; margin-bottom: -1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--coral);
  color: #201a06;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--coral-dark); color: #fff; transform: translateY(-1px); }
.btn.secondary { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn.secondary:hover { background: rgba(255,255,255,0.22); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 10px;
}
section p.lede { text-align: center; color: var(--muted); max-width: 580px; margin: 0 auto 36px; }

/* ---------- packs ---------- */
#packs { background: #fff; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.pack {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pack .emoji { font-size: 1.8rem; }
.pack h3 { font-size: 1.15rem; }
.pack .spec { color: var(--muted); font-size: 0.92rem; }
.pack .price { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin-top: 6px; }
.pack .price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.pack .btn { margin-top: 14px; text-align: center; }
.pack.featured { border: 2px solid var(--sea); box-shadow: 0 0 0 4px var(--sea-light); }
.pack .flag-row { font-size: 1.15rem; letter-spacing: 2px; }

/* ---------- compare ---------- */
#compare { background: #fff; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp th { font-weight: 700; }
.cmp .hl { background: var(--sea-light); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sea); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- faq ---------- */
#faq { background: #fff; }
.faq-item { border-bottom: 1px solid var(--line); max-width: 720px; margin: 0 auto; }
.faq-item summary { padding: 16px 4px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::after { content: "+"; color: var(--sea); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 4px 16px; color: var(--muted); }

/* ---------- waitlist modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(27,31,58,0.55);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); padding: 32px; max-width: 420px; width: 100%;
  text-align: center;
}
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.modal input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; margin-bottom: 12px;
}
.modal .btn { width: 100%; }
.modal .close { background: none; border: none; color: var(--muted); margin-top: 12px; cursor: pointer; font-size: 0.9rem; }
.modal .done { color: var(--ok); font-weight: 700; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: #b6adde; padding: 40px 0; font-size: 0.88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: #d4cdf2; }

@media (max-width: 640px) {
  .hero { padding: 52px 0 72px; }
  section { padding: 48px 0; }
}

/* ------------------------------------------------------------- group buys */
.buy-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
select.qty {
  padding: 12px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
}
select.qty:focus { outline: none; border-color: var(--sea); }
.group-hint { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.share-box {
  background: var(--sea-light);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  word-break: break-all;
  font-size: 0.95rem;
  margin: 14px 0;
}
.claim-count { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 10px 0; }

/* ---------------------------------------------------------- sister brand */
.sister { background: var(--sea-light); padding: 26px 0; border-top: 1px solid var(--line); }
.sister p { color: var(--muted); font-size: 0.95rem; }
.sister a { color: var(--sea); font-weight: 700; }

/* ---------------------------------------------------------- sister topbar */
.topbar {
  display: block;
  background: var(--sea-light);
  color: var(--ink);
  text-align: center;
  font-size: 0.9rem;
  padding: 9px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.topbar strong { color: var(--sea); }
.topbar .arrow { color: var(--sea); font-weight: 700; }
.topbar:hover strong { text-decoration: underline; }
