/* Homepage composition. Shared controls and account styles stay in app.css. */
.home-page {
  --bg: #111113;
  --card: #19191d;
  --muted: #a9a9b2;
  --text: #f4f3ef;
  --accent: #eeedf2;
  --accent-2: #ffffff;
  --line: #2e2e35;
  --max: 1160px;
  background: var(--bg);
}
.home-page .nav { background: var(--bg); }
.home-page .nav-inner { min-height: 78px; }
.home-page .wordmark { font-family: var(--sans); font-size: 18px; font-weight: 800; letter-spacing: -.06em; }
.home-page .wordmark span { margin-left: 4px; font-weight: 450; opacity: .75; }
.home-page .nav-links { gap: 24px; }
.home-page .nav-cta { border-color: #4f505a; color: #eeeef3; }
.home-page .nav-cta { font-size: 12px; white-space: nowrap; }
.home-page .btn { background: var(--accent); color: #19191e; border-color: var(--accent); box-shadow: none; }
.home-page .btn:hover { background: var(--accent-2); color: #19191e; }
.home-page .ghost { box-shadow: none; }
.home-page :is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.home-page .skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 18px; z-index: 100; color: #19191e; background: var(--accent); border-radius: 6px; }
.home-page .skip-link:focus { top: 12px; }
.home-page :is(#homeAuth, #demo, #mainContent) { scroll-margin-top: 100px; }
.home-page .hero.landing { grid-template-columns: 1.02fr 1fr; gap: 44px; align-items: center; padding: 98px 0 76px; }
.home-page .hero .eyebrow { margin: 0 0 26px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 11px; letter-spacing: .14em; font-weight: 650; }
.home-page .hero .eyebrow::before { display: none; }
.home-page .hero h1 { font-family: var(--sans); font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -.065em; font-weight: 760; line-height: 1.2; margin-bottom: 27px; }
.home-page .hero h1 span:last-child { color: #a5a6b4; }
.home-page .hero .hero-unify { color: var(--text); font-size: 19px; margin-bottom: 8px; font-weight: 600; }
.home-page .hero-copy > p:not(.eyebrow):not(.hero-unify) { font-size: 16px; max-width: 410px; line-height: 1.8; margin: 0; }
.home-page .hero-copy > .offer-chip { padding: 0; margin-top: 22px; border: 0; color: #aaaab5; font-size: 12px; }
.home-page .hero-copy > .offer-chip::before { content: '✓'; color: var(--accent); margin-right: 7px; }
.home-page .hero-actions { gap: 14px; margin-top: 22px; }
.home-page .store-hero-cta { font-size: 14px; min-height: 50px; padding: 13px 21px; border-radius: 7px; }
.home-page .demo-hero-link { padding: 11px 4px; border: 0; color: var(--text); font-size: 13px; }
.home-page .demo-hero-link::after { content: '↗'; margin-left: 8px; }
.home-page .hero-copy > .zip-manual { display: inline-block; margin: 18px 18px 0 0; vertical-align: top; color: #aaaab5; }
.home-page .hero-copy > .zip-manual summary { font-size: 11px; }
.home-page .hero-copy > .zip-manual[open] { display: block; max-width: 410px; }

/* A compact, linked product preview with no extra player or animation loop. */
.studio-preview { min-width: 0; border: 1px solid #3b3b46; border-radius: 14px; background: #202027; box-shadow: 0 28px 70px #0004; overflow: hidden; transform: rotate(1deg); }
.studio-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; font-size: 10px; }
.studio-brand { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 750; letter-spacing: .035em; }
.studio-status { color: #a9bce9; font-size: 10px; }
.studio-status::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--accent); }
.studio-scene { display: block; aspect-ratio: 1.78; position: relative; overflow: hidden; background: #d6d4d7; }
.studio-image { position: absolute; width: 146%; max-width: none; height: auto; left: -1.7%; top: -12%; }
.studio-scene::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, #11111970); pointer-events: none; }
.studio-play { position: absolute; top: 38%; left: calc(50% - 25px); display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #fffa; background: #20202799; border-radius: 50%; color: white; z-index: 2; transition: background .18s; }
.studio-scene:hover .studio-play { background: #202027e6; }
.studio-caption { position: absolute; z-index: 2; bottom: 20px; left: 5%; width: 90%; text-align: center; color: white; font-size: clamp(13px, 1.4vw, 19px); font-weight: 650; text-shadow: 0 2px 8px #000; }
.studio-caption small { display: block; color: #ededff; font-size: 8px; font-weight: 750; letter-spacing: .12em; margin-bottom: 6px; }
.studio-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; font-size: 11px; color: #b5b5c0; }
.studio-controls b { color: #ededf3; font-weight: 650; }
.studio-controls span span { margin: 0 10px; color: #777889; }
.studio-controls a { color: #c6c9d8; text-underline-offset: 4px; }
.studio-track { white-space: nowrap; display: flex; gap: 14px; align-items: center; padding: 4px 20px 14px; font-size: 8px; color: #a1a2b4; letter-spacing: .05em; }
.studio-wave { min-width: 0; display: flex; align-items: center; justify-content: space-between; flex: 1; height: 38px; gap: 4px; }
.studio-wave i { width: 5px; height: var(--bar); border-radius: 2px; background: #9caacc; opacity: .7; }
.studio-note { display: flex; gap: 8px; align-items: center; padding: 13px 20px; background: #19191f; color: #afb0bd; font-size: 10px; }
.studio-check { color: #a9bce9; }
.real-preview { margin: 0; }
.real-preview video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #09090b; }
.real-preview figcaption { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 10px; }
.demo-signup { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding: 20px 0; margin-top: 20px; border-top: 1px solid var(--line); }
.demo-signup p { color: var(--muted); font-size: 14px; }
.demo-signup .btn { font-size: 13px; }

/* Section rhythm: fewer boxes, clear headings, and useful content first. */
.home-page .proof { margin: 0 0 80px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.home-page .proof > div { padding: 25px 24px; }
.home-page .proof > div:first-child { padding-left: 0; }
.home-page .proof b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.home-page .proof span { color: var(--muted); font-size: 12px; }
.home-page .home-feature-card { margin: 0 0 40px; padding: 36px 40px; border-radius: 12px; background: #19191e; border-color: #32323c; }
.home-page .home-feature-copy h2 { font-family: var(--sans); font-size: clamp(25px, 3vw, 34px); font-weight: 650; letter-spacing: -.05em; }
.home-page .section-kicker { padding: 0; margin-bottom: 17px; color: #acaebe; font-size: 11px; letter-spacing: .06em; font-weight: 600; }
.home-page .section-kicker::before { display: none; }
.home-page .promo-title { font-family: var(--sans); font-size: clamp(25px, 3vw, 36px); font-weight: 650; letter-spacing: -.05em; }
.home-page :is(.how, .demo-real, .uses, .privacy-strip, .price-tease) { margin: 90px 0 0; }
.home-page .steps { gap: 30px; margin-top: 32px; }
.home-page .steps article { background: none; border: 0; border-top: 1px solid #42434f; border-radius: 0; padding: 24px 0 0; }
.home-page .steps em { color: #a9bce9; background: none; border: 0; border-radius: 0; width: auto; height: auto; font-size: 12px; font-style: normal; margin: 0 0 22px; }
.home-page .steps em::before { content: '0'; }
.home-page .steps b { font-size: 19px; margin-bottom: 10px; }
.home-page .steps span { font-size: 14px; line-height: 1.8; }
.home-page .demo-stage { display: block; margin-top: 25px; }
.home-page .demo-stage .yt-scene { aspect-ratio: 16 / 9; }
.home-page .demo-points li { background: none; border: 0; padding: 12px 0; font-size: 13px; color: var(--muted); }
.home-page .demo-points li::before { content: '✓'; margin-right: 8px; color: var(--accent); }
.home-page .demo-flow { gap: 8px; }
.home-page .demo-flow li { background: #1b1b22; border-color: #33343f; color: #c5c5d3; }
.home-page .use-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 34px; margin-top: 24px; }
.home-page .use-grid article { padding: 26px 0; border: 0; border-bottom: 1px solid var(--line); background: none; border-radius: 0; }
.home-page .use-grid b { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.home-page .use-grid span { line-height: 1.8; }
.home-page .privacy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.home-page .privacy-grid article { padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.home-page .privacy-grid b { font-size: 14px; }
.home-page .privacy-grid span { font-size: 12px; line-height: 1.8; }
.home-page .signup-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 48px; margin-top: 90px; background: #1a1a20; border: 1px solid #373743; border-radius: 14px; }
.signup-copy h2 { max-width: 350px; margin: 0 0 22px; font-size: clamp(30px, 3.3vw, 42px); letter-spacing: -.055em; line-height: 1.25; font-weight: 650; }
.signup-copy > p:not(.section-kicker) { color: var(--muted); font-size: 14px; line-height: 1.8; }
.signup-copy .signup-note { color: #bbbbc9; font-size: 11px; margin-top: 22px; }
.home-page .home-auth { padding: 0; width: 100%; scroll-margin-top: 110px; }
.home-page .home-auth-head h2 { font-family: var(--sans); font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
.home-page .home-auth-head .eyebrow { border: 0; padding: 0; color: #acbce3; font-size: 10px; }
.home-page .home-auth-head .eyebrow::before { display: none; }
.home-page .home-auth-head .muted { font-size: 13px; }
.home-page .home-auth .google-btn { border-radius: 7px; box-shadow: none; font-family: var(--sans); font-size: 14px; }
.home-page .home-auth .check { font-size: 12px; line-height: 1.7; }
.home-page .home-auth .check input { flex-shrink: 0; accent-color: var(--accent); }
.home-page .home-agree-links { font-size: 11px; }
.home-page .home-agree-links a { color: #c7c9dd; }
.home-page .home-email-toggle { min-height: 44px; border: 1px solid #4d4d5c; border-radius: 7px; margin-top: 8px; text-decoration: none; color: #d4d5e2; }
.home-page .home-auth-switch { text-align: center; }
.home-page .home-auth-switch-btn { min-height: 44px; font-size: 12px; }
.home-page .plans.tease { margin-top: 30px; gap: 18px; }
.home-page .plans .card { border-radius: 10px; background: #19191f; padding: 28px; }
.home-page .plans .card.featured { background: #242630; border-color: #83899c; }
.home-page .plans .card h2 { font-family: var(--sans); font-size: 21px; font-weight: 600; }
.home-page .plans .badge { color: #19191e; background: #eeedf2; border-color: #eeedf2; }
.home-page .plans .price { font-family: var(--sans); letter-spacing: -.05em; }
.home-page .cta-band { margin: 92px 0 72px; padding: 56px 20px; border-radius: 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; }
.home-page .cta-band h2 { font-family: var(--sans); font-weight: 650; font-size: clamp(26px, 3vw, 36px); }
.home-page .site-foot { background: #0e0e10; border-color: var(--line); }
.home-page :is(.proof, .steps article, .use-grid article, .privacy-grid article, .demo-points li):hover { transform: none; box-shadow: none; }

@media (max-width: 1000px) {
  .home-page .hero.landing { gap: 30px; padding-top: 68px; }
  .home-page .hero h1 { font-size: 38px; }
  .home-page .nav-links { gap: 15px; }
  .home-page .signup-section { gap: 35px; padding: 32px; }
}
@media (max-width: 760px) {
  .home-page .hero.landing { grid-template-columns: 1fr; padding: 52px 0 38px; gap: 38px; }
  .home-page .hero h1 { font-size: clamp(33px, 6.4vw, 46px); }
  .home-page .hero-copy > p:not(.eyebrow):not(.hero-unify) { max-width: 500px; }
  .studio-preview { transform: none; }
  .home-page .proof { margin-bottom: 44px; }
  .home-page .proof > div { padding: 18px 14px; }
  .home-page .proof b { font-size: 13px; }
  .home-page .proof span { font-size: 11px; }
  .home-page .home-feature-card { padding: 26px; gap: 22px; grid-template-columns: 1fr; }
  .home-page :is(.how, .demo-real, .uses, .privacy-strip, .price-tease) { margin-top: 60px; }
  .home-page .steps { gap: 22px; }
  .home-page .steps b { font-size: 16px; }
  .home-page .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .home-page .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .signup-section { grid-template-columns: 1fr; gap: 30px; padding: 28px; margin-top: 60px; }
  .signup-copy h2 { max-width: 430px; }
  .home-page .home-auth { max-width: 480px; }
  .home-page .nav-inner { min-height: 66px; }
  .home-page .nav-links { gap: 10px; }
  .home-page .cta-band { margin: 60px 0 45px; padding: 35px 8px; }
}
@media (max-width: 480px) {
  .home-page .wrap, .home-page .nav-inner { width: calc(100% - 36px); }
  .home-page .wordmark { font-size: 15px; }
  .home-page .nav-links { gap: 7px; }
  .home-page .nav-cta { display: inline-flex; padding: 8px 10px; font-size: 11px; }
  .home-page .nav-links .chip { max-width: 76px; }
  .demo-signup { align-items: flex-start; flex-direction: column; gap: 6px; }
  .home-page .hero .eyebrow { margin-bottom: 22px; font-size: 10px; }
  .home-page .hero .hero-unify { font-size: 17px; }
  .home-page .hero-copy > p:not(.eyebrow):not(.hero-unify) { font-size: 14px; }
  .home-page .hero-actions { gap: 10px; }
  .home-page .store-hero-cta { font-size: 13px; padding: 12px 16px; }
  .home-page .demo-hero-link { font-size: 12px; }
  .studio-topline { padding: 12px; }
  .studio-controls { padding: 14px 12px 8px; font-size: 10px; }
  .studio-track { padding: 4px 12px 12px; gap: 10px; }
  .studio-wave { gap: 3px; height: 30px; }
  .studio-note { padding: 11px 12px; font-size: 9px; }
  .home-page .proof { grid-template-columns: 1fr; gap: 0; }
  .home-page .proof > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .home-page .proof > div:last-child { border-bottom: 0; }
  .home-page .steps { grid-template-columns: 1fr; gap: 22px; }
  .home-page .steps article { padding-top: 18px; }
  .home-page .steps em { margin-bottom: 12px; }
  .home-page .home-feature-card { padding: 22px; }
  .home-page .signup-section { padding: 24px 20px; }
  .home-page .plans .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.home-page) { scroll-behavior: auto; }
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; }
}
