/* spaceapp.ai, SpaceApp 3.0. Dark like the 2024 site (#1f2022), accent from the app's Arcbazar red. */
:root {
  --bg: #1f2022;
  --band: #26272a;
  --card: #2e2f33;
  --text: #f1eee4;
  --muted: #b5b2aa;
  --accent: #e0455f;
  --line: rgba(241, 238, 228, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 "neue-haas-grotesk-text", Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: "neue-haas-grotesk-display", "neue-haas-grotesk-text", Inter, -apple-system, "Helvetica Neue", Arial, sans-serif; line-height: 1.1; letter-spacing: -.012em; font-weight: 500; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(28px, 4vw, 40px); }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700;
  color: var(--accent); margin-bottom: .8em;
}
.lede { font-size: 19px; color: var(--muted); max-width: 40em; }
.fine { font-size: 14px; color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 22px; }
.brand img { border-radius: 10px; }
.brand small { font-weight: 400; color: var(--muted); font-size: 15px; }
.pill {
  text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.pill:hover { border-color: var(--text); }
.pill { white-space: nowrap; }
@media (max-width: 420px) { .brand small { display: none; } }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 32px; padding-bottom: 48px; }
.hero-shot img { width: min(340px, 80vw); margin: 0 auto; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.25fr 1fr; padding-top: 48px; padding-bottom: 64px; }
}

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.badges.center { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #a6a6a6; border-radius: 12px; padding: 8px 18px 8px 14px; min-width: 180px;
  font-size: 21px; font-weight: 600; line-height: 1.05;
}
.badge svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.badge span { display: flex; flex-direction: column; }
.badge small { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.badge .when-soon { display: none; }
.badge:hover { border-color: #fff; }

/* Launch switches on <html>: soon = greyed with "Coming soon", hidden = gone, live = a normal link */
html[data-ios="soon"] .badge[data-store="ios"],
html[data-android="soon"] .badge[data-store="android"] { opacity: .55; pointer-events: none; cursor: default; }
html[data-ios="soon"] .badge[data-store="ios"] .when-live,
html[data-android="soon"] .badge[data-store="android"] .when-live { display: none; }
html[data-ios="soon"] .badge[data-store="ios"] .when-soon,
html[data-android="soon"] .badge[data-store="android"] .when-soon { display: inline; }
html[data-ios="hidden"] .badge[data-store="ios"],
html[data-android="hidden"] .badge[data-store="android"] { display: none; }

/* QR code to the app (spaceapp.ai/get picks the store): only on big screens with a mouse,
   where the badges would open the stores in a browser instead of on the phone. */
.qr { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 880px) {
  .qr { display: flex; align-items: center; gap: 16px; margin: 4px 0 20px; max-width: 360px; }
  .qr.center { margin-left: auto; margin-right: auto; text-align: left; }
  .qr img { width: 104px; height: 104px; flex: none; border-radius: 10px; background: #fff; }
  .qr p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
  .qr strong { color: var(--text); font-weight: 600; }
}

/* Bands */
.band { background: var(--band); padding: 72px 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 700; margin-bottom: 14px;
}
.steps b { display: block; font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

/* Feature rows: picture beside text, alternating sides on wide screens */
.feature { display: grid; gap: 32px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.feature figure { margin: 0; }
.feature figure img { width: min(320px, 80vw); margin: 0 auto; border-radius: var(--radius); }
.feature .wide img { width: 100%; }
.feature > div p:not(.eyebrow):not(.fine) { color: var(--muted); font-size: 18px; }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-flip figure { order: 2; }
}

/* Designers */
.designer-grid { display: grid; gap: 32px; align-items: center; margin-top: 32px; }
.designer-grid figure { margin: 0; }
.designer-grid figure img { width: min(320px, 80vw); margin: 0 auto; border-radius: var(--radius); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cards li { background: var(--card); border-radius: 16px; padding: 18px 20px; }
.cards b { display: block; font-size: 18px; margin-bottom: 2px; }
.cards p { color: var(--muted); font-size: 16px; margin: 0; }
@media (min-width: 880px) { .designer-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* Screenshot strip: scrolls sideways inside itself, never the page */
.gallery-sec { padding: 72px 0; }
.gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 24px 16px 8px; max-width: 1120px; margin: 0 auto;
}
.gallery img { width: 240px; flex: none; border-radius: 18px; scroll-snap-align: center; }
@media (min-width: 768px) { .gallery { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1100px) { .gallery { justify-content: center; } .gallery img { width: 250px; } }

/* Closing */
.closing { text-align: center; padding-top: 48px; padding-bottom: 88px; }
.closing img { margin: 0 auto 24px; border-radius: 22px; }
.closing h2 { max-width: 16em; margin-left: auto; margin-right: auto; }

/* Footer, same links as the 2024 site plus the app's own policy pages */
footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 15px; }
.foot { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 720px) { .foot { grid-template-columns: repeat(3, 1fr); } }
.foot .tl { font-weight: 700; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot a, .down a { color: var(--muted); text-decoration: none; }
.foot a:hover, .down a:hover { color: var(--text); }
.down { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.down p { margin: 0; }
.social { display: flex; gap: 18px; }
.social img { width: 20px; height: 20px; opacity: .8; }
.social a:hover img { opacity: 1; }

/* FAQ: the same questions and answers as the FAQPage structured data in index.html */
.faq { padding-top: 24px; padding-bottom: 48px; }
.faq-list { max-width: 820px; margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }
.foot a { overflow-wrap: anywhere; }

/* Cookie consent bar (js/site.js) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10; max-width: 560px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45); font-size: 15px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 240px; color: var(--muted); }
.consent div { display: flex; gap: 8px; }
.consent button {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 8px 16px;
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.consent button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Arcbazar in numbers: one quiet row under the top section */
.stats { padding-bottom: 56px; }
.stats dl {
  margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0;
}
.stats dt { font-size: clamp(22px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: clamp(13px, 1.6vw, 15px); }
