/*
 * Lumeo — landing site.
 *
 * Deliberately plain static HTML and CSS rather than the app's Compose Multiplatform code. The
 * whole job of this page is to be *read*: by a person deciding whether to install Lumeo, by a
 * search crawler, and by Google Play's organization verification. A canvas-rendered Wasm bundle
 * has no readable text in the document at all, which fails all three.
 *
 * Palette and type are ported by hand from the app (LumeoColors.kt, LumeoTypography.kt) so the
 * site looks like Lumeo without sharing a line of code with it.
 */

:root {
  --bg-deep: #060a14;
  --bg-surface: #12151d;
  --bg-surface-variant: #1a1d26;
  --gold: #ecd9a3;
  --gold-deep: #d3b26e;
  --gold-dim: #9c7d38;
  --connection: #9db4d4;
  --connection-glow: #b3c8e2;
  --connection-dim: #6e88ae;
  --text-primary: #f5f0e3;
  --text-secondary: #b8b2a2;
  --text-tertiary: #8a8478;
  --hairline: #302e27;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  /* The night sky the app sits in: two faint pools of light over a deep ground. */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(236, 217, 163, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(157, 180, 212, 0.07), transparent 70%);
  background-repeat: no-repeat;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration-color: rgba(236, 217, 163, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

section { padding: clamp(56px, 9vw, 104px) 0; }
section + section { border-top: 1px solid var(--hairline); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(38px, 7vw, 62px); letter-spacing: -0.015em; }
h2 { font-size: clamp(27px, 4.2vw, 38px); }
h3 { font-size: clamp(19px, 2.4vw, 22px); }

p { margin: 0 0 1.1em; max-width: var(--measure); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 18px;
}

.lede { font-size: clamp(18px, 2.3vw, 21px); color: var(--text-secondary); }
.muted { color: var(--text-secondary); }
.small { font-size: 14.5px; color: var(--text-tertiary); }

.serif-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 3vw, 27px);
  color: var(--gold);
  line-height: 1.4;
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark .mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 38% 33%, #fff8e6 0%, #f1dda9 32%, var(--gold-deep) 70%, var(--gold-dim) 100%);
  box-shadow: 0 0 16px rgba(236, 217, 163, 0.45);
  flex: none;
}

.site-head nav { display: flex; gap: 22px; font-size: 15px; }
.site-head nav a { color: var(--text-secondary); text-decoration: none; }
.site-head nav a:hover { color: var(--text-primary); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(48px, 8vw, 88px); }
.hero-grid { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

/* The blob: the app's main actor, as a still. Same gradient stops as LivingBlob's body. */
.blob-stage { display: grid; place-items: center; min-height: 300px; position: relative; }

.blob {
  width: clamp(190px, 34vw, 270px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 33%, #fff8e6 0%, #f1dda9 32%, var(--gold-deep) 70%, var(--gold-dim) 100%);
  box-shadow:
    0 0 70px rgba(236, 217, 163, 0.30),
    0 0 160px rgba(236, 217, 163, 0.15);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}

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

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 30px;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--gold); color: #060a14; }
.btn-primary:hover { background: #f5e6bd; }

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--hairline);
  color: var(--text-primary);
}
.btn-secondary:hover { background: var(--bg-surface-variant); }

/* A store link with no listing behind it yet. Reads as honest rather than broken. */
/* Store QR codes: light tiles so any camera reads them against the dark page. */
.qr-row { display: none; gap: 16px; margin-top: 22px; }
@media (min-width: 900px) { .qr-row { display: flex; } }
.qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 12px 10px; border-radius: 14px;
  background: var(--bg-surface); border: 1px solid rgba(236, 217, 163, 0.18);
  text-decoration: none;
}
.qr-card:hover { border-color: rgba(236, 217, 163, 0.45); }
.qr-card .qr { display: block; border-radius: 6px; }
.qr-label { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }

.btn-pending {
  background: transparent;
  border-color: var(--hairline);
  color: var(--text-tertiary);
  cursor: default;
}
.btn-pending:hover { transform: none; }
.btn-pending .badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 26px 24px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 0; }

.step {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 14px;
}

/* ---------- feature rows ---------- */

.feature { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .feature-art { order: -1; }
}

.feature-art {
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  place-items: center;
  min-height: 260px;
}

/* ---------- privacy strip ---------- */

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: var(--measure); }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text-secondary); font-size: 15.5px; }
.facts .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--connection); margin-top: 9px;
  box-shadow: 0 0 10px rgba(157, 180, 212, 0.6);
}
.facts .dot.gold { background: var(--gold); box-shadow: 0 0 10px rgba(236, 217, 163, 0.6); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 56px;
  font-size: 14.5px;
  color: var(--text-tertiary);
}
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr; } }
.site-foot h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 12px;
  font-weight: 500;
}
.site-foot p { margin: 0 0 6px; max-width: none; }
.site-foot a { color: var(--text-secondary); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }

/* ---------- legal pages ---------- */

.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal h2 { margin-top: 2em; font-size: clamp(22px, 3vw, 27px); }
.legal h2:first-of-type { margin-top: 1.2em; }
.legal h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-secondary); }
.legal ul { max-width: var(--measure); padding-left: 20px; }
.legal li { margin-bottom: 0.5em; }
.legal table { border-collapse: collapse; width: 100%; max-width: var(--measure); margin: 1.2em 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.legal th { color: var(--text-primary); font-weight: 600; font-size: 14px; }
.updated { font-family: var(--mono); font-size: 12.5px; color: var(--text-tertiary); letter-spacing: 0.06em; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--gold); color: #060a14; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; z-index: 10; }
