/* ──────────────────────────────────────────────────────────────────────────
   ARND marketing site. Design tokens mirrored from the app
   (lib/themeTokens.ts arnd-modern dark + lib/design/scale.ts).
   Luma-minimal: near-black surfaces, hairline borders, single bellflower-blue accent.
   ────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #0B0B0C;
  --bg-secondary: #141416;
  --surface: #141416;
  --surface-2: #171719;
  --border: #272729;
  --border-soft: #1E1E20;
  --text: #FAFAFA;
  --text-secondary: #B4B4BB;
  --text-muted: #76767E;
  --accent: #847FF7;
  --accent-deep: #504BF1;   /* deeper periwinkle for gradients */
  --accent-soft: rgba(132,127,247, 0.14);
  --gold: #F0C44A;

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Wordmark ─────────────────────────────────────────────────────────────── */
.wordmark { font-family: "Righteous", var(--font); font-weight: 400; letter-spacing: 0; font-size: 22px; }
.wordmark .accent { color: var(--accent); }
.accent { color: var(--accent); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: #0C1030; box-shadow: 0 8px 24px rgba(132,127,247, 0.30); }
.btn-primary:hover { transform: translateY(-1px); opacity: .94; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  /* ambient wash, the app's "fluid hygge" tint, in the bellflower palette */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(132,127,247, 0.22), transparent 60%),
    radial-gradient(600px 400px at 85% 10%, rgba(80,75,241, 0.12), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 22px;
}
.hero p.lede {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--text-secondary);
  max-width: 620px; margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { color: var(--text-muted); font-size: 13px; margin-top: 18px; }

/* ── Section scaffolding ──────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.section-head p { color: var(--text-secondary); font-size: 17px; margin-top: 14px; }
.kicker { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }

/* ── Audience cards ───────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #34343a; }
.card .ic {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--accent-soft); display: grid; place-items: center;
  margin-bottom: 18px; color: var(--accent);
}
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 15px; }

/* ── Steps (core loop) ────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--bg-secondary); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 24px; position: relative;
}
.step .n {
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ── Split / model band ───────────────────────────────────────────────────── */
.band {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.band h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.band p { color: var(--text-secondary); font-size: 16px; }
.fees { display: flex; flex-direction: column; gap: 12px; }
.fee {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 18px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
}
.fee .label { color: var(--text-secondary); font-size: 15px; }
.fee .pct { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.fee .pct .accent { color: var(--accent); }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.cta {
  text-align: center; padding: 80px 0;
  background:
    radial-gradient(700px 360px at 50% 120%, rgba(132,127,247, 0.16), transparent 60%);
}
.cta h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 16px; }
.cta p { color: var(--text-secondary); font-size: 18px; max-width: 540px; margin: 0 auto 30px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border-soft); padding: 48px 0 64px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .blurb { max-width: 320px; color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 14px; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Legal / doc pages ────────────────────────────────────────────────────── */
.doc { padding: 56px 0 80px; }
.doc-wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 8px; }
.doc .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 34px 0 10px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; color: var(--text); }
.doc p, .doc li { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc strong { color: var(--text); font-weight: 600; }
.callout {
  background: var(--accent-soft); border: 1px solid rgba(132,127,247, 0.3);
  border-radius: var(--radius-md); padding: 16px 18px; margin: 18px 0; color: var(--text-secondary); font-size: 15px;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.back-link:hover { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 32px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto; transition: none !important;
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
  }
}

/* ── Focus visibility (keyboard) ─────────────────────────────────────────── */
.btn:focus-visible, .btn-pill:focus-visible, .gchip:focus-visible, .submit-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ── Live pulse dot (app parity: the feed's HAPPENING NOW indicator) ─────── */
.livedot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #E5484D; margin-right: 7px; vertical-align: 1px;
  animation: livepulse 1.8s ease-out infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,72,77,0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(229,72,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); }
}

/* ── Signature: Promo band (design-system "Promo Card") ─────────────────────
   Spec: design-system/arnd/MASTER.md → Signature Elements. Solid brand field,
   cropped watermark, eyebrow + white pill CTA. */
.promo-band {
  position: relative; overflow: hidden;
  background: #504BF1; border-radius: 20px;
  padding: 40px 36px;
}
.promo-band .wm {
  position: absolute; right: -30px; top: -22px;
  width: 170px; height: 170px; opacity: 0.13;
  transform: rotate(-14deg); pointer-events: none;
}
.promo-band .eyebrow-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.promo-band .glyph-tile {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
}
.promo-band .eyebrow-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.promo-band h2 {
  color: #fff; font-size: clamp(24px, 4vw, 34px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  max-width: 560px; margin: 0 0 24px;
}
.promo-band .btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #504BF1;
  font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 9999px;
  transition: transform .2s ease, opacity .2s ease;
}
.promo-band .btn-pill:hover { transform: translateY(-1px); opacity: .94; }

/* ── Poster language (app parity: venue gig posters, artist cards) ──────────
   Righteous display type, committed color fields, cropped watermarks, tilted
   stickers, dashed ticket stubs. Spec: design-system, mirrored from the app's
   Venue Board and artist pages. */
.display { font-family: "Righteous", var(--font); font-weight: 400; letter-spacing: 0; }
h1.display, h2.display { letter-spacing: 0.01em; }
.sticker {
  display: inline-block; background: #FFFFFF; color: #141416;
  border: 2px solid #141416; border-radius: 10px;
  padding: 5px 12px; font-weight: 800; font-size: 13px; letter-spacing: 0.02em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

/* Gig-poster card: a committed color field, cropped watermark, tilted sticker
   across the seam. Shared by /site and /artists. */
.postergrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.postercard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; transition: transform .2s ease; }
.postercard:hover { transform: translateY(-3px) rotate(-0.4deg); }
.pc-field { position: relative; padding: 26px 20px 30px; overflow: hidden; }
.pc-wm { position: absolute; right: -20px; top: -20px; font-size: 120px; line-height: 1; opacity: 0.16; transform: rotate(-12deg); pointer-events: none; user-select: none; transition: transform .3s ease; }
.postercard:hover .pc-wm { transform: rotate(-6deg) scale(1.09); }
.pc-field h3 { font-size: 25px; line-height: 1.12; padding-right: 34px; }
.pc-kickline { margin-top: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; opacity: 0.78; }
.pc-sticker { align-self: flex-end; margin: -15px 16px 0 0; z-index: 2; }
.postercard:nth-child(odd) .pc-sticker { transform: rotate(-4deg); }
.postercard:nth-child(even) .pc-sticker { transform: rotate(3deg); }
.pc-body { padding: 12px 20px 20px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }

/* Dashed ticket-stub step, shared */
.stubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.stub { border: 2px dashed #43434B; border-radius: 16px; padding: 26px 22px; background: var(--surface); }
.stub:nth-child(odd) { transform: rotate(-1.2deg); }
.stub:nth-child(even) { transform: rotate(1.2deg); }
.stub .sn { font-family: "Righteous", var(--font); font-size: 30px; color: var(--accent); margin-bottom: 10px; }
.stub h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.stub p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* Floating genre stickers that bob near the hero, shared */
.hero-stickers { position: absolute; right: 24px; top: 96px; display: flex; flex-direction: column; gap: 16px; align-items: flex-end; z-index: 2; }
.hero-stickers span { display: inline-block; padding: 9px 16px; border-radius: 9999px; font-weight: 700; font-size: 14.5px; transform: rotate(var(--r, 0deg)); box-shadow: 0 8px 22px rgba(0,0,0,0.38); animation: bob 4.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); } 50% { transform: rotate(var(--r, 0deg)) translateY(-7px); } }
.hero-stickers span:nth-child(2) { margin-right: 42px; animation-delay: 0.6s; }
.hero-stickers span:nth-child(3) { margin-right: 10px; animation-delay: 1.4s; }
.hero-stickers span:nth-child(4) { margin-right: 56px; animation-delay: 2.1s; }
.hero-stickers span:nth-child(5) { margin-right: 22px; animation-delay: 2.9s; }
@media (max-width: 940px) {
  .hero-stickers { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
  .hero-stickers span { font-size: 13px; padding: 7px 13px; margin-right: 0 !important; }
}

/* ── Unified nav + hub tabs ───────────────────────────────────────────────
   One canonical nav on every page: same links, same pill, everywhere. The
   current page's link carries .active. Changelog, Design, and Atlas are one
   hub: pages under it share the .hub-tabs switcher instead of hijacking the
   main nav. */
.nav-links a.active { color: var(--text); }
.hub-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 0;
}
.hub-tab {
  font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-secondary);
}
.hub-tab.on { color: #fff; background: var(--accent-deep); border-color: transparent; }
.hub-tab:hover:not(.on) { color: var(--text); }
