/* GemFlare marketing site — shares the app's palette, dark-first. */

:root {
  --bg: #0e1116; --panel: #1a1f27; --panel-2: #232a35;
  --text: #e8ecf1; --muted: #8b95a3;
  --accent: #26a5ff; --accent-2: #1b7fd4;
  --green: #2ecc71; --red: #e74c3c; --radius: 16px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f4f6f9; --panel: #ffffff; --panel-2: #e8edf3; --text: #16202b; --muted: #5c6773; }
}
/* Explicit themes (set by theme.js) override the OS preference.
   Three modes: Dark, Gray (dim), White. */
:root[data-theme="dark"] {
  --bg: #0e1116; --panel: #1a1f27; --panel-2: #232a35; --text: #e8ecf1; --muted: #8b95a3;
}
:root[data-theme="gray"] {
  --bg: #23262b; --panel: #2e3238; --panel-2: #3a3f46; --text: #e6e9ed; --muted: #a5adb8;
}
:root[data-theme="light"] {
  --bg: #f4f6f9; --panel: #ffffff; --panel-2: #e8edf3; --text: #16202b; --muted: #5c6773;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.landing {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
p { margin: 0 0 12px; }
a { color: var(--accent); text-decoration: none; }
svg { width: 26px; height: 26px; }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 12px;
  background: var(--panel-2); color: var(--text); font-weight: 600;
  transition: transform .15s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.big { padding: 16px 32px; font-size: 1.1rem; border-radius: 14px; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--panel-2); }
.theme-btn { min-width: 72px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Nav --- */
.nav {
  display: flex; align-items: center; gap: 24px;
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
}
.brand { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.brand span { color: var(--accent); }
.nav-links { flex: 1; display: flex; gap: 20px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links { display: none; } .nav { justify-content: space-between; } }

/* --- Hero --- */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 48px 24px 72px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 34em; }
.hero-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-note { color: var(--muted); font-size: .95rem; }

/* Store-style badges: Web is live, the app stores are honest "coming soon". */
.store-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px; min-height: 56px;
  border: 1px solid #ffffff1f; color: var(--text);
  transition: transform .15s ease, filter .2s ease;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge small { font-size: .72rem; color: inherit; opacity: .75; }
.store-badge strong { font-size: 1.05rem; }
.store-badge.web { background: var(--accent); color: #fff; border-color: transparent; }
.store-badge.web:hover { filter: brightness(1.1); }
.store-badge.web:active { transform: scale(.97); }
.store-badge.soon { color: var(--muted); background: var(--panel); cursor: default; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 260px; aspect-ratio: 9 / 19; border-radius: 36px; padding: 10px;
  background: #05070a; box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px #ffffff14;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: #101820;
}
.mock-remote {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 65% 30%, #2c74b155, transparent 55%),
    radial-gradient(circle at 30% 75%, #7c3aed33, transparent 60%),
    linear-gradient(160deg, #1d2b3a, #0b0e12);
}
.mock-top {
  position: absolute; left: 14px; right: 14px; top: 14px;
  display: flex; justify-content: space-between; color: #fff;
}
.mock-name { font-weight: 700; }
.mock-timer { color: #9fb0c0; font-size: .8rem; }
.mock-bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.mock-bars i { width: 4px; border-radius: 2px; background: var(--green); }
.mock-bars i:nth-child(1) { height: 5px; } .mock-bars i:nth-child(2) { height: 9px; } .mock-bars i:nth-child(3) { height: 13px; }
.mock-pip {
  position: absolute; right: 12px; top: 52px; width: 30%; aspect-ratio: 3/4; border-radius: 10px;
  background: linear-gradient(200deg, #3b5266, #141c24); box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.mock-controls {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; gap: 12px;
}
.mock-btn { width: 40px; height: 40px; border-radius: 50%; background: #ffffff2b; }
.mock-btn.red { background: var(--red); }

/* --- Sections --- */
.section { max-width: 1080px; margin: 0 auto; padding: 64px 24px; }
.section.alt { background: rgba(128, 138, 152, 0.08); background: color-mix(in srgb, var(--panel) 55%, transparent); }
.section h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 32px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature {
  background: var(--panel); border-radius: var(--radius); padding: 24px;
  border: 1px solid #ffffff0d;
}
.feature h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.f-icon {
  width: 46px; height: 46px; border-radius: 12px; color: var(--accent);
  background: rgba(38, 165, 255, 0.14); background: color-mix(in srgb, var(--accent) 14%, transparent);
  display: flex; align-items: center; justify-content: center;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.steps li { background: var(--panel); border-radius: var(--radius); padding: 24px; border: 1px solid #ffffff0d; }
.step-n {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* --- Pricing --- */
.pricing-grid { max-width: 1000px; }
.price-tier .price { font-size: 2rem; font-weight: 800; margin: 4px 0 12px; }
.price-tier .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-tier ul { margin: 0; padding-left: 20px; color: var(--muted); }
.price-tier li { margin-bottom: 6px; }
.price-tier.pro { border-color: var(--accent); }
.soon-tag {
  font-size: .7rem; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 20px; padding: 2px 10px;
  vertical-align: 3px; margin-left: 6px;
}

/* --- FAQ --- */
.faq { max-width: 720px; }
.faq details {
  background: var(--panel); border-radius: 12px; border: 1px solid #ffffff0d;
  padding: 4px 20px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; color: var(--muted); font-size: 1.3rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* --- CTA band + footer --- */
.cta-band {
  text-align: center; padding: 72px 24px;
  background:
    radial-gradient(circle at 50% 120%, rgba(38, 165, 255, 0.22), transparent 60%);
}
.cta-band h2 { margin-bottom: 24px; }
.footer {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); border-top: 1px solid #ffffff0d;
}
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* --- Privacy page --- */
.prose { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.2rem; margin-top: 32px; }
.prose p, .prose li { color: var(--muted); }
