/* The homepage: a headline, then each way into Dispatch in its own window, on black at night and white
   by day. */

html { scroll-behavior: smooth; }
body.tour { overflow-x: hidden; }

.page { position: relative; z-index: 1; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.wrap { width: min(1000px, 100% - 48px); margin-inline: auto; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: flex-end; padding: 16px 20px; pointer-events: none; }
.topbar > * { pointer-events: auto; }

/* ---- Hero ---- */
.v6 { position: relative; padding: 14vh 0 120px; }
.v6-intro { position: relative; z-index: 2; }
.v6 h1 { display: grid; margin: 0; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.05em; font-weight: 700; }
/* The logo sits above the headline, on its left edge. */
.hero-logo { display: grid; margin-bottom: 28px; font-size: 64px; animation: rise 0.9s var(--ease-out) both; }
.v6-line { animation: rise 0.9s var(--ease-out) both; }
.v6-word span { display: inline-block; white-space: pre; animation: letter 0.7s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes letter { from { opacity: 0; transform: translateY(0.35em); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.v6-lede { max-width: 640px; text-wrap: balance; margin: 18px 0 0; font-size: 19px; line-height: 1.45; color: var(--ink-2); }
.v6-lede, .v6-intro .waitlist { animation: rise 0.9s var(--ease-out) 1.6s both; }
.hero-proto { animation: window-rise 1.2s var(--ease-out) 2.1s both; }
@keyframes window-rise { from { opacity: 0; transform: translateY(60px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---- Sections ---- */
.fs { position: relative; min-height: 100vh; padding: 120px 0 130px; box-sizing: border-box; }
.fs-copy h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.fs-copy p { max-width: 620px; margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); }

/* ---- Stages: a window, the Kindle it sends to, and the demo's pointer ---- */
.stage { position: relative; z-index: 3; width: min(1120px, calc(100% - 48px)); margin: 56px auto 0; padding-bottom: 44px; }
.v6 .stage { margin-top: 64px; }
.stage > .tw { height: min(640px, 72vh); min-height: 520px; }
.stage-kindle { position: absolute; z-index: 6; right: -64px; bottom: 84px; width: 216px; transform: rotate(4deg); }
.stage-library { position: absolute; z-index: 4; left: -110px; bottom: 84px; width: 330px; }
.stage-library .tw { height: 400px; }
.stage.inbox { display: flex; align-items: center; justify-content: center; gap: 72px; }
.stage.inbox .grok { width: min(460px, 100%); height: 600px; }
.stage.inbox .stage-kindle { position: static; width: 260px; transform: rotate(3deg); }
@media (max-width: 1400px) { .stage-library { left: 12px; } }
@media (max-width: 1300px) { .stage-kindle { right: 16px; } }

/* ---- Questions ---- */
.faq-section { padding: 40px 0 120px; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 48px; align-items: start; }
.faq-wrap h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.faq-section .faq { font-size: 19px; }
.faq-section .faq-a { font-size: 17px; }

/* ---- Be first to try it ---- */
.join-full { display: grid; place-items: center; padding: 80px 24px; }
.join-card { width: min(720px, 100%); padding: 64px; box-sizing: border-box; border-radius: 32px; text-align: center; background: var(--glass); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 40px 120px rgba(0, 0, 0, 0.25); }
.join-card h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.04em; font-weight: 600; }
.join-card p { max-width: 480px; margin: 16px auto 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.join-card .waitlist { margin: 32px auto 0; }
.join-card .waitlist-field { background: var(--field); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 0 0 72px; font-size: 13px; color: var(--ink-3); }

/* ---- Phones and small tablets: windows stack, and the Kindle sits under each one ---- */
@media (max-width: 860px) {
  .v6 { padding: 96px 0 72px; }
  .v6-lede, .fs-copy p { font-size: 17px; }
  .fs { min-height: 0; padding: 72px 0 64px; }
  .stage { width: calc(100% - 32px); margin-top: 32px; padding-bottom: 56px; }
  .stage > .tw, .stage-library .tw, .stage.inbox .grok { height: auto; min-height: 0; border-radius: 22px; }
  .stage.inbox { flex-direction: column; gap: 20px; }
  .stage.inbox .grok { height: 520px; }
  .stage-kindle, .stage-library, .stage.inbox .stage-kindle { position: static; width: auto; margin-top: 16px; transform: none; }
  .stage-kindle > .kindle { width: 200px; margin-inline: auto; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app .app-side { display: none; }
  .app .app-bar { padding-left: 14px; }
  .app-main { container-type: normal; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .list { max-height: 250px; padding: 0 8px 8px; }
  .detail { border-radius: 0; }
  .detail-art { height: 130px; }
  .browser .br-page { max-height: 420px; }
  .br-tools > .ic:not(:first-child) { display: none; }
  .demo-status { max-width: calc(100% - 24px); white-space: normal; text-align: center; }
  .faq-section { padding: 24px 0 72px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq-section .faq { font-size: 17px; }
  .faq-section .faq-a { font-size: 16px; padding-right: 0; }
  .join-card { padding: 36px 22px; border-radius: 26px; }
}
