/* Native CSS, no framework. Shape rule: buttons are full pills, images and panels are 20px.
   One accent, the app icon's gold, used as a fill with dark text so it always reads. */

:root {
  --bg: #f4f4f2;
  --bg-raised: #ffffff;
  --bg-tint: #e9e9e5;
  --ink: #18181b;
  --ink-soft: #5b5b63;
  --line: #dcdcd6;
  --gold: #eea731;
  --on-gold: #1c1407;
  --link: #8a5a00;
  --shadow: 0 18px 40px -18px rgba(24, 24, 27, 0.28);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --bg-raised: #1a1a1d;
    --bg-tint: #202024;
    --ink: #f2f2ef;
    --ink-soft: #a3a3ab;
    --line: #2c2c31;
    --link: #f3bd5f;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--link); }

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

nav.site { display: flex; gap: 22px; }

nav.site a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

nav.site a:hover, nav.site a[aria-current] { color: var(--ink); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
  box-shadow: 0 10px 24px -12px rgba(176, 116, 8, 0.6);
}

.button i { font-size: 1.3rem; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(0.98); }

/* Hero: copy left, the game right */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 40px 0 72px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin: 0 0 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 32px;
}

.hero-shot { justify-self: center; }

/* The whole screen, scaled to the viewport's height so the hero fits the first view. */
.phone {
  height: min(640px, 76vh);
  width: auto;
  aspect-ratio: 552 / 1200;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-raised);
}

/* Paths: a bento of the five lives, each with the screen it lives on */

.paths { padding: 24px 0 88px; }

.paths h2, .pricing h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 32px;
  max-width: 18ch;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 26px 26px 0;
  display: flex;
  flex-direction: column;
}

.tile h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.01em; }
.tile p { margin: 0 0 22px; color: var(--ink-soft); max-width: 36ch; }

.tile img {
  margin-top: auto;
  width: 82%;
  align-self: center;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  aspect-ratio: 1320 / 1400;
  object-fit: cover;
  object-position: top;
}

.tile.wide { grid-column: span 3; }
.tile.third { grid-column: span 2; }
.tile.third img { width: 92%; aspect-ratio: 1320 / 1250; }
.tile.gold { background: var(--gold); border-color: transparent; }
.tile.gold h3 { color: var(--on-gold); }
.tile.gold p { color: rgba(28, 20, 7, 0.78); }
.tile.tint { background: var(--bg-tint); }

/* Pricing: plain words, no cards */

.pricing {
  padding: 72px 0 96px;
  border-top: 1px solid var(--line);
}

.pricing .cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  max-width: 900px;
}

.pricing h3 { margin: 0 0 6px; font-size: 1.15rem; }
.pricing .cols p { margin: 0; color: var(--ink-soft); }

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.closing strong { font-size: 1.5rem; letter-spacing: -0.01em; }

/* Documents */

.doc { max-width: 720px; padding: 32px 24px 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 4px; }
.doc .updated { color: var(--ink-soft); margin-top: 0; }
.doc h2 { margin-top: 40px; font-size: 1.25rem; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

details summary { cursor: pointer; font-weight: 700; list-style-position: outside; }
details p { color: var(--ink-soft); margin: 10px 0 0; }

/* Footer */

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

footer.site nav { display: flex; gap: 22px; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Motion: the hero settles in, tiles rise as they reach the viewport. Off for reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero > :nth-child(2) { animation-delay: 0.12s; }

  @supports (animation-timeline: view()) {
    .tile {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Small screens: one column everywhere */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .phone { height: auto; width: min(78vw, 320px); }
  .bento { grid-template-columns: 1fr; }
  .tile.wide, .tile.third { grid-column: auto; }
  .pricing .cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  nav.site { gap: 16px; }
  .closing { padding: 24px; }
}
