/* Party Quiz Up! landing — same bold card system as the app: flat primaries, thick ink
   outlines, hard offset shadows. Colours match ios/PartyQuizUp/Views.swift. */
:root {
  --ink: #0E131F;
  --blue: #0E4AE0;
  --green: #048F40;
  --yellow: #FFCF14;
  --red: #E01329;
  --deep-blue: #051F66;
  --paper: #ffffff;
  --shadow: 0 6px 0 var(--ink);
  --radius: 22px;
  --border: 3px solid var(--ink);
  --page: min(1120px, 100% - 44px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--deep-blue);
  color: #fff;
  font: 400 17px/1.6 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: -20% -30% auto -30%; height: 90vh; pointer-events: none;
  border: 46px solid rgba(255, 255, 255, .06); border-radius: 50%; transform: rotate(-26deg);
}
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.02em; line-height: 1.18; }
p { margin: 0; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { width: 1em; height: 1em; display: block; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: var(--page); margin: 0 auto; padding: 16px 0;
  background: linear-gradient(var(--deep-blue) 72%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: .01em; text-decoration: none; }
.brand strong { color: var(--yellow); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; font-size: 19px;
  background: var(--blue); color: #fff; border: var(--border); border-radius: 10px; box-shadow: 0 3px 0 var(--ink);
}
.header nav { display: flex; align-items: center; gap: 10px; }
.language-control select {
  appearance: none; font: inherit; font-weight: 800; font-size: 14px; color: var(--ink);
  padding: 9px 30px 9px 14px; border: var(--border); border-radius: 12px; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%230E131F' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 11px center / 12px; box-shadow: 0 3px 0 var(--ink); cursor: pointer;
}
.ghost-button {
  font-weight: 800; font-size: 14px; text-decoration: none; padding: 9px 16px;
  border: 3px solid rgba(255, 255, 255, .5); border-radius: 12px;
}
.ghost-button:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

main { width: var(--page); margin: 0 auto; padding-bottom: 20px; }
section { margin: 72px 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 900; text-decoration: none; text-align: center;
  padding: 15px 26px; border: var(--border); border-radius: 15px; box-shadow: var(--shadow);
  background: var(--blue); color: #fff; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.button.yellow { background: var(--yellow); color: var(--ink); }
.button.green { background: var(--green); }
.button.dark { background: #16203a; color: rgba(255, 255, 255, .72); }
.button.big { font-size: 18px; padding: 18px 32px; }
.button[disabled] { cursor: not-allowed; transform: none; box-shadow: var(--shadow); opacity: .85; }

/* Invite banner */
.invite {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 18px; padding: 20px; color: var(--ink);
  background: var(--yellow); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.invite strong { font-size: 19px; font-weight: 900; }
.invite small { flex: 1 1 100%; font-size: 13px; font-weight: 600; opacity: .8; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; margin-top: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800;
  padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .25);
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 207, 20, .25); }
.hero h1 { margin: 18px 0 16px; font-size: clamp(34px, 4.6vw, 52px); text-wrap: balance; }
.lede { max-width: 30em; font-size: 18px; color: rgba(255, 255, 255, .88); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 26px; padding: 0; list-style: none; font-size: 14px; font-weight: 800; color: var(--yellow); }
.checks li::before { content: "✓ "; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.card-fan { display: flex; }
.fan-card {
  display: grid; place-items: center; width: 74px; height: 104px; margin-inline: -11px; font-size: 30px; color: #fff;
  border: var(--border); border-radius: 13px; box-shadow: var(--shadow);
}
.fan-card.red { background: var(--red); transform: rotate(-18deg); }
.fan-card.yellow { background: var(--yellow); color: var(--ink); transform: rotate(-6deg); }
.fan-card.green { background: var(--green); transform: rotate(6deg); }
.fan-card.blue { background: var(--blue); transform: rotate(18deg); }

.phone {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 16px;
  width: 190px; height: 268px; margin-top: 26px; padding: 22px 16px;
  background: var(--green); border: 4px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow);
}
.phone-notch { position: absolute; top: 9px; width: 46px; height: 5px; border-radius: 3px; background: var(--ink); }
.phone-state { font-size: 13px; font-weight: 900; text-align: center; }
.phone-buzzer {
  display: grid; place-items: center; align-content: center; gap: 4px; width: 148px; height: 118px; font-size: 38px; color: var(--ink);
  background: #fff; border: 4px solid var(--ink); border-radius: 50%; transform: rotate(-8deg);
  box-shadow: inset 0 0 0 7px var(--green);
}
.phone-buzzer b { font-size: 15px; }
.phone-hand { position: absolute; right: 22px; bottom: 44px; font-size: 42px; filter: drop-shadow(2px 2px 0 var(--ink)); animation: tap 1.5s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-10deg); } }

/* Signals — the yellow / green / red rule, same as the in-app comic */
.signals h2 { font-size: clamp(27px, 3.6vw, 38px); margin-bottom: 26px; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.signal {
  display: grid; gap: 10px; padding: 26px 22px; color: var(--ink);
  background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.signal h3 { font-size: 22px; }
.signal p { font-size: 15px; font-weight: 600; }
.signal-state { display: inline-block; justify-self: start; font-size: 13px; font-weight: 900; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink); }
.signal-badge { display: grid; place-items: center; width: 56px; height: 56px; font-size: 28px; color: #fff; border: var(--border); border-radius: 16px; }
.signal.yellow .signal-badge { background: var(--yellow); color: var(--ink); }
.signal.yellow .signal-state { background: var(--yellow); }
.signal.green .signal-badge { background: var(--green); }
.signal.green .signal-state { background: var(--green); color: #fff; }
.signal.red .signal-badge { background: var(--red); }
.signal.red .signal-state { background: var(--red); color: #fff; }

/* Steps */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { display: grid; gap: 10px; padding: 26px 22px; color: var(--ink); background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.step h3 { font-size: 21px; }
.step p { font-size: 15px; font-weight: 600; }
.step-no { display: grid; place-items: center; width: 46px; height: 46px; font-size: 17px; font-weight: 900; border: var(--border); border-radius: 13px; }
.step.blue .step-no { background: var(--blue); color: #fff; }
.step.green .step-no { background: var(--green); color: #fff; }
.step.yellow .step-no { background: var(--yellow); color: var(--ink); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.role { display: grid; gap: 12px; padding: 30px 26px; color: var(--ink); background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.role h3 { font-size: 23px; }
.role p { font-size: 15.5px; font-weight: 600; }
.role-icon { display: grid; place-items: center; width: 54px; height: 54px; font-size: 27px; color: #fff; border: var(--border); border-radius: 16px; }
.role-icon.blue { background: var(--blue); }
.role-icon.green { background: var(--green); }

/* Download */
.download {
  display: grid; justify-items: center; gap: 18px; text-align: center;
  padding: 46px 26px; background: rgba(255, 255, 255, .07);
  border: 3px solid rgba(255, 255, 255, .22); border-radius: var(--radius);
}
.download h2 { font-size: clamp(26px, 3.4vw, 36px); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.note { font-size: 14px; color: rgba(255, 255, 255, .7); }
.fairness { margin: 34px 0; font-size: 13px; text-align: center; color: rgba(255, 255, 255, .6); }

footer {
  display: grid; gap: 10px; justify-items: center; text-align: center;
  width: var(--page); margin: 0 auto; padding: 34px 0 44px;
  border-top: 3px solid rgba(255, 255, 255, .18);
}
footer small { font-size: 12.5px; color: rgba(255, 255, 255, .55); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { min-height: auto; }
  .signal-grid, .step-grid, .roles { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  :root { --page: calc(100% - 32px); }
  section { margin: 54px 0; }
  .header nav { gap: 8px; }
  .ghost-button { padding: 9px 12px; }
  .button.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-hand { animation: none; }
  .button { transition: none; }
}
