/* Same tokens as the app (Theme.swift): dark morning ground, warm paper in light mode. */
:root {
  --ground: #0F0D0B;
  --glow: #3A2412;
  --ink: #F5EFE6;
  --secondary: #A39B90;
  --tertiary: #7A7268;
  --accent: #FFB547;
  --accent-ink: #FFB547;
  --card: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #F7F2EA;
    --glow: #FBDDB4;
    --ink: #1F1A15;
    --secondary: #6B6257;
    --tertiary: #968C80;
    --accent-ink: #A85F00;
    --card: rgba(255, 255, 255, 0.85);
    --hairline: rgba(0, 0, 0, 0.09);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse 120% 60% at 50% 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;
}

h1, h2, .serif {
  font-family: "New York", ui-serif, Georgia, serif;
  letter-spacing: -0.02em;
}

h1 { font-size: 40px; line-height: 1.1; margin: 24px 0 12px; font-weight: 800; }
h2 { font-size: 24px; margin: 40px 0 8px; font-weight: 700; }
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.35)); }
.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(--accent);
  color: #0F0D0B;
  font-weight: 700;
}

.features {
  display: grid;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--hairline);
}

.features strong { display: block; font-size: 17px; margin-bottom: 2px; }
.features span { color: var(--secondary); font-size: 15px; }

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(44px, 6vw, 72px); line-height: 1.02; 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 Max bezel (Cosmic Orange). */
.device { display: block; width: 100%; max-width: 406px; justify-self: center; }
/* The shadow is baked into the image, so nothing renders late or square. */
.device img { display: block; width: 100%; height: auto; }
.hero-phone { max-width: 460px; transform: rotate(2deg); margin: -40px 0 -60px; }

.band { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.band h2, .feature h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.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; }
.step-n { font-family: "New York", ui-serif, Georgia, serif; font-weight: 800; font-size: 26px; 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-copy p:not(.eyebrow) { color: var(--secondary); font-size: 18px; }
.phones { display: flex; gap: 0; justify-content: center; }
.phones .device { max-width: 338px; }
/* The images carry transparent room for their shadow; let neighbours overlap it. */
.phones .device + .device { margin-left: -70px; }
.phones .device:nth-child(2) { margin-top: 56px; }

.thinkers 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 70s 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: 36px; padding-top: 40px; padding-bottom: 40px; }
  .hero { padding-top: 48px; }
  .hero-phone { max-width: 379px; margin: -20px auto -40px; }
  .feature.flip .feature-copy { order: 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .phones .device { max-width: 60%; }
  .phones .device + .device { margin-left: -16%; }
  .phones .device:nth-child(2) { margin-top: 32px; }
}
