/* Quizy design tokens — mirrors src/theme/qz.ts in the RN app */
:root {
  --qz-yellow: #FFD23F;
  --qz-lime:   #B8E338;
  --qz-pink:   #FF5C8A;
  --qz-blue:   #3B5BFF;
  --qz-purple: #8B5CF6;
  --qz-orange: #FF8C42;
  --qz-cyan:   #38BDF8;
  --qz-red:    #EF4757;
  --qz-green:  #2BC48A;

  --qz-ink:       #0A0A0A;
  --qz-ink-soft:  #222222;
  --qz-ink-muted: #666666;
  --qz-paper:     #FFFFFF;
  --qz-bg:        #FFE600;
  --qz-cream:     #FFFBEC;

  --qz-border: #0A0A0A;
  --qz-border-w: 2.5px;

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

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--qz-bg);
  color: var(--qz-ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 .4em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

::selection { background: var(--qz-ink); color: var(--qz-yellow); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top banner (App Store launch) ---- */
.top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--qz-ink);
  color: white;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  border-bottom: var(--qz-border-w) solid var(--qz-border);
  transition: background 0.15s ease;
}
.top-banner:hover { background: var(--qz-pink); text-decoration: none; }
.top-banner__pill {
  display: inline-block;
  background: var(--qz-lime);
  color: var(--qz-ink);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 2px solid var(--qz-border);
  flex-shrink: 0;
}
.top-banner__cta {
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  margin-left: 4px;
}
@media (max-width: 600px) {
  .top-banner { font-size: 13px; padding: 10px 14px; gap: 8px; }
  .top-banner__pill { font-size: 10px; padding: 2px 7px; }
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--qz-bg);
  border-bottom: var(--qz-border-w) solid var(--qz-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-links { display: flex; gap: 22px; align-items: center; font-weight: 600; }

/* ---- Wordmark ---- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 28px;
  color: var(--qz-ink);
}
.wordmark .dot {
  width: .42em;
  height: .42em;
  background: var(--qz-pink);
  border-radius: 50%;
  border: var(--qz-border-w) solid var(--qz-border);
}

/* ---- Hero ---- */
.hero { padding: 60px 0 100px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 70px; }
}
.hero-title { font-size: clamp(2.8rem, 7vw, 5.6rem); margin: 18px 0 22px; }
.hero-title .accent {
  background: var(--qz-pink);
  color: white;
  border: var(--qz-border-w) solid var(--qz-border);
  padding: 0 .15em;
  display: inline-block;
  transform: rotate(-2deg);
  border-radius: 8px;
}
.hero-lede {
  font-size: 1.2rem;
  max-width: 540px;
  color: var(--qz-ink-soft);
  margin-bottom: 30px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* Phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone {
  width: min(320px, 80vw);
  aspect-ratio: 9/19;
  background: var(--qz-cream);
  border: var(--qz-border-w) solid var(--qz-border);
  border-radius: 38px;
  padding: 18px 14px;
  position: relative;
  transform: rotate(-4deg);
}
.phone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qz-border);
  border-radius: 38px;
  transform: translate(8px, 8px);
  z-index: -1;
}
.phone-screen {
  height: 100%;
  background: var(--qz-bg);
  border-radius: 24px;
  border: var(--qz-border-w) solid var(--qz-border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-screen .q-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.phone-screen .q-card {
  background: var(--qz-paper);
  border: var(--qz-border-w) solid var(--qz-border);
  border-radius: 14px;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.phone-screen .q-opt {
  background: var(--qz-paper);
  border: var(--qz-border-w) solid var(--qz-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-screen .q-opt.correct { background: var(--qz-lime); }
.phone-screen .q-opt .letter {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--qz-ink);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

/* Floating sticker accents */
.accent-sticker {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
  padding: 8px 14px;
  border: var(--qz-border-w) solid var(--qz-border);
  border-radius: 8px;
  color: var(--qz-ink);
  z-index: 5;
}
.accent-sticker::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qz-border);
  border-radius: 8px;
  transform: translate(3px, 3px);
  z-index: -1;
}

/* ---- Sections ---- */
.section {
  padding: 70px 0;
  border-top: var(--qz-border-w) solid var(--qz-border);
  background: var(--qz-cream);
}
.section.alt { background: var(--qz-paper); }
.section.pink { background: var(--qz-pink); color: white; }
.section.pink h2, .section.pink .eyebrow { color: white; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--qz-ink);
  color: var(--qz-yellow);
  border-radius: 6px;
  margin-bottom: 18px;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--qz-paper);
  border: var(--qz-border-w) solid var(--qz-border);
  border-radius: 22px;
  padding: 26px;
  position: relative;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qz-border);
  border-radius: 22px;
  transform: translate(6px, 6px);
  z-index: -1;
}
.feature .emoji { font-size: 38px; display: inline-block; margin-bottom: 12px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--qz-ink-soft); margin: 0; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--qz-paper);
  border: var(--qz-border-w) solid var(--qz-border);
  border-radius: 999px;
  font-weight: 700;
  position: relative;
}
.chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qz-border);
  border-radius: 999px;
  transform: translate(3px, 3px);
  z-index: -1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--qz-ink);
  color: white;
  border: var(--qz-border-w) solid var(--qz-border);
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  text-decoration: none;
  transition: transform 0.08s ease;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qz-border);
  border-radius: 14px;
  transform: translate(5px, 5px);
  z-index: -1;
  transition: transform 0.08s ease;
}
.btn:hover { transform: translate(1px, 1px); text-decoration: none; }
.btn:hover::before { transform: translate(4px, 4px); }
.btn:active { transform: translate(4px, 4px); }
.btn:active::before { transform: translate(0, 0); }
.btn.pink  { background: var(--qz-pink); }
.btn.lime  { background: var(--qz-lime); color: var(--qz-ink); }
.btn.white { background: var(--qz-paper); color: var(--qz-ink); }

.btn.is-soon {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn.is-soon:hover { transform: none; }
.btn.is-soon:hover::before { transform: translate(5px, 5px); }
.btn .soon-tag {
  display: inline-block;
  background: var(--qz-ink);
  color: var(--qz-yellow);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 4px;
}
.btn.white.is-soon .soon-tag { background: var(--qz-ink); color: var(--qz-yellow); }

/* Footer */
.footer {
  background: var(--qz-ink);
  color: white;
  padding: 50px 0 30px;
  border-top: var(--qz-border-w) solid var(--qz-border);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer .wordmark { color: white; }
.footer-tagline {
  color: #bbb;
  max-width: 320px;
  margin-top: 14px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; }
.footer-copy {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
  font-size: 14px;
  color: #999;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Privacy page */
.privacy-page { padding: 60px 0; }
.prose {
  max-width: 760px;
  margin: 0 auto;
  background: var(--qz-paper);
  border: var(--qz-border-w) solid var(--qz-border);
  border-radius: 22px;
  padding: 44px;
  position: relative;
}
.prose::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qz-border);
  border-radius: 22px;
  transform: translate(8px, 8px);
  z-index: -1;
}
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.prose .meta { color: var(--qz-ink-muted); font-size: 14px; margin-bottom: 28px; }
.prose h2 { font-size: 1.4rem; margin-top: 32px; margin-bottom: 10px; }
.prose h3 { font-size: 1.1rem; margin-top: 18px; margin-bottom: 6px; }
.prose p, .prose li { color: var(--qz-ink-soft); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { font-weight: 700; text-decoration: underline; }

@media (max-width: 600px) {
  .prose { padding: 28px; }
}

/* Contact card */
.contact-card {
  background: var(--qz-yellow);
  border: var(--qz-border-w) solid var(--qz-border);
  border-radius: 18px;
  padding: 26px;
  margin: 28px 0 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qz-border);
  border-radius: 18px;
  transform: translate(6px, 6px);
  z-index: -1;
}
.contact-card__label {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--qz-ink);
}
.contact-card__email {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  color: var(--qz-ink);
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 4px;
  word-break: break-all;
}
.contact-card .btn { margin-top: 4px; }
