/* -- Bazaart brand fonts -------------------------------------------- */
    /* Display: ES Rebond Grotesque Classic ExtraBold (single weight) */
    @font-face {
      font-family: 'ES Rebond Grotesque';
      src: url('./assets/fonts/ESRebondGrotesqueClassic-ExtraBold.woff2') format('woff2');
      font-weight: 800;
      font-style: normal;
      font-display: swap;
    }
    /* Body: NewHero — Regular / Medium / SemiBold / Bold */
    @font-face {
      font-family: 'NewHero';
      src: url('./assets/fonts/NewHero-Regular.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'NewHero';
      src: url('./assets/fonts/NewHero-Medium.woff2') format('woff2');
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'NewHero';
      src: url('./assets/fonts/NewHero-SemiBold.woff2') format('woff2');
      font-weight: 600;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'NewHero';
      src: url('./assets/fonts/NewHero-Bold.woff2') format('woff2');
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }

    /* -- Bazaart brand tokens ------------------------------------------- */
    :root {
      --bzrt-bg:        #FFFFFF;
      --bzrt-bg-soft:   #FAFAF7;
      --bzrt-ink:       #0A0A0A;
      --bzrt-ink-soft:  #4A4A4A;
      --bzrt-ink-mute:  #8C8C8C;
      --bzrt-line:      #ECECEC;
      --bzrt-primary:   #6D28D9;
      --bzrt-primary-2: #4C1D95;
      --bzrt-primary-tint: #EEEDFE;
      --bzrt-accent:    #EC4899;
      --bzrt-accent-2:  #F59E0B;
      --bzrt-success:   #0F6E56;
      --bzrt-danger:    #A32D2D;
      --bzrt-radius:    14px;
      --bzrt-radius-lg: 22px;
      --bzrt-shadow:    0 1px 2px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.06);
      --bzrt-shadow-hi: 0 2px 4px rgba(10,10,10,.06), 0 18px 48px rgba(10,10,10,.10);

      /* Typography per Bazaart brand:
         - Display (titles): ES Rebond Grotesque
         - Body (text + buttons): NewHero */
      --bzrt-font-display: 'ES Rebond Grotesque', Georgia, 'Times New Roman', serif;
      --bzrt-font-body:    'NewHero', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    html { -webkit-text-size-adjust: 100%; }
    body {
      background: var(--bzrt-bg);
      color: var(--bzrt-ink);
      font-family: var(--bzrt-font-body);   /* default everywhere — text + buttons */
      font-size: 16px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;                    /* prevent horizontal scroll from -ve margins / -ve insets */
      overflow-wrap: break-word;             /* avoid extra-long URLs blowing out layout on tiny screens */
    }
    img, svg, video { max-width: 100%; }     /* media never causes horizontal overflow on mobile */

    /* Headings + display surfaces use Rebond Grotesque */
    h1, h2, h3, h4,
    .result-title,
    .result-cta-h,
    .result-quote-text,
    .loading-phrase,
    .photoshoot-banner h2 {
      font-family: var(--bzrt-font-display);
    }

    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; }

    /* -- Top nav -------------------------------------------------------- */
    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      width: 100%;
      max-width: min(1320px, 100%);
      margin: 0 auto;
      box-sizing: border-box;
      padding-top: calc(clamp(18px, 3.2vw, 30px) + env(safe-area-inset-top, 0px));
      padding-right: calc(clamp(20px, 4.5vw, 48px) + env(safe-area-inset-right, 0px));
      padding-bottom: clamp(16px, 2.5vw, 24px);
      padding-left: calc(clamp(20px, 4.5vw, 48px) + env(safe-area-inset-left, 0px));
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 800;
      font-size: 22px;
      letter-spacing: -0.02em;
      flex-shrink: 0;
      line-height: 0;
    }
    .logo svg {
      display: block;
      height: auto;
      max-width: clamp(104px, 28vw, 116px);
    }
    .logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--bzrt-primary) 0%, var(--bzrt-accent) 100%); }
    /* While the URL flow is running, the logo is non-interactive — clicking
       it would abort the crawl/generate and lose the in-progress preview.
       JS handler also bails on click; this gives a visual cue. */
    body[data-phase="loading"] .logo {
      opacity: 0.5;
      cursor: not-allowed;
    }
    .nav-actions {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    /* Share button is hidden in all phases */
    .nav-share { display: none !important; }

    .nav-share {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      color: var(--bzrt-ink);
      border: 1px solid var(--bzrt-line);
      padding: 10px 16px;
      border-radius: 999px;
      font-weight: 600;
      font-size: 14px;
      line-height: 1.2;
      white-space: nowrap;
      transition: transform .12s ease, border-color .12s ease, background .12s ease;
    }
    .nav-share:hover {
      border-color: var(--bzrt-ink-mute);
      background: var(--bzrt-bg-soft);
    }

    .nav-cta {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--bzrt-ink);
      color: #fff;
      border: 0;
      padding: 11px 20px;
      border-radius: 999px;
      font-weight: 600;
      font-size: 14px;
      line-height: 1.2;
      white-space: nowrap;
      transition: transform .12s ease, background .12s ease;
    }
    .nav-cta:hover { background: var(--bzrt-primary-2); transform: translateY(-1px); }

    /* -- Hero ----------------------------------------------------------- */
    .hero {
      max-width: 1100px;
      margin: clamp(40px, 6vw, 64px) auto 0;
      padding: 0 clamp(20px, 4.5vw, 48px);
      text-align: center;
      box-sizing: border-box;
    }
    /* H1 is ALWAYS two lines: line 1 is "Product shots", line 2 is "for" + the typed word. */
    .hero h1 {
      font-weight: 800;
      font-size: clamp(44px, 7vw, 88px);
      line-height: 1.12;            /* enough room for ascenders + descenders at heavy weight */
      letter-spacing: -0.035em;
      margin: 0 0 20px;
    }
    .hero h1 .h1-line {              /* both lines are block — guaranteed 2 lines, no wrap-luck */
      display: block;
    }
    .hero h1 .typed {
      display: inline-block;
      /* Bazaart brand gradient — matches the logo (paint0_linear_7749_20087): #FF0560 → #C700CC. */
      background: linear-gradient(135deg, #FF0560 0%, #C700CC 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      min-width: 1ch;
      /* breathing room so background-clip doesn't visually crop ascenders/descenders on the gradient */
      padding: 0.05em 0.04em;
      margin: 0 -0.04em;
      line-height: 1.12;
    }
    .hero h1 .caret {
      display: inline-block;
      width: 4px;
      height: 0.85em;
      vertical-align: -0.08em;
      background: var(--bzrt-ink);
      margin-left: 6px;
      animation: caret 1s steps(2) infinite;
      border-radius: 2px;
    }
    @keyframes caret { 50% { opacity: 0; } }
    .hero p.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--bzrt-ink-soft); max-width: 640px; margin: 0 auto 36px; }

    /* URL form */
    .url-form { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--bzrt-line); border-radius: 999px; padding: 6px 6px 6px 24px; display: flex; align-items: center; gap: 10px; box-shadow: var(--bzrt-shadow); transition: box-shadow .15s ease, border-color .15s ease; }
    .url-form:focus-within { border-color: var(--bzrt-primary); box-shadow: var(--bzrt-shadow-hi); }
    .url-form.invalid { border-color: var(--bzrt-danger); }
    .url-form svg.link-icon { width: 20px; height: 20px; color: var(--bzrt-ink-mute); flex-shrink: 0; }
    .url-form input[type="url"] { flex: 1; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 16px; padding: 14px 0; color: var(--bzrt-ink); min-width: 0; }
    .url-form input[type="url"]::placeholder { color: var(--bzrt-ink-mute); }
    .url-form button[type="submit"] { background: var(--bzrt-ink); color: #fff; border: 0; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background .12s ease, transform .12s ease; min-width: 140px; flex-shrink: 0; }
    .url-form button[type="submit"]:hover:not(:disabled) { background: linear-gradient(135deg, var(--bzrt-primary) 0%, var(--bzrt-accent) 100%); transform: translateY(-1px); }
    .url-form button[type="submit"]:disabled { opacity: .6; cursor: wait; }
    .form-error { color: var(--bzrt-danger); font-size: 13px; margin-top: 10px; min-height: 18px; }

    /* Sample chips */
    .samples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 0; max-width: 640px; }
    .samples .label { font-size: 13px; color: var(--bzrt-ink-mute); padding: 6px 0; }
    .chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--bzrt-bg-soft); border: 1px solid var(--bzrt-line); color: var(--bzrt-ink-soft); cursor: pointer; font-family: inherit; transition: background .12s ease, border-color .12s ease, color .12s ease; }
    .chip:hover { background: var(--bzrt-primary-tint); border-color: var(--bzrt-primary); color: var(--bzrt-primary); }

    /* -- Loading stage — image + phrase + progress dots --------------- */
    .loading-stage {
      min-height: calc(100vh - 120px);
      min-height: calc(100dvh - 120px);          /* iOS Safari: avoid jump when toolbar shows/hides */
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 22px;
      padding: clamp(32px, 6vw, 52px) clamp(20px, 4.5vw, 48px);
      transition: opacity .35s ease, transform .35s ease;
    }
    /* Fade-out class — set briefly before transitioning to the results page,
       so the loading stage gracefully exits instead of disappearing. */
    body.bzrt-fade-out-loading .loading-stage {
      opacity: 0;
      transform: scale(.97);
    }
    .loading-image {
      position: relative;
      width: min(clamp(240px, 70vw, 480px), 100%);   /* fits within narrow phones (no horizontal squish) */
      aspect-ratio: 1 / 1;
      border-radius: var(--bzrt-radius-lg);
      overflow: hidden;
      background: var(--bzrt-bg-soft);
      box-shadow: var(--bzrt-shadow);
      opacity: 0;
      transform: scale(.96);
      /* Entrance: soft deceleration. Morph: slower + symmetric ease-in-out for a gradual resize. */
      transition:
        opacity .7s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform .7s cubic-bezier(0.22, 0.61, 0.36, 1),
        width 1.45s cubic-bezier(0.45, 0.05, 0.55, 0.95),
        aspect-ratio 1.45s cubic-bezier(0.45, 0.05, 0.55, 0.95);
      flex-shrink: 0;
    }
    .loading-image.visible { opacity: 1; transform: scale(1); }
    .loading-image img {
      position: relative;
      z-index: 2;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      display: block;
    }
    /* No product peek during loading — shimmer block, img hidden until a real src is set */
    .loading-image.bzrt-loading-placeholder {
      background: linear-gradient(90deg, #EDE9FE 0%, #F5F3FF 45%, #EDE9FE 100%);
      background-size: 200% 100%;
      animation: bzrt-loading-shimmer 1.35s ease-in-out infinite;
    }
    .loading-image.bzrt-loading-placeholder img { display: none; }
    /* Crawl step: animated SVG fades in after a short hold on the shimmer, then out before the product image. */
    .bzrt-crawl-loader {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      /* Tighter padding on small frames so a larger SVG still fits. */
      padding: clamp(6px, 4.5vw, 14%);
      box-sizing: border-box;
      z-index: 1;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.48s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    .bzrt-crawl-loader.bzrt-crawl-loader-on { opacity: 1; }
    /* ~2× prior desktop size; square box is min of vw / dvh caps so mobile + landscape stay tame. */
    .bzrt-crawl-loader svg {
      display: block;
      flex-shrink: 0;
      --bz-crawl-cap: min(
        min(94%, clamp(196px, 44vw, 460px)),
        min(94%, clamp(196px, min(44vw, 42dvh), 460px))
      );
      width: var(--bz-crawl-cap);
      height: var(--bz-crawl-cap);
      filter: drop-shadow(0 10px 28px rgba(79, 70, 229, 0.07));
    }
    @keyframes bzrt-loading-shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    .loading-phrase {
      font-size: clamp(24px, 3.6vw, 44px);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--bzrt-primary);
      margin: 0;
      text-align: center;
      max-width: min(clamp(280px, 70vw, 480px), 100%);
      white-space: nowrap;
      line-height: 1.15;
      transition: opacity .25s ease;
      min-height: 1.2em;
    }
    .loading-phrase.fading { opacity: 0; }
    /* Progress pills — each segment fills grey→purple left-to-right over ~25s total. */
    .loading-progress {
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
    }
    .loading-progress .dot {
      position: relative;
      width: 24px;
      height: 6px;
      border-radius: 999px;
      background: var(--bzrt-line);
      overflow: hidden;
      --pill-fill: 0;
    }
    .loading-progress .dot::after {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 100%;
      border-radius: inherit;
      background: var(--bzrt-primary);
      transform: scaleX(var(--pill-fill));
      transform-origin: left center;
      will-change: transform;
    }
    /* Result stage — animate only the hero block, not the section root: a
       transformed ancestor traps position:fixed (CTA dock) to the section
       instead of the viewport on mobile. */
    body[data-phase="generated"] .result-stage-main {
      animation: bzrt-results-enter .55s cubic-bezier(.2, .7, .2, 1) both;
    }
    @keyframes bzrt-results-enter {
      from { opacity: 0; transform: translateY(12px) scale(.99); }
      to   { opacity: 1; transform: translateY(0)     scale(1); }
    }

    /* -- Result panel (extracted + presets + generated) ---------------- */
    .result { max-width: 1100px; margin: 36px auto 0; padding: 0 32px; }
    .result-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
    @media (max-width: 820px) { .result-grid { grid-template-columns: 1fr; } }

    .product-card { background: #fff; border: 1px solid var(--bzrt-line); border-radius: var(--bzrt-radius-lg); padding: 16px; box-shadow: var(--bzrt-shadow); }
    .product-card .pc-image { aspect-ratio: 1 / 1; border-radius: var(--bzrt-radius); overflow: hidden; background: var(--bzrt-bg-soft); margin-bottom: 14px; }
    .product-card .pc-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .product-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 4px; }
    .product-card .pc-meta { font-size: 13px; color: var(--bzrt-ink-mute); display: flex; align-items: center; gap: 6px; }
    .product-card .pc-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--bzrt-ink-mute); display: inline-block; }
    .product-card .pc-source { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bzrt-line); font-size: 12px; color: var(--bzrt-ink-mute); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
    .pc-back { background: transparent; border: 0; padding: 0; color: var(--bzrt-primary); font-size: 13px; cursor: pointer; margin-top: 10px; font-weight: 500; }

    .presets h3 { font-size: 16px; font-weight: 700; margin: 4px 0 14px; }
    .presets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
    .preset { aspect-ratio: 1 / 1; border-radius: var(--bzrt-radius); position: relative; cursor: pointer; overflow: hidden; border: 2px solid var(--bzrt-line); padding: 0; background: none; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
    .preset:hover { transform: translateY(-2px); border-color: var(--bzrt-ink); box-shadow: var(--bzrt-shadow); }
    .preset:focus-visible { outline: none; border-color: var(--bzrt-primary); box-shadow: 0 0 0 4px rgba(109,40,217,.20); }
    .preset.selected { border-color: var(--bzrt-primary); box-shadow: 0 0 0 4px rgba(109,40,217,.18); }
    .preset.selected:hover { transform: none; }
    .preset img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .preset .preset-label { position: absolute; bottom: 6px; left: 6px; right: 6px; font-size: 12px; font-weight: 600; color: #fff; padding: 4px 8px; background: rgba(10,10,10,.55); border-radius: 6px; backdrop-filter: blur(4px); }
    .presets .actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
    .btn-primary { background: var(--bzrt-ink); color: #fff; border: 0; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: background .12s ease, transform .12s ease; }
    .btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--bzrt-primary) 0%, var(--bzrt-accent) 100%); transform: translateY(-1px); }
    .btn-primary:disabled { opacity: .5; cursor: not-allowed; }
    .btn-ghost { background: transparent; color: var(--bzrt-ink); border: 1px solid var(--bzrt-line); padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; }
    .btn-ghost:hover { border-color: var(--bzrt-ink); }

    /* -- Generated: header + 4-up portrait grid + CTA section --------- */
    .result-stage {
      max-width: min(1100px, 92vw);
      margin: clamp(28px, 5vw, 48px) auto 0;
      padding: 0 clamp(20px, 4.5vw, 48px) 24px;
      text-align: center;
      box-sizing: border-box;
    }

    /* Avoid scroll anchoring fighting dynamic layout while the results CTA is measured. */
    body[data-phase="generated"] .result-stage {
      overflow-anchor: none;
    }

    .result-stage-main {
      width: 100%;
    }

    /* Header above the grid */
    .result-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 6px; color: var(--bzrt-ink); }
    .result-subtitle { font-size: 14px; color: var(--bzrt-ink-mute); margin: 0 0 28px; }

    /* 4-up portrait grid */
    .result-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);   /* desktop: single row of 4 */
      gap: 14px;
      max-width: 100%;
      margin: 0 auto;
    }
    .result-grid .shot {
      aspect-ratio: 3 / 4;                     /* taller than wide; cropped to fit */
      border-radius: var(--bzrt-radius);
      overflow: hidden;
      background: var(--bzrt-bg-soft);
      box-shadow: var(--bzrt-shadow);
    }
    .result-grid .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
    .result-grid .shot:hover img { transform: scale(1.03); }
    @media (max-width: 900px) {
      .result-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* CTA panel — value prop scrolls; Sign up dock sticks/floats; testimonial follows the CTA. */
    .result-cta-panel {
      margin: 32px auto 0;
      max-width: 720px;
      width: 100%;
      z-index: 20;
      box-sizing: border-box;
    }

    /* JS sets --result-dock-lift on document.body (transform only; do not tie it to scroll padding — layout feedback caused scroll jank). */
    .result-cta-dock-bar {
      transform: translateY(calc(-1 * var(--result-dock-lift, 0px)));
    }

    .result-cta-dock-fade {
      display: none;
    }

    /* CTA chrome — capped width so the pill doesn’t stretch edge-to-edge on large viewports */
    .result-cta-dock-chrome {
      position: relative;
      z-index: 0;
      width: 100%;
      max-width: min(380px, calc(100vw - 32px));
      margin: 0 auto;
      padding: 10px 18px 12px;
      display: flex;
      justify-content: center;
      align-items: stretch;
      box-sizing: border-box;
    }

    .result-cta-dock-chrome::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 18px;
      -webkit-backdrop-filter: blur(48px) saturate(180%);
      backdrop-filter: blur(48px) saturate(180%);
      box-shadow: 0 8px 40px rgba(10, 10, 10, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.22);
      opacity: 0;
      transition: opacity 0.45s cubic-bezier(0.2, 0.85, 0.2, 1);
      pointer-events: none;
      z-index: 0;
      ;
        background: linear-gradient(
          180deg,
          rgba(250, 250, 247, 0) 0%,
          rgba(255, 255, 255, 0.35) 55%,
          rgba(255, 255, 255, 0.55) 100%
        );
    }

    .result-cta-dock--over-content .result-cta-dock-chrome::before {
      opacity: 1;
    }

    .result-cta-dock-chrome .result-actions {
      position: relative;
      z-index: 1;
      width: 100%;
    }

    .result-cta-dock.result-cta-dock--over-content .btn-signup {
      box-shadow:
        0 6px 22px rgba(109, 40, 217, 0.26),
        0 1px 4px rgba(10, 10, 10, 0.08);
    }

    @media (min-width: 601px) {
      .result-cta-panel {
        position: static;
        background: transparent;
        border: 0;
        padding: 0;
        box-shadow: none;
      }
    }

    /* Sticky signup only when the viewport is tall enough; otherwise it sits off-screen below the fold. */
    @media (min-width: 601px) and (min-height: 561px) {
      .result-cta-dock {
        position: sticky;
        bottom: 18px;
        margin-top: 24px;
        z-index: 20;
        /* No glass “card” behind the lone CTA — that read as a white slab around the button */
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 0;
        border-radius: 0;
        padding: 8px 0 0;
        box-shadow: none;
      }

      .result-cta-dock .btn-signup {
        box-shadow:
          0 10px 28px rgba(109, 40, 217, 0.3),
          0 2px 10px rgba(10, 10, 10, 0.1);
      }

      .result-cta-dock-bar {
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: 0;
        padding: 0;
        box-shadow: none;
      }

    }
    .result-cta-h { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 14px; color: var(--bzrt-ink); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
    .result-cta-thumbs { display: inline-flex; gap: 4px; vertical-align: middle; align-items: center; }
    .result-cta-thumbs .result-cta-thumb-img {
      width: 36px; height: 36px; border-radius: 8px;
      object-fit: cover;
      box-shadow: var(--bzrt-shadow);
      display: block;
    }
    .result-cta-sub { font-size: 15px; color: var(--bzrt-ink-mute); margin: 0 0 22px; line-height: 1.5; }
    .result-checks { display: inline-flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 0 0 20px; }
    .result-checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--bzrt-ink); list-style: none;     text-align: left;}
    .result-checks svg { width: 16px; height: 16px; color: var(--bzrt-primary); flex-shrink: 0; }

    /* Social proof — direct child of panel, below Sign up */
    .result-quote {
      padding: 0;
      border: 0;
      text-align: left;
    }

    .result-cta-panel > .result-quote {
      margin: 24px auto 12px;
      max-width: 34em;
    }
    .result-quote-mark {
      display: block;
      font-family: Georgia, 'Times New Roman', serif;
      font-size: clamp(2.5rem, 8vw, 3.25rem);
      line-height: 0.85;
      color: var(--bzrt-primary);
      opacity: 0.85;
      margin-bottom: 4px;
    }
    .result-quote-text {
      margin: 0 0 14px;
      font-size: clamp(17px, 4.2vw, 20px);
      font-weight: 700;
      font-style: italic;
      letter-spacing: -0.02em;
      line-height: 1.35;
      color: var(--bzrt-ink);
    }
    .result-quote-footer {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    .result-quote-by {
      font-size: 14px;
      font-weight: 500;
      font-style: normal;
      color: var(--bzrt-ink-soft);
    }
    .result-quote-badge {
      display: inline-block;
      padding: 7px 14px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.01em;
      color: var(--bzrt-ink);
      border: 1px solid var(--bzrt-ink);
      background: var(--bzrt-bg);
    }

    .result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
    .btn-signup {
      background: linear-gradient(135deg, var(--bzrt-primary) 0%, var(--bzrt-accent) 100%);
      color: #fff;
      border: 0;
      padding: 14px 26px;
      border-radius: 999px;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 2px 12px rgba(109, 40, 217, 0.28);
      transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
    }
    .btn-signup:hover {
      background: linear-gradient(135deg, var(--bzrt-primary-2) 0%, var(--bzrt-accent) 100%);
      box-shadow: 0 4px 20px rgba(76, 29, 149, 0.35);
      transform: translateY(-1px);
    }
    .btn-signup:focus-visible {
      outline: none;
      box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.28), 0 2px 12px rgba(109, 40, 217, 0.28);
    }

    .shot { aspect-ratio: 1 / 1; border-radius: var(--bzrt-radius); overflow: hidden; background: var(--bzrt-bg-soft); position: relative; }
    .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
    .shot:hover img { transform: scale(1.04); }
    .shot.skeleton { background: linear-gradient(90deg, #F0F0EC 0%, #FAFAF7 50%, #F0F0EC 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
    @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
    .shot .download { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .15s ease; padding: 6px 10px; background: rgba(255,255,255,.96); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--bzrt-ink); border: 0; cursor: pointer; }
    .shot:hover .download { opacity: 1; }

    /* -- Below-the-fold sections (hidden during loading/results) ------ */
    .below { transition: opacity .3s ease, transform .3s ease, max-height .3s ease; }
    body[data-phase="loading"] .below,
    body[data-phase="generated"] .below { opacity: 0; max-height: 0; overflow: hidden; transform: translateY(-6px); pointer-events: none; }

    /* Phase machine: idle | loading | generated */
    body[data-phase="idle"]      .show-loading,
    body[data-phase="idle"]      .show-generated,
    body[data-phase="loading"]   .show-idle,
    body[data-phase="loading"]   .show-generated,
    body[data-phase="generated"] .show-idle,
    body[data-phase="generated"] .show-loading { display: none; }
    body[data-phase="loading"] .hero { display: none; }
    body[data-phase="generated"] .hero { display: none; }
    body[data-phase="loading"] footer,
    body[data-phase="generated"] footer { display: none; }

    /* Share collage dialog */
    .share-collage-dialog {
      border: none;
      border-radius: var(--bzrt-radius-lg);
      padding: 0;
      max-width: calc(100vw - 24px);
      width: min(400px, 100%);
      background: var(--bzrt-bg);
      color: var(--bzrt-ink);
      box-shadow: var(--bzrt-shadow-hi);
      margin: auto;
    }
    .share-collage-dialog::backdrop {
      background: rgba(10, 10, 10, 0.48);
      -webkit-backdrop-filter: blur(4px);
      backdrop-filter: blur(4px);
    }
    .share-collage-panel {
      padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
      position: relative;
    }
    .share-collage-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 999px;
      background: var(--bzrt-bg-soft);
      color: var(--bzrt-ink);
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      display: grid;
      place-items: center;
      transition: background .12s ease;
    }
    .share-collage-close:hover { background: var(--bzrt-line); }
    .share-collage-close:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.25);
    }
    .share-collage-title {
      font-family: var(--bzrt-font-display);
      font-size: clamp(22px, 5vw, 28px);
      font-weight: 800;
      letter-spacing: -0.02em;
      margin: 0 42px 6px 0;
      padding: 0;
      line-height: 1.15;
    }
    .share-collage-sub {
      margin: 0 0 16px;
      font-size: 14px;
      color: var(--bzrt-ink-mute);
      line-height: 1.45;
    }
    .share-collage-preview-wrap {
      border-radius: var(--bzrt-radius-lg);
      overflow: hidden;
      border: 1px solid var(--bzrt-line);
      background: #fff;
      box-shadow: var(--bzrt-shadow);
    }
    .share-collage-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 10px;
      box-sizing: border-box;
    }
    .share-collage-cell {
      aspect-ratio: 3 / 4;
      border-radius: var(--bzrt-radius);
      overflow: hidden;
      background: var(--bzrt-bg-soft);
    }
    .share-collage-cell img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transform: scale(1.06);
      transform-origin: center center;
    }
    .share-collage-actions {
      margin-top: 18px;
    }
    .share-collage-btn-primary {
      width: 100%;
      justify-content: center;
      padding: 14px 20px;
      border-radius: 999px;
      border: 0;
      background: var(--bzrt-ink);
      color: #fff;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: background .12s ease, transform .12s ease;
    }
    .share-collage-btn-primary:hover:not(:disabled) {
      background: var(--bzrt-primary-2);
      transform: translateY(-1px);
    }
    .share-collage-btn-primary:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      transform: none;
    }

    /* Toast */
    .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bzrt-ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .25s ease, transform .25s ease; z-index: 100; max-width: 90vw; box-shadow: var(--bzrt-shadow-hi); pointer-events: none; }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
    .toast.error { background: var(--bzrt-danger); }
    .toast.success { background: var(--bzrt-success); }

    /* Below-the-fold sections */
    .works-with { max-width: 1280px; margin: clamp(48px, 8vw, 96px) auto 0; padding: 0 16px; text-align: center; }
    .works-with-tagline {
      font-family: var(--bzrt-font-display);
      font-size: clamp(24px, 3.6vw, 40px);
      font-weight: 800;
      letter-spacing: -0.025em;
      line-height: 1.1;
      margin: 0 auto 28px;
      max-width: 22em;
      color: var(--bzrt-ink);
    }
    /**
     * Showcase grid: #productRail inside .works-with — 16px section inset, 12px gutters.
     * 2×3 grid (2 columns × 3 rows) for six example cards; 3:4 hero; before preview top-left (4:5 thumbs).
     */
    #productRail.uc-show-grid {
      overflow: visible;
      margin: 0;
      padding: 0 0 14px;
      box-sizing: border-box;
    }
    #productRail.uc-show-grid .uc-show-grid-inner {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: repeat(3, minmax(0, auto));
      column-gap: 12px;
      row-gap: 12px;
      width: 100%;
      max-width: min(900px, 100%);
      margin: 0 auto;
      padding: 8px 0;
      box-sizing: border-box;
    }
    @media (max-width: 520px) {
      #productRail.uc-show-grid .uc-show-grid-inner {
        max-width: 100%;
      }
    }
    #productRail.uc-show-grid .uc-show-slide {
      width: 100%;
      min-width: 0;
      border-radius: clamp(14px, 2.2vw, 22px);
      overflow: visible;
      cursor: pointer;
      color: inherit;
      background: #121214;
      box-shadow: var(--bzrt-shadow);
      transition:
        transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    #productRail.uc-show-grid .uc-show-slide:focus {
      outline: none;
    }
    #productRail.uc-show-grid .uc-show-slide:focus-visible {
      outline: 2px solid var(--bzrt-primary);
      outline-offset: 4px;
    }
    #productRail.uc-show-grid .uc-show-slide:hover,
    #productRail.uc-show-grid .uc-show-slide:focus-visible {
      transform: translateY(-5px);
      box-shadow:
        var(--bzrt-shadow-hi),
        0 0 0 2px rgba(139, 92, 246, 0.28),
        0 12px 40px rgba(88, 28, 135, 0.15);
    }
    #productRail.uc-show-grid .uc-show-frame {
      position: relative;
      aspect-ratio: 3 / 4;
      border-radius: inherit;
      overflow: visible;
    }
    /* Clips only the listing image (before) so hover zoom + radius stay clean; outer frame stays overflow:visible for preview shadows. */
    #productRail.uc-show-grid .uc-show-frame-crop {
      position: absolute;
      inset: 0;
      z-index: 0;
      border-radius: inherit;
      overflow: hidden;
    }
    #productRail.uc-show-grid .uc-show-frame::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      border-radius: inherit;
      opacity: 0;
      transition: opacity 0.24s ease;
      background:
        radial-gradient(ellipse 110% 80% at 50% 100%, rgba(139, 92, 246, 0.14), transparent 52%),
        linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.12) 100%);
    }
    #productRail.uc-show-grid .uc-show-slide:hover .uc-show-frame::after,
    #productRail.uc-show-grid .uc-show-slide:focus-visible .uc-show-frame::after {
      opacity: 1;
    }
    #productRail.uc-show-grid .uc-show-hero {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      -webkit-user-drag: none;
      user-select: none;
      transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
      transform-origin: center center;
    }
    #productRail.uc-show-grid .uc-show-slide:hover .uc-show-hero,
    #productRail.uc-show-grid .uc-show-slide:focus-visible .uc-show-hero {
      transform: scale(1.04);
    }
    #productRail.uc-show-grid .uc-show-after {
      position: absolute;
      top: clamp(6px, 1.6vw, 12px);
      left: clamp(6px, 1.6vw, 12px);
      z-index: 2;
      box-sizing: border-box;
      width: clamp(72px, 32%, 120px);
      padding: clamp(2px, 0.45vw, 3px);
      background: #fff;
      border-radius: clamp(8px, 2vw, 14px);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 3px 10px rgba(0, 0, 0, 0.14),
        0 8px 24px rgba(0, 0, 0, 0.22),
        0 16px 40px rgba(0, 0, 0, 0.14);
      transition:
        transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    #productRail.uc-show-grid .uc-show-slide:hover .uc-show-after,
    #productRail.uc-show-grid .uc-show-slide:focus-visible .uc-show-after {
      transform: translateY(-2px) scale(1.03);
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 5px 14px rgba(0, 0, 0, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.24),
        0 20px 48px rgba(88, 28, 135, 0.18),
        0 0 0 2px rgba(139, 92, 246, 0.28);
    }
    #productRail.uc-show-grid .uc-show-after-img {
      display: block;
      width: 100%;
      height: auto;                /* explicit so aspect-ratio always wins over the HTML width/height attrs */
      aspect-ratio: 4 / 5;         /* matches before assets (160×200); same for every card, every row */
      object-fit: cover;
      border-radius: clamp(6px, 1.4vw, 10px);
      -webkit-user-drag: none;
    }
    @media (prefers-reduced-motion: reduce) {
      #productRail.uc-show-grid .uc-show-slide:hover,
      #productRail.uc-show-grid .uc-show-slide:focus-visible {
        transform: none;
      }
      #productRail.uc-show-grid .uc-show-slide:hover .uc-show-hero,
      #productRail.uc-show-grid .uc-show-slide:focus-visible .uc-show-hero {
        transform: none;
      }
      #productRail.uc-show-grid .uc-show-slide:hover .uc-show-after,
      #productRail.uc-show-grid .uc-show-slide:focus-visible .uc-show-after {
        transform: none;
      }
      #productRail.uc-show-grid .uc-show-frame::after {
        transition: opacity 0.15s ease;
      }
    }
    /* Fashion photoshoot banner — same 16px horizontal inset as .works-with + #productRail */
    .photoshoot-banner-wrap {
      max-width: 1280px;
      margin: clamp(56px, 9vw, 112px) auto 0;
      padding: 0 16px;
      box-sizing: border-box;
    }
    .photoshoot-banner {
      position: relative;
      width: 100%;
      margin: 0;
      min-height: 480px;
      padding: clamp(28px, 5vw, 52px);
      display: grid;
      grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
      gap: clamp(24px, 4vw, 52px);
      align-items: center;
      overflow: hidden;
      border: 1px solid var(--bzrt-line);
      border-radius: var(--bzrt-radius-lg);
      background:
        radial-gradient(circle at 82% 22%, rgba(236, 72, 153, 0.12), transparent 34%),
        radial-gradient(circle at 24% 20%, rgba(109, 40, 217, 0.10), transparent 36%),
        linear-gradient(135deg, #fff 0%, var(--bzrt-primary-tint) 42%, #FCE7F3 100%);
      box-shadow: var(--bzrt-shadow-hi);
    }
    .photoshoot-banner::before {
      content: '';
      position: absolute;
      inset: auto -6% -48% 25%;
      height: 72%;
      border-radius: 999px 999px 0 0;
      background: linear-gradient(120deg, rgba(109, 40, 217, 0.08), rgba(236, 72, 153, 0.10));
      transform: rotate(-8deg);
      pointer-events: none;
    }
    .bzrt-ps-copy,
    .bzrt-ps-visual {
      position: relative;
      z-index: 1;
    }
    .photoshoot-banner h2 {
      max-width: 580px;
      margin: 0;
      font-size: clamp(40px, 6.2vw, 72px);
      line-height: 0.96;
      letter-spacing: -0.055em;
      font-weight: 800;
      text-align: left;
    }
    .bzrt-ps-gradient-word {
      background: linear-gradient(135deg, var(--bzrt-primary) 0%, var(--bzrt-accent) 70%, var(--bzrt-accent-2) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .bzrt-ps-subtitle {
      max-width: 520px;
      margin: 22px 0 32px;
      color: var(--bzrt-ink-soft);
      font-family: var(--bzrt-font-body);
      font-size: clamp(16px, 1.75vw, 19px);
      line-height: 1.55;
      letter-spacing: -0.015em;
      text-align: left;
    }
    .bzrt-ps-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: clamp(12px, 2vw, 18px);
      min-height: clamp(58px, 10vw, 76px);
      padding: clamp(16px, 2.2vw, 22px) clamp(28px, 4vw, 48px);
      border: 0;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--bzrt-primary) 0%, var(--bzrt-accent) 100%);
      color: #fff;
      font-family: var(--bzrt-font-body);
      font-size: clamp(20px, 2.8vw, 28px);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.15;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 4px 18px rgba(109, 40, 217, 0.35),
        0 14px 40px rgba(76, 29, 149, 0.22);
      transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    }
    .bzrt-ps-cta:hover {
      background: linear-gradient(135deg, var(--bzrt-primary-2) 0%, var(--bzrt-accent) 100%);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 6px 24px rgba(76, 29, 149, 0.4),
        0 18px 48px rgba(76, 29, 149, 0.28);
      transform: translateY(-2px);
    }
    .bzrt-ps-cta:focus-visible {
      outline: none;
      box-shadow:
        0 0 0 4px rgba(109, 40, 217, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 4px 18px rgba(109, 40, 217, 0.35),
        0 14px 40px rgba(76, 29, 149, 0.22);
    }
    .bzrt-ps-cta span[aria-hidden] {
      font-size: clamp(26px, 3.6vw, 36px);
      line-height: 0;
      font-weight: 800;
      transform: translateY(-1px);
    }
    .bzrt-ps-visual {
      display: grid;
      grid-template-columns: 152px 1fr 1fr;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }
    .bzrt-ps-before-wrap {
      position: relative;
      align-self: center;
      margin-top: 48px;
    }
    .bzrt-ps-floating-label {
      position: absolute;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 36px;
      padding: 0 18px;
      border-radius: 999px;
      font-family: var(--bzrt-font-body);
      font-size: 14px;
      font-weight: 600;
      z-index: 4;
      white-space: nowrap;
      left: 50%;
      top: -48px;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.92);
      box-shadow: var(--bzrt-shadow);
      color: var(--bzrt-ink);
    }
    .bzrt-ps-models-row {
      position: relative;
      display: grid;
      grid-template-columns: 1fr;        /* single "To this" card showing the looping GIF */
      gap: 14px;
      min-width: 0;
      grid-column: 2 / -1;
      align-self: center;
    }
    .bzrt-ps-before-card,
    .bzrt-ps-model-card {
      position: relative;
      overflow: hidden;
      border-radius: var(--bzrt-radius);
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.9);
      box-shadow: var(--bzrt-shadow-hi);
    }
    .bzrt-ps-before-card {
      aspect-ratio: 0.82;
      padding: 0;
    }
    .bzrt-ps-model-card {
      aspect-ratio: 0.72;
      min-height: 320px;
    }
    .bzrt-ps-before-card img,
    .bzrt-ps-model-card img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .bzrt-ps-before-card img {
      object-fit: contain;
      background: #fff;
    }
    .bzrt-ps-arrow {
      position: absolute;
      right: -30px;
      bottom: -26px;
      width: 68px;
      height: 46px;
      transform: rotate(-10deg);
      z-index: 5;
    }
    .bzrt-ps-arrow path {
      fill: none;
      stroke: url(#bzrtPsArrowGrad);
      stroke-width: 7;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .bzrt-ps-badges {
      grid-column: 1 / -1;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 10px;
      flex-wrap: wrap;
    }
    .bzrt-ps-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 34px;
      padding: 8px 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.75);
      border: 1px solid var(--bzrt-line);
      color: var(--bzrt-ink);
      font-family: var(--bzrt-font-body);
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
    }
    .bzrt-ps-badge .bzrt-ps-check {
      display: inline-grid;
      place-items: center;
      width: 20px;
      height: 20px;
      border-radius: 999px;
      color: var(--bzrt-primary);
      background: var(--bzrt-primary-tint);
      flex-shrink: 0;
    }
    .bzrt-ps-badge .bzrt-ps-check svg {
      width: 11px;
      height: 11px;
    }
    @media (max-width: 980px) {
      .photoshoot-banner {
        grid-template-columns: 1fr;
        min-height: auto;
      }
      .bzrt-ps-visual {
        grid-template-columns: 132px 1fr 1fr;
      }
      .bzrt-ps-model-card {
        min-height: 280px;
      }
      .bzrt-ps-badges {
        justify-content: flex-start;
      }
    }
    @media (max-width: 680px) {
      .photoshoot-banner {
        padding: 24px 18px;
      }
      .photoshoot-banner h2 {
        font-size: clamp(36px, 12vw, 52px);
      }
      .bzrt-ps-subtitle {
        font-size: 16px;
      }
      .bzrt-ps-cta {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        min-height: 60px;
        font-size: clamp(19px, 5.2vw, 24px);
        padding: 16px 24px;
      }
      .bzrt-ps-cta span[aria-hidden] {
        font-size: clamp(24px, 6.5vw, 30px);
      }
      .bzrt-ps-visual {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }
      .bzrt-ps-before-wrap {
        grid-column: 1 / -1;
        width: 46%;
        min-width: 140px;
        justify-self: center;
        margin: 36px 0 6px;
      }
      .bzrt-ps-models-row {
        grid-column: 1 / -1;
      }
      .bzrt-ps-model-card {
        min-height: 240px;
      }
      .bzrt-ps-badges {
        justify-content: center;
      }
    }
    footer { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 32px); text-align: center; color: var(--bzrt-ink-mute); font-size: 13px; border-top: 1px solid var(--bzrt-line); }

    /* ===================================================================
       Mobile fine-tuning — keeps layout tight on phones without forcing
       desktop styles to bend. Splits at common phone widths.
       =================================================================== */
    @media (max-width: 600px) {
      /* Nav: tighter side padding so the logo + CTA never collide. */
      .nav {
        gap: 12px;
        padding-top: calc(clamp(14px, 4vw, 20px) + env(safe-area-inset-top, 0px));
        padding-bottom: clamp(12px, 3vw, 16px);
      }
      .nav-cta { padding: 10px 16px; font-size: 13px; }
      .logo svg { max-width: clamp(96px, 28vw, 110px); }

      /* Hero: smaller top margin and tighter type so 1 viewport shows form + chips. */
      .hero { margin-top: clamp(20px, 5vw, 36px); padding: 0 clamp(16px, 4vw, 28px); }
      .hero h1 {
        /* Sized so "Product shots" fits on one line at >=320px viewport (avoids 3-line wrap). */
        font-size: clamp(28px, 8.6vw, 44px);
        line-height: 1.08;
        letter-spacing: -0.03em;
        margin-bottom: 14px;
      }
      .hero h1 .h1-line { white-space: nowrap; }   /* Each headline line + "for" + typed word never wraps mid-line. */
      .hero h1 .typed { padding: 0 0.02em; margin: 0; }
      .hero p.lede { font-size: 16px; margin-bottom: 24px; }

      /* URL form: stack input + button so input has full width to read what was pasted. */
      .url-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
        border-radius: 18px;
      }
      .url-form svg.link-icon { display: none; }   /* Saves room; the placeholder + label still convey the affordance. */
      .url-form input[type="url"] {
        font-size: 16px;                            /* iOS: avoids zoom-on-focus when input < 16px. */
        padding: 12px 14px;
        border-radius: 12px;
        background: var(--bzrt-bg-soft);
      }
      .url-form button[type="submit"] {
        width: 100%;
        min-width: 0;
        padding: 14px 18px;
        border-radius: 12px;
      }

      .samples { gap: 6px; }
      .samples .label { width: 100%; text-align: center; padding: 0; }
      .chip { padding: 8px 12px; font-size: 13px; }

      /* Loading: smaller phrase column and tighter image so progress dots stay above the fold. */
      .loading-stage {
        min-height: calc(100vh - 80px);
        min-height: calc(100dvh - 80px);
        gap: 18px;
        padding: clamp(20px, 5vw, 32px) clamp(16px, 4vw, 24px);
      }
      .loading-phrase { font-size: clamp(22px, 6vw, 30px); }

      /* Result stage: 2 columns is fine, but tighten gutters. CTA block reduces padding + drops sticky for clean scroll. */
      .result-stage { padding: 0 clamp(16px, 4vw, 24px) 16px; }
      .result-title { margin-bottom: 4px; }
      .result-subtitle { margin-bottom: 18px; }
      .result-grid { gap: 10px; }
      .result-cta-h { font-size: clamp(22px, 6.4vw, 28px); gap: 8px; margin-bottom: 10px; }
      .result-cta-thumbs .result-cta-thumb-img { width: 28px; height: 28px; border-radius: 6px; }
      .result-cta-sub { font-size: 14px; margin-bottom: 18px; }
      .result-checks { margin-bottom: 18px; }

      /* Showcase grid: slightly tighter bottom padding on small viewports (inset + 12px gutters match desktop base). */
      #productRail.uc-show-grid { padding: 0 0 8px; }
      /* Shrink the floating "before" thumbnail so it reads as a small preview, not a competing image. */
      #productRail.uc-show-grid .uc-show-after {
        width: clamp(48px, 28%, 84px);
        top: 8px;
        left: 8px;
        padding: 2px;
        border-radius: 8px;
      }
      #productRail.uc-show-grid .uc-show-after-img { border-radius: 5px; }

      /* Photoshoot banner — mobile redesign:
         - kill negative side bleed so it never pushes the page wider than the viewport
         - lay before/after side-by-side at 1:1 ratio (a clear comparison)
         - move "From this/To this" labels INSIDE each card as corner pills (no more floating overlap)
         - hide the decorative arrow (it was anchored to the desktop diagonal layout) */
      .photoshoot-banner { margin: 0; padding: 22px 16px; min-height: 0; gap: 18px; }
      .photoshoot-banner h2 { font-size: clamp(32px, 10vw, 44px); line-height: 1; }
      .bzrt-ps-subtitle { margin: 14px 0 18px; font-size: 15px; }

      .bzrt-ps-visual {
        grid-template-columns: 1fr 1fr;     /* before | after side-by-side */
        gap: 10px;
      }
      .bzrt-ps-before-wrap {
        grid-column: auto;                  /* override the 680px rule that spans both cols */
        width: 100%;
        min-width: 0;
        justify-self: stretch;              /* override the 680px rule's justify-self: center */
        margin: 0;
      }
      .bzrt-ps-models-row {
        grid-column: auto;
        grid-template-columns: 1fr;
      }
      .bzrt-ps-before-card { aspect-ratio: 0.78; min-height: 0; }
      .bzrt-ps-model-card { aspect-ratio: 0.78; min-height: 0; }
      .bzrt-ps-arrow { display: none; }     /* arrow only makes sense in the desktop diagonal layout */

      .bzrt-ps-floating-label {
        position: absolute;
        top: 8px;
        left: 8px;
        transform: none;                    /* drop the centered translate from the desktop position */
        height: 26px;
        padding: 0 12px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--bzrt-ink);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 2px 8px rgba(10, 10, 10, 0.12);
      }

      .bzrt-ps-badges { gap: 8px; margin-top: 4px; }
      .bzrt-ps-badge { font-size: 12px; padding: 6px 12px; min-height: 30px; }
      .bzrt-ps-badge .bzrt-ps-check { width: 18px; height: 18px; }

      footer { padding: 24px 16px; font-size: 12px; }

      /* Toast: avoid covering the home-indicator on iOS while staying centered. */
      .toast { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 12px 18px; font-size: 13px; }
    }

    @media (max-width: 380px) {
      /* Sub-iPhone-SE widths — go to a single-column result grid so the shots stay legible. */
      .hero h1 { font-size: clamp(32px, 11vw, 44px); }
      .result-grid { grid-template-columns: 1fr; }
      .nav-cta { padding: 9px 14px; font-size: 12px; }
      .nav-share { padding: 8px 12px; font-size: 12px; }
    }

    /* Mobile landscape (short height): hero is vertically squeezed, so the lede
       should sit on one line and hug the URL form. Targets phone landscape
       without affecting tablets (which keep proper height even rotated). */
    @media (max-height: 500px) and (orientation: landscape) {
      .hero p.lede {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 12px;
        letter-spacing: -0.005em;
        max-width: none;
        white-space: nowrap;
      }
    }

    /* Pointer hover effects only on devices that actually have hover — avoids the "stuck hover" tap issue on touch. */
    @media (hover: none) {
      .url-form button[type="submit"]:hover:not(:disabled),
      .nav-cta:hover,
      .nav-share:hover,
      .btn-primary:hover:not(:disabled),
      .btn-signup:hover,
      .bzrt-ps-cta:hover,
      .preset:hover,
      .result-grid .shot:hover img,
      .chip:hover { transform: none; }
      .shot .download { opacity: 1; }    /* Surface the download affordance permanently on touch. */
    }

    /* Results: pin Sign up to the viewport bottom on narrow widths OR short heights
       (wide + very short windows used sticky before, so the CTA sat below the fold). */
    @media (max-width: 600px), (max-height: 560px) {
      body[data-phase="generated"] .result-stage {
        padding-bottom: calc(152px + env(safe-area-inset-bottom, 0px));
      }

      /* In-flow space under the checklist so the fixed CTA (and lift) clears copy instead of sitting on bullets. */
      body[data-phase="generated"] .result-cta-body {
        margin-bottom: clamp(104px, 26vw, 156px);
      }

      .result-cta-panel {
        margin: 22px 0 0;
        max-width: none;
        background: transparent;
        border: 0;
        padding: 0;
        box-shadow: none;
      }

      .result-cta-body {
        padding: 0 2px 12px;
      }

      .result-checks {
        margin-left: auto;
        margin-right: auto;
      }

      .result-quote {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        padding-bottom: 8px;
      }
      .result-quote-text {
        font-size: clamp(16px, 4.5vw, 18px);
      }

      .result-cta-dock {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
        background: transparent;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
      }

      .result-cta-dock-fade {
        display: block;
        height: 64px;
        flex-shrink: 0;
        margin-bottom: 0;
        pointer-events: none
      }

      .result-cta-dock-bar {
        pointer-events: auto;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: 0;
        padding: 0 clamp(10px, 3vw, 20px);
        box-shadow: none;
      }

      .result-cta-dock-chrome {
        max-width: min(380px, calc(100vw - 24px));
        padding: 12px 12px 10px;
      }

      .result-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-width: none;
        width: 100%;
        margin: 0 auto;
      }

      .btn-signup {
        width: 100%;
        border-radius: 14px;
        min-height: 50px;
        justify-content: center;
        box-shadow:
          0 10px 32px rgba(109, 40, 217, 0.32),
          0 2px 10px rgba(10, 10, 10, 0.12);
      }
    }

    /* Very short viewports: keep the fixed CTA on-screen without eating the whole height */
    @media (max-height: 440px) {
      body[data-phase="generated"] .result-cta-dock-fade {
        height: 36px;
      }
      body[data-phase="generated"] .result-cta-dock-chrome {
        padding: 8px 10px 6px;
      }
      body[data-phase="generated"] .btn-signup {
        min-height: 44px;
        font-size: 14px;
        padding: 12px 20px;
      }
      body[data-phase="generated"] .result-stage {
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
      }
    }