/* Feedz website — colours match the app's theme tokens (src/theme/light.ts, dark.ts). */
:root {
  --background: #FDFCFC;
  --surface: #FFFFFF;
  --surface-alt: #F2EFEF;
  --border: #E7E2E2;
  --text: #0B141C;
  --text-muted: #4A5560;
  --primary: #EF2A25;
  --primary-pressed: #B0181A;
  --primary-text: #C4161C;
  --on-primary: #FFFFFF;
  --outline: #7A1013;
  --gold: #F6C343;
  --gold-soft: #FBE6A2;
  --on-gold: #7A1013;
  --on-gold-soft: #7A1013;
  --pass: #3A8EE6;
  --gloss: rgba(255, 255, 255, 0.85);
  --skeleton: rgba(11, 20, 28, 0.08);
  --shadow: 0 18px 40px -18px rgba(122, 16, 19, 0.35);

  --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #16110E;
    --surface: #221A16;
    --surface-alt: #2B221D;
    --border: #3A2E27;
    --text: #FDFCFC;
    --text-muted: #B9AE9C;
    --primary: #E5302A;
    --primary-pressed: #B0181A;
    --primary-text: #FF6B63;
    --on-primary: #FFFFFF;
    --outline: #7A1013;
    --gold: #F2B93B;
    --gold-soft: #3A2B12;
    --on-gold: #3B0A0C;
    --on-gold-soft: #F6D58A;
    --pass: #6FB3F2;
    --skeleton: rgba(253, 248, 211, 0.1);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--primary-text); font-weight: 700; }

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: 34px; margin: 32px 0 12px; }
h2 { font-size: 22px; margin: 32px 0 8px; }

.muted { color: var(--text-muted); }

/* Read by screen readers, hidden on screen. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Page width. .wrap is the narrow reading column (privacy, support); .container is the homepage width. */
.wrap, .container {
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.wrap { max-width: 720px; padding-bottom: 48px; }
.container { max-width: 1120px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.top img { display: block; height: 40px; width: auto; }

.top nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--text); }
.top nav a:hover { color: var(--primary-text); }

@media (max-width: 560px) {
  .top nav .nav-extra { display: none; }
}

/* Glossy "sticker" accents: thick maroon outline + white highlight streak. Hero elements only. */
.sticker {
  position: relative;
  border: 3px solid var(--outline);
  box-shadow: 0 4px 0 var(--outline);
}
.sticker::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 14px;
  width: 22px;
  height: 7px;
  border-radius: 999px;
  background: var(--gloss);
  transform: rotate(-12deg);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { background: var(--primary-pressed); }
.btn:active { transform: scale(0.97) translateY(2px); box-shadow: 0 2px 0 var(--outline); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--pass); outline-offset: 3px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--on-gold);
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-text);
}

/* Homepage hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 56px 72px;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--primary-text); }
.hero-copy > p { font-size: 19px; color: var(--text-muted); max-width: 30em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* Waitlist giveaway card in the hero (website/waitlist.js) — the page's main call to action. */
.waitlist {
  max-width: 34em;
  margin: 0;
  padding: 24px;
  border-radius: 28px;
  background: var(--gold-soft);
  color: var(--on-gold-soft);
  box-shadow: 0 6px 0 var(--outline);
}
.waitlist.sticker::before { top: 10px; left: 22px; }
.waitlist-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  border: 2px solid var(--outline);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.waitlist-title {
  margin: 0 0 8px;
  font-size: clamp(32px, 4.2vw, 44px);
  color: var(--on-gold-soft);
}
.waitlist-title span { color: var(--primary-text); }
.waitlist-sub { margin: 0 0 18px; font-size: 17px; font-weight: 700; opacity: 0.9; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type='email'] {
  flex: 1 1 100%;
  min-height: 62px;
  padding: 14px 24px;
  border: 3px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 19px;
  font-weight: 700;
}
.waitlist input[type='email']::placeholder { color: var(--text-muted); font-weight: 600; opacity: 0.85; }
.waitlist input[type='email']:focus-visible { outline: 3px solid var(--pass); outline-offset: 2px; }
.waitlist input[aria-invalid='true'] { border-color: var(--primary-text); }
.waitlist .btn { flex: 1 1 100%; min-height: 62px; padding-inline: 30px; border: 3px solid var(--outline); box-shadow: 0 4px 0 var(--outline); cursor: pointer; }
.waitlist .btn:disabled { opacity: 0.7; cursor: progress; }
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-status { margin: 14px 0 0; font-size: 18px; font-weight: 800; }
.waitlist-status:empty { display: none; }
.waitlist-status.is-error { color: var(--primary-text); }
.waitlist-fine { margin: 14px 0 0; font-size: 13px; opacity: 0.85; }
.waitlist-fine a { color: inherit; }
/* After joining: hide the box and button, keep the thank-you message. */
.waitlist.is-done .waitlist-row, .waitlist.is-done .waitlist-sub { display: none; }
.waitlist { position: relative; }
.waitlist.is-done .waitlist-status { font-size: 22px; }

/* The tick stamp that takes the email box's place. */
.waitlist-stamp {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 6px 0 4px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  border: 3px solid var(--outline);
  box-shadow: 0 4px 0 var(--outline);
}
.waitlist-stamp svg { width: 40px; height: 40px; }

/* Joined just now: the card pops, the stamp bounces in, the message slides up. */
.waitlist.is-celebrating { animation: waitlist-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.waitlist.is-celebrating .waitlist-stamp { animation: stamp-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.waitlist.is-celebrating .waitlist-status { animation: rise-in 0.45s 0.2s ease-out both; }

@keyframes waitlist-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.04) rotate(-0.6deg); }
  100% { transform: scale(1); }
}
@keyframes stamp-in {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
@keyframes rise-in {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Confetti burst (waitlist.js adds and removes it). */
.confetti { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.confetti span {
  position: absolute;
  width: 10px;
  height: 14px;
  border: 1.5px solid var(--outline);
  border-radius: 3px;
  opacity: 0;
  animation: confetti-burst 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes confetti-burst {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 140px)) rotate(var(--r)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist.is-celebrating, .waitlist.is-celebrating .waitlist-stamp, .waitlist.is-celebrating .waitlist-status { animation: none; }
}

@media (max-width: 480px) {
  .waitlist { padding: 20px 16px; }
}

/* Single-message pages (open in app) reuse .hero but centred. */
.hero.centred { display: block; text-align: center; padding-block: 72px 40px; }
.hero.centred h1 { font-size: clamp(34px, 6vw, 48px); }
.hero.centred p { font-size: 18px; color: var(--text-muted); max-width: 30em; margin: 0 auto 24px; }
.hero.centred .logo { display: block; width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 28px; }

/* Phone mockups: real iPhone proportions (screen 393 × 852 pt, 19.5:9) showing the app screenshots
   in website/img/screen-*.jpg. The screenshots are shorter than a real screen, so they're split just
   above the tab bar: the top part sits under the status bar, the tab bar sits at the bottom, and the
   app's own background colour fills between. Sizes use cqw (1% of the phone's width) so every part
   scales together. */
.phones {
  position: relative;
  height: 660px;
}
.phone {
  position: absolute;
  container-type: inline-size;
  width: 300px;
  padding: 10px;
  border-radius: 52px;
  background: #1D1714;
  box-shadow: var(--shadow), inset 0 0 0 2px #4A3F38;
}
/* Side buttons: power on the right, volume on the left. */
.phone::before, .phone::after {
  content: '';
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #3A302B;
}
.phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 calc(300px * 0.12) 0 #3A302B; }
.phone::after { right: -3px; top: 27%; height: 14%; }

.phone-front { left: 0; top: 0; z-index: 2; transform: rotate(-4deg); }
.phone-back { right: 0; top: 48px; transform: rotate(5deg) scale(0.9); }

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 393 / 852;
  overflow: hidden;
  border-radius: 14.5cqw;
  background: #16110D; /* the app's dark background, sampled from the screenshots */
  color: #FDFCFC;
}
.status {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 13.2cqw;
  padding: 1.2cqw 8.5cqw 0 10cqw;
  font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
  font-size: 4.3cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.island {
  position: absolute;
  left: 50%;
  top: 3cqw;
  width: 31cqw;
  height: 9cqw;
  margin-left: -15.5cqw;
  border-radius: 999px;
  background: #000;
}
.status-icons { width: 19cqw; height: auto; }
.shot {
  flex: none;
  width: 100%;
  background-image: var(--shot);
  background-repeat: no-repeat;
  background-size: 100% auto;
}
.shot-top { background-position: top center; }
.shot-gap { flex: 1 1 auto; }
.shot-tabs { background-position: bottom center; }
/* Where each screenshot is split (pixel row): just below the last content, above the tab bar. */
.phone-front .shot-top { aspect-ratio: 640 / 915; }  /* screen-match.jpg, 640 × 1005 */
.phone-front .shot-tabs { aspect-ratio: 640 / 90; position: relative; }
/* The last few pixels of the heart button's shadow land in this slice; cover them. */
.phone-front .shot-tabs::before {
  content: '';
  position: absolute;
  left: 54%;
  top: 0;
  width: 18%;
  height: 8%;
  background: #16110D;
}
.phone-back .shot-top { aspect-ratio: 640 / 912; }   /* screen-perks.jpg, 640 × 1004 */
.phone-back .shot-tabs { aspect-ratio: 640 / 92; }
.home-bar { position: relative; flex: none; height: 8cqw; }
.home-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2.2cqw;
  width: 34cqw;
  height: 1.3cqw;
  margin-left: -17cqw;
  border-radius: 999px;
  background: #FDFCFC;
}

/* App-icon sticker that sits in front of the phones */
.app-icon {
  position: absolute;
  left: -28px;
  bottom: 24px;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  overflow: hidden;
  transform: rotate(-8deg);
}
.app-icon img { display: block; width: 100%; height: 100%; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 32px 56px; }
  .phones { height: 660px; max-width: 440px; margin: 0 auto; width: 100%; }
}

@media (max-width: 440px) {
  .phones { height: 520px; }
  .phone { width: 230px; padding: 8px; border-radius: 40px; }
  .phone::before { box-shadow: 0 calc(230px * 0.12) 0 #3A302B; }
  .phone-back { right: -6px; }
  .app-icon { width: 76px; height: 76px; border-radius: 21px; left: -6px; bottom: 8px; }
}

/* Homepage sections */
.section { padding-block: 72px; }
.section-head { max-width: 36em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 12px; }
.section-head p { margin: 0; font-size: 18px; color: var(--text-muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}
.steps .num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
}
.steps h3 { font-size: 24px; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--text-muted); }

.perks-band {
  background: var(--gold-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.perks-band .section-head h2, .perks-band .eyebrow { color: var(--on-gold-soft); }

.perk-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.perk {
  position: relative;
  padding: 22px 22px 22px 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 2px dashed var(--on-gold-soft);
}
/* ticket notches */
.perk::before, .perk::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 2px dashed var(--on-gold-soft);
}
.perk::before { left: -10px; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.perk::after { right: -10px; border-right-color: transparent; border-top-color: transparent; transform: rotate(45deg); }
.perk strong { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: var(--primary-text); }
.perk span { display: block; margin-top: 6px; color: var(--text-muted); }

.perk-how { margin: 28px 0 0; color: var(--text-muted); max-width: 44em; }

.venues {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 32px;
  background: var(--primary);
  color: var(--on-primary);
  border: 3px solid var(--outline);
  box-shadow: 0 6px 0 var(--outline);
}
.venues h2 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 12px; }
.venues p { margin: 0 0 24px; font-size: 18px; opacity: 0.95; }
.venues ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.venues li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}
.venues li svg { flex: none; margin-top: 2px; }
/* Fixed white-on-red in both modes so the button stays readable. */
.venues .btn { background: #FFFFFF; color: #7A1013; }
.venues .btn:hover { background: #F2EFEF; }

@media (max-width: 900px) {
  .steps, .perk-list { grid-template-columns: 1fr; }
  .venues { grid-template-columns: 1fr; padding: 28px 20px; }
  .section { padding-block: 56px; }
}

/* Footer */
footer {
  margin-top: 56px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
footer a { margin-right: 16px; }


