/* JellyGoose — the app's own colours and typeface, on the web. */

:root {
  --bg: #0d0d14;
  --surface: rgba(255, 255, 255, 0.045);
  --stroke: rgba(255, 255, 255, 0.10);
  --text: #f4f4f7;
  --text-dim: rgba(244, 244, 247, 0.62);
  --violet: #7a45e6;
  --blue: #008fdb;
  --accent: #a873f2;
  --radius: 18px;
  --page: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Figtree, ui-sans-serif, -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The app's wallpaper: two glows over near-black. */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(88, 62, 168, 0.45), transparent 70%),
    radial-gradient(55% 50% at 12% 42%, rgba(18, 74, 116, 0.40), transparent 70%),
    var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

/* Brand */
.wordmark { font-size: 1.3rem; letter-spacing: -0.03em; white-space: nowrap; }
.wordmark .jelly {
  font-weight: 600;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark .goose { font-weight: 900; color: #fff; }
.wordmark.small { font-size: 1.1rem; }

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 6px 18px rgba(122, 69, 230, 0.45);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - var(--page)) / 2));
  background: rgba(13, 13, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { color: var(--text-dim); font-weight: 500; font-size: 0.97rem; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
.topbar nav a.ghost {
  padding: 7px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--text);
}

main { display: block; }

section {
  padding: 84px max(20px, calc((100vw - var(--page)) / 2));
  max-width: 100vw;
}

.section-title { text-align: center; }
.section-lede {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 44px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
}
.lede { font-size: 1.12rem; color: var(--text-dim); max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 16px; }

.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 10px 26px rgba(122, 69, 230, 0.35);
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.ghost {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  box-shadow: none;
}
.fineprint { color: var(--text-dim); font-size: 0.92rem; }

/* "Coming soon to the App Store", above the hero buttons. */
.badge {
  display: inline-block;
  margin: 22px 0 0;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: rgba(168, 115, 242, 0.12);
  border: 1px solid rgba(168, 115, 242, 0.35);
}

.hero-shot img,
.feature figure img,
.themes figure img {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
figure { margin: 0; min-width: 0; }

/* Features */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 52px;
  align-items: center;
  margin-bottom: 72px;
}
.feature.reverse .feature-copy { order: 2; }
.feature:last-child { margin-bottom: 0; }
.feature-copy p { color: var(--text-dim); }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Themes */
/* Flex, not grid, so the last row of an odd count centres itself. */
.theme-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.theme-grid figure { flex: 0 1 340px; }
.theme-grid figcaption {
  margin-top: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
}

/* Specs */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.spec-grid div {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke);
}
.spec-grid p { color: var(--text-dim); margin: 0; font-size: 0.97rem; }

/* Coming soon */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 auto; max-width: 780px; }
.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--stroke);
}
.steps li:first-child { border-top: none; }
.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--blue));
}
.steps p { color: var(--text-dim); margin: 0.4em 0 0; }
.coming .fineprint { text-align: center; margin-top: 28px; }

/* 404 */
.notfound { text-align: center; padding-top: 160px; padding-bottom: 200px; }
.notfound .lede { margin: 0 auto 28px; }

/* Footer */
footer {
  border-top: 1px solid var(--stroke);
  padding: 40px max(20px, calc((100vw - var(--page)) / 2));
  color: var(--text-dim);
  font-size: 0.92rem;
}
.footer-inner { display: grid; gap: 10px; }
.footer-inner p { margin: 0; max-width: 70ch; }

@media (max-width: 900px) {
  .hero, .feature, .spec-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.reverse .feature-copy { order: 0; }
  section { padding-top: 56px; padding-bottom: 56px; }
  .topbar nav { gap: 14px; }
  .topbar nav a:not(.ghost) { display: none; }
}

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