/* PartyFrame — public pages.
   Brand family: iLumin8's warm cinematic ink + cream, with a party
   accent (amber + ember). One stylesheet for every public page.
   Motion is decoration only: everything reads fine without it, and
   prefers-reduced-motion turns it all off. */

:root {
  --ink: #17120e;
  --ink-2: #221912;
  --ink-3: #2e2115;
  --cream: #f7f0e4;
  --paper: #fffaf1;
  --sand: #efe3d0;
  --gold: #e8a54b;
  --ember: #d96f4e;
  --ink-text: #241a10;
  --muted-on-dark: #cdbfa9;
  --muted-on-light: #6f6151;
  --line-dark: rgba(247, 240, 228, 0.14);
  --line-light: rgba(36, 26, 16, 0.12);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- launch banner ---------- */
.banner {
  background: var(--gold);
  color: #2a1c08;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
}
.banner a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(23, 18, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 14px; padding-bottom: 14px;
}
.wordmark {
  font-family: var(--serif); font-size: 1.45rem; color: var(--cream);
  text-decoration: none; letter-spacing: 0.01em; white-space: nowrap;
}
.wordmark .frame { color: var(--gold); }
.head-nav { display: flex; gap: 22px; align-items: center; }
.head-nav a {
  color: var(--muted-on-dark); text-decoration: none; font-size: 0.95rem;
}
.head-nav a:hover { color: var(--cream); }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--gold); color: #2a1c08 !important;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  padding: 11px 20px; border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
  box-shadow: 0 6px 18px rgba(232, 165, 75, 0.25);
}
.btn:hover { transform: translateY(-2px); background: #f0b45e; }
.btn.ghost {
  background: transparent; color: var(--cream) !important;
  border: 1px solid var(--line-dark); box-shadow: none;
}
@media (max-width: 640px) {
  .head-nav a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(217, 111, 78, 0.35), transparent 60%),
    radial-gradient(760px 520px at -10% 110%, rgba(232, 165, 75, 0.28), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  color: var(--cream);
  padding: 84px 0 92px;
}
.hero .glow {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: 0.5; pointer-events: none;
}
.hero .glow.a { width: 420px; height: 420px; right: -120px; top: -140px; background: #d96f4e; }
.hero .glow.b { width: 360px; height: 360px; left: -100px; bottom: -160px; background: #e8a54b; }
.dot {
  position: absolute; border-radius: 50%; pointer-events: none; opacity: 0.75;
}
.hero .kicker {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem;
  color: var(--gold); font-weight: 700; margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem); margin: 0 0 20px; max-width: 15.5ch;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted-on-dark);
  max-width: 56ch; margin: 0 0 34px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .fineprint { margin-top: 18px; font-size: 0.9rem; color: var(--muted-on-dark); }

/* event-type ticker */
.ticker {
  margin-top: 58px; border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker .track { display: inline-block; padding: 13px 0; }
.ticker span {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--muted-on-dark); margin: 0 26px;
}
.ticker span::after { content: "✦"; margin-left: 52px; color: var(--gold); font-style: normal; }

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--sand); }
section.dark { background: var(--ink); color: var(--cream); }
.kicker {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.76rem;
  font-weight: 700; color: var(--ember); margin: 0 0 12px;
}
section.dark .kicker { color: var(--gold); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 14px; }
.sub { color: var(--muted-on-light); max-width: 62ch; margin: 0 0 40px; font-size: 1.05rem; }
section.dark .sub { color: var(--muted-on-dark); }

.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 26px 24px;
}
section.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted-on-light); font-size: 0.98rem; }
section.dark .card p { color: var(--muted-on-dark); }
.card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #2a1c08; background: var(--gold);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 14px;
}
.card .tag.soon { background: transparent; color: var(--ember); border: 1px solid var(--ember); }
section.dark .card .tag.soon { color: var(--gold); border-color: var(--gold); }

/* ---------- pricing ---------- */
.plans {
  display: grid; gap: 18px; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.plan {
  background: var(--paper); border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column;
}
.plan.pick {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
  box-shadow: 0 22px 44px rgba(23, 18, 14, 0.28);
}
.plan .pick-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.plan h3 { margin: 0 0 4px; font-size: 1.4rem; }
.plan .price { font-family: var(--serif); font-size: 2.3rem; margin: 6px 0 2px; }
.plan .price small { font-size: 1rem; font-family: var(--sans); }
.plan .billing { font-size: 0.85rem; color: var(--muted-on-light); margin-bottom: 18px; }
.plan.pick .billing { color: var(--muted-on-dark); }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li {
  padding: 7px 0 7px 24px; position: relative; font-size: 0.95rem;
  border-top: 1px solid var(--line-light);
}
.plan.pick li { border-top-color: var(--line-dark); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--ember); font-weight: 700; }
.plan.pick li::before { color: var(--gold); }
.plan .btn { text-align: center; }
.plan .btn.plain {
  background: transparent; color: var(--ink-text) !important;
  border: 1px solid var(--line-light); box-shadow: none;
}
.pricing-notes { margin-top: 26px; color: var(--muted-on-light); font-size: 0.92rem; max-width: 74ch; }
.pricing-notes p { margin: 6px 0; }

/* ---------- comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}
.compare thead th { font-family: var(--serif); font-size: 1.1rem; }
.compare td.win { font-weight: 600; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--paper); }

/* ---------- join form ---------- */
.join-grid {
  display: grid; gap: 42px; align-items: start;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 820px) { .join-grid { grid-template-columns: 1fr; } }
form.lead {
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 28px 26px;
}
form.lead label {
  display: block; font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.02em; margin: 0 0 16px; color: var(--cream);
}
form.lead input, form.lead select {
  width: 100%; margin-top: 6px; padding: 12px 13px;
  border-radius: 10px; border: 1px solid var(--line-dark);
  background: var(--ink); color: var(--cream);
  font: inherit; font-size: 0.98rem;
}
form.lead input:focus, form.lead select:focus {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
form.lead .btn { width: 100%; margin-top: 4px; }
.form-status { min-height: 1.4em; font-size: 0.95rem; margin: 14px 0 0; }
.form-status.error { color: #ff9c7a; }
.form-status.ok { color: #ffd9a0; }
.form-note { font-size: 0.85rem; color: var(--muted-on-dark); margin-top: 12px; }
.join-points { list-style: none; margin: 22px 0 0; padding: 0; }
.join-points li { padding: 8px 0 8px 26px; position: relative; color: var(--muted-on-dark); }
.join-points li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); }

/* ---------- footer ---------- */
footer {
  background: var(--ink); color: var(--muted-on-dark);
  border-top: 1px solid var(--line-dark); padding: 44px 0 54px;
  font-size: 0.92rem;
}
footer .wrap { display: flex; flex-direction: column; gap: 10px; }
footer a { color: var(--cream); }
footer .honest { max-width: 72ch; }

/* ---------- motion (decoration only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .glow.a { animation: drift 16s ease-in-out infinite alternate; }
  .hero .glow.b { animation: drift 20s ease-in-out infinite alternate-reverse; }
  @keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-46px, 30px) scale(1.12); }
  }
  .dot { animation: floaty 7s ease-in-out infinite alternate; }
  @keyframes floaty {
    from { transform: translateY(0); }
    to { transform: translateY(-16px); }
  }
  .ticker .track { animation: tick 36s linear infinite; }
  @keyframes tick {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .js-anim .reveal { opacity: 0; transform: translateY(18px); }
  .js-anim .reveal.in {
    opacity: 1; transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .card, .plan { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .card:hover, .plan:hover { transform: translateY(-4px); }
}
