/* Phones only (820 px and narrower), Lamar Nov 9: Naomi fills the screen, like the Own It course.
   The pitch column (title, Get your own agent, industries) becomes a sheet that slides up from the
   bottom button. Desktop and tablet keep the side-by-side page: everything here is inside the media
   query, or hides the new pieces outside it. Looks only: naomi.js and her call are unchanged. */
.m-bar, .m-now, .m-next, .m-sheet-head, .m-scrim { display: none; }

@media (max-width: 820px) {
  html, body { height: 100%; }
  body { overflow: hidden; min-height: 100dvh; }

  /* The header floats over her face. */
  .top { position: fixed; top: 0; left: 0; right: 0; z-index: 8; border: 0; padding: calc(10px + env(safe-area-inset-top)) 14px 22px;
    background: linear-gradient(180deg, rgba(5, 12, 14, .78), rgba(5, 12, 14, 0)); }
  .hero { display: block; padding: 0; max-width: none; }
  /* One slim header row: the logo and Get your own. */
  .brand { font-size: 0; gap: 0; }
  .brand .logo { font-size: 12px; }

  /* Naomi, edge to edge: no drawn phone, the real phone is the frame. */
  .phone-wrap { position: fixed; inset: 0; z-index: 1; display: block; margin: 0; }
  .phone { width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; border: 0; border-radius: 0; background: #050c0e;
    box-shadow: inset 0 0 calc(var(--level) * 90px) rgba(255, 195, 92, calc(var(--level) * .55)); }
  .phone:hover { transform: none; }
  .phone::before { display: none; }
  .naomi { object-position: 50% 20%; }
  .tap { bottom: calc(150px + env(safe-area-inset-bottom)); font-size: 18px; padding: 15px 30px; }
  .status { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .dock { position: fixed; z-index: 7; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); }

  /* Bottom bar: the course name + one line (before the call), and the Lessons button. */
  .m-bar { display: flex; position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; align-items: flex-end; justify-content: space-between; gap: 12px;
    padding: 48px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(5, 12, 14, .88), rgba(5, 12, 14, 0)); pointer-events: none; }
  .m-bar > * { pointer-events: auto; }
  .m-intro { flex: 1; min-width: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
  .m-title { margin: 0; font: 700 30px/1.05 Georgia, "Times New Roman", serif; }
  .m-title em { color: var(--accent); }
  .m-line { margin: 5px 0 0; font-size: 14px; line-height: 1.35; color: var(--text); }
  body:not([data-state="idle"]) .m-intro { visibility: hidden; }
  .m-lessons { flex: none; font: 700 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--accent-ink); background: var(--accent);
    border: 0; border-radius: 999px; padding: 14px 16px; cursor: pointer; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); }
  body:not([data-state="idle"]) .m-lessons { background: rgba(11, 31, 36, .78); color: var(--accent); border: 1px solid var(--accent); }

  /* The lesson she's on, under the header. */
  .m-now { display: block; position: fixed; z-index: 7; left: 16px; right: 16px; top: calc(60px + env(safe-area-inset-top)); margin: 0; text-align: center;
    font: 600 13px/1.35 system-ui, -apple-system, sans-serif; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .95); }
  .m-now[hidden] { display: none; }

  /* "Done. Next lesson" note after she marks a lesson complete. */
  .m-next { display: flex; position: fixed; z-index: 9; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); align-items: center; gap: 10px;
    background: rgba(11, 31, 36, .95); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.35; animation: rise .3s ease; }
  .m-next[hidden] { display: none; }
  .m-next span { flex: 1; min-width: 0; }
  .m-next b { color: var(--accent); }
  .m-next button { flex: none; font: 700 14px/1 system-ui, sans-serif; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 11px 14px; cursor: pointer; }

  /* The lessons sheet (the page's lesson column). */
  .pitch { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; max-height: 86vh; max-height: 86dvh; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: #0d2429; border-top: 2px solid var(--accent); border-radius: 20px 20px 0 0; padding: 0 16px calc(20px + env(safe-area-inset-bottom));
    text-align: left; text-shadow: none; transform: translateY(102%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  body.sheet-open .pitch { transform: none; visibility: visible; transition: transform .28s ease; }
  .pitch h1, .pitch .chip { display: none; }
  .pitch .lead { font-size: 15px; margin: 0 0 12px; text-align: left; }
  .pitch .btn { display: block; text-align: center; }
  .pitch .inds { justify-content: flex-start; margin: 18px 0 0; }
  .pitch .inds-label { text-align: left; }
    .m-sheet-head { display: flex; position: sticky; top: 0; z-index: 2; background: #0d2429; align-items: center; justify-content: space-between; padding: 16px 0 10px;
    font: 700 20px/1 Georgia, "Times New Roman", serif; }
  .m-sheet-head button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
  .m-scrim { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(0, 0, 0, .5); }
  .m-scrim[hidden] { display: none; }
  .pitch > .fine { border: 0; padding: 18px 0 0; text-align: left; }

  /* Her cards slide up over the video. */
  .phone-wrap .offer { position: fixed; z-index: 8; left: 12px; right: 12px; width: auto; bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Her plan: a full-screen sheet. */
  .plan { top: 0; left: 0; right: 0; bottom: 0; width: auto; border: 0; border-radius: 0; z-index: 45;
    padding: calc(22px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); }
  .plan-open { right: 12px; bottom: auto; top: calc(58px + env(safe-area-inset-top)); z-index: 9; }

}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .pitch, .m-next { transition: none; animation: none; } }
