      /* Hide AI Designer link on mobile */
      @media (max-width: 768px) {
        .desktop-only {
          display: none !important;
        }
        /* Hero title: let “Free virtual staging with one click” wrap naturally (no forced break before “one click”) */
        .hero-content h1 br {
          display: none;
        }
        /* Mobile: hide the "Upload. Stage. Imagine." hero catchphrase */
        .hero-content .catchphrase {
          display: none !important;
        }
      }
      
      /* Make upload button 20% larger (growing down and right only) - Desktop only */
      @media (min-width: 769px) {
        #hero-upload {
          padding: 14.4px 28.8px !important;
          font-size: 24px !important;
          transform-origin: top left;
        }
        
        #hero-upload strong {
          font-size: 24px !important;
        }
      }
      /* “and counting…” — same as original inline (navy, 12px italic) */
      .stats-counting-text {
        text-align: center;
        font-style: italic;
        color: #1e3a8a;
        font-size: 12px;
      }
      .stats-counting-text--under-pills {
        margin-top: -1px;
      }
      /* Hero stat pills — critical paint + hide until counts load (full rules in carousel.css) */
      .hero-stats {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        margin-top: 1px;
      }
      .hero-stats.is-ready {
        opacity: 1;
        visibility: visible;
      }
      .stats-pills {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 0;
        flex-wrap: nowrap;
        width: 100%;
      }
      .stat-pill {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 6px 14px;
        border-radius: 999px;
        background: rgba(30, 58, 138, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.28);
        box-shadow: 0 2px 10px rgba(30, 58, 138, 0.25);
      }
      .stat-pill-number {
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        line-height: 1;
        margin-right: 4px;
        font-variant-numeric: tabular-nums;
        display: inline-block;
        min-width: 1ch;
        text-align: left;
        /* Optical centering: bold lining digits are all cap-height with no
           descenders, so they read slightly high next to the x-height label.
           Nudge them down a hair to visually center. Tunable. */
        transform: translateY(0.05em);
        transition: min-width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
      }
      .stat-pill-text {
        font-size: 0.875rem;
        color: #fff;
        font-weight: 500;
        line-height: 1.2;
      }
      /* Mobile only: shrink the Rooms Staged / Users Served pills ~20% overall
         (type, padding, gap). Each pill keeps its full content width, and the row
         wraps to two lines when the numbers are wide, so text is never clipped. */
      @media (max-width: 768px) {
        .stats-pills {
          gap: 9.6px;
          flex-wrap: wrap; /* stack the two pills if the numbers get very wide */
        }
        /* star-border.js wraps each pill's content into .inner-content — that's the
           visible pill body, so trim its padding ~20% too, not just the text. */
        .stats-pills .inner-content {
          padding: 4.8px 9.6px;
        }
        .stat-pill { /* fallback styling if star-border.js hasn't run */
          padding: 4.8px 9.6px;
          flex-shrink: 0;
        }
        .stat-pill-number {
          font-size: 0.8rem;
          margin-right: 3.2px;
        }
        .stat-pill-text {
          font-size: 0.7rem;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .hero-stats {
          transition: none;
        }
        .stat-pill-number {
          transition: none;
        }
      }
      /* Stack subtext under the CTA; wrap shrink-wraps to the button so only the line is centered to the button */
      .hero-cta-button-wrap {
        display: inline-flex;
        flex-direction: column;
        align-items: stretch;
      }
      /* Same color as “and counting”; slightly lighter weight for the hero line */
      .hero-free-gens-today {
        width: 100%;
        box-sizing: border-box;
        margin: 0.75rem 0 0;
        text-align: center;
        font-style: italic;
        color: #1e3a8a;
        font-size: 12px;
        font-weight: 300;
      }
      .hero-free-gens-today .hero-free-gens-upgrade {
        color: #1e3a8a;
        font-style: italic;
        font-size: 12px;
        font-weight: 300;
        text-decoration: underline;
        text-underline-offset: 2px;
      }
      .hero-free-gens-today .hero-free-gens-upgrade:hover {
        color: #2563eb;
      }

      .variation-slider-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 4px;
      }
      .variation-slider-head .label {
        margin-bottom: 0;
      }
      .variation-slider-value {
        font-weight: 600;
        color: #1e40af;
        font-variant-numeric: tabular-nums;
        min-width: 1.5rem;
        text-align: right;
      }
      input.variation-slider[type='range'] {
        width: 100%;
        height: 8px;
        margin: 8px 0 6px;
        -webkit-appearance: none;
        appearance: none;
        background: #e5e7eb;
        border-radius: 999px;
      }
      input.variation-slider[type='range']::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2563eb;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
      }
      input.variation-slider[type='range']::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2563eb;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
      }
      input.variation-slider[type='range']::-moz-range-track {
        height: 8px;
        background: #e5e7eb;
        border-radius: 999px;
      }

      #stagify-furniture-file {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
      .furniture-add-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        color: #2563eb;
        background: rgba(37, 99, 235, 0.06);
        border: 1px dashed #93c5fd;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.15s ease, border-color 0.15s ease;
      }
      .furniture-add-btn:hover {
        background: rgba(37, 99, 235, 0.12);
        border-color: #2563eb;
      }
      .furniture-add-btn.is-drag-over {
        background: rgba(37, 99, 235, 0.16);
        border-color: #2563eb;
        border-style: solid;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
      }
      .furniture-add-btn.hidden {
        display: none;
      }
      #stagify-furniture-list {
        margin-top: 8px;
      }
      .furniture-file-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        font-size: 13px;
        color: #334155;
        background: rgba(241, 245, 249, 0.8);
        border-radius: 8px;
        margin-bottom: 4px;
      }
      .furniture-file-row span {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .furniture-file-remove {
        background: none;
        border: none;
        color: #ef4444;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        padding: 0 4px;
        line-height: 1;
      }
      .furniture-file-remove:hover {
        color: #dc2626;
      }
      .furniture-preview-btn {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        padding: 0;
        font-size: 13px;
        font-weight: 700;
        font-family: inherit;
        line-height: 1;
        color: #64748b;
        background: rgba(100, 116, 139, 0.12);
        border: none;
        border-radius: 50%;
        cursor: help;
        transition: color 0.15s ease, background 0.15s ease;
      }
      .furniture-preview-btn:hover {
        color: #2563eb;
        background: rgba(37, 99, 235, 0.14);
      }
      .furniture-image-preview {
        position: fixed;
        z-index: 10000;
        pointer-events: none;
        padding: 6px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
        max-width: min(280px, 90vw);
        max-height: min(280px, 50vh);
      }
      .furniture-image-preview.hidden {
        display: none;
      }
      .furniture-image-preview img {
        display: block;
        max-width: 260px;
        max-height: 260px;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 6px;
      }

      #stage-mask-ref-file {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
      .stage-mask-ref-container {
        margin-top: 12px;
      }
      .stage-mask-ref-label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-heading, #1e3a8a);
        margin-bottom: 6px;
      }
      .stage-mask-ref-row {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
      }
      .stage-mask-ref-add {
        display: inline-flex;
        align-items: center;
        padding: 8px 14px;
        border-radius: 8px;
        border: 1px dashed #93c5fd;
        background: rgba(37, 99, 235, 0.06);
        color: #2563eb;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.18s ease, border-color 0.18s ease;
      }
      .stage-mask-ref-add:hover {
        background: rgba(37, 99, 235, 0.12);
        border-color: #2563eb;
      }
      .stage-mask-ref-add.is-drag-over {
        background: rgba(37, 99, 235, 0.16);
        border-color: #2563eb;
        border-style: solid;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
      }
      .stage-mask-ref-add.hidden {
        display: none;
      }
      .stage-mask-ref-preview {
        position: relative;
        display: inline-flex;
      }
      .stage-mask-ref-preview.hidden {
        display: none;
      }
      .stage-mask-ref-preview img {
        display: block;
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid rgba(37, 99, 235, 0.25);
      }
      .stage-mask-ref-remove {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 22px;
        height: 22px;
        border: none;
        border-radius: 999px;
        background: #1e3a8a;
        color: #fff;
        font-size: 14px;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      }
      .stage-mask-ref-hint {
        display: block;
        margin-top: 6px;
        font-size: 12px;
        color: #64748b;
      }
