/* ═══════════════════════════════════════════════════════════
   PILL BLAST - game promo microsite
   Pastel candy palette, pulled from the app icon & UI
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-top:     #FBDCE7;
  --bg-bottom:  #FFF1D6;
  --paper:      #FFFFFF;
  --paper-2:    #FFF8F0;
  --ink:        #2C2444;
  --ink-2:      #6A6180;
  --ink-3:      #9993AC;

  --accent:     #16A3A5;
  --accent-deep:#0D7A7C;
  --pink:       #F0709A;
  --pink-lt:    #FBB6CE;
  --red:        #E1525F;
  --teal:       #1FADAE;
  --yellow:     #FFCF6B;
  --green:      #6FCF97;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-sm: 0 2px 8px rgba(60,30,70,.06), 0 1px 2px rgba(60,30,70,.05);
  --shadow-md: 0 12px 30px rgba(15,80,80,.12);
  --shadow-lg: 0 24px 60px rgba(15,80,80,.18);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 620px, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 0;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.nav__brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav__links { display: flex; gap: 22px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.nav__links a:hover { color: var(--accent-deep); }
@media (max-width: 640px) { .nav__links { display: none; } }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: 56px 0 40px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; text-align: center; } }

.hero__icon {
  width: 84px; height: 84px; border-radius: 22px;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}
@media (max-width: 860px) { .hero__icon { margin-left: auto; margin-right: auto; } }

.hero h1 {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.03;
  color: var(--accent-deep);
}
.hero__sub {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}
@media (max-width: 860px) { .hero__sub { margin-left: auto; margin-right: auto; } }

.hero__actions { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero__actions { justify-content: center; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--accent) 100%);
  color: #fff;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms, box-shadow 150ms;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.badge:active {
  transform: translateY(0);
}
.badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.badge__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.badge__text small { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.badge__text span { font-size: 15px; }

.hero__free {
  font-size: 13px; font-weight: 700; color: var(--accent-deep);
  background: rgba(22,163,165,.12);
  padding: 8px 14px; border-radius: 8px;
}

.hero__hearts { margin-top: 22px; display: flex; gap: 8px; font-size: 15px; color: var(--pink); font-weight: 700; }
@media (max-width: 860px) { .hero__hearts { justify-content: center; } }

.hero__shot {
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  justify-self: center;
  max-width: 300px;
  transform: rotate(1.5deg);
}

/* ── Section shell ───────────────────────────────────── */
.section { padding: 72px 0; }
.section--tint { background: var(--paper-2); }
.head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}
.head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.015em; color: var(--accent-deep); }
.head p { margin-top: 12px; font-size: 17px; color: var(--ink-2); line-height: 1.55; }

/* ── How to play ─────────────────────────────────────── */
.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }
.rule {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.rule__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}
.rule h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.rule p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

.controls {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.controls span {
  background: var(--paper);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px; font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.controls b { color: var(--accent-deep); font-weight: 800; }

/* ── Feature bento ───────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .bento { grid-template-columns: 1fr; } }

.tile {
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.tile--wide { grid-column: span 2; }
@media (max-width: 540px) { .tile--wide { grid-column: span 1; } }

.tile--p1 { background: linear-gradient(155deg, #E3F6F6, #F1FBFB); }
.tile--p2 { background: linear-gradient(155deg, #FFE9EF, #FFF3E9); }
.tile--p3 { background: linear-gradient(155deg, #E7FBF4, #F1FBEA); }
.tile--p4 { background: linear-gradient(155deg, #FFF6DE, #FFEFEA); }
.tile--dark { background: var(--accent-deep); color: #fff; }
.tile--dark .tile__body { color: rgba(255,255,255,.78); }

.tile h3 { font-size: 17px; font-weight: 800; }
.tile__body { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ── Gallery ─────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }
.gallery img {
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

/* ── Pricing ─────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.price-card--accent {
  background: linear-gradient(155deg, var(--accent-deep), #0A5B5C);
  color: #fff;
}
.price-card--accent .price-card__note,
.price-card--accent li { color: rgba(255,255,255,.82); }
.price-card__tag {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(22,163,165,.12);
  padding: 5px 12px; border-radius: 8px;
  margin-bottom: 14px;
}
.price-card--accent .price-card__tag { background: rgba(255,255,255,.16); color: #fff; }
.price-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.price-card__note { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin-bottom: 16px; }
.price-card ul { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.price-card li { padding-left: 22px; position: relative; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--teal);
}
.price-card--accent li::before { color: var(--yellow); }
.iap-note {
  margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--ink-3);
}

/* ── Footer ──────────────────────────────────────────── */
.foot {
  padding: 40px 0 60px;
  text-align: center;
}
.foot__links { display: flex; gap: 22px; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.foot__links a { color: var(--accent-deep); }
.foot__links a:hover { text-decoration: underline; }
.foot p { font-size: 13px; color: var(--ink-3); }

/* ── Simple content pages (support / privacy) ───────── */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}
.doc__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--accent-deep);
  margin-bottom: 28px;
}
.doc__header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px;
}
.doc__header img { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.doc h1 { font-size: clamp(28px, 5vw, 36px); font-weight: 800; color: var(--accent-deep); letter-spacing: -.015em; }
.doc__updated { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 40px; }

.doc-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.doc-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.doc-card p, .doc-card li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.doc-card p + p { margin-top: 12px; }
.doc-card ul { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.doc-card li { padding-left: 20px; position: relative; }
.doc-card li::before { content: "•"; position: absolute; left: 0; color: var(--pink); font-weight: 800; }
.doc-card a.inline { color: var(--accent-deep); font-weight: 700; text-decoration: underline; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid--single { grid-template-columns: 1fr; max-width: 320px; }
.contact-card {
  background: var(--paper-2);
  border-radius: var(--r-sm);
  padding: 20px 22px;
}
.contact-card__label { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.contact-card__value { font-size: 15.5px; font-weight: 700; color: var(--accent-deep); }

.faq-item + .faq-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(44,36,68,.08); }
.faq-item h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.faq-item p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
