/* Homepage (rewritten 2026-09-08; v2 adds the walkthrough clip). Sits on style.css: tokens, header, footer, buttons, type.
   Everything is visible at rest; the only motion is one hero fade and button hover. */

.home main {
  overflow-x: clip;
}

/* ---------- hero: dark photographic band in both themes ---------- */
.home-hero {
  position: relative;
  color: #f6f3ec;
  background: #14120f;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/photos/hero-conference-room.webp") center / cover no-repeat;
  opacity: 0.42;
  z-index: -2;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.55) 0%, rgba(20, 18, 15, 0.82) 60%, #14120f 100%);
  z-index: -1;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.home-hero .eyebrow {
  color: rgba(246, 243, 236, 0.7);
  margin: 0 0 18px;
}

.home-hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 18px;
  color: #f6f3ec;
  text-wrap: balance;
  animation: hero-fade 0.7s ease-out both;
}

.home-hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(246, 243, 236, 0.82);
  max-width: 34em;
  margin: 0 0 26px;
}

.hero-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-paths a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hero-paths .path-test,
html.is-ios .hero-paths .path-app {
  background: #f6f3ec;
  color: #14120f;
  border: 1px solid #f6f3ec;
}

.hero-paths .path-app,
html.is-ios .hero-paths .path-test {
  background: transparent;
  color: #f6f3ec;
  border: 1px solid rgba(246, 243, 236, 0.5);
}

.hero-paths a:hover {
  border-color: #f6f3ec;
}

html.is-ios .hero-paths .path-app {
  order: -1;
}

.hero-handoff {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  max-width: 380px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(246, 243, 236, 0.72);
}

.hero-handoff img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  flex: none;
}

html.is-ios .hero-handoff {
  display: none;
}

.hero-device {
  margin: 20px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(246, 243, 236, 0.62);
  max-width: 40em;
}

.home-shot {
  margin: 0;
  justify-self: center;
  text-align: center;
}

.home-shot img,
.home-shot video {
  display: block;
  width: min(300px, 100%);
  height: auto;
  border-radius: 30px;
  border: 1px solid rgba(246, 243, 236, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.home-shot figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(246, 243, 236, 0.6);
}

/* The still is the reduced-motion stand-in for the clip; the CSS below swaps them
   (selectors carry the element so they beat the generic .home-shot img / video rules). */
.home-shot img.home-shot-still {
  display: none;
}

@keyframes hero-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */
.home-section {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--divider-color);
}

.home-section:first-of-type {
  border-top: none;
}

.home-section h2 {
  font-family: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.home-section .section-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 40em;
  margin: 0 0 36px;
}

/* what you get */
.home-get-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.home-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.home-points li {
  padding-left: 0;
}

.home-points h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  font-weight: 600;
}

.home-points p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.home-points .optional {
  padding-top: 10px;
  border-top: 1px solid var(--divider-color);
  font-size: 0.95rem;
}

.home-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.home-screens figure {
  margin: 0;
}

.home-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--divider-color);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.home-screens figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* browser test or iPhone app */
.home-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.home-compare article {
  border: 1px solid var(--divider-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-compare .eyebrow {
  margin: 0;
}

.home-compare h3 {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 600;
}

.home-compare p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.home-compare .button-primary,
.home-compare .button-secondary {
  align-self: flex-start;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
}

/* how it measures */
.home-method {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.home-method p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 14px;
}

.home-method aside {
  border-left: 3px solid var(--text-primary);
  padding: 4px 0 4px 18px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-method aside strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}

/* proof + founder */
.home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: baseline;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.home-proof strong {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

.home-proof .snapshot {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.home-founder {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--divider-color);
}

.home-founder img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.home-founder blockquote {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.home-founder cite {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* guides */
.home-guides {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 12px;
}

.home-guides a {
  display: block;
  padding: 16px 16px 18px;
  border: 1px solid var(--divider-color);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  height: 100%;
  transition: border-color 0.15s ease;
}

.home-guides a:hover {
  border-color: var(--text-primary);
}

.home-guides .symptom {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 6px;
}

.home-guides .guide {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.home-guides-more {
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.home-guides-more a {
  color: var(--text-primary);
  text-decoration: underline;
}

/* faq */
.home-faq details {
  border-top: 1px solid var(--divider-color);
  padding: 14px 0;
}

.home-faq details:last-child {
  border-bottom: 1px solid var(--divider-color);
}

.home-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  flex: none;
}

.home-faq details[open] summary::after {
  content: "–";
}

.home-faq p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 44em;
}

/* closing */
.home-close {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.home-close p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}

.home-close .paths {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.home-close .paths a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
}

.home-close .fine {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* phones */
@media (max-width: 860px) {
  .home-hero-grid,
  .home-get-grid,
  .home-method,
  .home-close {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    gap: 36px;
  }

  .home-shot img,
  .home-shot video {
    width: min(240px, 80%);
  }

  .home-compare {
    grid-template-columns: 1fr;
  }

  .home-screens {
    max-width: 440px;
  }

  .hero-paths {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-paths a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero h1 {
    animation: none;
  }

  .home-shot video.home-shot-video {
    display: none;
  }

  .home-shot img.home-shot-still {
    display: block;
  }
}
