/* SideQuest coming-soon page. Dark only, in the brand palette: ink background, brand purple,
   warm off-white text. Token names mirror the app (sketch-1/public/styles.css).
   Every text/background pair meets WCAG AA (4.5:1). */

:root {
  /* Brand palette */
  --brand-ink: #17161F;
  --brand-purple: #8B7AFF;
  --brand-cream: #F2EFE8;
  --brand-grey: #9996A3;

  --sq-bg-base: var(--brand-ink);
  --sq-bg-surface: #201F2A;
  --sq-bg-elevated: #2B2A37;
  --sq-border-subtle: #393746;
  --sq-text-primary: var(--brand-cream);
  --sq-text-secondary: var(--brand-grey);
  --sq-text-on-accent: var(--brand-ink);
  --sq-accent-primary: var(--brand-purple);
  --sq-accent-secondary: #4A4375;
  --sq-accent-hot: var(--brand-purple);
  --sq-text-on-hot: var(--brand-ink);
  --sq-text-on-secondary: var(--brand-cream);
  --sq-accent-secondary-soft: rgba(139, 122, 255, 0.16);
  --sq-accent-hot-soft: rgba(139, 122, 255, 0.18);
  --sq-accent-primary-soft: rgba(139, 122, 255, 0.1);
  --sq-accent-text: #B4A9FF;
  --sq-cta: var(--brand-cream);
  --sq-text-on-cta: var(--brand-ink);
  --sq-glow: rgba(139, 122, 255, 0.55);
  --sq-frame: #0B0A10;
  --sq-frame-edge: #2B2A37;
  --sq-desk: #0F0E15;

  /* Flyers: generated stand-ins for event posters (not tokenized in the app either) */
  --flyer-ink: var(--brand-ink);
  --flyer-paper: var(--brand-cream);
  --flyer-dark: #2B2A37;
  --flyer-mid: var(--brand-purple);

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --size-display-xl: 44px;
  --size-display-l: 32px;
  --size-title: 22px;
  --size-body-l: 17px;
  --size-body: 15px;
  --size-body-s: 13px;
  --size-caption: 11px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Page-level scale (the app's tokens above stay at phone size) */
  --page-gutter: 20px;
  --page-max: 1160px;
  --page-display: clamp(44px, 7.4vw, 80px);
  --page-h2: clamp(32px, 5.2vw, 56px);
  --page-body: 17px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--page-body);
  line-height: 1.55;
  color: var(--sq-text-primary);
  background: var(--sq-bg-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sq-accent-primary); outline-offset: 3px; border-radius: 4px; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.sm { width: 16px; height: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--sq-cta); color: var(--sq-text-on-cta); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-gutter); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--sq-bg-base); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
/* Wordmark: the Route mark (purple path, cream dot) and lowercase "sidequest", as on the socials */
.brand-mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; line-height: 1; text-decoration: none; }
.brand-mark svg { width: 1.15em; height: 1.15em; flex: none; }
.mark-path { fill: none; stroke: var(--sq-accent-primary); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.mark-dot { fill: var(--sq-text-primary); }
.site-nav { display: none; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; color: var(--sq-text-secondary); text-decoration: none; }
.site-nav a:hover { color: var(--sq-text-primary); background: var(--sq-bg-surface); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--sq-border-subtle); font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sq-accent-primary); box-shadow: 0 0 0 3px var(--sq-accent-primary-soft); }
@media (min-width: 860px) { .site-nav { display: flex; } }

/* ---------- Buttons (the app's: cream CTA, as on the event screen) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--radius-pill); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--sq-cta); color: var(--sq-text-on-cta); }
.btn-secondary { background: var(--sq-bg-elevated); color: var(--sq-text-primary); }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary:hover { background: var(--sq-border-subtle); }

/* ---------- Hero ---------- */
/* The purple bloom from the event screen and the social avatars, top-right behind the phone */
.hero { padding: 24px 0 72px; background: radial-gradient(60% 70% at 100% 0%, var(--sq-glow) 0%, rgba(139, 122, 255, 0) 70%); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 38rem; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--page-display); line-height: 0.94; letter-spacing: -0.035em; }
.hero .lead { font-size: clamp(18px, 2.1vw, 21px); font-weight: 500; line-height: 1.45; color: var(--sq-text-secondary); max-width: 30rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .where { font-size: 15px; color: var(--sq-text-secondary); }
@media (min-width: 960px) {
  .hero { padding: 40px 0 112px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; }
}

/* Stage: a pile of flyers behind the phone. On load the pile starts scattered and settles
   while the feed fills in: the page's one orchestrated motion. */
.stage { position: relative; height: 600px; display: grid; place-items: center; }
.stage .device { position: relative; z-index: 5; }
.flyer { position: absolute; width: 150px; height: 200px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 6px; background: var(--flyer-paper); color: var(--flyer-ink); overflow: hidden; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.flyer b { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; hyphens: none; position: relative; }
.flyer span { font-size: 11px; font-weight: 700; line-height: 1.3; position: relative; }
.flyer.dark { background: var(--flyer-dark); color: var(--brand-cream); }
.flyer.mid { background: var(--flyer-mid); color: var(--flyer-ink); }
.flyer .shape { position: absolute; border-radius: 50%; background: currentColor; opacity: 0.16; }
.flyer.f1 { --x: -205px; --y: -170px; --r: -9deg; --sx: -330px; --sy: -260px; --sr: -24deg; }
.flyer.f2 { --x: 190px; --y: -150px; --r: 8deg; --sx: 320px; --sy: -250px; --sr: 22deg; }
.flyer.f3 { --x: -215px; --y: 40px; --r: 5deg; --sx: -360px; --sy: 30px; --sr: 18deg; }
.flyer.f4 { --x: 205px; --y: 60px; --r: -6deg; --sx: 350px; --sy: 90px; --sr: -20deg; }
.flyer.f5 { --x: -170px; --y: 210px; --r: -14deg; --sx: -300px; --sy: 300px; --sr: -32deg; }
.flyer.f6 { --x: 175px; --y: 225px; --r: 11deg; --sx: 300px; --sy: 300px; --sr: 30deg; }
@media (max-width: 600px) {
  .stage { height: 640px; margin: 0 calc(var(--page-gutter) * -1); overflow: hidden; }
  .stage .device { --k: 0.68; }
  .flyer { width: 124px; height: 166px; }
  .flyer b { font-size: 17px; }
  .flyer.f1 { --x: -150px; --y: -160px; }
  .flyer.f2 { --x: 150px; --y: -130px; }
  .flyer.f3 { --x: -165px; --y: 30px; }
  .flyer.f4 { --x: 160px; --y: 50px; }
  .flyer.f5 { --x: -140px; --y: 200px; }
  .flyer.f6 { --x: 150px; --y: 215px; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage .flyer { animation: settle 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  .stage .flyer.f2 { animation-delay: .05s; }
  .stage .flyer.f3 { animation-delay: .1s; }
  .stage .flyer.f4 { animation-delay: .15s; }
  .stage .flyer.f5 { animation-delay: .2s; }
  .stage .flyer.f6 { animation-delay: .25s; }
  .stage .feed > * { animation: fill .5s ease-out both; }
  .stage .feed > :nth-child(1) { animation-delay: .7s; }
  .stage .feed > :nth-child(2) { animation-delay: .85s; }
  .stage .feed > :nth-child(3) { animation-delay: 1s; }
  .stage .feed > :nth-child(4) { animation-delay: 1.15s; }
  .stage .feed > :nth-child(5) { animation-delay: 1.3s; }
}
@keyframes settle {
  from { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); opacity: 0; }
  30% { opacity: 1; }
  to { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}
@keyframes fill { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; border-top: 1px solid var(--sq-border-subtle); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 40rem; margin-bottom: 44px; }
.section h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--page-h2); line-height: 1; letter-spacing: -0.03em; }
.section-head p { color: var(--sq-text-secondary); font-size: 18px; }
@media (min-width: 960px) { .section { padding: 112px 0; } }

/* How it works: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--sq-accent-primary); font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.steps h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--size-title); line-height: 1.2; padding-top: 12px; }
.steps p { color: var(--sq-text-secondary); max-width: 32rem; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 14px; }
  .steps li::before { grid-row: auto; }
  .steps h3 { padding-top: 0; }
}

/* Inside the app: three phones with what each shows */
.previews { display: grid; gap: 56px; }
.preview { display: grid; gap: 24px; justify-items: center; margin: 0; }
.preview figcaption { display: flex; flex-direction: column; gap: 8px; max-width: 24rem; }
.preview figcaption h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--size-title); line-height: 1.2; }
.preview figcaption p { color: var(--sq-text-secondary); }
@media (min-width: 960px) {
  .previews { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .preview { justify-items: start; align-content: start; }
}

/* Real data: the first import, by scene */
.scenes { display: grid; gap: 40px; }
.scene-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.scene-list li { display: flex; flex-direction: column; gap: 8px; }
.scene-list .row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.scene-list .row span:last-child { font-family: var(--font-display); font-weight: 800; }
.scene-list .meter { height: 10px; border-radius: 5px; }
.sources { color: var(--sq-text-secondary); max-width: 34rem; }
@media (min-width: 960px) { .scenes { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* For hosts */
.hosts { display: grid; gap: 40px; }
.hosts .points { display: flex; flex-direction: column; gap: 20px; list-style: none; padding: 0; margin: 0; }
.hosts .points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.hosts .points .ic { margin-top: 3px; }
.hosts .points strong { display: block; font-size: 18px; }
.hosts .points span { color: var(--sq-text-secondary); }
@media (min-width: 960px) { .hosts { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* Questions */
.faq { display: flex; flex-direction: column; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--sq-border-subtle); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s ease; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--sq-text-secondary); max-width: 40rem; }
@media (prefers-reduced-motion: reduce) { .faq summary .ic { transition: none; } }

/* Closing line and footer */
.closer { padding: 96px 0; border-top: 1px solid var(--sq-border-subtle); background: radial-gradient(50% 80% at 0% 100%, rgba(139, 122, 255, 0.28) 0%, rgba(139, 122, 255, 0) 70%); }
.closer p.big { font-family: var(--font-display); font-weight: 800; font-size: var(--page-h2); line-height: 1; letter-spacing: -0.03em; max-width: 14ch; }
.closer p.small { margin-top: 20px; color: var(--sq-text-secondary); }
.site-foot { padding: 28px 0 40px; border-top: 1px solid var(--sq-border-subtle); font-size: 14px; color: var(--sq-text-secondary); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Contact */
.contact { margin: 48px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.contact li { max-width: 100%; }
.contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: var(--radius-pill); background: var(--sq-bg-surface); border: 1px solid var(--sq-border-subtle); font-weight: 600; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.contact a .ic { color: var(--sq-accent-primary); }
.contact a:hover { border-color: var(--sq-accent-primary); background: var(--sq-bg-elevated); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--sq-text-primary); }
.site-foot .wrap { align-items: center; }
.site-foot .brand-mark { color: var(--sq-text-primary); }

/* =====================================================================
   Phone mockups. Each screen is laid out at the app's real size (390 × 844)
   with the app's own classes, then scaled down to fit the frame.
   ===================================================================== */
.device { --k: 0.72; flex: none; width: calc(390px * var(--k) + 20px); height: calc(844px * var(--k) + 20px); padding: 10px; border-radius: 46px; background: var(--sq-frame); outline: 2px solid var(--sq-frame-edge); }
.device.sm { --k: 0.66; }
.device .phone { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--sq-bg-base); }
.device .screen { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(var(--k)); transform-origin: top left; display: flex; flex-direction: column; background: var(--sq-bg-base); font-size: var(--size-body); line-height: 1.45; text-align: left; }
.section .device { background: var(--sq-frame); }

.app .statusbar { height: 47px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-size: 15px; font-weight: 600; position: relative; }
.app .statusbar .notch { position: absolute; left: 50%; top: 11px; width: 120px; height: 34px; margin-left: -60px; border-radius: 20px; background: #000; }
.app .statusbar .bars { display: flex; gap: 3px; align-items: flex-end; }
.app .statusbar .bars i { width: 3px; border-radius: 1px; background: currentColor; }
.app .body { flex: 1; overflow: hidden; }
.app .pad { padding: var(--space-lg) 20px var(--space-2xl); }
.app .stack { display: flex; flex-direction: column; gap: var(--space-lg); }
.app .stack-sm { display: flex; flex-direction: column; gap: var(--space-sm); }
.app .stack-xs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app .row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.app .row.start { justify-content: flex-start; }
.app .row.top { align-items: flex-start; }
.app .grow { flex: 1; min-width: 0; }
.app .muted { color: var(--sq-text-secondary); }
.app .small { font-size: var(--size-body-s); }
.app .caption { font-size: var(--size-caption); }
.app .label { font-size: var(--size-caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sq-text-secondary); }
.app .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .display-l { font-family: var(--font-display); font-weight: 800; font-size: var(--size-display-l); line-height: 1.05; letter-spacing: -0.02em; }
.app .title { font-family: var(--font-display); font-weight: 700; font-size: var(--size-title); line-height: 1.15; }
.app .section-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.app .bar-large { padding: 8px 20px 8px; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.app .bar { padding: 4px 12px 8px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.app .bar b { font-size: 17px; font-weight: 700; text-align: center; }

.app .icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; position: relative; }
.app .dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sq-accent-hot); color: var(--sq-text-on-hot); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--sq-bg-base); }
.app .search { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; min-height: 48px; border-radius: var(--radius-pill); background: var(--sq-bg-surface); border: 1px solid var(--sq-border-subtle); color: var(--sq-text-secondary); }
.app .search .icon-btn { width: 36px; height: 36px; margin-left: auto; background: var(--sq-accent-primary); color: var(--sq-text-on-accent); }
.app .chips { display: flex; gap: 8px; overflow: hidden; }
.app .chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--sq-border-subtle); background: var(--sq-bg-surface); font-size: var(--size-body-s); font-weight: 600; white-space: nowrap; }
.app .chip.on { background: var(--sq-accent-primary); border-color: var(--sq-accent-primary); color: var(--sq-text-on-accent); }
.app .chip .ic { width: 15px; height: 15px; }
.app .badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--radius-pill); font-size: var(--size-caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--sq-bg-elevated); color: var(--sq-text-secondary); white-space: nowrap; }
.app .badge .ic { width: 12px; height: 12px; }
.app .badge.match { background: var(--sq-accent-hot); color: var(--sq-text-on-hot); }
.app .badge.on-poster { background: rgba(23, 22, 31, .85); color: var(--brand-cream); }
.app .badge.violet { background: var(--sq-accent-secondary-soft); color: var(--sq-accent-text); }
.app .badge.hot { background: var(--sq-accent-hot-soft); color: var(--sq-accent-hot); }
.app .ai-tag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--size-caption); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sq-text-secondary); }
.app .ai-tag .ic { width: 13px; height: 13px; color: var(--sq-accent-hot); }

.app .card { background: var(--sq-bg-surface); border: 1px solid var(--sq-border-subtle); border-radius: var(--radius-lg); padding: var(--space-lg); }
.app .card.tight { padding: var(--space-md); border-radius: var(--radius-md); }
.app .feature-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--sq-bg-surface); border: 1px solid var(--sq-border-subtle); }
.app .feature-card .poster { height: 210px; border-radius: 0; }
.app .fc-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 2; }
.app .fc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.app .quest-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-lg); background: var(--sq-bg-surface); border: 1px solid var(--sq-border-subtle); }
.app .quest-row strong { font-size: var(--size-body); line-height: 1.25; }
.app .match-num { font-family: var(--font-display); font-weight: 800; color: var(--sq-accent-hot); font-size: 15px; white-space: nowrap; }
.app .reason { font-size: var(--size-body-s); color: var(--sq-text-secondary); }
.app .reason .ic { color: var(--sq-accent-hot); vertical-align: -3px; margin-right: 2px; }

/* Posters: the purple bloom from the event screen, standing in for event imagery */
.app .poster { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(110% 110% at 85% 10%, #8B7AFF 0%, #3F3780 40%, var(--flyer-dark) 78%); flex: none; }
.app .poster.thumb { width: 76px; height: 76px; border-radius: var(--radius-md); }
.app .poster.mini { width: 48px; height: 48px; border-radius: 12px; }
.app .poster.light { background: var(--flyer-paper); color: var(--flyer-ink); }
.app .poster.mid { background: radial-gradient(90% 80% at 80% 0%, #8B7AFF 0%, #3F3780 45%, var(--brand-ink) 80%); }
.app .poster .shape { position: absolute; border-radius: 50%; background: var(--brand-cream); opacity: 0.1; }
.app .poster.light .shape { background: var(--brand-purple); opacity: 0.35; }
.app .poster-word { position: absolute; left: 16px; bottom: 12px; right: 16px; font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--brand-cream); opacity: 0.9; line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }

.app .avs { display: inline-flex; align-items: center; }
.app .av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--brand-ink); border: 2px solid var(--sq-bg-surface); margin-left: -8px; flex: none; }
.app .av:first-child { margin-left: 0; }
.app .av.lg { width: 44px; height: 44px; font-size: 16px; border-width: 3px; }
.app .av.a1 { background: var(--brand-purple); }
.app .av.a2 { background: var(--brand-cream); }
.app .av.a3 { background: #C3BAFF; }
.app .av.a4 { background: #D9D3C6; }

.app .meter, .meter { display: block; height: 8px; border-radius: 4px; background: var(--sq-bg-elevated); overflow: hidden; }
.app .meter > span, .meter > span { display: block; height: 100%; border-radius: inherit; background: var(--sq-accent-primary); }

.app .option { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--sq-bg-surface); border: 1.5px solid var(--sq-border-subtle); }
.app .option.on { border-color: var(--sq-accent-primary); }
.app .option .fill { position: absolute; inset: 0 auto 0 0; background: var(--sq-accent-secondary-soft); }
.app .option > :not(.fill) { position: relative; }
.app .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sq-border-subtle); display: grid; place-items: center; flex: none; }
.app .option.on .tick { background: var(--sq-accent-primary); border-color: var(--sq-accent-primary); color: var(--sq-text-on-accent); }
.app .tick .ic { width: 14px; height: 14px; stroke-width: 3; }

.app .btn { width: 100%; font-size: var(--size-body); }
.app .btn.sm { width: auto; min-height: 38px; padding: 0 14px; font-size: var(--size-body-s); }
.app .vote { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; min-height: 58px; border-radius: var(--radius-md); background: var(--sq-bg-elevated); font-weight: 800; font-family: var(--font-display); flex: none; }
.app .vote.on { background: var(--sq-accent-primary); color: var(--sq-text-on-accent); }

.app .tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px 26px; border-top: 1px solid var(--sq-border-subtle); background: var(--sq-bg-base); }
.app .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--sq-text-secondary); }
.app .tab .tab-ic { width: 44px; height: 28px; border-radius: var(--radius-pill); display: grid; place-items: center; }
.app .tab.on { color: var(--sq-text-primary); }
.app .tab.on .tab-ic { background: var(--sq-accent-primary); color: var(--sq-text-on-accent); }

/* Host demand card on the page itself (not in a phone) */
.demand { max-width: 440px; width: 100%; font-size: var(--size-body); line-height: 1.45; }
.demand.card { padding: 22px; }
.demand .heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.demand .heat span { aspect-ratio: 1.3; border-radius: 6px; background: var(--sq-accent-primary); }
.demand .heat-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
