/* RevoParty — revoparty.app
   Layout and type modeled on chouic.com, colors from Revo (revocorporate.com). */

:root {
  color-scheme: light;

  /* Neutrals */
  --black: #0A0A0A;
  --ink: #1A1A1A;
  --graphite: #2A2A2A;
  --gray: #6B6B6B;
  --mist: #E7E5E2;
  --cream: #FAF8F5;
  --white: #FFFFFF;

  /* Revo orange (#F96E2A is Revo's logo color) */
  --orange: #F96E2A;
  --orange-bright: #FF8E52;
  --orange-deep: #D9501A;
  --orange-ink: #B8431A;      /* orange text on light backgrounds */
  --brick: #A8320F;
  --gradient: linear-gradient(135deg, #FF8E52 0%, #F96E2A 45%, #A8320F 100%);
  --gradient-deep: linear-gradient(135deg, #F2661F 0%, #D9501A 50%, #A8320F 100%);

  /* Type */
  --font-xl: "Anton", "Archivo", Impact, system-ui, sans-serif;
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --pad: clamp(1rem, 5vw, 4rem);
  --section-y: clamp(4rem, 10vw, 8rem);
  --radius-md: 16px;
  --radius-lg: 28px;
  --pill: 999px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--pill);
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.overline {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-ink);
}
.section--dark .overline, .page-hero .overline { color: var(--orange); }
.title-xl {
  font-family: var(--font-xl); font-weight: 400; text-transform: uppercase;
  line-height: 0.98; letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 14px 30px; border-radius: var(--pill); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform 160ms var(--ease), box-shadow 320ms var(--ease), background-color 160ms, color 160ms;
}
.btn-primary { background: var(--gradient-deep); color: var(--white); box-shadow: 0 10px 30px rgba(249, 110, 42, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(249, 110, 42, 0.5); }
.btn-pulse { animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 110, 42, 0.5), 0 10px 30px rgba(249, 110, 42, 0.35); }
  60% { box-shadow: 0 0 0 14px rgba(249, 110, 42, 0), 0 10px 30px rgba(249, 110, 42, 0.35); }
}
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline--light { color: var(--white); border-color: var(--white); }
.btn-outline--light:hover { background: var(--white); color: var(--brick); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white);
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
}
/* Blur lives on a pseudo-element so the mobile menu isn't trapped inside the bar */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo__mark { width: 28px; height: 28px; flex: none; }
.logo__word {
  font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; line-height: 1;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.logo__word span { color: var(--orange); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--white);
  transition: color 160ms;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--orange); }
.nav__cta { color: var(--orange); }
.nav__cta:hover { color: var(--orange-bright); }
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0;
  background: none; color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 220ms var(--ease), opacity 160ms;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav[data-open] .nav__toggle-bars { background: transparent; }
.nav[data-open] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav[data-open] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 24px; background: var(--black); border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
  }
  .nav[data-open] .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 16px 0; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav__link:last-child { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 136px;
  background: var(--black); color: var(--white);
}
.hero__discs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.disc { position: absolute; border-radius: 50%; aspect-ratio: 1; }
.disc--glow { width: 115vw; right: -55vw; bottom: -12%; background: var(--gradient); filter: blur(70px); opacity: 0.28; }
.disc--orange { width: 60vw; right: -18vw; bottom: 15%; background: var(--gradient); box-shadow: 0 30px 80px rgba(168, 50, 15, 0.45); }
.disc--dark { width: 36vw; right: 24vw; bottom: 5%; background: var(--graphite); border: 1px solid rgba(255, 255, 255, 0.06); }
@media (min-width: 900px) {
  .disc--glow { width: min(62vw, 800px); right: -4vw; top: 4%; bottom: auto; }
  .disc--orange { width: min(38vw, 500px); right: 6vw; top: 18%; bottom: auto; }
  .disc--dark { width: min(24vw, 310px); right: calc(6vw + min(26vw, 340px)); top: 50%; bottom: auto; }
}
.hero > .container { width: 100%; }
.hero__content { position: relative; max-width: 780px; }
.hero__title { font-size: clamp(3rem, 9vw, 6.5rem); }
.hero__desc { margin: 24px 0 36px; max-width: 34rem; color: rgba(255, 255, 255, 0.75); font-size: clamp(1rem, 1.4vw, 1.1875rem); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.6); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero__scroll svg { width: 18px; height: 18px; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--light { background: var(--cream); }
.section--white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-title { margin-top: 14px; font-size: clamp(2.5rem, 6vw, 5rem); }
.section-sub { margin-top: 16px; color: var(--gray); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.section--dark .section-sub { color: rgba(255, 255, 255, 0.7); }

/* ---------- Games (one app per game) ---------- */
/* The live game spans the row; upcoming games sit side by side */
.modes { display: grid; gap: 20px; }
@media (min-width: 700px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .mode--truth { grid-column: 1 / -1; }
}
.mode {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius-lg);
  color: var(--white); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.mode::after {
  content: ""; position: absolute; z-index: -1; width: 320px; aspect-ratio: 1; border-radius: 50%;
  right: -110px; top: -130px; background: rgba(255, 255, 255, 0.07);
}
.mode--truth { background: linear-gradient(160deg, #8E1B3A 0%, #4B0D22 100%); }
.mode--charades { background: linear-gradient(160deg, #3446A8 0%, #1D2766 100%); }
.mode--party { background: linear-gradient(160deg, #0F7A6C 0%, #07463F 100%); }
.mode__icon {
  flex: none; width: 88px; height: 88px; border-radius: 22%; display: grid; place-items: center; object-fit: cover;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-family: var(--font-xl); font-size: 2.4rem; line-height: 1;
}
.mode__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode__body { align-self: stretch; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mode__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.1); white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.mode__badge--live { border-color: transparent; background: var(--white); color: #4B0D22; }
.mode__badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1FA463; }
.mode__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; }
.mode__pitch { max-width: 58ch; color: rgba(255, 255, 255, 0.8); }
.mode--soon .mode__pitch { color: rgba(255, 255, 255, 0.72); }
.mode__stores {
  align-self: stretch; display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
@media (min-width: 760px) {
  .mode--truth { flex-direction: row; align-items: center; gap: 44px; }
  .mode--truth .mode__icon { width: 144px; height: 144px; font-size: 4rem; }
  .mode--truth .mode__name { font-size: clamp(2rem, 3.4vw, 2.75rem); }
}

/* Store buttons */
.store {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.12);
  color: var(--white); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 160ms, color 160ms;
}
a.store:hover { background: var(--white); color: var(--black); }
.store svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.store[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.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; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: clamp(26px, 3.5vw, 36px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.step .step__num { font-family: var(--font-xl); font-size: 3.5rem; line-height: 1; color: var(--orange-deep); }
.step__title { margin-top: 18px; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--gray); }

/* ---------- Studio ---------- */
.studio { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .studio { grid-template-columns: 1fr 1fr; } }
.studio__visual {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3;
  display: grid; place-items: center; border-radius: var(--radius-lg);
  background: var(--black); color: var(--white); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.studio__visual::before {
  content: ""; position: absolute; z-index: -1; width: 75%; aspect-ratio: 1; border-radius: 50%;
  right: -18%; bottom: -30%; background: var(--gradient); filter: blur(50px); opacity: 0.55;
}
.studio__visual svg { width: min(58%, 320px); height: auto; }
.studio__text p:not(.overline) { margin-top: 18px; color: var(--gray); max-width: 52ch; }
.studio__text .btn { margin-top: 28px; }

/* ---------- Teaser ---------- */
.teaser {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 56px);
  border-radius: var(--radius-lg); background: var(--gradient-deep); color: var(--white);
}
.teaser::before {
  content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; border-radius: 50%;
  left: -140px; bottom: -220px; background: rgba(255, 255, 255, 0.1);
}
.teaser__title { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.teaser p { max-width: 50ch; margin: 18px auto 32px; color: rgba(255, 255, 255, 0.94); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: rgba(255, 255, 255, 0.72); padding: clamp(56px, 8vw, 96px) 0 32px; font-size: 0.9375rem; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__tagline { margin-top: 16px; max-width: 30ch; }
.footer__title {
  margin-bottom: 14px; color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: color 160ms; }
.footer a:hover { color: var(--white); }
.footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; font-size: 0.875rem; color: #9A9A9A;
}
.footer__bottom::before {
  content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__bottom a { color: #9A9A9A; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Inner page header (support) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 104px)) 0 clamp(56px, 8vw, 96px);
  background: var(--black); color: var(--white);
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: min(70vw, 620px); aspect-ratio: 1; border-radius: 50%;
  right: -12vw; top: -30%; background: var(--gradient); filter: blur(80px); opacity: 0.35;
}
.page-hero__title { margin: 14px 0 18px; font-size: clamp(3rem, 9vw, 5.5rem); }
.page-hero p { max-width: 52ch; color: rgba(255, 255, 255, 0.72); }

/* ---------- Support page ---------- */
.support-wrap { display: grid; gap: clamp(2rem, 5vw, 3.5rem); max-width: 900px; }
.help-card {
  padding: clamp(24px, 4.5vw, 52px); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--mist); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.help-card__head { display: flex; align-items: center; gap: 16px; }
.help-card__icon { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: var(--white); }
.help-card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-card__title { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
.help-card__intro { margin-top: 18px; color: #4A4A4A; max-width: 60ch; }
.help-card .btn { margin-top: 24px; }
.faq { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--mist); }
.faq li { padding: 20px 0; border-bottom: 1px solid var(--mist); }
.faq h3 { font-family: var(--font-display); font-weight: 900; font-size: 1rem; letter-spacing: 0.01em; text-transform: uppercase; }
.faq p { margin-top: 6px; color: #4A4A4A; }
.faq a, .other a:not(.btn) { color: var(--orange-ink); }
.other__title { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
.other p { margin-top: 14px; color: #4A4A4A; max-width: 60ch; }
.other .btn { margin-top: 24px; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--nav-h) + clamp(40px, 7vw, 96px)) 0 var(--section-y); }
.legal .container { max-width: calc(760px + 2 * var(--pad)); }
.legal h1 { font-family: var(--font-xl); font-weight: 400; font-size: clamp(2.5rem, 7vw, 3.5rem); line-height: 1; text-transform: uppercase; }
.legal .updated { margin: 14px 0 32px; color: var(--gray); font-size: 0.875rem; }
.legal h2 {
  margin: 52px 0 14px; font-family: var(--font-xl); font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.05; text-transform: uppercase;
}
.legal h3 { margin: 28px 0 8px; font-family: var(--font-display); font-weight: 900; font-size: 1rem; letter-spacing: 0.01em; text-transform: uppercase; }
.legal p, .legal li { color: #3A3A3A; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 1.25rem; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--orange-ink); }
.legal strong { color: var(--ink); }
.legal .lead { font-size: 1.0625rem; color: var(--ink); }
.note {
  margin: 18px 0; padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--mist); border-left: 4px solid var(--orange);
}
.note p + ul, .note ul { margin-top: 8px; }
mark.ph { background: #FFE1CF; color: inherit; padding: 0 4px; border-radius: 4px; }
.table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--mist); border-radius: var(--radius-md); background: var(--white); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mist); color: #3A3A3A; }
.legal tr:last-child td { border-bottom: 0; }
.legal th { background: var(--cream); color: var(--gray); font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 600px) {
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal tr { padding: 14px 16px; border-bottom: 1px solid var(--mist); }
  .legal tr:last-child { border-bottom: 0; }
  .legal td { padding: 2px 0; border: 0; }
  .legal td:first-child { color: var(--ink); font-weight: 700; }
}
.back-link {
  display: inline-flex; margin-top: 56px; font-family: var(--font-display); font-weight: 700;
  font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
}

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

/* Keep both store buttons on one line on small phones */
@media (max-width: 420px) {
  .mode__stores { gap: 8px; }
  .mode__stores .store { flex: 1 1 auto; justify-content: center; padding: 10px 12px; font-size: 0.75rem; letter-spacing: 0.04em; }
}
