/* Plotify — the flyer look.
   Nightlife lives on paper: risograph flyers, marker on a xerox, fluoro pink
   on warm stock. So the site is that, not a dark dashboard. One ink (the brand
   pink, #FF48B0), one paper (#F7F1E8, lifted byte-for-byte from the app icon),
   warm near-black type, a faint grain. The disco ball is the only ornament it
   needs. Colours and geometry match Assets.xcassets/AppIcon + make_icon.py. */

:root {
  --paper: #f7f1e8;         /* the brand stock, = icon PAPER */
  --paper-2: #efe6d5;       /* a deeper cream: card insets, wells */
  --paper-3: #e8ddc9;       /* wash panels */
  --ink: #1a1217;           /* warm near-black, body type */
  --ink-2: #6b5f63;         /* secondary type — 5.3:1 on paper */
  --ink-3: #8d8286;         /* faint, large text only */
  --pink: #ff48b0;          /* the ink. A FILL colour: never type on paper */
  --pink-ink: #c0166a;      /* pink you can read: links + accents, 5:1 */
  --pink-wash: rgba(255, 72, 176, 0.12);
  --edge: rgba(26, 18, 23, 0.14);   /* hairlines */
  --edge-2: rgba(26, 18, 23, 0.07);
  /* Muted spot inks, always paired with a word (never colour alone). */
  --go: #1f7a4d;
  --warn: #a1590a;
  --stop: #c0362e;
  --radius: 18px;
  --maxw: 1080px;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* The grain. A faint speckle laid over the paper, fixed so it doesn't scroll
   like wallpaper. It is what keeps the flats from reading as a template. */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("/assets/grain.png");
  background-size: 220px 220px;
  opacity: 0.5; pointer-events: none; z-index: -1;
}

::selection { background: var(--pink); color: #fff; }

a { color: var(--pink-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Horizontal padding only, as a logical longhand: an element that is both
   .wrap and a block with its own vertical padding (the hero, the sections)
   must not have its side gutter wiped by a `padding` shorthand, or the other
   way around. Keeping the axes on separate properties de-conflicts them. */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 680px; }

/* ---------- nav ---------- */

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 21px; color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 0; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--ink-2); font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---------- buttons: dark type on pink, the way a flyer prints ---------- */

.btn {
  display: inline-block;
  background: var(--pink); color: var(--ink);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: 999px;
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 0 rgba(26, 18, 23, 0.18);
}
.btn:hover { text-decoration: none; filter: brightness(0.97); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-quiet {
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- hero ---------- */

.hero { padding-block: 40px 24px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 800; color: var(--pink-ink);
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 78px);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 800;
}
.hero h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--pink-ink); letter-spacing: -0.01em;
}
.hero .sub {
  margin: 22px 0 0; max-width: 460px;
  color: var(--ink-2); font-size: clamp(17px, 2.4vw, 20px);
}
.hero .cta { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .cta .note { font-size: 14px; color: var(--ink-3); font-weight: 500; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- the flyer (hero illustration + product mock share this) ---------- */

.flyer {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 26px 24px 22px;
  box-shadow: 10px 12px 0 var(--pink);
  max-width: 400px; margin-left: auto;
}
.flyer .tape {
  position: absolute; top: -13px; right: 18px; transform: rotate(3deg);
  background: var(--pink); color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 4px;
}
.flyer-ball { width: 76px; height: 76px; margin: 6px 0 14px; }
.flyer h3 {
  font-size: 30px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 800;
}
.flyer .meta { margin-top: 12px; display: grid; gap: 7px; }
.flyer .meta div { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.flyer .meta b { color: var(--ink); font-weight: 700; min-width: 52px; }
.flyer .stub {
  margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--edge);
  display: flex; justify-content: space-between; align-items: center;
}
.flyer .stub .tag {
  font-size: 12.5px; font-weight: 800; color: var(--go);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.flyer .stub .price { font-size: 20px; font-weight: 800; }

/* the home fit-card mock reuses .mock but on paper now */
.mock {
  margin: 0; max-width: 400px; text-align: left; margin-left: auto;
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: 6px; padding: 20px;
  box-shadow: 10px 12px 0 var(--pink);
}
.mock .row { display: flex; justify-content: space-between; align-items: center; }
.badge { font-size: 13px; font-weight: 800; }
.badge.in { color: var(--go); }
.badge.curfew { color: var(--warn); font-weight: 700; font-size: 13px; }
.mock .cost { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.mock .mock-title { margin: 10px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.mock .where { color: var(--ink-2); font-size: 14px; }
.mock .friends { color: var(--pink-ink); font-size: 14px; font-weight: 700; margin-top: 10px; }
.mock .send {
  margin-top: 14px; display: inline-block;
  background: var(--pink-wash); color: var(--pink-ink);
  font-size: 13.5px; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
}

/* ---------- section scaffolding ---------- */

section { padding-block: 68px; }
.rule { border: 0; border-top: 2px solid var(--ink); opacity: 0.9; }
section h2 {
  font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -0.03em;
  line-height: 1.02; font-weight: 800; margin-bottom: 12px;
}
section h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--pink-ink); }
section .lede { color: var(--ink-2); max-width: 640px; margin-bottom: 40px; font-size: 18px; }

/* numbered editorial steps */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px;
  padding: 30px 0; border-top: 2px solid var(--edge);
  align-items: start;
}
.step:last-child { border-bottom: 2px solid var(--edge); }
.step .num {
  font-family: var(--serif); font-style: italic;
  font-size: 46px; line-height: 1; color: var(--pink-ink); font-weight: 500;
}
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; font-weight: 800; }
.step p { color: var(--ink-2); font-size: 16px; max-width: 560px; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .step .num { font-size: 34px; }
}

/* three-up feature cards (invite privacy trio) */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: 6px; padding: 24px;
  box-shadow: 5px 6px 0 var(--edge);
}
.card .k {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
  background: var(--pink-wash); border-radius: 10px;
  width: 46px; height: 46px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.02em; font-weight: 800; }
.card p { color: var(--ink-2); font-size: 15px; }

/* a full-bleed pink band, the loud pull-quote moment */
.band {
  background: var(--pink); color: var(--ink);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 60px 0;
}
.band .wrap { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.band .big-q {
  font-size: clamp(26px, 3.8vw, 38px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 800; flex: 1 1 420px;
}
.band .big-q em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.band p { flex: 1 1 300px; font-size: 16px; color: var(--ink); opacity: 0.85; }
.band a { color: var(--ink); text-decoration: underline; font-weight: 700; }

/* the privacy strip (kept for the home page proof block) */
.privacy-strip {
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: 6px; padding: 28px; box-shadow: 6px 7px 0 var(--edge);
  display: flex; gap: 20px; align-items: flex-start;
}
.privacy-strip .lock { font-size: 28px; }
.privacy-strip h3 { font-size: 19px; margin-bottom: 6px; font-weight: 800; letter-spacing: -0.02em; }
.privacy-strip p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .privacy-strip { flex-direction: column; } }

/* the closing call-to-action */
.closer { text-align: center; padding: 84px 0; }
.closer h2 { margin-bottom: 18px; }
.closer .note { color: var(--ink-3); font-size: 14px; margin-top: 14px; }

/* ---------- invite / rsvp pages ---------- */

.invite-shell { min-height: 100svh; display: flex; flex-direction: column; }
.invite-main { flex: 1; display: flex; align-items: center; }
.invite-card {
  width: 100%; max-width: 480px; margin: 28px auto;
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: 8px; padding: 30px;
  box-shadow: 10px 12px 0 var(--pink);
}
.eyebrow {
  color: var(--pink-ink); font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px;
}
.invite-card h1 {
  font-size: clamp(27px, 6vw, 36px); line-height: 1.04;
  letter-spacing: -0.03em; overflow-wrap: anywhere; font-weight: 800;
}
.invite-when { color: var(--pink-ink); font-weight: 700; margin-top: 12px; }
.invite-host { color: var(--ink-2); font-size: 15px; margin-top: 4px; overflow-wrap: anywhere; }

.locked {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper-2); border: 1.5px solid var(--edge); border-radius: 12px;
  padding: 14px 16px; margin-top: 22px;
}
.locked .icon { font-size: 18px; }
.locked b { display: block; font-size: 15px; }
.locked span { color: var(--ink-2); font-size: 13.5px; }

.vibe { margin-top: 18px; color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; }
.vibe b { color: var(--ink); display: block; font-size: 14px; margin-bottom: 3px; }

.banner {
  border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
  font-size: 14.5px; font-weight: 700;
}
.banner.cancelled { background: rgba(192, 54, 46, 0.12); color: var(--stop); }
.banner.draft { background: var(--paper-2); color: var(--ink-2); }

.ask { margin-top: 26px; border-top: 2px solid var(--edge); padding-top: 24px; }
.ask h2 { font-size: 18px; margin-bottom: 4px; font-weight: 800; letter-spacing: -0.02em; }
.ask .hint { color: var(--ink-3); font-size: 13.5px; margin-bottom: 14px; }

.field { margin-bottom: 12px; }
.field input, .field textarea {
  width: 100%;
  background: var(--paper-2); color: var(--ink);
  border: 1.5px solid var(--edge); border-radius: 12px;
  padding: 13px 14px; font-size: 16px; font-family: inherit; resize: none;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-wash);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

.reply { margin-top: 16px; }
.reply .explain { color: var(--ink-2); font-size: 14px; margin-bottom: 12px; }
.reply .linkbox {
  background: var(--paper-2); border: 1.5px solid var(--edge); border-radius: 12px;
  padding: 12px 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  color: var(--ink-2); overflow-wrap: anywhere; margin-bottom: 12px;
}
.reply .actions { display: flex; gap: 10px; }
.reply .actions .btn { flex: 1; }

.openapp { margin-top: 20px; text-align: center; }
.openapp a { font-size: 14.5px; font-weight: 700; }

.fineprint {
  text-align: center; color: var(--ink-3); font-size: 12.5px;
  padding: 18px 24px 30px; max-width: 480px; margin: 0 auto;
}
.fineprint a { color: var(--ink-3); text-decoration: underline; }

.error-state { text-align: center; }
.error-state .big { font-size: 40px; margin-bottom: 12px; }
.error-state p { color: var(--ink-2); font-size: 15px; }

.hidden { display: none !important; }

/* ---------- docs (privacy / terms / support) ---------- */

.doc { padding: 44px 0 84px; }
.doc h1 { font-size: 38px; letter-spacing: -0.03em; margin-bottom: 6px; font-weight: 800; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 34px; }
.doc h2 { font-size: 22px; margin: 38px 0 10px; letter-spacing: -0.02em; font-weight: 800; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 700; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin-bottom: 8px; }
.doc b, .doc strong { color: var(--ink); }
.doc .callout {
  background: var(--paper); border: 2px solid var(--ink);
  border-left: 6px solid var(--pink);
  border-radius: 8px; padding: 16px 18px; margin: 18px 0;
}

/* ---------- footer ---------- */

footer {
  border-top: 2px solid var(--ink);
  padding: 40px 0 52px; margin-top: 20px;
  color: var(--ink-3); font-size: 14px;
}
footer .cols2 {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  align-items: center;
}
footer a { color: var(--ink-2); margin-right: 18px; font-weight: 600; }
footer a:hover { color: var(--ink); text-decoration: none; }

/* Spacing utilities — inline styles are blocked by the pages' own CSP. */
.mt12 { margin-top: 12px; }
.mt14 { margin-top: 14px; }
.mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; }

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .flyer, .mock { margin-left: 0; }
}

/* ---------- tickets on /i ---------- */
.ticket { margin-top: 22px; border-top: 2px solid var(--edge); padding-top: 20px; }
.ticket-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ticket-label { font-size: 15px; font-weight: 700; }
.ticket-row b { color: var(--pink-ink); font-size: 18px; }
.ticket-note { color: var(--ink-3); font-size: 12.5px; margin-top: 10px; text-align: center; }

.ticket-tiers { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.ticket-tiers li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 0.5rem 0;
  border-top: 1.5px solid var(--edge);
}
.ticket-tiers li:first-child { border-top: 0; }
.ticket-tiers li.sold-out { opacity: 0.5; }
.ticket-tiers li.sold-out strong { text-decoration: line-through; }
.ticket-policy { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--ink-2); }

.party-ig { display: inline-block; margin-top: 0.75rem; font-weight: 700; }
