/* PocketStage website — mobile first (most visitors come from a phone).
   Colours = the app's (lib/Global/app_theme.dart). Layout ideas from two
   references Rares picked: glowing waves + glass cards (Eco), photo with an
   overlapping colour block + a ranked list (Mixtape). */
:root {
  --bg: #0b0912;
  --surface: #161327;
  --surface2: #221e38;
  --line: rgba(255, 255, 255, .09);
  --text: #f5f2ff;
  --muted: #a89fc4;
  --purple: #7a2be0;
  --magenta: #d6338a;
  --orange: #ff7a1a;
  --grad: linear-gradient(120deg, #7a2be0 0%, #d6338a 55%, #ff7a1a 100%);
  --glow: inset 0 1px 14px rgba(255, 255, 255, .10), inset 0 0 0 1px rgba(255, 255, 255, .07);
  --r: 26px;
  --pad: 20px;
  --display: "Clash Display", "General Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "General Sans", system-ui, -apple-system, sans-serif; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.05; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ffb27a; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { color: #d9d2ee; font-size: 17px; }

/* ------------------------------------------------------------------ header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.top.solid { background: rgba(11, 9, 18, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.menu { display: none; gap: 28px; }
.menu a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.menu a:hover, .menu a[aria-current] { color: var(--text); }
.bar-end { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .04em; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.lang:hover { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; white-space: nowrap; border-radius: 999px; background: rgba(214, 51, 138, .14); box-shadow: var(--glow); text-decoration: none; font-weight: 600; font-size: 14px; }

/* ------------------------------------------------------------------ buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 168px; height: 58px; padding: 0 18px 0 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: var(--glow); text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.store svg { flex: 0 0 26px; }
.store small { display: block; font-size: 11px; color: var(--muted); line-height: 1.1; }
.store b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.store.main { background: var(--grad); box-shadow: 0 10px 30px rgba(214, 51, 138, .35), inset 0 1px 10px rgba(255, 255, 255, .25); }
.store.main small { color: rgba(255, 255, 255, .85); }

/* ------------------------------------------------------------------ phone mockup */
.phone { position: relative; width: 100%; aspect-ratio: 600 / 1304; border-radius: 13% / 6%; padding: 3.2%; background: linear-gradient(160deg, #2b2640, #0d0b16 60%); box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px rgba(122, 43, 224, .22); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 11% / 5.2%; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 620px; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; opacity: .55; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 9, 18, .55) 0%, rgba(11, 9, 18, .35) 40%, var(--bg) 100%), radial-gradient(120% 60% at 50% 100%, rgba(122, 43, 224, .35), transparent 70%); }
.waves { position: absolute; left: 0; right: 0; top: 330px; height: 520px; z-index: -1; overflow: hidden; opacity: .75; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); }
.waves svg { width: 200%; height: 100%; animation: drift 18s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
.hero-text { text-align: center; }
.hero h1 { font-size: clamp(44px, 13vw, 92px); margin: 18px 0 16px; }
.hero .lead { max-width: 560px; margin: 0 auto 26px; }
.hero .stores { justify-content: center; }
.hero .tiny { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-stage { position: relative; width: min(280px, 70vw); margin: 44px auto 0; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(22, 19, 39, .80); box-shadow: var(--glow), 0 14px 30px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; line-height: 1.25; white-space: nowrap; }
.chip img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.chip b { display: block; font-size: 14px; }
.chip .play { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin-left: 4px; }
.chip.player { left: -26px; bottom: 35%; }
.chip.rank { right: -22px; top: 15%; padding: 10px 14px; }
.chip.rank .n { font-family: var(--display); font-size: 22px; font-weight: 700; }
.float { animation: float 6s ease-in-out infinite; }
.float.d2 { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ------------------------------------------------------------------ sections */
.sec { padding: 76px 0; position: relative; }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(34px, 9.5vw, 56px); margin: 14px 0 12px; }
.sec-head p { color: var(--muted); font-size: 17px; max-width: 620px; }
.center { text-align: center; }
.sec-head.center p, .center .sec-head p { margin: 0 auto; }

/* discover: swipeable phones */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--pad) 26px; margin: 0 calc(-1 * var(--pad)); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 62%; max-width: 260px; margin: 0; scroll-snap-align: center; }
.rail figcaption { margin-top: 14px; text-align: center; font-weight: 600; }
.rail figcaption span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.hint { text-align: center; font-size: 13px; color: var(--muted); margin-top: -8px; }
.cards { display: grid; gap: 14px; margin-top: 34px; }
.card { padding: 22px; border-radius: var(--r); background: rgba(122, 43, 224, .10); box-shadow: var(--glow); }
.card.m { background: rgba(214, 51, 138, .10); }
.card.o { background: rgba(255, 122, 26, .10); }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); margin-bottom: 14px; box-shadow: 0 8px 20px rgba(214, 51, 138, .35); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* show: steps */
.steps { display: grid; gap: 22px; }
.step { display: grid; gap: 20px; padding: 24px 22px 0; border-radius: var(--r); background: linear-gradient(180deg, rgba(34, 30, 56, .9), rgba(22, 19, 39, .6)); box-shadow: var(--glow); overflow: hidden; }
.step .num { font-family: var(--display); font-size: 64px; font-weight: 700; line-height: .9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 24px; margin: 8px 0 8px; }
.step p { color: var(--muted); }
.step .phone { width: 74%; margin: 0 auto -18%; }

/* challenges: photo + colour block + ranked list */
.block { position: relative; margin: 6px 0 34px; }
.block .photo { position: relative; z-index: 1; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
.block .photo img { width: 100%; height: 100%; object-fit: cover; }
.block::before { content: ""; position: absolute; z-index: 0; right: -10px; bottom: -14px; width: 70%; height: 80%; border-radius: var(--r); background: var(--grad); opacity: .9; }
.block .tag { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 9px 14px; border-radius: 14px; background: rgba(11, 9, 18, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 600; font-size: 14px; box-shadow: var(--glow); }
.list { display: grid; gap: 10px; }
.list h3 { font-size: 22px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; }
.list h3 small { font-family: "General Sans", sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.row .rk { flex: 0 0 38px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--grad); color: #fff; }
.row img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t span { font-size: 13.5px; color: var(--muted); }
.row .s { font-family: var(--display); font-weight: 700; font-size: 18px; }
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 8px; }
.prize { text-align: center; padding: 16px 8px; border-radius: 20px; background: var(--surface); box-shadow: var(--glow); font-size: 13.5px; color: var(--muted); }
.prize .medal { width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #1a1300; }
.g { background: radial-gradient(circle at 30% 30%, #fff1b8, #f5c542 55%, #b88a10); }
.sv { background: radial-gradient(circle at 30% 30%, #ffffff, #cfd3e0 55%, #8a90a3); }
.bz { background: radial-gradient(circle at 30% 30%, #ffd9b8, #e08b4a 55%, #9c5320); }
.prize b { display: block; color: var(--text); font-size: 15px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }

/* smart discovery */
.formula { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.formula span { padding: 8px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.formula b { color: #ffb27a; }
.smart-phone { width: min(280px, 72vw); margin: 34px auto 0; }

/* faq */
.faq details { border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: #ffb27a; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* download */
.download { position: relative; border-radius: 34px; padding: 40px 22px 0; overflow: hidden; text-align: center; background: radial-gradient(90% 70% at 50% 0%, rgba(214, 51, 138, .35), transparent 70%), linear-gradient(180deg, #1d1533, #120e20); box-shadow: var(--glow); }
.download h2 { font-size: clamp(36px, 10vw, 60px); margin: 14px 0 12px; }
.download p { color: #d9d2ee; max-width: 520px; margin: 0 auto 24px; }
.download .stores { justify-content: center; }
.download .portrait { width: min(300px, 78%); margin: 34px auto 34px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.04), 0 0 60px rgba(214,51,138,.45); overflow: hidden; }
.download .portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }

/* ------------------------------------------------------------------ footer */
.foot { padding: 46px 0 34px; margin-top: 60px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 26px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.foot-brand img { width: 30px; height: 30px; border-radius: 9px; }
.foot-tag { color: var(--muted); font-size: 14px; margin-top: 8px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.foot-links a { text-decoration: none; color: var(--text); font-weight: 500; }
.foot-small { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.foot-small a { color: var(--muted); }
.foot-co { margin: 14px 0 0; font-size: 12px; color: var(--muted); opacity: .8; }
/* cookie notice: one line on desktop, a card above the bottom edge on phones */
.cookie { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border-radius: 20px; background: rgba(22, 19, 39, .96); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; font-size: 14px; line-height: 1.45; color: #d9d2ee; }
.cookie a { color: #ffb27a; }
.cookie .btn { flex: none; height: 42px; border: 0; cursor: pointer; font: inherit; font-weight: 600; word-break: normal; }
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: stretch; } .cookie .btn { justify-content: center; } }

/* ------------------------------------------------------------------ legal & contact pages */
.page { padding: 104px 0 20px; }
.doc { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.doc h1 { font-size: clamp(34px, 9vw, 52px); margin-bottom: 18px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { color: #d9d2ee; }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc a { color: #ffb27a; }
.cardsx { display: grid; gap: 14px; margin: 26px 0; }
.cardx { padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: var(--glow); }
.cardx > b { font-size: 18px; display: block; margin-bottom: 6px; }
.cardx p { color: var(--muted); margin-bottom: 14px; }
.cardx small { display: block; margin-top: 12px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--grad); color: #fff !important; text-decoration: none; font-weight: 600; box-shadow: 0 8px 22px rgba(214, 51, 138, .3); word-break: break-all; }

/* ------------------------------------------------------------------ reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .waves svg, .float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ larger screens */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .rail { justify-content: center; overflow: visible; }
  .rail figure { flex: 0 0 23%; }
  .hint { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cardsx { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (min-width: 1000px) {
  .menu { display: flex; }
  .hero { padding: 120px 0 70px; }
  .hero-bg { height: 760px; }
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
  .hero-text { text-align: left; }
  .hero .lead { margin-left: 0; }
  .hero .stores { justify-content: flex-start; }
  .hero-stage { margin: 0 auto; width: 320px; }
  .waves { top: 260px; }
  .sec { padding: 110px 0; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  .two .sec-head { margin-bottom: 0; }
  .pair { max-width: 620px; margin: 60px auto 0; gap: 24px; }
  .block { margin: 0; }
  .download { padding: 64px 60px 0; display: grid; grid-template-columns: 1.2fr .8fr; text-align: left; align-items: end; gap: 30px; }
  .download .stores { justify-content: flex-start; }
  .download p { margin-left: 0; }
  .download .portrait { margin: 0 0 64px; width: 100%; }
  .download .txt { padding-bottom: 64px; }
}
.doc .table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; }
.doc table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #d9d2ee; }
.doc th { color: var(--text); background: var(--surface); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
