/* ============================================================================
   PHONES (2026-11-16). Loaded last; everything is inside max-width queries,
   so tablets/desktops/wide screens are untouched. Scoped html.look-ed like
   zen-look.css / zen-wide.css.
   - a full-screen, opaque menu that keeps the logo and a clear close control
   - edge-to-edge media and panels (no box-inside-a-box on a 390px screen)
   - thumb-sized, full-width stacked actions
   - swipeable pricing, a two-column footer, tighter section rhythm
   - legible concept-art labels; headlines sized from the viewport width
   ============================================================================ */

html.look-ed { --gutter: clamp(20px, 4.5vw, 128px); }

/* ---- the menu: burger up to 900px (tablets, landscape phones), full-screen sheet --- */
@media (max-width: 900px) {
    html.look-ed .nav-pill, html.look-ed .nav-cta { display: none; }
    html.look-ed .nav-burger { display: flex; }
    html.look-ed .mobile-menu { display: flex; }
}
@media (max-width: 720px) {
    html.look-ed .nav { padding: 8px 0; }
    html.look-ed .brand-logo { height: 50px; }
}
@media (max-width: 900px) {
    html.look-ed .nav .brand { position: relative; z-index: 96; }          /* stays above the open menu */
    html.look-ed .nav-burger {
        width: 44px; height: 44px; border-radius: 8px;
        background: var(--e-surface); border: 1px solid var(--e-line); box-shadow: none;
    }
    html.look-ed .nav-burger span { background: var(--e-text); }
    html.look-ed .nav-burger::after { display: flex; color: var(--e-text); text-shadow: none; }   /* the x */
    html.look-ed .mobile-menu {
        height: 100vh; height: 100dvh; max-height: none;
        padding: 92px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
        background:
            radial-gradient(ellipse 120% 60% at 50% 0%, #643ab333, transparent 70%),
            var(--e-bg);
        backdrop-filter: none; -webkit-backdrop-filter: none;
        border-bottom: 0; box-shadow: none;
        gap: 0;
    }
    html.look-ed .mobile-menu::before { display: none; }
    html.look-ed .mobile-link {
        padding: 18px 2px; border-radius: 0;
        border: 0; border-bottom: 1px solid var(--e-line);
        font-size: 28px; font-weight: 600; letter-spacing: -0.03em;
        color: var(--e-text);
    }
    html.look-ed .mobile-link::after { opacity: 0.55; transform: none; color: var(--e-accent); font-size: 20px; }
    html.look-ed .mobile-link:hover, html.look-ed .mobile-link:active { background: none; border-color: var(--e-line); }
    html.look-ed .mobile-link[aria-current="page"] { color: var(--e-accent); }
    html.look-ed .mobile-menu-divider { display: none; }
    html.look-ed .mobile-cta { margin-top: 12px; padding: 16px 18px; font-size: 16px; }
    html.look-ed .mobile-menu-divider + .mobile-cta { margin-top: auto; }   /* actions sit at the bottom */
}

/* ---- phones: layout ---------------------------------------------------------- */
@media (max-width: 720px) {
    /* rhythm */
    html.look-ed :is(.section, .ed-section) { padding-top: 64px; padding-bottom: 64px; }
    html.look-ed .ed-section.tight { padding-top: 44px; padding-bottom: 44px; }
    html.look-ed .pale { padding: 64px 0; }
    html.look-ed :is(.section-head, .ed-split) { margin-bottom: 32px; }
    html.look-ed .p-hero { padding: 28px 0 8px; }
    html.look-ed .hero { padding: 36px 0 36px; }

    /* headlines from the viewport width (390px phone = the reviewed sizes) */
    html.look-ed .hero h1 { font-size: clamp(42px, 13.4vw, 60px); }
    html.look-ed .p-hero .display { font-size: clamp(42px, 13.4vw, 60px); }
    html.look-ed .p-hero .display.long { font-size: clamp(36px, 11.3vw, 52px); }
    html.look-ed .chapter-title { font-size: clamp(32px, 9.8vw, 44px); }
    html.look-ed .beta-panel .chapter-title { font-size: clamp(30px, 9vw, 40px) !important; }
    html.look-ed .section-head h2, html.look-ed .section-head h3 { font-size: clamp(30px, 9.2vw, 42px); }
    html.look-ed .cta-strip h2 { font-size: clamp(30px, 9.2vw, 42px); }
    html.look-ed .instrument h3 { font-size: clamp(28px, 8.4vw, 38px); }
    html.look-ed .explorer-detail h3 { font-size: clamp(24px, 7vw, 30px); }

    /* actions: full width, stacked, thumb-sized */
    html.look-ed :is(.p-hero .actions, .beta-panel .actions, .cta-strip .actions, .hero-actions) {
        flex-direction: column; align-items: stretch; gap: 10px;
    }
    html.look-ed :is(.p-hero .actions, .beta-panel .actions, .cta-strip .actions, .hero-actions) .btn {
        width: 100%; justify-content: center; min-height: 54px;
    }

    /* media edge to edge: the live EQ, the stills, the product shots */
    html.look-ed .ui-still { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); width: auto !important; }
    html.look-ed .ui-still .pane { border-radius: 0; box-shadow: 0 1px 0 var(--e-line), 0 -1px 0 var(--e-line); }
    html.look-ed .ui-still figcaption { padding: 0 var(--gutter); margin-top: 12px; gap: 4px 12px; }

    /* panels edge to edge instead of a box inside the page's padding */
    html.look-ed :is(.beta-panel, .cta-strip) {
        margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
        border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important;
        padding: 44px var(--gutter) !important;
    }
    html.look-ed .beta-panel { gap: 28px; }

    /* cards: content-height, comfortable padding */
    html.look-ed .feature { min-height: 0; padding: 24px 22px; }
    html.look-ed .feature .extra { padding-top: 18px; }
    html.look-ed .instrument .copy { padding: 26px 22px 20px; }
    html.look-ed .instrument .visual { padding: 0 22px; }
    html.look-ed .impression { padding: 26px 22px; border-radius: 12px; }
    html.look-ed .buddies-row { padding: 0; border: 0 !important; background: none !important; backdrop-filter: none; }
    html.look-ed .buddies-row-h { padding: 0 2px 14px; }
    html.look-ed .mode { padding: 16px 18px; }

    /* the Listen Buddy "Hear what's there" block reads left like the rest */
    html.look-ed .product-copy { text-align: left !important; margin: 44px 0 0 !important; }
    html.look-ed .product-copy .eyebrow { justify-content: flex-start !important; }
    html.look-ed .product-copy p { margin-left: 0; }

    /* the marquee label wraps instead of clipping at the edges */
    html.look-ed .marquee-label { letter-spacing: 0.12em; padding: 0 var(--gutter); line-height: 1.6; margin-bottom: 18px; }

    /* concept art: labels drawn in viewBox units, so enlarge them for a 350px drawing */
    html.look-ed .pure-art-small { font-size: 24px; }
    html.look-ed .pure-art-label { font-size: 27px; }
    html.look-ed .pure-art-index { font-size: 24px; }
    html.look-ed .concept-top, html.look-ed .concept figcaption { padding: 12px 16px; }

    /* explorer: options rail scrolls sideways with a fade that says so; bigger targets */
    html.look-ed .explorer-opts {
        margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
        padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 44px), transparent);
                mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 44px), transparent);
        scroll-snap-type: x proximity;
    }
    html.look-ed .explorer-opt { min-height: 44px; scroll-snap-align: start; }
    html.look-ed .explorer-cats { gap: 8px; margin-bottom: 20px; }
    html.look-ed .explorer-cat { padding: 14px 14px; }
    html.look-ed .explorer-detail .spec { font-size: 12px; }
    html.look-ed .tiers button { padding: 8px 12px; }

    /* pricing: a swipeable row, the next plan peeking */
    html.look-ed .pricing {
        display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; scrollbar-width: none;
        margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
        padding: 18px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
    }
    html.look-ed .pricing::-webkit-scrollbar { display: none; }
    html.look-ed .pricing .plan { flex: 0 0 82%; scroll-snap-align: start; transform: none !important; }

    /* the closing panels meet the section above / the footer without dead bands */
    html.look-ed #about + .section { padding-top: 0 !important; padding-bottom: 0 !important; }
    html.look-ed .footer { padding-top: 48px; }

    /* footer: two columns of links under the brand */
    html.look-ed .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    html.look-ed .footer-brand { grid-column: 1 / -1; max-width: none; }
    html.look-ed .footer .brand-logo { height: 52px; }
    html.look-ed .footer-col ul li a { display: inline-block; padding: 4px 0; }
}

/* pricing swipe hint (phones only) */
.swipe-hint { display: none; }
@media (max-width: 720px) {
    html.look-ed .swipe-hint {
        display: block; margin: 14px 0 0; text-align: left;
        font-size: 13px; color: var(--ink-faint); letter-spacing: 0.01em;
    }
    html.look-ed .swipe-hint span { display: inline-block; color: var(--e-accent); animation: hintNudge 1.8s ease-in-out infinite; }
    @keyframes hintNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { html.look-ed .swipe-hint span { animation: none; } }
@media (max-width: 900px) {
    html.look-ed .mobile-menu .btn-ghost { border: 1px solid #716080; color: #eee3fb; background: #140e1b; }
}
/* short screens (landscape phones): the menu still fits */
@media (max-width: 900px) and (max-height: 520px) {
    html.look-ed .mobile-menu { padding-top: 62px; padding-bottom: 12px; }
    html.look-ed .mobile-link { font-size: 19px; padding: 8px 2px; }
    html.look-ed .mobile-cta { padding: 11px 16px; margin-top: 8px; }
}

/* the welcome's intro animation (hero-bg.js: waveform -> particles -> constellation, ~5.5 s, then it
   stops drawing) now plays on phones too, in a band behind "Intelligence for sound." rather than
   across the whole (tall) phone hero. site.css used to hide it below 600px. */
@media (max-width: 600px) {
    html.look-ed #hero-bg { display: block; top: 0; bottom: auto; height: 520px; opacity: 0.9; }
}
