/* Supa Circus — design system
   Palette: vintage circus poster. Aged-paper cream, deep curtain red,
   marquee gold — mirrors the in-game poster chrome and big-top themes. */
:root {
  --paper: #F7EEDC;
  --paper-soft: #F1E5CC;
  --panel: #FFFDF5;
  --line: #E0D2B4;
  --red: #9B2C3B;
  --red-deep: #7E2230;
  --curtain: #5C1722;
  --gold: #D9A441;
  --gold-deep: #B8842B;
  --teal: #2E8B8B;
  --ink: #2B1B12;
  --ink-soft: #5F4C3E;
  --ink-faint: #93816F;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(92, 23, 34, 0.12);
  --shadow-lg: 0 24px 70px rgba(92, 23, 34, 0.22);
  --grad-red: linear-gradient(135deg, #B23A4A 0%, #9B2C3B 45%, #7E2230 100%);
  --grad-gold: linear-gradient(135deg, #EFC169 0%, #D9A441 50%, #B8842B 100%);
  --grad-bg: radial-gradient(ellipse 120% 60% at 50% -10%, #FBF4E6 0%, #F7EEDC 45%, #F1E5CC 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Menlo", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; color: var(--ink-soft); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* aged-paper wash used behind hero + CTA */
.tent {
  background: var(--grad-bg);
}
/* faint confetti sprinkle, like the App Store slides */
.confetti::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(3px 5px at 12% 22%, rgba(155, 44, 59, .28), transparent),
    radial-gradient(4px 3px at 82% 14%, rgba(217, 164, 65, .35), transparent),
    radial-gradient(3px 4px at 65% 38%, rgba(46, 139, 139, .25), transparent),
    radial-gradient(4px 3px at 30% 68%, rgba(217, 164, 65, .3), transparent),
    radial-gradient(3px 5px at 90% 62%, rgba(155, 44, 59, .22), transparent),
    radial-gradient(3px 3px at 8% 86%, rgba(46, 139, 139, .22), transparent);
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 238, 220, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--red-deep); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-red);
  color: #FFF6E8;
  box-shadow: 0 8px 24px rgba(155, 44, 59, 0.3);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(155, 44, 59, 0.42); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold-deep); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-deep);
  background: rgba(155, 44, 59, 0.08);
  border: 1px solid rgba(155, 44, 59, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.badge-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  font-size: 0.8rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 253, 245, 0.7);
}
.hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  justify-self: center;
  max-width: 360px;
}
.hero-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  object-fit: cover;
}

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  font-weight: 600;
}
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.appstore-badge .lines small { font-size: 0.68rem; color: #cfcfcf; font-weight: 400; }
.appstore-badge .lines strong { font-size: 1.05rem; }

/* Screenshot strip — portrait shots */
.screens {
  padding: 20px 0 80px;
}
.screens-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.screens-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.screens-strip img:hover { transform: translateY(-4px); }
@media (max-width: 720px) {
  .screens-strip {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* Section headers */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .kicker { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { margin-top: 14px; font-size: 1.02rem; }

/* How it works */
.how { padding: 90px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step .num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* Feature rows */
.features { padding: 20px 0 100px; }
.feature-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.flip { grid-template-columns: 1.2fr 0.8fr; }
.feature-row.flip .media { order: 2; }
.feature-row .media {
  justify-self: center;
  max-width: 340px;
  width: 100%;
}
.feature-row .media img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature-row h3 { font-size: 1.5rem; margin-bottom: 14px; }
.feature-row p { font-size: 1rem; }
.feature-row ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-row li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-row li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  flex-shrink: 0;
}

/* FAQ */
.faq { padding: 20px 0 100px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-size: 1.4rem;
  color: var(--red);
  transition: transform .2s ease;
  font-weight: 400;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; font-size: 0.94rem; }
.faq-item a.inline { color: var(--red); text-decoration: underline; }

/* CTA band — curtain red, like the big-top interior */
.cta-band {
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--red-deep) 0%, var(--curtain) 100%);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: #FFF6E8; }
.cta-band p { margin: 16px auto 30px; max-width: 46ch; font-size: 1.05rem; color: #EFD9C2; }
.cta-band .btn-primary {
  background: var(--grad-gold);
  color: #43290A;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  background: var(--paper-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--red-deep); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-bottom .disclaimer { max-width: 60ch; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { max-width: 300px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row .media { order: -1 !important; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .updated { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.96rem; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.legal a.inline { color: var(--red); text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 20px 0 0;
}
.back-link:hover { color: var(--red); }
