/* Home page only (index.html, body.home). Builds on site.css tokens; the
   single-purpose and legal pages never load this file. Screenshots sit on
   --surface-2, which matches the App Store frames' paper background. */

.home .site-header { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.home .site-header nav { display: flex; align-items: center; gap: 20px; }
.home .site-header nav a { margin-left: 0; }
.home .site-header nav a.nav-cta { color: var(--on-ink); background: var(--ink); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }

.home h1, .home h2, .home h3 { text-wrap: balance; letter-spacing: -0.02em; }
.home .eyebrow { margin: 0; }

/* Hero */
.home-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-block: 64px 24px; }
.home-hero > * { min-width: 0; }
.home-hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; font-weight: 750; margin: 14px 0 18px; max-width: 12ch; }
.home-hero .lede { font-size: 20px; color: var(--text-2); max-width: 30em; margin: 0; }
.home-hero .get { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 28px; }
.home-hero .note { font-size: 14px; color: var(--text-2); max-width: 22ch; margin: 0; }
.store-badge { display: block; line-height: 0; }
.store-badge img { display: block; width: auto; }
.badge-apple { height: 50px; }
.badge-play { height: 75px; margin: -12.5px; } /* Google's file carries its own clear space; this lines it up with Apple's */
.hero-phones { display: flex; justify-content: center; align-items: flex-start; padding-block: 8px 40px; }
.hero-phones .device { width: 46%; }
.hero-phones .device + .device { position: relative; z-index: 1; margin-left: -12%; margin-top: 64px; box-shadow: 0 0 0 1px var(--device-ring), -18px 30px 50px -18px rgb(0 0 0 / 0.45); }

/* A phone drawn in CSS: the raw screenshot fills the screen, a thin bezel and a soft shadow
   around it, no background box. Radii are about 13% of the width (6% of the height). */
.home { --bezel: #161616; --device-ring: rgb(0 0 0 / 0.06); }
@media (prefers-color-scheme: dark) { .home { --bezel: #2C2C2A; --device-ring: rgb(255 255 255 / 0.14); } }
.device { display: block; height: auto; border: 4px solid var(--bezel); border-radius: 13% / 6%; background: var(--bezel); box-shadow: 0 0 0 1px var(--device-ring), 0 28px 50px -24px rgb(0 0 0 / 0.35); }

/* Trust line */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-block: 28px; border-block: 0.5px solid var(--divider); margin-top: 40px; font-size: 15px; color: var(--text-2); }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* Screenshot strip */
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 72px; }
.strip-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; margin: 0; }
.strip-head p { color: var(--text-2); font-size: 15px; margin: 0; }
/* Full width, no scrollbar, snaps a screen to the center, drag with the mouse (FamRight's carousel). */
.strip { --edge: max(var(--gutter), calc((100vw - var(--measure)) / 2 + var(--gutter))); display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 24px var(--edge) 40px; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip figure { margin: 0; scroll-snap-align: center; transition: transform .3s ease; }
.strip figure:hover { transform: scale(1.02); }
.strip img { width: 100%; border-radius: 14px; border: 0.5px solid var(--divider); box-shadow: 0 10px 30px rgba(0,0,0,.08); -webkit-user-drag: none; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .strip figure { transition: none; } .strip figure:hover { transform: none; } }
.strip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Feature sections */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; }
.feat > * { min-width: 0; }
.feat.flip .shot { order: 2; }
.feat .shot { display: flex; justify-content: center; }
.feat .shot .device { width: min(300px, 100%); }
.feat h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.08; margin: 10px 0 16px; }
.feat p { color: var(--text-2); font-size: 18px; max-width: 32em; margin: 0; }

/* Leaders band: ink background in both themes (ink flips with the theme). */
.leaders { margin-top: 96px; background: var(--ink); color: var(--on-ink); }
.leaders .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-block: 72px; }
.leaders .wrap > * { min-width: 0; }
.leaders .eyebrow { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
.leaders h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.05; margin: 12px 0 16px; }
.leaders p { color: color-mix(in srgb, var(--on-ink) 75%, transparent); font-size: 18px; margin: 0; }
.leaders .btn-l { display: inline-flex; margin-top: 26px; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; text-decoration: none; }
.leaders .duo { display: flex; gap: 20px; justify-content: center; }
.leaders .duo .device { width: min(46%, 250px); --device-ring: rgb(127 127 127 / 0.35); }

/* How it works */
.how-head { padding-top: 88px; }
.how-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 12px 0 0; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; }
.step { background: var(--surface); border: 0.5px solid var(--divider); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.step .n { width: 28px; height: 28px; border: 0.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.step strong { font-size: 18px; }
.step span:last-child { color: var(--text-2); font-size: 15px; }

.subs { margin: 64px 0 0; padding: 22px 24px; background: var(--surface-2); border-radius: var(--radius); font-size: 14px; color: var(--text-2); }
.subs b { color: var(--text); }

.home .site-footer { margin-top: 72px; }

@media (max-width: 760px) {
  .home .site-header nav a:not(.nav-cta) { display: none; }
  .home-hero { grid-template-columns: 1fr; padding-block: 40px 8px; gap: 28px; }
  .home-hero h1 { font-size: 40px; }
  .home-hero .lede { font-size: 18px; }
  .hero-phones .device { width: 52%; }
  .strip-head { flex-direction: column; align-items: start; padding-top: 56px; }
  .strip { grid-auto-columns: 62%; gap: 16px; }
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 24px; padding-top: 56px; }
  .feat.flip .shot { order: 0; }
  .feat .shot .device { width: min(260px, 70%); }
  .feat h2 { font-size: 30px; }
  .feat p { font-size: 17px; }
  .leaders .wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .leaders h2 { font-size: 32px; }
  .how { grid-template-columns: 1fr; }
  .how-head { padding-top: 64px; }
}

/* The app's success green, for the trust dots (site.css has no semantic colours). */
.home { --success: #2E5E3A; }
@media (prefers-color-scheme: dark) { .home { --success: #8DD7A4; } }
