/* Geim website. Colors mirror the app's own tokens (lib/theme.dart) and the
   logo (assets/icon/icon.svg). */

:root {
  --navy: #14152B;
  --navy-2: #1F2145;
  --violet: #8B6CFF;
  --coral: #FF7A59;
  --mint: #2DD4A7;

  --bg: #F4F4F7;
  --surface: #FFFFFF;
  --text: #111116;
  --text-2: #55556A;
  --border: #E2E2E9;
  --accent: #5257E0;
  --on-accent: #FFFFFF;

  --radius: 22px;
  --max: 1160px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0D11;
    --surface: #18181E;
    --text: #F3F3F6;
    --text-2: #A2A2AE;
    --border: #2A2A33;
    --accent: #8F93FF;
    --on-accent: #0D0D1F;
  }
}

* { 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: 400 17px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

h1, h2, h3 {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  z-index: 10;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  color: #F3F1FF;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: #CFCBEA;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
}
.site-nav a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.site-nav .nav-cta { background: var(--violet); color: #FFFFFF; padding: 10px 16px; }
.site-nav .nav-cta:hover { background: #7A5AF5; }

@media (max-width: 680px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */

.hero { background: var(--navy); color: #F3F1FF; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 0;
}
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 800; }
.hero h1 .accent { color: var(--violet); }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: #B9B5D9; max-width: 34ch; margin: 22px 0 32px; }
.hero-copy { padding-bottom: 72px; }

.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; bottom: -90px; width: 250px; }
.hero-phones .phone:first-child { left: 4%; z-index: 1; }
.hero-phones .phone:last-child { right: 4%; bottom: -30px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .stores { justify-content: center; }
  .hero-copy { padding-bottom: 0; }
  .hero-phones { height: 440px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 200px; }
}

/* ---------- Phone mockup ---------- */

.phone {
  padding: 8px;
  background: #0A0A12;
  border-radius: 36px;
  box-shadow: 0 0 0 1.5px #2C2C3A, 0 30px 60px rgba(20, 21, 43, 0.35);
}
.phone img { border-radius: 29px; width: 100%; height: auto; aspect-ratio: 540 / 1200; }

/* ---------- Store buttons ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #3A3A48;
  text-decoration: none;
  line-height: 1.15;
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 12px; color: #C9C9D6; }
.store-btn strong { display: block; font-size: 19px; font-weight: 600; }
a.store-btn:hover { border-color: var(--violet); }
.store-btn[aria-disabled='true'] { cursor: default; opacity: 0.85; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
.section-head p { color: var(--text-2); font-size: 19px; margin: 16px 0 0; }

/* Features */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #FFFFFF;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }
.i-violet { background: var(--violet); }
.i-coral { background: var(--coral); }
.i-mint { background: #12A982; }
.i-navy { background: var(--navy-2); }

/* Views gallery */

.views { background: var(--navy); color: #F3F1FF; }
.views .section-head p { color: #B9B5D9; }
.views .eyebrow { color: #B4A2FF; }

.gallery {
  display: grid;
  grid-auto-flow: column;
  /* All five fit side by side on desktop; narrower screens swipe. */
  grid-auto-columns: minmax(190px, 1fr);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px;
  margin: 0 calc(var(--gutter) * -1);
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery figcaption { margin-top: 18px; text-align: center; }
.gallery figcaption strong { display: block; font-family: 'Outfit', sans-serif; font-size: 22px; }
.gallery figcaption span { color: #B9B5D9; font-size: 15px; }

/* Split rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split + .split { margin-top: 96px; }
.split.flip .split-media { order: 2; }
.split-media { display: flex; justify-content: center; }
.split-media .phone { width: min(300px, 80%); }
.split h3 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.split p { color: var(--text-2); font-size: 18px; margin: 0; }
.split ul { margin: 18px 0 0; padding: 0; list-style: none; color: var(--text-2); }
.split li { padding-left: 28px; position: relative; margin: 8px 0; }
.split li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--violet);
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .split-media { order: 0; }
}

/* Privacy band */

.privacy-band .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.privacy-band h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.privacy-band p { color: var(--text-2); font-size: 18px; margin: 14px 0 0; }
.facts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg);
  font-weight: 600;
}
.facts svg { width: 22px; height: 22px; color: #12A982; flex: none; }
@media (max-width: 800px) { .privacy-band .card { grid-template-columns: 1fr; } }

/* FAQ */

.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-2);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

/* Download CTA */

.cta { background: var(--navy); color: #F3F1FF; text-align: center; }
.cta img { width: 88px; height: 88px; margin: 0 auto 24px; }
.cta h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.cta p { color: #B9B5D9; font-size: 19px; margin: 16px auto 32px; max-width: 46ch; }
.cta .stores { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { padding: 40px 0; color: var(--text-2); font-size: 15px; border-top: 1px solid var(--border); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Legal pages ---------- */

.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.legal .updated { color: var(--text-2); margin: 12px 0 40px; }
.legal h2 { font-size: 24px; font-weight: 700; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }
.legal .summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
}
.legal .summary p { margin: 0; color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--text); }
.legal td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }
