/* LarpIt website. One stylesheet for every page.
   Brand rules: solid colours only (no gradients, blurs, glows or shadows), SF Pro through the
   system font stack, purple only as a small accent. Colour pairs come from the app's theme. */

:root {
  color-scheme: dark light;
  --bg: #000000;
  --surface: #121212;
  --raised: #1F1F1F;
  --text: #F5F0E6;
  --text-2: #9A9A9A;
  --btn: #F5F0E6;
  --on-btn: #0A0A0A;
  --accent: #9146FF;
  --on-accent: #FFFFFF;
  --accent-text: #A970FF;
  --win: #46D18A;
  --miss: #C98A7A;
  --live: #E0243A;
  --hairline: rgba(255, 255, 255, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-small: 8px;
  --r-control: 14px;
  --r-card: 20px;
  --r-panel: 28px;
  --inset: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F7F3EC;
    --surface: #FFFFFF;
    --raised: #ECE6DC;
    --text: #0A0A0A;
    --text-2: #666666;
    --btn: #0A0A0A;
    --on-btn: #F5F0E6;
    --accent-text: #772CE8;
    --win: #146B3F;
    --miss: #894E40;
    --live: #D7263D;
    --hairline: rgba(10, 10, 10, 0.10);
  }
}

@media (min-width: 768px) { :root { --inset: 24px; } }
@media (min-width: 1024px) { :root { --inset: 32px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-small);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--inset);
  top: 8px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--on-btn);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: var(--inset);
}

/* Type */
.display, h1, h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 9vw, 76px); }
h2 { font-size: clamp(30px, 5.5vw, 48px); }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  color: var(--text-2);
}
.label.accent { color: var(--accent-text); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-2); line-height: 1.45; text-wrap: pretty; }
.muted { color: var(--text-2); }
.emphasis { font-weight: 600; }
.tabular { font-variant-numeric: tabular-nums; }

/* Wordmark and mark */
.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .dot { color: var(--accent-text); }
.mark { color: var(--text); flex: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-secondary { background: var(--raised); color: var(--text); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--raised);
  color: var(--text-2);
  cursor: default;
  transform: none;
}
.btn-block { display: flex; width: 100%; }

.store { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-flex; border-radius: var(--r-small); }
.store-badge img { width: 156px; height: 52px; }

/* Header */
.site-header { padding-block: 12px; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: var(--r-small);
}
.brand .mark { width: 30px; height: 30px; }
.brand .wordmark { font-size: 22px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 359px) {
  .brand .wordmark { font-size: 20px; }
  .brand .mark { width: 26px; height: 26px; }
  .nav-link { padding: 0 8px; }
  .site-header .btn-small { padding: 0 12px; }
}

/* Sections */
.section { padding-block: 48px; }
@media (min-width: 768px) { .section { padding-block: 96px; } }
.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 32px; }
@media (min-width: 768px) { .section-head { margin-bottom: 48px; } }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* Hero */
.hero { padding-block: 24px 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lead { max-width: 34ch; }
.hero-note { font-size: 15px; font-weight: 500; color: var(--accent-text); }
.hero-art img { width: 100%; max-width: 640px; margin-inline: auto; }
@media (min-width: 960px) {
  .hero { padding-block: 32px 64px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; }
}

/* How it works */
.steps { display: grid; gap: 48px; counter-reset: step; }
.step { display: grid; gap: 24px; align-items: center; }
.step-copy { display: grid; gap: 12px; max-width: 460px; }
.step-copy p:not(.label) { color: var(--text-2); }
.step-copy .label { color: var(--accent-text); }
.visual {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 320px;
  padding: 32px 16px;
  border-radius: var(--r-panel);
  background: var(--surface);
  overflow: hidden;
}
.visual .phone { width: 220px; }
@media (min-width: 768px) {
  .steps { gap: 64px; }
  .step { grid-template-columns: 1fr 1fr; gap: 48px; }
  .step:nth-child(even) .step-copy { order: 2; }
  .visual { min-height: 440px; padding: 48px 32px; }
  .visual .phone { width: 250px; }
}

/* Trait chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}
.chip svg { width: 13px; height: 13px; }
.chip-win { background: transparent; color: var(--win); border: 1px solid currentColor; }

/* Scene Call card (the Live Activity) */
.island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 220px);
  min-height: 40px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  background: #000000;
  color: #F5F0E6;
  outline: 1px solid var(--hairline);
}
.island svg { width: 20px; height: 20px; color: #A970FF; }
.island .tabular { font-weight: 600; font-size: 15px; }
.scene-call {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  padding: 16px 20px 20px;
  border-radius: var(--r-card);
  background: var(--raised);
  text-align: left;
}
.scene-call-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scene-call-top .label { display: inline-flex; align-items: center; gap: 6px; }
.scene-call-top svg { width: 16px; height: 16px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.scene-call-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.scene-call-title { font-size: 20px; font-weight: 600; }
.countdown { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.bar span { display: block; height: 100%; width: 91%; border-radius: inherit; background: var(--accent); }

/* Verdict */
.verdict { display: grid; justify-items: center; gap: 12px; text-align: center; width: min(100%, 360px); }
.stamp {
  display: inline-block;
  margin-bottom: 8px;
  padding: 8px 16px;
  border: 3px solid currentColor;
  border-radius: var(--r-small);
  outline: 1.5px solid currentColor;
  outline-offset: -8px;
  color: var(--win);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.stamp-miss { color: var(--miss); }
.score { display: flex; align-items: baseline; gap: 6px; color: var(--win); font-variant-numeric: tabular-nums; }
.score-num { font-size: 64px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.score-of { font-size: 20px; font-weight: 500; color: var(--text-2); }
.feedback {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--raised);
}

/* Votes and credibility */
.votes { display: flex; gap: 32px; justify-content: center; }
.vote { display: grid; justify-items: center; gap: 8px; }
.vote-button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--raised);
}
.vote-button svg { width: 28px; height: 28px; }
.vote-up { color: var(--win); }
.vote-down { color: var(--miss); }
.vote .label { color: var(--text); }
.credibility {
  display: grid;
  gap: 4px;
  width: min(100%, 320px);
  padding: 16px 20px;
  border-radius: var(--r-card);
  background: var(--raised);
}
.cred-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--win); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.cred-badge svg { width: 24px; height: 24px; }
.cred-badge .check { stroke: var(--raised); }
.credibility p:last-child { font-size: 14px; color: var(--text-2); }

/* Stats (streak, chapter) */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 380px);
  border-radius: var(--r-card);
  background: var(--raised);
}
.stat { display: grid; gap: 4px; justify-items: center; padding: 20px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat-value { order: -1; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .label { font-size: 11px; }
.becoming {
  display: grid;
  gap: 8px;
  width: min(100%, 380px);
  padding: 16px 20px;
  border-radius: var(--r-card);
  background: var(--raised);
}
.becoming .chips { justify-content: flex-start; }
.becoming .chip { background: var(--surface); }
.becoming-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

/* Why larp */
.manifesto { display: grid; gap: 24px; max-width: 820px; }
.manifesto .statement { font-size: clamp(26px, 4.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.manifesto p:not(.statement):not(.label) { color: var(--text-2); font-size: clamp(17px, 2vw, 20px); max-width: 60ch; }
.trio { margin-top: 48px; }
.trio img { width: 100%; max-width: 1100px; margin-inline: auto; }

/* Friends, not followers */
.features { display: grid; gap: 12px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--surface);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: var(--r-control);
  background: var(--raised);
  color: var(--accent-text);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--text-2); font-size: 16px; }
.duo { display: flex; justify-content: center; gap: 16px; margin-top: 32px; }
.duo .phone { width: min(44vw, 260px); }

/* FAQ */
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { border-radius: var(--r-card); background: var(--surface); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  border-radius: var(--r-card);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--text-2); transition: transform 250ms var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 20px; color: var(--text-2); max-width: 66ch; }
.faq .answer p + p { margin-top: 8px; }
.faq details[open] .answer { animation: fade 250ms var(--ease); }

/* Final call to action band */
.get { display: grid; gap: 24px; justify-items: center; text-align: center; padding: 48px 24px; border-radius: var(--r-panel); background: var(--surface); }
.get .mark { width: 72px; height: 72px; }
.get .lead { max-width: 40ch; }
.get .store { justify-content: center; }

/* Footer */
.site-footer { margin-top: 48px; padding-block: 32px 48px; border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; gap: 24px; }
.footer-brand { display: grid; gap: 8px; }
.footer-brand .wordmark { font-size: 22px; }
.footer-brand p:not(.wordmark) { color: var(--text-2); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-fine { margin-top: 16px; color: var(--text-2); font-size: 13px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { justify-content: flex-end; max-width: 560px; }
}

/* Long-form pages (privacy, guidelines, help) */
.doc { padding-block: 24px 48px; }
.doc-head { display: grid; gap: 12px; max-width: 760px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--hairline); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(24px, 3.4vw, 30px); margin-top: 48px; margin-bottom: 12px; }
.prose h3 { font-size: 19px; margin-top: 24px; margin-bottom: 8px; }
.prose p, .prose ul, .prose ol, .prose dl { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--text-2); }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose dt { font-weight: 600; margin-top: 12px; }
.prose dd { color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.toc { padding: 20px 24px; border-radius: var(--r-card); background: var(--surface); margin-bottom: 32px; }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; }
.toc a { color: var(--text); }
.notice {
  padding: 16px 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 15px;
}
.notice strong { color: var(--text); }
.processor-list { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.processor-list li { padding: 16px 20px; border-radius: var(--r-card); background: var(--surface); margin: 0 !important; }

/* Help */
.contact-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-panel);
  background: var(--surface);
  max-width: 720px;
  margin-bottom: 32px;
}
.contact-card .btn { justify-self: start; }
.steps-list { counter-reset: n; list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.steps-list li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; margin: 0 !important; }
.steps-list li::before {
  content: counter(n);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raised);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: -1px;
}

/* Shared link fallback page */
.link-page { display: grid; justify-items: center; padding-block: 24px 48px; }
.link-stack { display: grid; gap: 24px; width: min(100%, 440px); }
.link-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 24px;
  border-radius: var(--r-panel);
  background: var(--surface);
  text-align: center;
}
.link-card h1 { font-size: clamp(26px, 7vw, 32px); line-height: 1.15; overflow-wrap: anywhere; }
.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--text);
  font-size: 38px;
  font-weight: 600;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 40px; height: 40px; }
.profile-name { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.profile-handle { color: var(--text-2); overflow-wrap: anywhere; }
.becoming-label { margin-top: 12px; }
.character-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--accent-text); overflow-wrap: anywhere; }
.link-card .lead { font-size: 17px; margin-top: 8px; }
.link-actions { display: grid; gap: 12px; }
.link-actions .store { justify-content: center; }
.link-actions .store .btn { width: 100%; }
.link-about { color: var(--text-2); font-size: 15px; text-align: center; }
.link-about a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

/* 404 */
.not-found { display: grid; gap: 24px; justify-items: start; padding-block: 64px 96px; max-width: 640px; }
.not-found .label { color: var(--accent-text); }

/* Motion: short and calm. With reduced motion, nothing moves. */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-copy, .hero-art, .link-stack { animation: rise 400ms var(--ease) both; }
.hero-art { animation-delay: 80ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .hero-copy, .hero-art, .link-stack, .faq details[open] .answer { animation: fade 300ms ease-out both; }
  .btn:active { transform: none; }
}

@media (forced-colors: active) {
  .btn, .chip, .visual, .feature, .faq details, .scene-call, .link-card { border: 1px solid CanvasText; }
}
.h3-size { font-size: 24px; }
