/* Homepage phone layout. Shared page and desktop styles remain in their own files. */
.home-note { display: inline-flex; align-items: center; gap: 9px; }
.mobile-product-preview { display: none; }

@media (max-width: 720px) {
  .home-page .section-pad { padding-left: 20px; padding-right: 20px; }
  .home-page .reveal { opacity: 1; transform: none; transition: none; }
  .home-page .site-header { min-height: 76px; padding: 14px 20px; }
  .home-page .site-header.scrolled { min-height: 60px; padding: 8px 16px; }
  .home-page .mobile-menu-toggle { width: 44px; height: 44px; }
  .home-page .site-header.mobile-open { max-height: calc(100svh - 24px); overflow-y: auto; }
  .home-page h2 { font-size: clamp(33px, 9.3vw, 40px); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
  .home-page .eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: .1em; margin-bottom: 20px; }
  .home-page .button { min-height: 52px; font-size: 15px; }
  .home-page :is(a, button, input):focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }

  /* Read the promise first, see the product, then take the next step. */
  .home-page .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 130px; padding-bottom: 64px; }
  .home-page .hero-copy { display: contents; opacity: 1; transform: none; }
  .home-page .hero-copy h1 { order: 0; max-width: 520px; margin: 0 0 28px; font-size: clamp(36px, 9.8vw, 44px); line-height: 1.06; letter-spacing: -.05em; text-wrap: balance; }
  .home-page .hero-copy .hero-lede { order: 1; max-width: 520px; margin: 0; font-size: 18px; line-height: 1.55; }
  .home-page .hero-visual { order: 2; width: 100%; margin: 36px 0 28px; }
  .home-page .hero-copy .audit-form { order: 3; width: 100%; }
  .home-page .hero-copy .form-note { order: 4; margin-top: 18px; }
  .home-page .audit-form { max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; gap: 12px; }
  .home-page .audit-form input { min-height: 54px; padding: 14px 20px; border-radius: 999px; background: #fff; font-size: 16px; }
  .home-page .audit-form .button { min-height: 54px; }
  .home-page .form-note { display: grid; gap: 9px; font-size: 12px; line-height: 1.5; }
  .home-page .home-note { align-items: baseline; }
  .home-page .home-note .tiny-check { flex: none; }
  .home-page .note-divider { display: none; }
  .home-page .hero-stage { --stage-rim: 9px; min-height: 0; height: 370px; border-radius: 22px; box-shadow: 0 18px 38px rgba(46,42,34,.14); }
  .home-page .stage-chrome { padding: 12px 3px; gap: 10px; }
  .home-page .stage-chrome .chrome-dots { gap: 5px; }
  .home-page .stage-chrome .chrome-dots span { width: 9px; height: 9px; }
  .home-page .stage-url { padding: 4px 9px; font-size: 8px; letter-spacing: 0; }
  .home-page .scene { padding: 16px; }
  .home-page .tile-main { min-width: 0; padding: 18px 14px; border-radius: 14px; }
  .home-page .days { gap: 4px; }
  .home-page .days i { flex: 1; min-width: 0; width: auto; max-width: 32px; }
  .home-page .pick-row { flex-wrap: wrap; gap: 5px; }
  .home-page .pick-row > span { width: 100%; font-size: 10px; }
  .home-page .pick-chip { padding: 4px 9px; font-size: 11px; }
  .home-page .tile-float { padding: 8px 10px; }
  .home-page .f-a { top: 3%; right: 5%; }
  .home-page .f-b, .home-page .f-d { bottom: 3%; }
  .home-page .f-c { top: 4%; }
  .home-page .stage-phone { width: 210px; max-width: 80%; padding: 16px; }
  .home-page .stage-spriggy { width: 68px; right: 2%; bottom: 2%; }
  .home-page .f-ai { left: 2%; top: 3%; }

  .home-page .trust-band { padding-top: 36px; padding-bottom: 44px; }
  .home-page .trust-band > p { font-size: 13px; }
  .home-page .logo-marquee { margin: 26px -20px; }
  .home-page .logo-track { gap: 38px; }
  .home-page .logo-track span { font-size: 30px; }
  .home-page .split-section.centered { min-height: 520px; padding-top: 88px; padding-bottom: 88px; }
  .home-page .split-copy p:not(.eyebrow) { font-size: 17px; line-height: 1.6; margin-bottom: 0; }
  .home-page .merle-platform, .home-page .trends-section { grid-template-columns: minmax(0,1fr); gap: 36px; padding-top: 76px; padding-bottom: 76px; }
  .home-page .platform-intro, .home-page .trends-copy { order: 0; }
  .home-page .platform-showcase, .home-page .trends-visual { order: 1; min-width: 0; }
  .home-page .platform-intro > p:not(.eyebrow), .home-page .trends-copy > p:not(.eyebrow) { font-size: 17px; line-height: 1.6; }
  .home-page .platform-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 24px; }
  .home-page .platform-links a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

  /* Keep product examples readable without shrinking a desktop dashboard. */
  .home-page .platform-showcase > .shot, .home-page .trends-visual > .shot { display: none; }
  .mobile-product-preview { display: block; padding: 22px 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 36px rgba(46,42,34,.08); }
  .preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 13px; font-weight: 600; color: var(--nav-green); }
  .preview-heading small { font: 9px var(--mono); letter-spacing: .08em; color: var(--muted); }
  .preview-title { font: 350 27px/1.12 var(--serif); letter-spacing: -.045em; margin-bottom: 26px; color: var(--nav-green); }
  .preview-assignment + .preview-assignment { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
  .preview-student { display: flex; align-items: center; gap: 10px; }
  .preview-student strong, .preview-response strong { display: block; font-size: 13px; font-weight: 500; }
  .preview-student small, .preview-response small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
  .preview-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #eef1eb; color: var(--nav-green); font-size: 10px; }
  .preview-status { margin-left: auto; padding: 5px 8px; border-radius: 999px; background: #eef1eb; color: var(--nav-green); font-size: 10px; white-space: nowrap; }
  .preview-percent { margin-left: auto; color: var(--accent-dark); font-size: 13px; }
  .peach { background: #fbede5; color: var(--accent-dark); }
  .preview-progress { height: 6px; border-radius: 99px; overflow: hidden; background: var(--paper-deep); margin-top: 16px; }
  .preview-progress i { display: block; height: 100%; border-radius: inherit; background: var(--nav-green); }
  .preview-assignment + .preview-assignment .preview-progress i { background: var(--accent); }
  .preview-subtitle { margin: -10px 0 22px; font-size: 12px; color: var(--muted); }
  .preview-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 22px; }
  .preview-metrics > div { padding: 16px 12px; border-radius: 12px; background: var(--paper); }
  .preview-metrics strong { display: block; font: 350 32px var(--serif); letter-spacing: -.04em; color: var(--nav-green); }
  .preview-metrics span { display: block; font-size: 12px; margin-top: 6px; }
  .preview-metrics small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
  .preview-response { display: flex; align-items: center; gap: 10px; padding: 17px 0; border-top: 1px solid var(--line); }
  .preview-response:last-child { padding-bottom: 0; }
  .preview-play { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--line); border-radius: 50%; color: var(--nav-green); font-size: 9px; }

  /* Phone visitors can read the AI explanation without waiting for three beats. */
  .home-page .ai-band { padding-top: 76px; padding-bottom: 76px; }
  .home-page .ai-stage { display: flex; flex-direction: column; gap: 32px; min-height: 0; text-align: left; }
  .home-page .ai-listen { display: none; }
  .home-page .ai-cue, .home-page .ai-explain { opacity: 1; transform: none; animation: none!important; place-items: start; }
  .home-page .ai-explain { order: 0; gap: 22px; }
  .home-page .ai-explain h2 { max-width: 420px; }
  .home-page .ai-explain p { margin: 0; font-size: 17px; }
  .home-page .ai-cue { order: 1; padding: 24px 20px; border: 1px solid rgba(245,241,232,.2); border-radius: 18px; background: rgba(245,241,232,.04); }
  .home-page .ai-chip { padding: 0; border: 0; border-radius: 0; font-size: 9px; letter-spacing: .06em; margin: 0; }
  .home-page .ai-cue blockquote { font-size: 26px; line-height: 1.2; }
  .home-page .trends-copy .help-note { font-size: 13px!important; }
  .home-page .trends-copy .button { width: 100%; }
  .home-page .feature-links { gap: 0; margin-top: 28px; }
  .home-page .feature-link { min-height: 72px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .home-page .feature-link small { color: var(--muted); line-height: 1.5; }
  .home-page .enterprise { padding-top: 72px; padding-bottom: 72px; }
  .home-page .enterprise-head h2 { margin-bottom: 30px; }
  .home-page .enterprise-card { padding: 24px 0; }
  .home-page .enterprise-card h3 { font-size: 24px; margin: 14px 0 20px; }
  .home-page .enterprise-card li { font-size: 14px; }
  .home-page .final-cta { padding-top: 76px; padding-bottom: 76px; text-align: left; }
  .home-page .final-cta > p:not(.eyebrow) { font-size: 17px; line-height: 1.6; }
  .home-page .dark-form input { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.12); }
  .home-page .final-cta .audit-form { margin-top: 30px; }
  .home-page .final-cta .form-note { justify-content: start; margin-top: 22px; }
  .home-page .final-cta .text-arrow { min-height: 44px; margin-top: 18px; }
  .home-page .site-footer { padding-top: 48px; }
  .home-page .footer-top { gap: 18px; padding-bottom: 32px; }
  .home-page .footer-grid { gap: 30px 20px; padding-top: 32px; padding-bottom: 40px; }
  .home-page .footer-grid > div { gap: 0; min-width: 0; }
  .home-page .footer-grid h3 { margin-bottom: 12px; }
  .home-page .footer-grid a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 13px; overflow-wrap: anywhere; }
  .home-page .footer-bottom span { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .home-page .footer-bottom a, .home-page .footer-bottom button { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
}

@media (max-width: 360px) {
  .home-page .section-pad { padding-left: 18px; padding-right: 18px; }
  .home-page .hero-copy h1 { font-size: 34px; }
  .home-page .hero-stage { height: 360px; }
  .home-page .logo-marquee { margin-left: -18px; margin-right: -18px; }
  .home-page .mobile-product-preview { padding: 20px 14px; }
  .home-page .preview-student { gap: 7px; }
  .home-page .preview-avatar { width: 26px; height: 26px; }
  .home-page .preview-status { padding: 5px 6px; font-size: 9px; }
}
