/* Shared styles for the static SEO pages. Colors mirror lib/core/theme/app_colors.dart. */
:root {
  --bg: #0B0E1A;
  --surface: #141928;
  --surface-2: #1A2034;
  --line: rgba(237, 239, 247, 0.08);
  --violet: #7C5CFF;
  --cyan: #38E1C6;
  --coral: #FF6F87;
  --text: #EDEFF7;
  --muted: #A3A8BB;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--cyan); }
a:hover { color: #7FF0DE; }
strong { color: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.btn-primary { color: #fff; }
@media (max-width: 820px) { .nav .nav-link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #5B8CFF 55%, var(--cyan));
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.7);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 36px -10px rgba(124, 92, 255, 0.9); }
.btn-small { padding: 9px 18px; font-size: 0.92rem; }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: rgba(237, 239, 247, 0.2); }

.play-badge { display: inline-block; line-height: 0; }
/* The official badge artwork carries its own transparent margin. */
.play-badge img { height: 72px; width: auto; margin: -10px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; text-align: center; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: .45; pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: var(--violet); top: -160px; left: -120px; }
.hero::after { width: 360px; height: 360px; background: var(--cyan); bottom: -200px; right: -100px; opacity: .25; }
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(56, 225, 198, 0.35); color: var(--cyan);
  font-size: 0.82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero p.lead { max-width: 680px; margin: 0 auto 30px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; }
.hero-note { margin-top: 22px; font-size: 0.88rem; color: var(--muted); }

.orbs { display: flex; justify-content: center; gap: 18px; margin: 0 auto 34px; }
.orb {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 6%, transparent 7%),
              radial-gradient(circle at 40% 35%, #A58CFF, var(--violet) 60%, #4B33C9);
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.55);
}
.orb.cyan {
  width: 44px; height: 44px; align-self: flex-start;
  background: radial-gradient(circle at 32% 28%, #fff 0 6%, transparent 7%),
              radial-gradient(circle at 40% 35%, #8FF5E4, var(--cyan) 60%, #13917E);
  box-shadow: 0 0 34px rgba(56, 225, 198, 0.5);
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: linear-gradient(180deg, transparent, rgba(20, 25, 40, 0.6), transparent); }
.section-intro { max-width: 720px; color: var(--muted); margin-bottom: 34px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(124, 92, 255, 0.15); color: var(--violet); margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 24px 24px 24px 72px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff;
}
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.prose { max-width: 760px; }
.prose p, .prose li { color: #C9CDDC; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* App download band */
.app-band {
  display: grid; gap: 30px; align-items: center; grid-template-columns: 1.3fr 1fr;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(56, 225, 198, 0.10));
  border: 1px solid rgba(124, 92, 255, 0.3); border-radius: 26px; padding: 40px;
}
.app-band p { color: #C9CDDC; }
.app-band img.shot { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); }
@media (max-width: 760px) { .app-band { grid-template-columns: 1fr; padding: 28px; } }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-weight: 600; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--cyan);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta-final { text-align: center; }
.cta-final p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

.related { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 120px; color: var(--muted); font-size: 0.92rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.age-note { margin-top: 20px; font-size: 0.85rem; }

.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* Android install bar (shown by JS on Android only) */
.install-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
  display: none; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.install-bar.show { display: flex; }
.install-bar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-bar .txt { flex: 1; min-width: 0; font-size: 0.88rem; line-height: 1.3; }
.install-bar .txt strong { display: block; font-size: 0.95rem; }
.install-bar .txt span { color: var(--muted); }
.install-bar button {
  background: none; border: 0; color: var(--muted); font-size: 1.3rem; padding: 4px 6px; cursor: pointer;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
