/* Same layout as eureka.byrick.app and philosophy.byrick.app; colours from Gym's
   Theme.swift: near-black ground, lime for anything live, the three split tints as glows.
   Dark only, like the icon and the screenshots. */
:root {
  --ground: #0B0B0D;
  --glow: rgba(212, 255, 74, 0.13);
  --ink: #FFFFFF;
  --secondary: #9A9AA3;
  --tertiary: #6E6E76;
  --accent-ink: #D4FF4A;
  --blue-glow: rgba(92, 200, 255, 0.14);
  --coral-glow: rgba(255, 122, 92, 0.10);
  --orb: #0B0B0D;
  --buzz: #D4FF4A;
  --on-buzz: #0B0B0D;
  --card: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.13);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 900px at 88% 0, var(--blue-glow), transparent 70%) no-repeat,
    radial-gradient(ellipse 110% 760px at 22% 0, var(--glow), transparent 70%) no-repeat,
    var(--ground);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 20px 48px;
}

/* The app's titles: SF, weight 800, tight. */
h1, h2, .display {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: 44px; line-height: 1; margin: 24px 0 12px; }
h2 { font-size: 26px; line-height: 1.05; margin: 40px 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* A 96px icon with 48px of transparent room for the shadow baked into the image
   (tools/site-icons.py). */
.icon { width: 192px; height: 192px; display: block; margin: -48px; }
main > a:first-child { display: flow-root; width: 96px; height: 96px; margin-bottom: 28px; }
.lead { font-size: 20px; color: var(--secondary); max-width: 34em; }
.muted { color: var(--secondary); }
.small { font-size: 14px; color: var(--tertiary); }

.badge {
  display: inline-block;
  margin: 12px 0 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--buzz);
  color: var(--on-buzz);
  font-weight: 700;
}
.badge:hover { text-decoration: none; }
.badge::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--orb); vertical-align: 1px; }
span.badge { cursor: default; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer a { color: var(--secondary); }

/* ---------- Home ---------- */

.home { overflow-x: hidden; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.center { text-align: center; max-width: 40em; margin-left: auto; margin-right: auto; }

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(52px, 7.5vw, 92px); line-height: 0.95; margin: 4px 0 18px; }
.hero .lead { font-size: 21px; }
.hero .small { margin-top: 10px; }
.hero .icon { margin-bottom: -30px; }

/* Screenshots flattened into Apple's iPhone 17 Pro bezel (Silver) by tools/frame-shots.py.
   The shadow is baked in, so each image is about 21% wider than the phone it shows:
   sizes here are the phone's width × 1.207, and neighbours overlap the shadow's margin. */
.device { display: block; width: 100%; max-width: 410px; justify-self: center; }
.device img { display: block; width: 100%; height: auto; }
.hero-phone { max-width: 435px; transform: rotate(2deg); margin: -20px 0 -60px; }

.band { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.band h2, .feature h2 { font-size: clamp(34px, 4.6vw, 48px); line-height: 1; margin: 0 0 14px; }
.how h2 { text-align: center; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.steps strong { display: block; font-size: 18px; margin: 6px 0 4px; }
.steps span:last-child { color: var(--secondary); font-size: 15px; }
.steps li { position: relative; }
.steps li::after { content: ""; position: absolute; top: 22px; right: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--t); }
.steps li:nth-child(1) { --t: #FF7A5C; }
.steps li:nth-child(2) { --t: #5CC8FF; }
.steps li:nth-child(3) { --t: #D4FF4A; }
.step-n { font-weight: 800; font-size: 28px; letter-spacing: -0.03em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

.feature {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip { background: radial-gradient(ellipse 60% 70% at 25% 50%, var(--coral-glow), transparent 70%); }
.feature-copy p:not(.eyebrow) { color: var(--secondary); font-size: 18px; }
.phones { display: flex; justify-content: center; }
.phones .device { max-width: 350px; }
.phones .device + .device { margin-left: -96px; position: relative; }
.phones .device:nth-child(2) { margin-top: 56px; }

.categories h2 { text-align: center; }
.marquee {
  margin: 28px -24px 24px;
  overflow: hidden;
  display: grid;
  gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.row { display: flex; gap: 10px; width: max-content; animation: drift 80s linear infinite; }
.row.reverse { animation-direction: reverse; }
.row span {
  white-space: nowrap;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  font-weight: 600;
  font-size: 15px;
}
.row span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--t); vertical-align: 1px; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .row { animation: none; } }

.cards { max-width: 1080px; margin: 0 auto; padding: 24px 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card-item { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.card-item strong { display: block; font-size: 18px; margin-bottom: 4px; }
.card-item span { color: var(--secondary); font-size: 15px; }

.support { max-width: 1080px; padding: 40px 24px 48px; }

@media (max-width: 820px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
  .hero { padding-top: 48px; }
  .hero-phone { max-width: 362px; margin: -10px auto -40px; }
  .feature.flip .feature-copy { order: 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .phones .device { max-width: 63%; }
  .phones .device + .device { margin-left: -17%; }
  .phones .device:nth-child(2) { margin-top: 32px; }
}
