/* Same layout as philosophybyrick.com; colours from Eureka's Theme.swift:
   parchment by day, lamplight by night, one brass-to-indigo orb. */
:root {
  --ground: #F4EDDF;
  --glow: #F3D99C;
  --ink: #1A1710;
  --secondary: #6E6556;
  --tertiary: #8E8574;
  --accent-ink: #8C5A1E;
  --blue-glow: rgba(31, 58, 138, 0.16);
  --orb: linear-gradient(135deg, #FFF1C1, #E0B04E 45%, #1F3A8A);
  --buzz: #1A1710;
  --on-buzz: #FFFFFF;
  --card: rgba(255, 255, 255, 0.7);
  --hairline: rgba(26, 23, 16, 0.09);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121110;
    --glow: #4A3A22;
    --ink: #F7F2E8;
    --secondary: #B8AE9C;
    --tertiary: #8E8574;
    --accent-ink: #E8C77A;
    --blue-glow: rgba(31, 58, 138, 0.45);
    --buzz: #FFFFFF;
    --on-buzz: #121110;
    --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% 55% at 85% 0%, var(--blue-glow), transparent 70%) no-repeat,
    radial-gradient(ellipse 120% 60% at 30% 0%, var(--glow), var(--ground) 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 display face: SF, heavy, narrow, upper case. */
h1, h2, .display {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-stretch: condensed;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

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; }

.icon { width: 96px; height: 96px; display: block; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3)); }
.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: 18px; }

/* Screenshots flattened into Apple's iPhone 17 Pro bezel (Deep Blue) by scripts/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); }
.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(--orb); }
.step-n { font-stretch: condensed; font-weight: 900; font-size: 28px; text-transform: uppercase; 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(--blue-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); }
.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; }
}
