  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    background: #06061a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #7c3aed #06061a;
  }

  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: #06061a; }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
    border-radius: 999px;
    border: 2px solid #06061a;
    background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover { background: #8b5cf6; background-clip: padding-box; }

  a { color: inherit; text-decoration: none; }

  .page {
    max-width: 1400px;
    min-width: 960px;
    margin: 0 auto;
    position: relative;
  }

  /* ── Everything above the footer removed except the three buttons,
     with the full background art restored behind them — whole image,
     uncropped, natural aspect ratio. ── */
  .actions-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1774 / 3548;
    background-image: url('/static/landing page blank.jpeg?v=2');
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .ov { position: absolute; }

  .arrow-icon { width: 1em; height: 1em; flex-shrink: 0; }

  /* ── Mobile-only content. All of this is baked into the desktop poster
     image as pixels, so it has no desktop equivalent — hidden by default,
     revealed only inside the @media (max-width:720px) block below.
     IMPORTANT: this targets the specific new content elements, not their
     wrapper divs (.m-header/.m-hero/.m-banner) — those wrappers also
     contain the REAL Log In/Sign Up/CTA anchors that desktop still needs
     to render. Hiding the wrapper itself would hide those real buttons
     too, since display:none on an ancestor hides descendants outright,
     even ones positioned absolutely. ── */
  .m-logo-group, .m-hero-title, .m-hero-sub, .m-hero-art,
  .m-tagline, .m-how, .m-consequences,
  .m-banner-title, .m-banner-sub { display: none; }

  /* Aurora background — same drifting-glow concept/colors as home.html's
     mobile aurora (see static/home.html's .mobile-aurora), reused here as
     an experiment to match the app's own mobile background treatment. */
  .mobile-aurora { display: none; }

  /* Solid contrast backdrop behind the header row only — see mobile block
     below for sizing/positioning. */
  .m-header-backdrop { display: none; }

  .btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(8px, 0.85vw, 13px);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: #000;
    border-radius: 999px;
  }
  .btn-outline:hover { background: #1a1a1a; }

  .btn-primary-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-weight: 700;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  }
  .btn-primary-pill:hover { filter: brightness(1.1); }

  /* Original nav position (recalculated against the full 3548px image
     height now that the whole image is shown, not just the top slice) */
  .btn-login {
    left: 76.7%;
    top: 0.99%;
    width: 8.9%;
    height: 1.80%;
    font-size: clamp(8px, 0.85vw, 13px);
  }

  .btn-signup {
    left: 86.2%;
    top: 0.99%;
    width: 8.9%;
    height: 1.80%;
    font-size: clamp(8px, 0.85vw, 13px);
  }

  /* Original hero CTA position (same recalculation) */
  .btn-hero-cta {
    left: 4.68%;
    top: 20.9%;
    width: 26.2%;
    height: 2.85%;
    font-size: clamp(9px, 1.2vw, 16px);
  }

  /* Video dropped into the blank gap below "Large Catalog of Stories",
     left edge aligned to the "How It Works" card row directly below it
     (4.9%). Padding + object-fit:contain keeps the full frame visible
     (nothing cropped) with an even matte gap on all sides. */
  .hero-video {
    left: 4.9%;
    top: 29.81%;
    width: 35.34%;
    height: 11.56%;
    padding: 8px;
    background: #06061a;
    border-radius: 14px;
    border: 1.5px solid rgba(139,92,246,0.55);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(139,92,246,0.12), 0 8px 24px rgba(0,0,0,0.45);
  }
  .hero-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  /* Click-to-enlarge — desktop only (min-width:721px matches this file's one mobile
     breakpoint at max-width:720px). Expanded state escapes the poster's absolute/
     percentage positioning entirely via position:fixed, sized to match .page's own
     max-width so "full width" means full width of the landing page's content column,
     not the raw viewport. height:auto (video's own intrinsic ratio takes over from
     object-fit:contain here, since there's no fixed-height parent box to contain into. */
  @media (min-width: 721px) {
    .hero-video { cursor: zoom-in; transition: box-shadow .2s; }
    .hero-video:hover { box-shadow: 0 0 0 1px rgba(139,92,246,0.3), 0 8px 28px rgba(0,0,0,0.55); }
    .hero-video.expanded {
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: min(1400px, 94vw);
      height: auto;
      z-index: 1000;
      cursor: zoom-out;
    }
    .hero-video.expanded video { width: 100%; height: auto; }
  }
  .hero-video-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 999;
  }
  .hero-video-backdrop.show { display: block; }

  /* Story carousel — to the right of the video, same row. Track is the
     full image list doubled, animated continuously rightward; a mask
     fades both edges; arrows burst the speed up on click. */
  .story-carousel {
    left: 44.5%;
    top: 29.81%;
    width: 51%;
    height: 12.43%;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .carousel-viewport {
    flex: 1;
    height: 100%;
    padding-top: 10px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  }
  .carousel-track {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    width: max-content;
    /* Position driven by JS (script below), not a CSS animation — needed
       so the arrows can advance by an exact number of tiles instead of
       just running the loop faster for a fixed time. */
    will-change: transform;
  }
  .carousel-track img {
    height: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid rgba(139,92,246,0.55);
    box-shadow: 0 0 0 1px rgba(139,92,246,0.12);
    flex-shrink: 0;
    display: block;
    transition: transform .18s ease, box-shadow .18s ease;
  }
  /* Same lift + shadow bloom as .card:hover on the story tiles in the
     app itself — applied to whichever cover is passing through the
     center of the carousel right now. */
  .carousel-track img.centered {
    transform: translateY(-7px);
    box-shadow: 0 22px 50px rgba(0,0,0,.65), 0 0 0 1px rgba(139,92,246,0.35);
  }
  .carousel-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(139,92,246,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
  }
  .carousel-arrow:hover { background: rgba(139,92,246,0.35); }
  .carousel-arrow svg { width: 14px; height: 14px; }

  /* CTA banner button, near the footer — same pill drawn in the
     background art, now filled with the same button text */
  .btn-banner-cta {
    left: 35.74%;
    top: 87.51%;
    width: 28.52%;
    height: 2.88%;
    gap: 0.5em;
    font-size: clamp(9px, 1.2vw, 16px);
  }

  /* ── Footer (matches reference: logo + link row, divider, copyright +
     social icons row) ── */
  footer {
    padding: clamp(24px, 4vw, 40px) clamp(16px, 4.5%, 63px) 0;
  }
  .footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: clamp(20px, 3vw, 32px);
  }
  .footer-top img { width: 130px; height: auto; display: block; }

  .footer-links {
    display: flex;
    gap: clamp(18px, 3vw, 40px);
    flex-wrap: wrap;
  }
  .footer-links a, .footer-links button {
    color: #9ca3af;
    font-size: 14px;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
  }
  .footer-links a:hover, .footer-links button:hover { color: #fff; }

  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: clamp(16px, 2.5vw, 24px) 0 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .footer-bottom .copyright {
    color: #6b7280;
    font-size: 12px;
  }
  .footer-social { display: flex; gap: 20px; }
  .footer-social a { color: #9ca3af; display: flex; }
  .footer-social a:hover { color: #fff; }
  .footer-social svg { width: 19px; height: 19px; }

  /* ── Privacy/Terms popup modal ── */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: #0b0b1e;
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 16px;
    width: min(900px, 100%);
    height: min(85vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .modal-header span { font-weight: 700; }
  .modal-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
  }
  .modal-close:hover { background: rgba(139,92,246,0.35); }
  .modal-box iframe {
    flex: 1;
    border: none;
    width: 100%;
    background: #fff;
  }

  /* ── Mobile/PWA overrides. Placed last on purpose: these share
     specificity with the unconditional rules above, so being later in
     source order is what lets them actually win at phone widths — same
     convention as the rest of the app's mobile CSS (see home.html's own
     single @media (max-width:720px) breakpoint, which this now matches
     instead of using a landing-page-specific 960px cutoff). ── */
  @media (max-width: 720px) {
    html, body { overflow-x: hidden; }
    .page { min-width: 0; width: 100%; position: relative; z-index: 1; }

    /* Sits behind the logo/Login/Sign Up row (first child of .page, so it
       paints before — i.e. behind — everything else in normal DOM-order
       stacking) but above the aurora (which is a sibling of .page itself,
       one full stacking level down). Height covers the padding-top (20px)
       + logo row (73px), stopping just above the tagline underneath it. */
    .m-header-backdrop {
      display: block;
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 75px;
      background: #000;
    }

    /* Aurora background blobs — values copied verbatim from home.html's
       .mobile-aurora so the landing page's mobile background matches the
       rest of the app. EXPERIMENTAL: revert by restoring the single
       ".mobile-aurora { display: none; }" rule above and deleting this
       block + the @keyframes below if it doesn't look right. */
    .mobile-aurora {
      display: block; position: fixed; inset: 0; z-index: 0;
      overflow: hidden; pointer-events: none;
    }
    .mobile-aurora .blob {
      position: absolute; border-radius: 50%; filter: blur(50px); opacity: .32;
      mix-blend-mode: screen;
    }
    .mobile-aurora .blob-1 {
      width: 280px; height: 280px; top: -60px; left: -60px;
      background: radial-gradient(circle at 35% 35%, #ec4899, transparent 70%);
      animation: mobileAuroraDrift1 26s ease-in-out infinite;
    }
    .mobile-aurora .blob-2 {
      width: 300px; height: 300px; bottom: -80px; right: -80px;
      background: radial-gradient(circle at 65% 65%, #7c3aed, transparent 70%);
      animation: mobileAuroraDrift2 32s ease-in-out infinite;
    }
    @keyframes mobileAuroraDrift1 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(20px,-22px) scale(1.08);} }
    @keyframes mobileAuroraDrift2 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-18px,18px) scale(1.05);} }
    @media (prefers-reduced-motion: reduce) {
      .mobile-aurora .blob { animation: none !important; }
    }

    /* Scrolling stays enabled — just hide the scrollbar chrome on mobile/PWA. */
    html { scrollbar-width: none; -ms-overflow-style: none; }
    html::-webkit-scrollbar { display: none; width: 0; height: 0; }

    /* The desktop poster is replaced entirely by real stacked content below —
       turn off the background image/aspect-ratio box and let children flow
       normally instead of being positioned against it. */
    .actions-area {
      aspect-ratio: unset;
      background-image: none;
      height: auto;
      display: flex;
      flex-direction: column;
      gap: 32px;
      padding: 0px 20px 4px;
    }

    /* Every element positioned by percentage on the desktop poster becomes a
       normal-flow block on mobile — each specific class below then sets its
       own sane mobile width/spacing instead of the desktop percentage. */
    .ov { position: static; left: auto; top: auto; }

    /* .m-header/.m-hero/.m-banner are NOT in the default-hide list (they
       wrap real buttons) — they already render as normal blocks, just
       reflowed here into flex rows/columns for mobile. Everything below
       that IS in the default-hide list gets explicitly revealed. */
    .m-tagline, .m-how, .m-consequences { display: block; }
    .m-logo-group, .m-hero-title, .m-hero-sub, .m-hero-art,
    .m-banner-title, .m-banner-sub { display: block; }

    /* ── Header: logo + tagline + Log In / Sign Up ── */
    .m-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .m-logo-group { display: flex; flex-direction: column; }
    /* protaag-text.png has a soft glow effect baked into its left edge —
       the solid "P" stroke doesn't fully start until ~15% into the image
       width. margin-left pulls the solid letter flush with the tagline
       below it, sacrificing the glow's leftward bleed. */
    .m-logo { height: 73px; width: auto; display: block; margin-left: -37.8px; }
    .m-tagline-small { font-size: 12px; letter-spacing: 0.08em; color: #fbbf24; margin-top: 3px; margin-left: 4px; }
    .m-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-right: 20px; transform: translate(-25px, -15px); }
    .btn-login, .btn-signup { width: auto; height: auto; padding: 9px 16px; font-size: 12px; white-space: nowrap; }

    /* ── Hero ── */
    .m-hero-title { font-size: 39px; font-weight: 800; line-height: 1.12; }
    .m-hero-sub { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.65); margin-top: 12px; }
    .btn-hero-cta { width: 100%; height: auto; padding: 15px 20px; font-size: 15px; margin-top: 18px; }
    .m-hero-art { width: 100%; aspect-ratio: 4 / 3; margin-top: 22px; }

    /* ── "Large Catalog" tagline ── */
    .m-tagline { color: #fbbf24; font-weight: 700; font-size: 13px; letter-spacing: 0.03em; text-align: center; }

    /* Video + carousel: same elements as desktop, just unlocked from
       absolute/percentage positioning and given real mobile dimensions,
       stacked in that order (video already precedes carousel in source). */
    .hero-video { width: 100%; height: auto; aspect-ratio: 16 / 10; padding: 8px; }
    .story-carousel { width: 100%; height: 128px; }

    /* ── How It Works ── */
    .m-section-heading { color: #fbbf24; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
    .m-how-cards { display: flex; flex-direction: column; gap: 14px; }
    /* Glass treatment matching home.html's own mobile-aurora-era glass
       elements (.search-input/.filter-btn: rgba(255,255,255,.09) fill +
       blur(18px) + light border), not the .glass-panel style built for
       the image placeholders above. */
    .m-how-card {
      background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(236,72,153,0.10));
      border: 1px solid rgba(139,92,246,0.28);
      border-radius: 14px;
      padding: 20px;
    }
    .m-how-card svg { width: 26px; height: 26px; color: #a855f7; margin-bottom: 12px; display: block; }
    .m-how-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
    .m-how-card p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.6); }

    /* ── Before / After ── */
    .m-before-after { display: flex; align-items: flex-start; gap: 10px; }
    .m-ba-panel { flex: 1; min-width: 0; }
    .m-ba-img { width: 100%; aspect-ratio: 1 / 1; margin-bottom: 10px; }
    .m-ba-label { color: #fbbf24; font-weight: 700; font-size: 13px; }
    .m-ba-panel p { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.7); margin-top: 4px; }
    .m-ba-arrow { width: 20px; height: 20px; color: #fbbf24; flex-shrink: 0; margin-top: 40px; }

    /* ── Final CTA banner ── */
    .m-banner {
      background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(236,72,153,0.10));
      border: 1px solid rgba(139,92,246,0.28);
      border-radius: 16px;
      padding: 30px 22px 26px;
      text-align: center;
    }
    .m-banner-title { font-size: 21px; font-weight: 800; line-height: 1.3; }
    .m-gold { color: #fbbf24; }
    .m-banner-sub { font-size: 13.5px; color: rgba(255,255,255,0.65); margin: 10px 0 18px; }
    .btn-banner-cta { width: 100%; height: auto; padding: 15px 20px; font-size: 15px; margin: 0 auto; }

    /* ── Glass panels — frosted background behind each supplied image
       ("worlds image.jpeg", "before image.jpeg", "after image.jpeg"); a
       CSS background-image rather than an <img> tag, so if a file is ever
       missing it just shows the plain frosted panel, no broken-image icon. ── */
    .glass-panel {
      background-color: rgba(124,58,237,0.08);
      background-size: cover;
      background-position: center;
      -webkit-backdrop-filter: blur(20px);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(139,92,246,0.25);
      border-radius: 16px;
    }
    /* Converted from inline style="background-image:url(...)" attributes */
    .bg-hero-art { background-image: url('/static/worlds image.jpeg'); }
    .bg-before-img { background-image: url('/static/before image.jpeg'); }
    .bg-after-img { background-image: url('/static/after image.jpeg'); }

    .footer-bottom .copyright { width: 100%; text-align: center; }
    .footer-social { width: 100%; justify-content: center; }
  }
