﻿/* =====================================================================
   STICKY MOBILE CTA (bottom bar on small screens)
   ===================================================================== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .1);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.mobile-cta.is-visible {
  transform: translateY(0);
}
.mobile-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.mobile-cta__text {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
}
.mobile-cta__btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .mobile-cta {
    display: block;
  }
  /* Push footer content above the sticky CTA */
  .footer {
    padding-bottom: 80px;
  }
}

/* =====================================================================
   INSTALL / WHY-NOT-PLAY-STORE
   ===================================================================== */
.install { display: grid; gap: 22px; }

.install__why {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.install__why h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: 14px; }
.install__why p { color: var(--muted); font-size: 1.02rem; }
.install__why p + p { margin-top: 14px; }
.install__why strong { color: var(--text); font-weight: 600; }
.install__why em { color: var(--accent-ink); font-style: normal; font-weight: 600; }

.install__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.install__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.install__card-inner {
  background: rgba(20, 24, 18, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: calc(var(--radius-lg) - 8px);
  padding: 24px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .install__card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .install__card-inner {
  background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}
.install__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-line); }
.install__ic {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(56, 161, 105, 0.08);
  border: 1px solid rgba(95, 190, 144, 0.2);
  margin-bottom: 14px;
}
.install__ic svg { width: 22px; height: 22px; }
.install__card h4 { font-size: 1.02rem; margin-bottom: 7px; }
.install__card p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.install__card strong { color: var(--text); font-weight: 600; }

.install__verify {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.install__verify h4 { font-size: 1.05rem; margin-bottom: 14px; }
.install__steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  font-size: .98rem;
}
.install__steps li::marker { color: var(--accent-ink); font-weight: 700; }
.install__steps strong { color: var(--text); font-weight: 600; }
.install__hash {
  border-left: 1px solid var(--green-line);
  padding-left: 22px;
}
.install__hash p { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.install__code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .82rem;
  color: var(--accent-ink);
  background: var(--tint);
  border: 1px solid var(--green-line);
  border-radius: 10px;
  padding: 12px 14px;
  word-break: break-all;
}

@media (max-width: 900px) {
  .install__grid { grid-template-columns: repeat(2, 1fr); }
  .install__verify { grid-template-columns: 1fr; }
  .install__hash { border-left: none; padding-left: 0; border-top: 1px solid var(--green-line); padding-top: 20px; }
}
@media (max-width: 560px) {
  .install__grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding: clamp(56px, 8vw, 88px) 0; position: relative; overflow: hidden; }
.section--tint {
  background: var(--tint);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(56, 161, 105, .04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(56, 161, 105, .03) 0%, transparent 40%);
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(24px, 3.2vw, 34px); }
.section__head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; letter-spacing: -.03em; }
.section__lead { color: var(--muted); font-size: 1.12rem; line-height: 1.6; }

/* Bento Grid - asymmetrical, dense, gapless */
.grid { display: grid; gap: 20px; }
.grid--3 {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
}
.grid--3 > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
.grid--3 > :nth-child(2) { grid-column: span 3; }
.grid--3 > :nth-child(3) { grid-column: span 3; }
.grid--3 > :nth-child(4) { grid-column: span 2; }
.grid--3 > :nth-child(5) { grid-column: span 2; }
.grid--3 > :nth-child(6) { grid-column: span 2; }

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card__inner {
  background: rgba(20, 24, 18, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: calc(var(--radius-lg) - 8px);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .card__inner {
  background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--green-line);
}
.card::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 10;
  border-radius: 99px;
}
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.18rem; margin-bottom: 12px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.7; margin: 0; }

.icon {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--green-tint);
  margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; }

/* =====================================================================
   PRIVACY CALLOUT
   ===================================================================== */
.privacy {
  background: var(--green-tint);
  border-top: 1px solid var(--green-line);
  border-bottom: 1px solid var(--green-line);
  padding: clamp(60px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(56, 161, 105, .08), transparent 50%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(56, 161, 105, .05), transparent 40%);
  pointer-events: none;
}
.privacy__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.privacy__copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  margin-bottom: 20px;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.privacy__copy p { color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.privacy__copy strong { color: var(--accent-ink); }
.privacy__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.privacy__points li {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.privacy__points strong { display: block; }
.privacy__points div { color: var(--muted); font-size: .96rem; }
.privacy__check {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.privacy__check svg { width: 16px; height: 16px; }

