/* The body of /home: everything under the header. Loaded after landing.css and
   landing-header.css, and ONLY by home.html. Every rule is scoped to `.home` (the <main>) or to a
   class the home page alone carries; what every public page shares (buttons, reveal, footer)
   lives in landing.css.

   Look: warm paper in the light theme and near black in the dark one, big tight headlines,
   translucent surfaces with a 1px border (a shadow only on the light theme), pill buttons and
   32px panels. The teal accent is the only colour that talks; the glows live on body::before. */

/* ── type ─────────────────────────────────────────────────────────────────── */

.home h1, .home h2, .home h3 { margin: 0 }
.home h1 {
  font-size: var(--fs-h1); font-weight: 800; line-height: .98; letter-spacing: -.04em;
}
.home h2 {
  font-size: var(--fs-h2); font-weight: 700; line-height: 1.04; letter-spacing: -.035em;
}
.home h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -.02em }
.home p { margin: 0 0 16px }
.home .lead {
  font-size: var(--fs-lede); line-height: 1.58; color: var(--muted); max-width: 58ch;
}
.home .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .31em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 22px;
}
.home .section-sub { font-size: var(--fs-lede); line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 20px 0 0 }
.home a:not(.btn) { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s }
.home a:not(.btn):hover { text-decoration: underline; text-decoration-color: currentColor }

.home section { padding: clamp(72px, 6.8vw, 100px) 0; background: none }
.home .sec-head { margin-bottom: clamp(36px, 5vw, 64px) }

/* ── hero ─────────────────────────────────────────────────────────────────── */

.home .hero { padding: clamp(28px, 4vw, 56px) 0 clamp(70px, 8vw, 120px); overflow-x: clip }
.hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: clamp(32px, 4vw, 64px); align-items: center }
.hero-copy h1 { max-width: 11ch }
.hero-copy .lead { margin: 28px 0 0 }
.home .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 18px }
.home .hero-note { font-size: 13.5px; color: var(--faint); margin: 0 }
.hero-media { position: relative }
.hero-media::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -30% -20% -10%; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(74, 173, 173, .22), transparent),
    radial-gradient(closest-side at 80% 70%, rgba(155, 127, 212, .14), transparent);
}
.hero-shot { margin: 0; width: 126% }
.hero-shot .frame { box-shadow: var(--shl); animation: breathe 8.5s ease-in-out infinite }
@keyframes breathe { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }

/* ── cards ────────────────────────────────────────────────────────────────── */

.home .grid { gap: 20px }
.home .card {
  padding: 30px; border-radius: 28px; background: var(--glass);
  border: 1px solid var(--cardb); box-shadow: var(--sh);
  transition: translate .3s cubic-bezier(.2, .7, .3, 1), border-color .3s ease, background .3s ease;
}
.home .card:hover { translate: 0 -3px; border-color: var(--accent) }
.home .card h3 { margin-bottom: 10px }
.home .card p { font-size: 15.5px; line-height: 1.6 }
.home .tag { font-size: 11.5px; font-weight: 600; letter-spacing: .24em; margin-bottom: 18px; color: var(--ink) }
.home .card .card-cta { margin-top: 22px }
.home .card-cta .btn { height: auto; min-height: 50px; padding: 12px 22px; text-align: left; line-height: 1.35 }
#features .grid > .card:last-child { grid-column: 1 / -1 }

/* ── screenshot marquee ───────────────────────────────────────────────────── */

/* Without JavaScript (or with reduced motion) this is a row you scroll by hand. landing.js turns
   it into .is-marquee: the cards move into one track, the track is duplicated for a seamless loop
   and the script nudges the row along while it is a native scroller (swipe, wheel, trackpad and
   a mouse drag all work). The edges fade out through a mask rather than stopping dead. */
.home .shots {
  display: flex; align-items: flex-start; gap: 0; overflow-x: auto;
  padding: 10px max(32px, calc((100% - 1280px) / 2)) 34px;
  /* Snapping aligns a card with the scrollport edge, not the padding box: without this the first
     card would snap flush to the edge and lose the gutter the row starts with. */
  scroll-padding-inline: max(32px, calc((100% - 1280px) / 2));
  scroll-snap-type: x proximity;
}
/* The edge fade belongs to the auto scrolling row only. On the hand-scrolled row (no script,
   reduced motion) it would sit over the gutter and fade the first card's edge. No snapping here:
   it would fight the script's steady movement. The scrollbar is hidden, the scrolling is not. */
.home .shots.is-marquee {
  overflow-x: auto; overflow-y: hidden; padding-inline: 0; scroll-snap-type: none;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  touch-action: pan-x pan-y; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.home .shots.is-marquee::-webkit-scrollbar { display: none }
.home .shots.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none }
.home .shots.is-marquee img { -webkit-user-drag: none }
.marquee-track { display: flex; align-items: flex-start; width: max-content }

.home .shot {
  flex: none; width: clamp(300px, 40vw, 580px); margin: 0 24px 0 0; padding: 14px 14px 20px;
  border: 1px solid var(--cardb); border-radius: 28px; background: var(--glass);
  box-shadow: var(--sh); scroll-snap-align: start;
  transition: translate .3s cubic-bezier(.2, .7, .3, 1), border-color .3s ease;
}
.home .shot.shot-phone { width: clamp(220px, 20vw, 290px) }
.home .shot[data-zoom]:hover { transform: none; translate: 0 -4px; border-color: var(--cardb2) }
.home .shot figcaption { font-size: 14px; line-height: 1.55; padding: 0 6px; margin-top: 16px; color: var(--muted) }
.home .shot .frame-browser { border-radius: 18px; box-shadow: none }
.home .shot-phone .frame-phone { box-shadow: none }

/* ── steps ────────────────────────────────────────────────────────────────── */

.home .steps { gap: 20px }
.home .steps li {
  padding: 30px; border-radius: 28px; background: var(--glass);
  border: 1px solid var(--cardb); box-shadow: var(--sh);
  transition: translate .3s cubic-bezier(.2, .7, .3, 1), border-color .3s ease;
}
.home .steps li:hover { translate: 0 -3px; border-color: var(--accent) }
.home .steps li::before {
  content: "0" counter(step); display: inline-flex; width: auto; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--tint); color: var(--ink); border: 1px solid var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; margin-bottom: 22px;
}
.home .steps h3 { margin-bottom: 10px }
.home .steps p { font-size: 15.5px; line-height: 1.6 }

/* ── coach, privacy, payments ─────────────────────────────────────────────── */

.home .split { gap: clamp(32px, 5vw, 72px); align-items: center }
.home .split h2 { margin-bottom: 26px }
.home .panel {
  padding: clamp(26px, 4vw, 48px); border-radius: 32px; background: var(--glass);
  border: 1px solid var(--cardb); box-shadow: var(--sh);
}
.home .panel h3 { margin-bottom: 12px }
.home .panel > p:last-child { margin-bottom: 0 }
.home .ticks li { padding-left: 30px; margin-bottom: 14px; line-height: 1.6 }
.home .ticks li::before { top: .6em; width: 9px; height: 9px; box-shadow: 0 0 0 4px rgba(74, 173, 173, .16) }
.home .ticks strong { font-weight: 650 }
.home .ticks li p, .home .ticks { margin-bottom: 18px }

.home .links { gap: 14px }
.home .links li { font-size: var(--fs-lede); padding: 16px 0; border-top: 1px solid var(--cardb) }
.home .links li:last-child { border-bottom: 1px solid var(--cardb) }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq-layout { display: grid; grid-template-columns: 38fr 62fr; gap: clamp(32px, 5vw, 80px); align-items: start }
.faq-head { position: sticky; top: 120px }
.home .faq { gap: 0 }
.home .faq-item { padding: 30px 0; background: none; border: 0; border-top: 1px solid var(--cardb); border-radius: 0; box-shadow: none }
.home .faq-item:last-child { border-bottom: 1px solid var(--cardb) }
.home .faq-item h3 { margin-bottom: 10px }
.home .faq-item p { font-size: 16px; line-height: 1.65 }

/* ── call to action ───────────────────────────────────────────────────────── */

.home .cta-band { padding-top: 0 }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 104px) 24px; border-radius: 32px;
  background: var(--glass); border: 1px solid var(--cardb); box-shadow: var(--sh);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 50% 0%, rgba(74, 173, 173, .2), transparent 70%);
}
.cta-card > * { position: relative }
.home .cta-card h2 { max-width: 20ch; margin: 0 auto 20px }
.home .cta-card p { color: var(--muted); font-size: var(--fs-body); margin-bottom: 30px }

/* ── breakpoints ──────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero-shot { width: 118% }
}

@media (max-width: 899px) {
  .hero-grid, .faq-layout { grid-template-columns: 1fr }
  .hero-grid { gap: 48px }
  .hero-shot { width: 100% }
  .hero-media::before { inset: -10% -10% }
  .faq-head { position: static }
  .home .split { grid-template-columns: 1fr }
  .home section { padding: clamp(70px, 14vw, 100px) 0 }
  .home .panel, .cta-card { border-radius: 26px }
  .home .shots { padding-inline: 18px; scroll-padding-inline: 18px }
}

@media (max-width: 520px) {
  .home h1 { font-size: 38px }
  .home h2 { font-size: 30px }
  .home .panel, .cta-card { border-radius: 22px }
  .home .card, .home .steps li { padding: 24px; border-radius: 22px }
  .home .shot { border-radius: 22px; width: min(300px, 82vw) }
  .home .shot.shot-phone { width: min(230px, 66vw) }
  .home .cta-row .btn { flex: 1 1 100% }
}

@media (min-width: 900px) {
  .home .grid { grid-template-columns: repeat(3, 1fr) }
  #assistants .grid { grid-template-columns: repeat(2, 1fr) }
}

/* Animation, transition and the reveal are switched off for reduced motion in landing.css; only
   the hover lift (a `translate`, which that block does not touch) is handled here. */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .home .card:hover, .home .shot[data-zoom]:hover { translate: none }
}
