/* heypulse.io · redesign 2026 (PUL-047)
 *
 * Shared by index, contact, delete-account, privacy, terms, download, organisers,
 * group-invite and /discover (functions/discover.js). Colours come from
 * the redesign tokens in assets/tokens.css (link it BEFORE this file); this
 * file only uses the variables. Light / dark / system is chosen with the theme
 * button (assets/theme.js) and set as <html data-theme> before first paint.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 11px; background: var(--red-deep); color: var(--white); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.abs { position: absolute; }
.mute { color: var(--mute); }
.red { color: var(--red-text); }      /* small red text */
.red-lg { color: var(--red); }        /* big type only (≥ 24px, or ≥ 18.66px bold) */
.tilt { transform: rotate(-5deg); }
.tiltr { transform: rotate(4deg); }
[hidden] { display: none !important; }

/* theme-swapped images (wordmark) */
.theme-light { display: var(--show-light) !important; }
.theme-dark { display: var(--show-dark) !important; }

/* ---------- Type ---------- */
.h1 { font-size: clamp(40px, 6.2vw, 80px); font-weight: 800; line-height: 1.02; letter-spacing: -1.5px; margin: 0; overflow-wrap: anywhere; }
.h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; line-height: 1.06; letter-spacing: -1px; margin: 0; }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.2; margin: 0; }
.lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--mute); font-weight: 500; }
.kick { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--acc); }
.body { font-size: 16px; line-height: 1.6; font-weight: 500; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 14px; border: 0;
  background: var(--red); color: var(--white);
  font-size: 19px; font-weight: 700; white-space: nowrap; flex: none; cursor: pointer; /* ≥ 18.66px bold = WCAG large text */
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.sm { min-height: 44px; font-size: 19px; border-radius: 12px; padding: 0 16px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .mark { width: 22px; height: auto; }

.store {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 16px;
  border-radius: 16px; background: var(--ink); color: var(--bg);
}
.store .t { font-size: 11px; font-weight: 600; line-height: 1; opacity: .85; }
.store .b { font-size: 20px; font-weight: 700; line-height: 1.15; }
.store.light { background: var(--white); color: var(--black); }
.stores { display: flex; gap: 14px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px;
  border-radius: 999px; background: var(--sf); color: var(--ink);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.pill.outline { border: 1px solid var(--line); }
.pill.red { background: var(--red-deep); color: var(--white); }  /* small text on red → deep red */
.pill.ink { background: var(--ink); color: var(--bg); }
.pill.fixed { background: var(--sf); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot.ok { background: var(--success); }

.chip {
  height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--line);
  font-size: 19px; font-weight: 700;
}
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Cards ---------- */
.card { background: var(--card-bg); border: var(--card-border); border-radius: 24px; }
.card.feat { border-color: var(--hi); }
.icon-tile {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  background: var(--bg); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.lift { transition: transform .15s ease; }
.lift:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .lift:hover { transform: none; } html { scroll-behavior: auto; } }

/* ---------- Nav ---------- */
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--red); }
.brand .wm { width: 118px; height: auto; display: block; }
.links { display: flex; gap: 30px; font-size: 15px; font-weight: 600; }
.links a { padding: 10px 0; }
.links a[aria-current="page"], .links a:hover { color: var(--red-text); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.menu {
  position: absolute; z-index: 20; top: calc(100% - 6px); left: 0; right: 0;
  display: flex; flex-direction: column; padding: 8px; border-radius: 22px;
  background: var(--bg); border: 1.5px solid var(--line); box-shadow: 0 16px 40px var(--shadow);
}
.menu a { padding: 14px 16px; border-radius: 14px; font-size: 17px; font-weight: 700; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--menu-on-bg); box-shadow: var(--menu-on-ring); color: var(--red-text); }
/* theme row at the bottom of the mobile menu (button styles: tokens.css .theme-btn) */
.menu .menu-theme {
  width: 100%; height: auto; min-height: 52px; justify-content: flex-start; gap: 12px;
  padding: 14px 16px; border: 0; border-radius: 14px; font-size: 17px; font-weight: 700; text-align: left;
}
.menu .menu-theme:hover { background: var(--menu-on-bg); box-shadow: var(--menu-on-ring); }
@media (max-width: 900px) {
  .links { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 901px) { .menu { display: none !important; } }
/* Under ~460px the logo, theme button, "Get the app" and the burger don't fit
   on one row: the theme switch is then only in the mobile menu. */
@media (max-width: 459px) { .nav-end .theme-btn { display: none; } }

/* ---------- Sections ---------- */
.sec { padding: 96px 0; }
.sec.alt { background: var(--sf); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 22px; }
.g4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 22px; }
.check { color: var(--red); flex: none; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 30px 0 80px; }
.hc { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hv { flex: 1 1 440px; min-width: 0; position: relative; height: 640px; }
.ticks { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--mute); }
.ticks span { display: flex; align-items: center; gap: 6px; }

/* phone mockups (illustrative, aria-hidden) */
.phone {
  position: absolute; left: 50%; top: 10px; margin-left: -150px; width: 300px; height: 620px;
  border-radius: 44px; border: 8px solid var(--phone-frame); background: var(--bg);
  overflow: hidden; box-shadow: 0 30px 60px var(--shadow);
}
.mph {
  width: 250px; height: 520px; border-radius: 38px; border: 7px solid var(--phone-frame); background: var(--bg);
  overflow: hidden; position: relative; flex: none; box-shadow: 0 20px 40px var(--shadow);
}
.ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-tabs { display: flex; gap: 14px; font-size: 12px; }
.ph-tabs .on { color: var(--acc); border-bottom: 1.5px solid var(--acc); }
.ph-search {
  display: flex; align-items: center; justify-content: space-between; margin: 12px 8px; height: 30px;
  border-radius: 999px; background: var(--sf); border: 1px solid var(--stroke); padding: 0 12px;
  font-size: 10px; color: var(--mute);
}
.ph-card { padding: 8px; background: var(--card-bg); border: var(--card-border); border-radius: 20px; }
.ph-card.feat { border-color: var(--hi); }
.ph-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58px; padding: 6px 8px 0;
  display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; background: var(--bg); color: var(--mute);
}
.ph-plus {
  width: 38px; height: 38px; margin-top: -6px; border-radius: 12px; background: var(--plus-bg); color: var(--plus-ink);
  display: flex; align-items: center; justify-content: center;
}
.ph-active { color: var(--red); }
.bubble-in { max-width: 170px; background: var(--sf); border-radius: 14px 14px 14px 4px; padding: 7px 10px; font-size: 11px; }
.bubble-out { align-self: flex-end; max-width: 170px; background: var(--red); color: var(--white); border-radius: 14px 14px 4px 14px; padding: 7px 10px; font-size: 11px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid var(--bg); }
.float-note {
  left: 0; top: 110px; width: 210px; padding: 12px 14px; border-radius: 20px 20px 20px 6px; transform: rotate(-5deg);
  background: var(--bg); border: 1.5px solid var(--line); box-shadow: 0 10px 30px var(--shadow);
}
.float-yes {
  right: 0; top: 250px; width: 200px; padding: 14px; border-radius: 20px; background: var(--red); color: var(--white);
  transform: rotate(6deg); box-shadow: 0 10px 30px var(--shadow);
}
.glow { left: 50%; margin-left: -210px; top: 70px; width: 420px; height: 420px; border-radius: 50%; background: var(--red); opacity: var(--glow); }

/* ---------- Event cards (live data) ---------- */
.ev { padding: 12px; display: block; }
.ev-img { position: relative; height: 210px; border-radius: 20px; overflow: hidden; background: var(--sf); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-img .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--red); background: var(--sf); }
.card .ev-img .ph { background: var(--bg); }
.ev-img .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.ev-img .more { position: absolute; left: 16px; bottom: 12px; color: var(--white); font-size: 13px; font-weight: 600; }
.ev-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 4px; min-width: 0; }
.ev-title { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-loc { display: flex; gap: 6px; align-items: center; font-size: 14px; min-width: 0; }
.ev-loc span, .ev-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-live { gap: 6px; font-size: 13px; font-weight: 800; }  /* C&B #183: Happening now on cards */
.ev-meta { font-size: 13px; color: var(--mute); }
.ev-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ev-price { font-size: 17px; font-weight: 800; white-space: nowrap; }
.ev-price small { font-size: 13px; font-weight: 700; color: var(--mute); }
.ev-cta { min-height: 44px; font-size: 19px; border-radius: 12px; padding: 0 14px; }
.skel { background: var(--sf); border-radius: 12px; animation: pulse 1.2s ease-in-out infinite; }
.card .skel { background: var(--line); }
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.state { padding: 40px 28px; text-align: center; align-items: center; gap: 14px; }
.state .sticker { width: 80px; height: auto; }

/* ---------- Organiser band ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band .kick, .band .yl { color: var(--yellow); }
.band .lead { color: var(--band-mute); }
.band .btn.ghost { color: var(--band-ink); border-color: var(--band-line); }
.stat-card { position: relative; flex: 1 1 380px; min-width: 0; max-width: 460px; padding: 22px; border-radius: 24px; background: var(--white); color: var(--black); }
.stat-card .m { color: var(--fixed-mute); }
.stat-box { padding: 12px; border-radius: 14px; background: var(--fixed-sf); }
.bar { height: 8px; border-radius: 4px; background: var(--fixed-line); margin-top: 10px; }
.bar > div { width: 68%; height: 100%; border-radius: 4px; background: var(--red); }
.valid { right: -14px; bottom: -22px; padding: 10px 14px; border-radius: 16px; background: var(--success); color: var(--white); transform: rotate(6deg); font-weight: 800; font-size: 14px; }

/* ---------- Download band ---------- */
.cta-band {
  position: relative; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between;
  padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--red); color: var(--white); overflow: hidden;
}
.cta-lead { font-size: 19px; line-height: 1.5; font-weight: 700; }  /* white on red: large-bold text */
.qr-card { align-items: center; gap: 8px; padding: 14px; border-radius: 22px; background: var(--white); color: var(--black); transform: rotate(4deg); }
.qr-card img { width: 150px; height: 150px; display: block; }

/* ---------- Forms ---------- */
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld label { font-size: 14px; font-weight: 700; }
.req { color: var(--red-text); }
.inp::placeholder { color: var(--mute); opacity: 1; }
.inp {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
  padding: 0 16px; font-size: 16px; color: var(--ink); outline: none;
}
.inp:focus { border-color: var(--red); }
.inp[aria-invalid="true"] { border-color: var(--red); }
textarea.inp { min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--red); background: var(--bg); font-size: 15px; font-weight: 600; line-height: 1.45; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* form panel: filled in light; outlined on bg in dark (token cardStyle), so red asterisks stay at 4.61:1 */
.form-panel { background: var(--panel-bg); border: var(--panel-border); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal text (privacy, terms) ---------- */
.doc { margin-top: 36px; font-size: 16px; line-height: 1.7; font-weight: 500; color: var(--mute); }
.doc h2 { margin: 44px 0 12px; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--red-text); text-decoration: underline; text-underline-offset: 2px; }
.doc-note { margin: 0 0 8px; padding: 18px 20px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--line); color: var(--ink); }

/* ---------- Footer ---------- */
.foot { border-top: 1.5px solid var(--line); padding: 64px 0 28px; }
.foot a { font-size: 15px; font-weight: 600; padding: 4px 0; }
.foot a:hover { color: var(--red-text); }
.foot .socials { margin-left: -11px; flex-wrap: wrap; }  /* lines the icon up with the text above, not its tap area */
.foot a.social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--social); }
.foot a.social:hover { color: var(--red-text); }
.fh { font-size: 12px; font-weight: 800; letter-spacing: .8px; color: var(--mute); }
.legal { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--mute); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .fl, .desk { display: none !important; }
  .sec { padding: 64px 0; }
  .hero { padding-bottom: 48px; }
  .hv { height: 640px; }
  .store { height: 54px; padding: 0 18px 0 14px; }
  .store .b { font-size: 18px; }
  .nav-end .btn.sm { padding: 0 12px; }
}
@media (max-width: 380px) {
  .brand .wm { width: 96px; }
  .nav-end .btn.sm { padding: 0 12px; }
  .phone { transform: scale(.9); transform-origin: top center; }
}

/* logomark inside buttons ("Get ticket" etc., §3: small white mark, trailing) */
.mark { display: inline-flex; width: 22px; flex: none; }
.mark svg { width: 100%; height: auto; display: block; }
.ev-img .ph svg { width: 72px; height: auto; }

/* numbered steps (how it works, delete account) */
.step { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.step.sm { width: 36px; height: 36px; font-size: 20px; }  /* ≥ 18.66px bold = large text */

/* "follow +" on the Who's going mockup turns yellow in dark (design 09-website dark) */
.pill.follow { background: var(--follow-bg); color: var(--follow-ink); border-color: var(--follow-line); }
