/* ============================================================================
   DIY DJ Party — design tokens + base styles
   One stylesheet, all pages. Night-party brand: deep plum + electric magenta +
   neon-cyan accent. Built mobile-first; desktop enhancements via media queries.
   ============================================================================ */

:root {
  /* Brand palette */
  --ink:        #14101f;   /* near-black plum (page bg) */
  --ink-2:      #1d1730;   /* card bg */
  --ink-3:      #2a2142;   /* raised card / hover */
  --line:       #3a3157;   /* hairline borders */
  --paper:      #f7f4ff;   /* light text */
  --muted:      #b3a9cf;   /* secondary text */
  --muted-2:    #8a80a8;   /* tertiary text */

  --magenta:    #ff3da6;   /* primary brand */
  --magenta-2:  #ff6fc1;
  --cyan:       #2ce6e0;   /* electric accent */
  --gold:       #ffc24b;   /* warm accent / karaoke */
  --green:      #38e08a;   /* success / live */
  --red:        #ff5d6c;   /* danger / do-not-play */

  --grad: linear-gradient(120deg, #ff3da6 0%, #b14bff 50%, #2ce6e0 100%);
  --grad-warm: linear-gradient(120deg, #ff3da6 0%, #ffc24b 100%);

  /* Spacing scale */
  --sp-1: .4rem; --sp-2: .8rem; --sp-3: 1.2rem; --sp-4: 1.8rem;
  --sp-5: 2.6rem; --sp-6: 3.6rem; --sp-7: 5rem;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px rgba(255,61,166,.25), 0 12px 40px rgba(177,75,255,.18);

  --font-display: 'Sora', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,61,166,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(44,230,224,.12), transparent 55%),
    var(--ink);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; margin: 0 0 var(--sp-3); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 700; margin: 0 0 var(--sp-3); }
h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 var(--sp-2); }
p  { margin: 0 0 var(--sp-3); }
a  { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-3); }
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }
.tiny { font-size: .82rem; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--sp-3); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,16,31,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--paper); display: flex; align-items: center; gap: .5rem; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-size: 1rem; box-shadow: var(--shadow-glow);
}
.site-header nav { display: none; gap: var(--sp-4); align-items: center; }
.site-header nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.site-header nav a:hover { color: var(--paper); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #1a0e1c; box-shadow: var(--shadow-glow);
  transition: transform .15s ease, filter .15s ease; text-align: center;
  min-height: 48px; /* touch target */
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--paper); border: 1.5px solid var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: var(--magenta); }
.btn.full { width: 100%; }
.btn.small { padding: .55rem 1rem; font-size: .9rem; min-height: 40px; }

/* ---- Cards ---- */
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4); box-shadow: var(--shadow);
}
.card.raised { background: var(--ink-3); }
.grid { display: grid; gap: var(--sp-3); }

/* ---- Forms ---- */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--paper); }
.hint { font-size: .8rem; color: var(--muted-2); margin: -.1rem 0 .5rem; }
input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=time], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--paper);
  background: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: var(--sp-3); transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); }
textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; gap: var(--sp-3); }
.checks { display: grid; gap: .6rem; margin-bottom: var(--sp-3); }
.check {
  display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem;
  background: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
}
.check input { width: auto; margin: .2rem 0 0; }
.check:hover { border-color: var(--magenta-2); }
.check.on { border-color: var(--magenta); background: rgba(255,61,166,.08); }

/* ---- Pills / badges ---- */
.pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.pill.live { background: rgba(56,224,138,.15); color: var(--green); }
.pill.draft { background: rgba(255,194,75,.15); color: var(--gold); }
.pill.music { background: rgba(44,230,224,.14); color: var(--cyan); }
.pill.wed { background: rgba(255,61,166,.14); color: var(--magenta-2); }

/* ---- Split hero (text + Canva art) ---- */
.hero-split { text-align: left; }
.hero-grid { display: grid; gap: var(--sp-4); align-items: center; }
.hero-copy h1 { margin-top: var(--sp-2); }
.hero-art { order: -1; } /* mobile: image first, but compact */
.hero-art img {
  width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto;
  border-radius: var(--radius); box-shadow: var(--shadow-glow);
}
.hero-split .cta-row { justify-content: flex-start; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: var(--sp-6); }
  .hero-art { order: 0; }
  .hero-art img { max-width: 420px; }
}

/* ---- Hero ---- */
.hero { padding: var(--sp-6) 0 var(--sp-5); text-align: center; }
.hero .eyebrow { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--cyan); margin-bottom: var(--sp-3); }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 38ch; margin-left: auto; margin-right: auto; }
.hero .cta-row { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); align-items: center; }

/* ---- Sections ---- */
section.block { padding: var(--sp-6) 0; }
.section-head { text-align: center; margin-bottom: var(--sp-5); }
.section-head p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* ---- Steps (funnel map) ---- */
.steps { display: grid; gap: var(--sp-3); counter-reset: step; }
.step { display: flex; gap: var(--sp-3); align-items: flex-start; }
.step .num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--grad);
  color: #1a0e1c; font-family: var(--font-display); font-weight: 800; display: grid; place-items: center;
}
.step h3 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--muted); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: var(--sp-5) 0; color: var(--muted-2); font-size: .9rem; margin-top: var(--sp-6); }
.site-footer .container { display: flex; flex-direction: column; gap: var(--sp-2); }

/* ---- Gate (passcode) ---- */
.gate-wrap { min-height: 80vh; display: grid; place-items: center; padding: var(--sp-4); }
.gate { max-width: 420px; width: 100%; text-align: center; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink-3); border: 1px solid var(--magenta); color: var(--paper);
  padding: .8rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); opacity: 0;
  transition: all .25s ease; z-index: 100; pointer-events: none; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Module tiles (portal) ---- */
.tiles { display: grid; gap: var(--sp-3); }
.tile {
  display: block; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-4); transition: all .15s ease;
}
.tile:hover { border-color: var(--magenta); transform: translateY(-3px); text-decoration: none; box-shadow: var(--shadow-glow); }
.tile .ico { font-size: 1.8rem; margin-bottom: var(--sp-2); }
.tile h3 { color: var(--paper); }
.tile p { color: var(--muted); margin: 0; font-size: .92rem; }
.tile.locked { opacity: .5; pointer-events: none; }

/* ---- Desktop enhancements: serve a genuinely different layout, not just reflow ---- */
@media (min-width: 760px) {
  .site-header nav { display: flex; }
  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .hero .cta-row { flex-direction: row; justify-content: center; }
  .field-row.two { grid-template-columns: 1fr 1fr; }
  .field-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-5); }
  .site-footer .container { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---- Mobile bottom-nav (only on small screens; replaces hover nav per CLAUDE.md) ---- */
.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(20,16,31,.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; justify-content: space-around;
  padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
}
.mobile-nav a {
  flex: 1; text-align: center; color: var(--muted); font-size: .68rem; font-weight: 600;
  padding: .4rem .2rem; display: flex; flex-direction: column; gap: .15rem; align-items: center;
  min-height: 48px; justify-content: center;
}
.mobile-nav a .ico { font-size: 1.2rem; }
.mobile-nav a.active { color: var(--magenta-2); }
.has-mobile-nav { padding-bottom: 76px; }
@media (min-width: 760px) { .mobile-nav { display: none; } .has-mobile-nav { padding-bottom: 0; } }
