
    @import url('/static/fonts.css');

    :root { --bg-deep: #000000; --accent-lime: #ffbe0b; }
    html { scroll-behavior: smooth; overflow-x: clip; }

    body {
      font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background-color: var(--bg-deep);
      color: #f4f4f5;
      -webkit-tap-highlight-color: transparent;
      overflow-x: clip;
    }

    /* Единый шрифт интерфейса — Onest. Старые классы оставлены как «роли» начертания */
    .font-display { font-family: 'Onest', sans-serif !important; letter-spacing: -0.035em; }
    .font-mono-tech { font-family: 'Onest', sans-serif !important; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
    .font-serif { font-family: 'Onest', sans-serif !important; }
    button, input, select, textarea { font-family: inherit; }


    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    .craft-card { background: #0b0b0d; border: 1px solid #1f1f24; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.85); }

    button { cursor: pointer; touch-action: manipulation; }
    button:disabled { cursor: default; }

    /* =========================================================
       LIQUID GLASS
       1) полупрозрачное «стекло» с сильным размытием и насыщением фона
       2) бликовая кромка (светлая сверху-слева и снизу-справа)
       3) внутреннее свечение и мягкая тень
       4) «линза»-индикатор, перетекающая между пунктами с пружиной
       5) световой блик, следующий за пальцем/курсором при нажатии
       ========================================================= */
    /* :where() — нулевая специфичность, чтобы классы fixed/absolute из Tailwind всегда побеждали */
    :where(.lg, .lg-lime, .lg-rim) { position: relative; }
    .lg, .lg-lime, .lg-rim { isolation: isolate; }

    .lg {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 42%, rgba(255,255,255,0.025) 100%),
        rgba(18, 18, 24, 0.46);
      backdrop-filter: blur(22px) saturate(190%) brightness(1.06);
      -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.06);
      box-shadow:
        inset 0 1px 0.5px rgba(255,255,255,0.42),
        inset 0 -1px 0.5px rgba(255,255,255,0.08),
        inset 0 0 20px rgba(255,255,255,0.035),
        0 14px 34px rgba(0,0,0,0.5),
        0 2px 6px rgba(0,0,0,0.28);
    }

    /* =========================================================
       ПРЕЛОМЛЯЮЩЕЕ ЖИДКОЕ СТЕКЛО (Chromium): SVG-фильтр как backdrop-filter.
       Карта смещения строится под размер и скругление каждой капсулы:
       по краю (bevel) фон «затягивается» внутрь, как в толстой линзе,
       каналы R/G/B смещаются по-разному — цветная кайма (aberration).
       В Safari/Firefox остаётся обычное матовое стекло.
       ========================================================= */
    html.lg-refract [data-refract].lg {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.015) 100%),
        rgba(12, 12, 16, var(--lg-tint, 0.28));
      box-shadow:
        inset 0 1px 0.5px rgba(255,255,255,0.5),
        inset 0 -1px 0.5px rgba(255,255,255,0.12),
        inset 0 0 0 0.5px rgba(255,255,255,0.08),
        inset 0 0 18px rgba(255,255,255,0.05),
        0 14px 34px rgba(0,0,0,0.45),
        0 2px 6px rgba(0,0,0,0.25);
    }
    html.lg-refract [data-refract].lg-dense { background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.015) 100%),
        rgba(10, 10, 14, calc(var(--lg-tint, 0.28) + 0.2)); }
    [data-refract].lg::before { opacity: 0.28; }
    [data-refract].lg, html.lg-refract [data-refract].lg {
      box-shadow:
        inset 0 1px 0.5px rgba(255,255,255,0.13),
        inset 0 -1px 0.5px rgba(255,255,255,0.03),
        inset 0 0 18px rgba(255,255,255,0.03),
        0 14px 34px rgba(0,0,0,0.45),
        0 2px 6px rgba(0,0,0,0.25);
    }
    #lgDefs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
    .lg-tune { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 6px 10px; font-size: 11px; color: #a1a1aa; }
    .lg-tune input[type=range] { accent-color: #ffbe0b; width: 100%; }
    .lg-tune output { color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
    .lg-dense { background:
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 45%, rgba(255,255,255,0.02) 100%),
        rgba(14, 14, 19, 0.66); }

    /* Бликовая кромка через маску (рисует только 1px рамку градиентом) */
    .lg::before, .lg-lime::before, .lg-rim::before {
      content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
      background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 28%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.08) 72%, rgba(255,255,255,0.32) 100%);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
    }
    .lg-rim::before { background: linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.06) 18%, rgba(255,255,255,0.03) 100%); }

    /* Лаймовое «жидкое» стекло для главных действий */
    .lg-lime {
      color: #0a0a0a;
      background:
        radial-gradient(120% 90% at 50% -10%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 46%),
        linear-gradient(180deg, #ffadd0 0%, #ffbe0b 48%, #c45ea2 100%);
      box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.9),
        inset 0 -3px 8px rgba(84,112,0,0.32),
        0 8px 26px rgba(255,190,11,0.36),
        0 2px 5px rgba(0,0,0,0.32);
    }
    .lg-lime::before { background: linear-gradient(160deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.15) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.35) 100%); }

    /* «Колодец» для сегментов внутри стекла */
    .lg-well {
      position: relative;
      background: rgba(0,0,0,0.3);
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.5), inset 0 -1px 0 rgba(255,255,255,0.06);
    }

    /* Нажатие: пружина + блик под пальцем */
    .lg-press { transition: transform .38s cubic-bezier(.34,1.56,.64,1), filter .2s; }
    .lg-press:active { transform: scale(0.94); }
    .lg-press::after {
      content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
      background: radial-gradient(110px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.24), transparent 62%);
      opacity: 0; transition: opacity .3s;
    }
    .lg-press:hover::after, .lg-press:active::after { opacity: 1; }
    :where(.lg-press) > * { position: relative; z-index: 3; }

    /* Сегментированный переключатель с перетекающей «линзой» */
    .seg { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
    .seg-thumb {
      position: absolute; top: 4px; bottom: 4px; left: 4px;
      width: calc((100% - 8px) / var(--n));
      transform: translateX(calc(var(--i, 0) * 100%));
      transition: transform .5s cubic-bezier(.34,1.42,.52,1);
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.14) 100%);
      backdrop-filter: blur(6px) saturate(220%) brightness(1.25);
      -webkit-backdrop-filter: blur(6px) saturate(220%) brightness(1.25);
      box-shadow:
        inset 0 1px 0.5px rgba(255,255,255,0.75),
        inset 0 -1px 1px rgba(255,255,255,0.18),
        0 6px 16px rgba(0,0,0,0.38);
      z-index: 0; pointer-events: none;
    }
    .seg-thumb.stretch { animation: squish .5s cubic-bezier(.34,1.42,.52,1); }
    @keyframes squish { 0% { scale: 1 1; } 35% { scale: 1.14 0.9; } 100% { scale: 1 1; } }
    .seg-btn { position: relative; z-index: 1; color: rgba(255,255,255,0.55); transition: color .25s; }
    .seg-btn:hover { color: rgba(255,255,255,0.85); }
    .seg-btn.on { color: #fff; }

    /* ===================================================== */

    @keyframes scanline { 0% { top: 2%; opacity: 0.9; } 50% { top: 94%; opacity: 1; } 100% { top: 2%; opacity: 0.9; } }
    .scanner-beam {
      position: absolute; left: 0; right: 0; height: 2.5px;
      background: linear-gradient(90deg, transparent, #ffbe0b, #ffffff, #ffbe0b, transparent);
      box-shadow: 0 0 22px 4px rgba(255,190,11, 0.75);
      animation: scanline 2s ease-in-out infinite;
    }

    @keyframes cinemaMotion { 0% { transform: scale(1) translate(0,0); } 50% { transform: scale(1.14) translate(-2%,-1.5%); } 100% { transform: scale(1) translate(0,0); } }
    .video-motion-sim { animation: cinemaMotion 8s ease-in-out infinite; }
    .video-motion-fast { animation: cinemaMotion 3.2s ease-in-out infinite; }
    @keyframes previewProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .preview-progress { transform-origin: left; animation: previewProgress 3.2s linear infinite; }

    .wm-layer { position: absolute; inset: -60%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 26px 34px; transform: rotate(-24deg); opacity: 0.2; pointer-events: none; }
    .wm-layer span { font: 700 11px 'Onest', sans-serif; letter-spacing: 0.22em; color: #fff; white-space: nowrap; }

    .higgs-folder { width: 68px; height: 54px; position: relative; margin: 0 auto; }
    .higgs-folder-back { position: absolute; top: 0; left: 0; width: 30px; height: 14px; background: #4d7c3f; border-radius: 7px 7px 0 0; }
    .higgs-folder-front { position: absolute; top: 7px; left: 0; right: 0; bottom: 0; border-radius: 11px; background: linear-gradient(180deg, #86efac 0%, #a3e635 55%, #bbf7d0 100%); box-shadow: 0 12px 30px rgba(134,239,172,0.22), inset 0 1px 1px rgba(255,255,255,0.6); }

    #floatingLiquidDock { bottom: calc(12px + env(safe-area-inset-bottom)); }
    /* Затемнение под доком: во всю ширину экрана, плавная (eased) кривая без «ступеньки» */
    #bottomFade { position: fixed; left: 0; right: 0; bottom: 0; height: var(--fade-h, 0px); z-index: 39; pointer-events: none;
      background: linear-gradient(to top, rgba(5,5,5,0.97) 0%, rgba(5,5,5,0.95) 22%, rgba(5,5,5,0.9) 38%, rgba(5,5,5,0.8) 50%, rgba(5,5,5,0.64) 61%, rgba(5,5,5,0.46) 71%, rgba(5,5,5,0.29) 80%, rgba(5,5,5,0.15) 88%, rgba(5,5,5,0.05) 95%, rgba(5,5,5,0) 100%); }

    /* Ручка слайдера До/После */
    .compare-handle {
      position: absolute; left: 50%; transform: translate(-50%, -50%);
      display: flex; align-items: center; justify-content: center; border-radius: 9999px;
    }

    /* =========================================================
       ШТОРКИ (телефон) / МОДАЛКИ (десктоп) — единая сетка отступов:
       по бокам 24px · иконка 72px · заголовок 24px · между блоками 24–28px · кнопки 56px
       --kb — высота экранной клавиатуры, --vvh/--vvt — видимая область экрана
       ========================================================= */
    .sheet { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; }
    .sheet.open { visibility: visible; pointer-events: auto; }

    .sheet-backdrop {
      position: absolute; inset: 0; background: rgba(0,0,0,0.6);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      opacity: 0; transition: opacity .28s ease; touch-action: none;
    }
    .sheet.open .sheet-backdrop { opacity: 1; }

    .sheet-panel {
      position: absolute; left: 0; right: 0;
      bottom: var(--kb, 0px);
      min-height: min(60dvh, calc(var(--vvh, 100dvh) - 16px));
      max-height: min(92dvh, calc(var(--vvh, 100dvh) - 16px));
      display: flex; flex-direction: column;
      background: linear-gradient(180deg, rgba(32,32,40,0.9) 0%, rgba(11,11,15,0.97) 100%);
      backdrop-filter: blur(36px) saturate(190%); -webkit-backdrop-filter: blur(36px) saturate(190%);
      border-radius: 34px 34px 0 0;
      box-shadow: 0 -24px 70px rgba(0,0,0,0.9), inset 0 1px 1px rgba(255,255,255,0.22);
      transform: translateY(105%);
      transition: transform .38s cubic-bezier(.2,.9,.25,1), bottom .22s ease, max-height .22s ease;
    }
    .sheet.open .sheet-panel { transform: translateY(0); }
    .sheet-panel.kb-open { min-height: 0; border-radius: 28px; }

    .sheet-grab { touch-action: none; flex-shrink: 0; cursor: grab; }
    .sheet-handle { width: 44px; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.22); margin: 10px auto 0; }
    .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 4px 24px; min-height: 60px; }

    .sheet-body {
      display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0;
      overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
      padding: 4px 24px max(24px, env(safe-area-inset-bottom));
    }
    .sheet-body::-webkit-scrollbar { display: none; }
    .sheet-panel.kb-open .sheet-body { padding-bottom: 16px; }

    .sheet-step:not(.hidden) { display: flex; flex-direction: column; flex: 1 0 auto; }
    .sheet-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 12px; }
    .sheet-icon { width: 72px; height: 72px; border-radius: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
    .sheet-title { font-family: 'Onest', sans-serif; letter-spacing: -0.03em; font-weight: 800; font-size: 24px; line-height: 1.15; color: #fff; }
    .sheet-text { margin-top: 10px; font-size: 14px; line-height: 1.55; color: #a1a1aa; max-width: 330px; }
    .sheet-text b { color: #fff; font-weight: 600; }
    .sheet-section { margin-top: 24px; }
    .sheet-actions { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }

    .btn-sheet { width: 100%; height: 56px; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 800; }
    .btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #e4e4e7; font-weight: 600; transition: background .15s; }
    .btn-ghost:hover { background: rgba(255,255,255,0.1); }
    .btn-danger { background: #f43f5e; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 24px rgba(244,63,94,0.28); }

    .sheet-footer {
      flex-shrink: 0; padding: 14px 24px max(16px, env(safe-area-inset-bottom));
      border-top: 1px solid rgba(255,255,255,0.08);
      background: linear-gradient(180deg, rgba(14,14,18,0.6), rgba(10,10,14,0.95));
    }
    .sheet-panel.kb-open .sheet-footer { padding-bottom: 12px; }
    .sheet-body.has-footer { padding-bottom: 20px; }

    @media (min-width: 640px) {
      .sheet-panel {
        left: 50%; right: auto; bottom: auto;
        top: calc(var(--vvt, 0px) + var(--vvh, 100dvh) / 2);
        width: min(440px, calc(100vw - 32px));
        min-height: 0;
        max-height: calc(var(--vvh, 100dvh) - 48px);
        border-radius: 34px;
        box-shadow: 0 40px 100px rgba(0,0,0,0.9), inset 0 1px 1px rgba(255,255,255,0.22);
        transform: translate(-50%, -46%) scale(.96); opacity: 0;
        transition: transform .26s cubic-bezier(.2,.9,.25,1), opacity .2s ease;
      }
      .sheet.open .sheet-panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
      .sheet-handle { visibility: hidden; height: 0; margin: 0; }
      .sheet-grab { cursor: default; }
      .sheet-head { padding: 20px 22px 4px 32px; }
      .sheet-body { padding: 4px 32px 32px; }
      .sheet-step { min-height: 400px; }
      .sheet-footer { padding: 16px 32px 26px; border-radius: 0 0 34px 34px; }
    }

    .sheet-step { animation: stepIn .28s ease both; }
    @keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

    /* Рамка не меняется при загрузке фото другой ориентации. */
    .hero-box { height: auto; aspect-ratio: 1; border-radius: 28px; width: 100%; background: #111; }
    #heroOverlay { justify-content: center; padding: 28px; }
    #heroIntro { margin-bottom: 20px; }
    #heroTitle { font-size: clamp(28px, 4vw, 48px); line-height: 1.08; }
    #heroSub { max-width: 340px; font-size: 14px; }
    #heroCtaRow { flex: initial; }
    #heroCompareBox:not([data-mode="example"]) #heroOverlay { justify-content: flex-end; padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent 26%); }
    #heroCompareBox:not([data-mode="example"]) #heroAfterImg,
    #heroCompareBox:not([data-mode="example"]) #heroBeforeImg { object-fit: contain; }
    #heroCompareBox[data-mode="example"] #heroAfterImg,
    #heroCompareBox[data-mode="example"] #heroBeforeImg { object-position: 50% 0; }
    .hero-top { top: 16px !important; }
    .compare-handle { top: 50% !important; }
    button:focus-visible { outline: 2px solid #ffbe0b; outline-offset: 3px; }
    @media (max-width: 639px) {
      #mainWrap { max-width: none; padding-left: 14px; padding-right: 14px; }
      #heroCompareBox {
        width: calc(100% + 28px); margin: calc(-88px - env(safe-area-inset-top)) -14px 0;
        height: calc(100vw + 80px + env(safe-area-inset-top)); aspect-ratio: auto;
        border-radius: 0 0 28px 28px; border-width: 0;
      }
      #heroOverlay { padding: calc(112px + env(safe-area-inset-top)) 16px 88px; }
      #heroCompareBox:not([data-mode="example"]) #heroOverlay { padding: 16px; }
      #heroTitle { font-size: clamp(26px, 7.5vw, 38px); }
      #heroSub { font-size: 13px; line-height: 1.45; }
      #heroIntro { margin: 0; }
      #heroTrialBadge { margin-bottom: 10px; }
      #heroCtaLine { position: absolute; left: 16px; right: 16px; bottom: 16px; }
      #heroCtaRow { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
      #heroCtaRow button { width: 100%; min-width: 0; height: 44px; padding: 0 8px; font-size: 12px; justify-content: center; }
      .hero-top { top: calc(80px + env(safe-area-inset-top)) !important; }
      #heroBeforeBadge { left: 16px; }
      #heroSceneBadge { right: 16px; max-width: calc(100% - 120px); }
      #heroSceneBadge.scene-name-badge { max-width: calc(100% - 104px); }
      #heroSection { padding-bottom: 24px; }
    }

    @media (max-width: 379px) {
      #navSeg .seg-btn { font-size: 11px; padding-left: 7px; padding-right: 7px; }
      #dockGenerateBtn { width: 112px; font-size: 12px; }
      #modeSeg .seg-btn > span:first-child { font-size: 11px; }
    }

    /* =========================================================
       ДЕСКТОП (≥1024px): широкая раскладка — страница 1120px, баннер-кинокадр, сетка результатов, плавающий док
       Телефон и планшет не меняются.
       ========================================================= */
    @media (min-width: 1024px) {
      body[data-layout="wide"]   { --page-w: 1120px; padding-bottom: 180px; }  /* док на десктопе ниже — меньше пустоты внизу */

      #headerWrap { max-width: var(--page-w); left: 24px; right: 24px; }
      #mainWrap { max-width: var(--page-w); padding-left: 24px; padding-right: 24px; }

      /* ---------- ШИРОКАЯ ---------- */
      body[data-layout="wide"] .hero-box { aspect-ratio: 16 / 9; border-radius: 40px; }
      body[data-layout="wide"] #heroOverlay { padding: 32px; background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.4) 42%, rgba(0,0,0,0) 70%), linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 45%); }
      body[data-layout="wide"] #heroOverlay > * { max-width: 600px; }
      body[data-layout="wide"] #heroCompareBox:not([data-mode="example"]) #heroOverlay { padding: 32px; }
      body[data-layout="wide"] #heroIntro { margin: 0; }
      body[data-layout="wide"] #heroTitle { font-size: clamp(52px, 4.17vw, 60px); max-width: 600px; margin-bottom: 16px; }
      body[data-layout="wide"] #heroSub { font-size: 22px; line-height: 1.45; max-width: 520px; margin: 0; }
      /* Кнопки закреплены независимо от высоты рекламного текста. */
      body[data-layout="wide"] #heroCtaLine { position: absolute; left: 32px; right: 32px; bottom: 32px; }
      body[data-layout="wide"] .hero-top { z-index: 31; }
      /* Единый внутренний отступ контента баннера — 32px. */
      body[data-layout="wide"] .hero-top { top: 32px !important; }
      body[data-layout="wide"] #heroBeforeBadge { left: 32px; }
      /* «Замороженный» кадр: лицо и подпись — справа снизу, на уровне кнопок */
      /* «Ваш кадр в …» на десктопе — справа в строке кнопок, той же высоты 48px */
      body[data-layout="wide"] #heroTeaserTag { display: none; }
      body[data-layout="wide"] #heroOverlay > #heroCtaLine { max-width: none; }
      body[data-layout="wide"] #heroSceneBadge { right: 32px; }
      body[data-layout="wide"] #galleryGrid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
      body[data-layout="wide"] #floatingLiquidDock { max-width: 780px; }
      /* подложка под доком — во всю ширину экрана, без резких краёв */
      /* Сцены на десктопе раскрываются наверх сеткой 6 × N — все видны сразу, без горизонтальной прокрутки */
      body[data-layout="wide"] #scenesHorizontalStrip:not(.hidden) {
        display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
        overflow: visible; padding: 10px; border-radius: 28px;
        background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), rgba(14,14,19,0.78);
        backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
        box-shadow: inset 0 1px 0.5px rgba(255,255,255,0.3), 0 20px 50px rgba(0,0,0,0.6);
        animation: scenesUp .32s cubic-bezier(.2,.9,.25,1);
      }
      body[data-layout="wide"] #scenesHorizontalStrip > div { width: auto; }
      body[data-layout="wide"] .scene-thumb { height: 64px; }
      @keyframes scenesUp { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
      body[data-layout="wide"] #batchActionBar { max-width: 780px; }
      body[data-layout="wide"] #assetsGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    }

    /* Карточки результатов: всегда одного размера (4:5), фото на всю карточку, действия поверх на размытом низе */
    .result-card { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: #0b0b0d; box-shadow: 0 24px 48px -16px rgba(0,0,0,0.85); isolation: isolate; }
    .result-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 45; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), inset 0 1px 0 rgba(255,255,255,0.12); }
    .result-card.is-video::after { box-shadow: inset 0 0 0 1px rgba(255,190,11,0.28), inset 0 1px 0 rgba(255,255,255,0.12); }
    .card-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; padding: 56px 14px 14px; }
    .card-blur {
      position: absolute; inset: 0; z-index: -1; pointer-events: none;
      background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0) 100%);
      backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
      -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%); mask-image: linear-gradient(to top, #000 55%, transparent 100%);
    }
    .result-card { transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s; }
    .result-card--sm { border-radius: 22px; }
    .result-card--sm .card-panel { padding: 44px 10px 10px; }
    .result-card.is-selected { transform: scale(0.965); }
    .result-card.is-selected::after { box-shadow: inset 0 0 0 2.5px #ffbe0b, inset 0 0 24px rgba(255,190,11,0.18); }
    .result-card.is-dimmed { opacity: 0.72; }
    .section-title { font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
    @media (min-width: 1024px) { .section-title { font-size: 26px; } }
    /* Подсказка при наведении (только мышь, десктоп) */
    .tip { position: relative; }
    @media (hover: hover) and (min-width: 1024px) {
      .tip[data-tip]:not([data-tip=""]):hover::after {
        content: attr(data-tip); position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
        width: max-content; max-width: 240px; white-space: normal; text-align: center;
        padding: 9px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; line-height: 1.35; color: #fff;
        background: rgba(18,18,24,0.96); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 12px 30px rgba(0,0,0,0.6);
        pointer-events: none; z-index: 80; animation: tipIn .15s ease;
      }
    }
    @keyframes tipIn { from { opacity: 0; transform: translate(-50%, 4px); } }
    /* Баннер: «замороженный» кадр сцены до генерации */
    @keyframes teaserShimmer { 0% { transform: translateX(-60%) skewX(-18deg); } 100% { transform: translateX(160%) skewX(-18deg); } }
    @keyframes teaserBreath { 0%, 100% { transform: scale(1.16); } 50% { transform: scale(1.22); } }
    @keyframes facePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,190,11,0.55), 0 18px 40px rgba(0,0,0,0.6); } 50% { box-shadow: 0 0 0 12px rgba(255,190,11,0), 0 18px 40px rgba(0,0,0,0.6); } }
    #heroTeaserBg { animation: teaserBreath 9s ease-in-out infinite; }
    .teaser-shimmer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
    .teaser-shimmer::before { content: ''; position: absolute; top: 0; bottom: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent); animation: teaserShimmer 3.2s ease-in-out infinite; }
    .teaser-face { animation: facePulse 2.4s ease-in-out infinite; }
    #heroReveal { image-rendering: pixelated; transition: opacity .6s ease; }
    /* Пустая библиотека: информация по центру, основное действие снизу на телефоне. */
    #assetsEmptyState { text-align: center; padding: 64px 16px; }
    .assets-empty-content .higgs-folder { width: 72px; height: 58px; margin-bottom: 24px; }
    .assets-empty-content h2 { font-size: 22px; line-height: 1.2; font-weight: 700; color: white; }
    .assets-empty-content p { font-size: 14px; line-height: 1.5; color: #a1a1aa; margin-top: 10px; }
    #assetsEmptyAction { height: 48px; margin-top: 24px; }
    #assetsEmptyState.library-empty { position: fixed; inset: calc(80px + env(safe-area-inset-top)) 0 0; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; }
    #assetsEmptyState.hidden { display: none; }
    .library-empty #assetsEmptyAction { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; right: 16px; width: calc(100% - 32px); margin: 0; }
    .asset-filter { height: 34px; box-sizing: border-box; }
    .asset-filter span { font-variant-numeric: tabular-nums; }
    @media (min-width: 1024px) {
      .assets-empty-content .higgs-folder { width: 96px; height: 76px; }
      .assets-empty-content .higgs-folder-back { width: 42px; height: 20px; }
      .assets-empty-content .higgs-folder-front { top: 10px; border-radius: 14px; }
      .assets-empty-content h2 { font-size: 28px; }
      .assets-empty-content p { font-size: 16px; }
      #assetsEmptyState.library-empty { padding: 24px; }
      #assetsEmptyAction { height: 52px; }
      .library-empty #assetsEmptyAction { position: static; width: auto; margin-top: 28px; }
    }
    /* =========================================================
       ПРОСМОТР (лайтбокс): кадр целиком, листание, «оригинал», плеер, действия
       ========================================================= */
    #viewer { position: fixed; inset: 0; z-index: 65; display: none; background: #050507; }
    #viewer.open { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: viewerIn .22s ease; }
    @keyframes viewerIn { from { opacity: 0; } }
    #viewerStage { position: relative; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; padding: 4px 12px; min-height: 0; }
    #viewerMedia { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: transform .28s ease; will-change: transform; }
    #viewerFrame { position: relative; line-height: 0; }
    #viewerViewport { position: relative; overflow: hidden; border-radius: 18px; line-height: 0; }
    #viewerImg, #viewerVideo { display: block; max-width: var(--stage-w, 92vw); max-height: var(--stage-h, 60vh); object-fit: contain; user-select: none; -webkit-user-drag: none; }
    #viewerVideo[hidden] { display: none; }
    .video-load-shell { position: relative; display: block; width: 100%; height: 100%; background: #111; }
    .video-load-spinner { display: none; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px; border: 2px solid rgba(255,255,255,.28); border-top-color: #ffbe0b; border-radius: 50%; animation: videoSpin .75s linear infinite; z-index: 4; }
    .video-load-error { display: none; position: absolute; inset: 0; z-index: 4; place-items: center; padding: 20px; color: white; background: rgba(5,5,7,.72); font-size: 12px; text-align: center; }
    .video-load-shell.loading .video-load-spinner, .video-viewer-loader:not(.hidden):not(.failed) .video-load-spinner { display: block; }
    .video-load-shell.failed .video-load-error, .video-viewer-loader.failed .video-load-error { display: grid; }
    .video-viewer-loader { position: absolute; inset: 0; z-index: 3; background: rgba(5,5,7,.2); }
    @keyframes videoSpin { to { transform: rotate(360deg); } }
    .scene-preview-button { position: absolute; z-index: 5; left: 50%; top: 50%; width: 36px; height: 36px; transform: translate(-50%,-50%); display: grid; place-items: center; border-radius: 999px; color: #111; background: #ffbe0b; border: 1px solid rgba(255,255,255,.55); box-shadow: 0 7px 20px rgba(0,0,0,.42); }
    .scene-preview-button:hover { transform: translate(-50%,-50%) scale(1.08); }
    .scene-preview-label { position: absolute; z-index: 4; left: 50%; bottom: 5px; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px; color: white; background: rgba(0,0,0,.65); font-size: 9px; line-height: 1.35; pointer-events: none; }
    .scene-thumb video::-webkit-media-controls-fullscreen-button { display: none; }
    .scene-thumb.poster-loading .poster-load-spinner { display: block; }
    .scene-thumb.poster-loading .scene-preview-button, .scene-thumb.poster-loading .scene-preview-label { visibility: hidden; }
    .poster-load-error { display: none; position: absolute; inset: 0; z-index: 5; place-items: center; padding: 8px; color: white; background: #17171b; font-size: 9px; text-align: center; }
    .scene-thumb.poster-failed .poster-load-error { display: grid; }
    .scene-thumb.poster-failed .scene-preview-button, .scene-thumb.poster-failed .scene-preview-label { display: none; }
    #viewerPanel { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); }
    .viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; }
    @keyframes vprogress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    #viewerProgress { transform-origin: left; }
    #viewerProgress.run { animation: vprogress var(--vdur, 5s) linear infinite; }
    #viewerProgress.paused, #viewerImg.paused { animation-play-state: paused !important; }
    @media (min-width: 1024px) {
      #viewerPanel { padding: 12px 32px max(16px, env(safe-area-inset-bottom)); }
      #viewerActions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1280px; margin: 0 auto; }
      #viewerActions[data-media="video"] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
      #viewerActions[data-media="video"]:not(:has(> button)) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; }
      #viewerActions > .viewer-upsells, #viewerActions > .viewer-utilities { display: contents; }
      #viewerActions .viewer-upsell { padding: 0 16px; gap: 8px; }
      .viewer-upsell > span:first-child { display: none; }
      #viewerStage { padding: 8px 88px 16px; }
      #viewerImg { cursor: zoom-in; }
      #viewerMedia.zoomed #viewerImg { cursor: zoom-out; }
    }
    /* Кнопки «развернуть / скачать» на карточках */
    .card-media { position: absolute; inset: 0; cursor: zoom-in; }
    /* Карточка-заготовка: новый кадр проявляется мозаикой */
    .pending-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
    .result-card.just-revealed::after { animation: revealGlow 1.6s ease-out; }
    @keyframes revealGlow { 0% { box-shadow: inset 0 0 0 3px #ffbe0b, 0 0 40px rgba(255,190,11,0.5); } 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); } }
    @keyframes cardIn { from { opacity: 0; transform: scale(.96); } }
    .pending-card { animation: cardIn .35s ease; }
    /* Бейджи баннера: одна высота у всех (24px на телефоне, 30px на десктопе) */
    /* Одинаковая геометрия бейджей на всех экранах и во всех представлениях. */
    .hero-chip, .card-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 0 !important; font: 700 11px/1 'Onest', sans-serif; letter-spacing: .02em; white-space: nowrap; flex-shrink: 0; }
    .hero-chip { overflow: hidden; text-overflow: ellipsis; }
    #heroSceneBadge.scene-name-badge { display:block; max-width:70%; line-height:28px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    #heroSceneBadge.is-long { padding-inline:8px; font-size:9px; letter-spacing:0; }
    .hero-chip > svg, .card-chip > svg { width: 12px; height: 12px; flex-shrink: 0; }
    .media-chip { min-width: 68px; justify-content: center; }
    .chip-glass { background: rgba(0,0,0,0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
    .chip-lime { background: #ffbe0b; color: #000; }
    .chip-accent { background: rgba(0,0,0,0.65); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #ffbe0b; box-shadow: inset 0 0 0 1px rgba(255,190,11,0.4); }

    #dockMetaRow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    #sceneTogglePill { height: 36px; min-width: 0; max-width: 100%; }
    #dockMetaRow.has-save #sceneTogglePill { max-width: calc(100% - 120px); }
    #dockMetaRow.has-save .scene-prefix { display: none; }
    .dock-save-pill { height: 36px; width: 112px; flex-shrink: 0; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 800 12px/1 'Onest', sans-serif; color: #fff; }
    #saveDockPill[hidden] { display: none; }
    #saveOnboarding { position: fixed; inset: 0; z-index: 75; }
    #saveOnboardingBackdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; cursor: default; }
    #saveSpotlight { position: fixed; background: #232323; box-shadow: 0 0 0 4px #ffbe0b, 0 0 0 9999px rgba(0,0,0,.76); }
    #saveCoachTip { position: fixed; width: min(290px, calc(100vw - 32px)); padding: 20px; border-radius: 24px; background: #202020; color: #fff; box-shadow: 0 12px 40px #0008; animation: saveTipIn .25s ease both; }
    #saveCoachTip h2 { font: 800 18px/1.2 'Onest', sans-serif; margin: 0 24px 8px 0; }
    #saveCoachTip p { font-size: 14px; line-height: 1.5; color: #ccc; }
    #saveCoachClose { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; color: #aaa; border-radius: 50%; }
    #saveCoachDone { margin-top: 16px; min-height: 36px; padding: 0 16px; border-radius: 999px; background: #ffbe0b; color: #000; font-size: 13px; font-weight: 800; }
    @keyframes saveTipIn { from { opacity: 0; transform: translateY(8px); } }
    #sheet-save .sheet-panel { min-height: 0; }
    #sheet-save .sheet-body { padding-top: 12px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    #saveSheetTitle:focus { outline: none; }
    #sheet-save h2 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
    #sheet-save .save-description { margin-top: 10px; margin-bottom: 24px; color: #a1a1aa; font-size: 14px; line-height: 1.5; }
    #saveEmailLabel { display: block; margin-bottom: 8px; font-size: 13px; color: #ddd; }
    #saveEmailSubmit, #saveTelegramBtn { width: 100%; height: 48px; border-radius: 999px; font-size: 14px; font-weight: 800; }
    #saveEmailSubmit { margin-top: 12px; background: #ffbe0b; color: #000; }
    #saveTelegramBtn { background: #087cb3; color: #fff; }
    #saveTelegramBtn:hover { background: #086a99; }
    .save-or { text-align: center; margin: 16px 0; font-size: 12px; color: #71717a; }
    @media (min-width: 640px) { #sheet-save .sheet-panel { max-width: 440px; } #sheet-save .sheet-body { padding-bottom: 32px; } }
    @media (prefers-reduced-motion: reduce) { #saveCoachTip { animation: none; } #sheet-save .sheet-panel { transition: none; } }
    @media (max-width: 639px) {
      #headerWrap header { grid-template-columns: auto minmax(0,1fr) auto; }
      #navSeg { min-width: 0; max-width: 100%; }
      #navSeg .seg-btn { font-size: 11px; padding-left: 5px; padding-right: 5px; }
    }
    .hero-change-photo.lg { background: rgba(255,255,255,.16); }
    #removePhotoBtn.lg { background: rgba(0,0,0,.3); color: #ddd; }
    .free-create-label { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.05; }
    .free-create-note { font-size: 11px; font-weight: 600; }
    .generation-button-status small { font:inherit; }
    @media (max-width:639px) {
      #dockGenerateBtn { overflow:hidden; padding-inline:6px; }
      .generation-button-status { display:flex; min-width:0; max-width:100%; flex-direction:column; align-items:center; gap:2px; font-size:10px; line-height:1.05; }
      .generation-button-status > span { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
      .generation-button-status small { display:block; font-size:9px; font-weight:650; opacity:.82; }
    }
    @media (min-width:640px) {
      .generation-button-status small::before { content:' · '; }
    }
    #resultsSection > div:first-child { flex-wrap: wrap; gap: 10px; }
    #resultsSection > div:first-child > button { flex-shrink: 0; }
    .result-actions { display: flex; gap: 8px; margin-top: 12px; }
    .result-actions.photo-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .photo-actions > button:first-child { grid-column: 1 / -1; }
    .paid-option { height: 48px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 16px; padding: 0 6px; color: #fff; }
    .paid-option-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
    .paid-option-cost { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #ccc; }
    #payOptions .pay-option { width: 100%; height: 104px; padding: 12px; display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(0,0,0,.3); text-align: left; transition: border-color .2s, background .2s; }
    #payOptions .pay-option.selected { border-color: #ffbe0b; background: rgba(255,190,11,.08); }
    .pay-option-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
    .pay-option-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
    .pay-option-name { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; line-height: 20px; white-space: nowrap; }
    .pay-option-price { font-size: 15px; font-weight: 800; line-height: 20px; white-space: nowrap; }
    .pay-option-credits { font-size: 12px; font-weight: 600; line-height: 16px; color: #ddd; white-space: nowrap; }
    .pay-option-unit { font-size: 11px; line-height: 16px; color: #bbb; white-space: nowrap; }
    .pay-option-detail { display: block; font-size: 11px; line-height: 16px; color: #bbb; white-space: nowrap; }
    .pay-option-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #000; background: #ffbe0b; }
    #payOptions .pay-single { grid-template-columns: 40px minmax(0,1fr); }
    .pay-single .pay-option-body { gap: 4px; }
    .pay-single-preview { position: relative; width: 40px; height: 48px; }
    .pay-single-preview > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
    .pay-single-selector { position: absolute; right: -5px; bottom: -5px; }
    .pay-single-title { font-size: 12px; line-height: 15px; color: #ddd; overflow-wrap: anywhere; }

    @media (max-width: 379px) {
      #navSeg .seg-btn { padding-left: 5px; padding-right: 5px; }
      #viewerOrigBtn { font-size: 12px; gap: 5px; }
      #heroCtaRow button { padding-left: 6px; padding-right: 6px; gap: 5px; }
    }
    .field { width: 100%; height: 52px; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; padding: 14px 16px; font-size: 16px; color: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
    .field::placeholder { color: #71717a; }
    .field:focus { border-color: #ffbe0b; box-shadow: 0 0 0 4px rgba(255,190,11,0.12); }
    @media (min-width: 640px) { .field { font-size: 14px; } }

    .otp-cell { width: 100%; height: 64px; text-align: center; font: 700 24px 'Onest', sans-serif; color: #fff; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; outline: none; transition: border-color .15s, box-shadow .15s; }
    #otpCells { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; width:100%; }
    #otpCells .otp-cell { min-width:0; }
    @media (max-width:380px) { #otpCells { gap:5px; } #otpCells .otp-cell { height:50px; border-radius:13px; } }
    .otp-cell:focus { border-color: #ffbe0b; box-shadow: 0 0 0 4px rgba(255,190,11,0.12); }
    .otp-cell.err { border-color: #fb7185; animation: shake .3s; }
    @keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

    /* Первый экран учитывает место, занятое фиксированным доком. */
    :root { --studio-dock-clearance: 126px; }
    #studioPanelInner { min-height: calc(100svh - 80px - env(safe-area-inset-top)); padding-bottom: calc(var(--studio-dock-clearance) + 16px); display: flex; align-items: center; justify-content: center; }
    #heroSection { width: 100%; padding: 16px 0; display: flex; justify-content: center; }
    #heroCompareBox { flex-shrink: 0; }
    #resultsSection { padding-top: 24px; }
    body:not(.has-studio-results):not(.view-assets) { padding-bottom: 0; }
    @media (min-width: 640px) and (max-width: 1023px) {
      #heroCompareBox { width: min(100%, max(340px, calc(100svh - 80px - env(safe-area-inset-top) - var(--studio-dock-clearance) - 48px))); }
    }
    @media (min-width: 1024px) {
      body[data-layout="wide"] { --page-w: 1248px; }
      body[data-layout="wide"] #heroCompareBox { width: min(100%, max(605px, calc((100svh - 80px - env(safe-area-inset-top) - var(--studio-dock-clearance) - 48px) * 16 / 9))); }
      body[data-layout="wide"] #heroTitle { font-size: clamp(32px, calc((100svh - var(--studio-dock-clearance) - 300px) * .15), 60px); }
      body[data-layout="wide"] #heroSub { font-size: clamp(16px, calc((100svh - var(--studio-dock-clearance) - 300px) * .055), 22px); }
    }
    @media (max-width: 639px) {
      #studioPanelInner { display: block; padding-bottom: 0; }
      #heroSection { padding: 0; }
      #heroCompareBox { margin-top: calc(-80px - env(safe-area-inset-top)); height: max(340px, calc(100svh - var(--studio-dock-clearance) - 16px)); }
      #heroCompareBox:not([data-mode="example"]) #heroOverlay { padding-top: calc(112px + env(safe-area-inset-top)); }
      #heroIntro { position: relative; }
    }
    @media (min-width: 1024px) and (max-height: 820px) {
      #floatingLiquidDock #scenesHorizontalStrip { max-height: 180px; overflow-y: auto; }
    }
    @media (max-height: 700px) and (max-width: 639px) {
      #scenesHorizontalStrip .scene-thumb { height: 42px; }
      #scenesHorizontalStrip > div { width: 88px; }
      #scenesHorizontalStrip > div > div:last-child { padding-top: 4px; padding-bottom: 4px; }
      #heroTitle { font-size: 26px; }
      #heroSub { font-size: 12px; }
    }
/* V02: full-bleed compositions, centered type and scroll-connected media. */
:root { --rd-text:#f0f2ed; --rd-muted:#aaa9a3; --rd-rule:#282a25; --rd-green:#ffbe0b; }
html { color-scheme:dark; scroll-padding-top:88px; }
body { background:#000; }
#landing { width:100vw; max-width:none; color:var(--rd-text); }
#landing *,#landing *::before,#landing *::after { box-sizing:border-box; }
#landing .rd-wrap { width:min(calc(100% - 96px),1440px); margin-inline:auto; }
#landing h2 { font:500 clamp(44px,7.4vw,112px)/1.01 Geologica,Onest,sans-serif; letter-spacing:-.04em; text-wrap:balance; margin:0 auto; text-align:center; }
#landing h3 { font:500 28px/1.2 Geologica,Onest,sans-serif; letter-spacing:-.025em; margin:0; }
#landing p { font:400 18px/1.6 Onest,sans-serif; color:var(--rd-muted); margin:0; }
#landing .rd-lead { max-width:760px; margin:32px auto 0; font-size:22px; line-height:1.5; text-align:center; }
#landing .rd-section { padding:130px 0; }
#landing .rd-heading { width:min(calc(100% - 80px),1280px); margin:auto; text-align:center; }
#landing .rd-about { padding-top:110px; }
#landing .rd-about-head { text-align:center; position:relative; z-index:1; max-width:1320px; margin:auto; padding:0 32px; }
#landing .rd-badge { display:inline-block; color:var(--rd-green); font-size:13px; margin-bottom:32px; }
#landing .rd-about h2 { max-width:1200px; font-size:clamp(44px,6.8vw,104px); }
#landing .rd-chips { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:36px; }
#landing .rd-chips span { color:#c8cbbb; font-size:13px; padding:8px 14px; border:1px solid #34372d; border-radius:99px; }
#landing .rd-chips span:first-child { color:var(--rd-green); }
#landing .rd-fan { position:relative; height:600px; max-width:1500px; margin:10px auto 0; overflow:clip; --fan:0; }
#landing .rd-fan img { position:absolute; width:27%; max-width:370px; height:85%; max-height:500px; left:50%; top:45%; border-radius:24px; object-fit:cover; transform-origin:50% 90%; will-change:transform; }
#landing .rd-fan img:nth-child(1) { transform:translate(calc(-50% - var(--fan)*92%),-45%) rotate(calc(-4deg - var(--fan)*15deg)); }
#landing .rd-fan img:nth-child(2) { transform:translate(-50%,-45%) rotate(3deg); z-index:2; }
#landing .rd-fan img:nth-child(3) { transform:translate(calc(-50% + var(--fan)*92%),-45%) rotate(calc(7deg + var(--fan)*13deg)); z-index:1; }
#landing .rd-fan-note { font-size:12px; color:#939887; text-align:center; margin-bottom:48px; }
#landing .rd-difference { width:min(calc(100% - 96px),1240px); margin:auto; }
#landing .rd-difference > h3 { text-align:center; font-size:36px; margin-bottom:42px; }
#landing .rd-difference-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:48px; }
#landing .rd-difference-list article { padding-top:24px; border-top:1px solid var(--rd-rule); }
#landing .rd-difference-list h3 { font-size:24px; }
#landing .rd-difference-list p { margin-top:16px; font-size:16px; }
#landing .rd-notice { display:flex; justify-content:center; gap:24px; width:min(calc(100% - 96px),1000px); margin:60px auto 0; }
#landing .rd-notice b { color:#dbddcf; font:500 13px/1.6 Onest,sans-serif; }
#landing .rd-notice p { font-size:13px; max-width:740px; }
#landing .rd-examples { padding-top:100px; }
#landing .rd-carousel { display:block; width:100%; height:min(760px,84svh); min-height:440px; --arc-background:transparent; --arc-radius:24px; }
#landing .rd-carousel:not(:defined) { display:flex; gap:20px; overflow:hidden; }
#landing .rd-carousel:not(:defined) > * { width:25%; height:75%; object-fit:cover; }
#landing .rd-example-foot { display:flex; flex-direction:column; align-items:center; gap:24px; margin-top:16px; position:relative; }
#landing .rd-small { font-size:12px; color:#aaa; }
#landing .rd-button { border-radius:99px; padding:16px 24px; min-height:52px; color:#11150a; font:600 14px Onest,sans-serif; transition:background .2s,transform .2s; }
#landing .rd-button:hover { transform:translateY(-3px); }
/* V10: the same three scroll-linked acts on desktop and phone. */
#landing .rd-how { padding-bottom:0; }
#landing .rd-process { margin-top:60px; position:relative; --process-top:88px; }
#landing .rd-process-stage { position:relative; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:6%; width:min(calc(100% - 96px),1300px); margin:auto; padding-bottom:64px; }
#landing .rd-process-copy { position:relative; }
#landing .rd-step { padding-block:24px; }
#landing .rd-step h3 { font-size:clamp(32px,3.8vw,56px); max-width:600px; }
#landing .rd-step p { margin-top:26px; max-width:490px; font-size:21px; }
#landing .rd-process-pictures { height:min(650px,calc(100svh - 190px)); min-height:240px; position:relative; }
#landing .rd-process-pictures img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 35%; border-radius:32px; opacity:0; transition:opacity .35s; }
#landing .rd-process-pictures img.is-active { opacity:1; }
#landing .rd-process-progress { display:none; align-items:center; gap:18px; position:absolute; left:0; bottom:24px; width:42%; }
#landing .rd-process-track { display:flex; gap:10px; flex:1; }
#landing .rd-process-track i { position:relative; flex:1; height:4px; background:#45493d; overflow:hidden; border-radius:4px; }
#landing .rd-process-track i.is-active { background:#657a24; }
#landing .rd-process-track i::after { content:''; position:absolute; inset:0; background:var(--rd-green); transform:scaleX(var(--step-progress,0)); transform-origin:left; }
#landing .rd-process-counter { color:#e0e6d6; font:500 12px/20px Onest,sans-serif; font-variant-numeric:tabular-nums; white-space:nowrap; }
#landing .rd-process-note { position:absolute; right:0; bottom:24px; font-size:12px; color:#c6cdbb; }
#landing .rd-process.is-scroll-driven { height:300svh; }
#landing .is-scroll-driven .rd-process-stage { position:sticky; top:var(--process-top); height:calc(100svh - 104px); }
#landing .is-scroll-driven .rd-process-copy { height:340px; }
#landing .is-scroll-driven .rd-step { position:absolute; inset:0; display:flex; justify-content:center; flex-direction:column; padding:0; opacity:0; visibility:hidden; transform:translateY(14px); transition:opacity .3s,transform .4s cubic-bezier(.16,1,.3,1),visibility .3s; pointer-events:none; }
#landing .is-scroll-driven .rd-step.is-active { opacity:1; visibility:visible; transform:none; pointer-events:auto; }
#landing .is-scroll-driven .rd-process-progress { display:flex; }
#landing .rd-features { padding-top:160px; }
#landing .rd-feature-list { margin-top:75px; }
#landing .rd-feature { position:relative; border-top:1px solid var(--rd-rule); }
#landing .rd-feature:last-child { border-bottom:1px solid var(--rd-rule); }
#landing .rd-feature-inner { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:10%; width:min(calc(100% - 96px),1300px); padding:38px 0; min-height:150px; margin:auto; }
#landing .rd-feature h3 { font-size:clamp(32px,3.5vw,54px); transition:transform .4s,color .4s; }
#landing .rd-feature p { max-width:520px; transition:transform .4s; }
#landing .rd-feature img { position:absolute; top:50%; left:45.5%; width:calc(clamp(150px,16vw,240px)*var(--feature-icon-scale,1)); height:auto; aspect-ratio:1; object-fit:contain; border-radius:0; z-index:4; opacity:0; transform:translate(-50%,-40%) rotate(6deg) scale(.9); transition:opacity .3s,transform .5s cubic-bezier(.16,1,.3,1); pointer-events:none; }
@media(hover:hover) { #landing .rd-feature:hover { background:#10130b; } #landing .rd-feature:hover h3 { color:var(--rd-green); transform:translateX(18px); } #landing .rd-feature:hover img { opacity:1; transform:translate(-50%,-50%) rotate(-5deg) scale(1); } }
#landing .rd-video { padding-top:100px; }
#landing .rd-video-scene { min-height:850px; height:110svh; position:relative; display:flex; align-items:center; justify-content:center; overflow:clip; --cinema:0; }
#landing .rd-film { position:absolute; inset:0; margin:0; pointer-events:none; clip-path:inset(calc((1 - var(--cinema))*10%) calc((1 - var(--cinema))*9%) round 36px); }
#landing .rd-film video { width:100%; height:100%; object-fit:cover; background:#151710; pointer-events:none; }
#landing .rd-film video::-webkit-media-controls,
#landing .rd-film video::-webkit-media-controls-start-playback-button { display:none!important; }
#landing .rd-film::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,#000 0%,#0009 25%,#0005 80%,#0006); pointer-events:none; }
#landing .rd-video-scene .rd-heading { position:relative; z-index:1; pointer-events:none; }
#landing .rd-video h2 { font-size:clamp(52px,10.5vw,160px); }
#landing .rd-video .rd-lead { color:#e5e9df; max-width:740px; }
#landing .rd-film figcaption { position:absolute; z-index:2; bottom:40px; left:50%; transform:translateX(-50%); white-space:nowrap; font-size:12px; color:#cdd3c4; }
/* The next colored card covers the previous one, leaving its upper edge visible. */
#landing .rd-video-list { display:grid; gap:24svh; width:min(calc(100% - 96px),1300px); margin:40px auto 0; padding-bottom:32svh; }
#landing .rd-video-card { position:sticky; top:calc(104px + var(--card-index)*24px); z-index:calc(1 + var(--card-index)); display:flex; flex-direction:column; justify-content:space-between; gap:32px; height:clamp(320px,54svh,490px); padding:48px 56px; margin:0; border-radius:28px; background:#ffbe0b; color:#172006; box-shadow:0 20px 48px #0005; transform:scale(calc(1 - var(--stack-depth,0)*.04)); transform-origin:center top; }
#landing .rd-video-card:nth-child(2) { background:#bba4fb; color:#201630; }
#landing .rd-video-card:nth-child(3) { background:#ff9b61; color:#331808; margin-bottom:0; }
#landing .rd-video-list .rd-video-card h3 { color:inherit; font-size:clamp(36px,5vw,72px); }
#landing .rd-video-list .rd-video-card p { color:inherit; margin:0; max-width:780px; font-size:clamp(22px,2.5vw,34px); line-height:1.4; }
#landing .rd-interpretation { padding-top:180px; }
#landing .rd-interpretation h2 { max-width:1250px; font-size:clamp(42px,6.3vw,96px); }
#landing .rd-prose { max-width:1180px; margin:80px auto 0; text-align:center; }
#landing .rd-prose p { font-size:clamp(24px,3vw,44px); line-height:1.35; letter-spacing:-.025em; margin-bottom:100px; color:#e2e6d9; }
#landing .rd-prose p:nth-child(2) { font-size:clamp(30px,4.3vw,64px); line-height:1.18; color:#d8edb2; }
#landing .rd-prose p:nth-child(3) { max-width:800px; margin:0 auto; font-size:20px; line-height:1.6; color:#b2b7aa; letter-spacing:0; }
#landing .rd-lit-word { opacity:.7; transition:opacity .15s; }
#landing .rd-faq { padding-top:80px; }
#landing .rd-faq-list { width:min(calc(100% - 96px),1100px); margin:70px auto 0; }
#landing details { border-bottom:1px solid var(--rd-rule); }
#landing details:first-child { border-top:1px solid var(--rd-rule); }
#landing summary { display:flex; align-items:center; justify-content:space-between; gap:30px; cursor:pointer; list-style:none; font:400 27px/1.4 Onest,sans-serif; padding:32px 0; }
#landing summary::-webkit-details-marker { display:none; }
#landing summary::after { content:'+'; font-size:32px; color:var(--rd-green); transition:transform .3s; }
#landing details[open] summary::after { transform:rotate(45deg); }
#landing details p { max-width:890px; padding:0 50px 36px 0; }
#landing .rd-footer { padding:80px 0 32px; }
#landing .rd-wordmark { font:500 clamp(32px,12vw,210px)/1.1 Geologica,Onest,sans-serif; text-align:center; letter-spacing:-.04em; margin:0 auto 80px; overflow:clip; }
#landing .rd-footer-content { width:min(calc(100% - 96px),1300px); margin:auto; }
#landing .rd-footer-content > h2 { font:400 16px Onest,sans-serif; text-align:left; letter-spacing:0; margin-bottom:36px; }
#landing .rd-footer-grid { display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:7%; }
#landing .rd-footer h3 { font-size:21px; margin-bottom:16px; }
#landing .rd-footer p { font-size:14px; }
#landing .rd-telegram { display:inline-flex; align-items:center; justify-content:center; text-align:center; gap:12px; width:auto; min-height:48px; padding:12px 20px; border-radius:99px; color:#161813; background:#f0f2ed; font:500 14px/1.4 Onest,sans-serif; transition:background .2s,transform .2s; }
#landing .rd-telegram:hover { background:#dfe4d7; transform:translateY(-2px); }
#landing .rd-telegram span { font-size:18px; }
#landing .rd-copyright { margin-top:65px; padding-top:24px; border-top:1px solid var(--rd-rule); font-size:12px; }
#landing .rd-reveal { opacity:1; transform:none; }
body.rd-motion #landing .rd-reveal:not(.is-visible) { opacity:.2; transform:translateY(38px); }
body.rd-motion #landing .rd-reveal { transition:opacity .8s cubic-bezier(.16,1,.3,1),transform 1s cubic-bezier(.16,1,.3,1); }
#landing :focus-visible { outline:2px solid var(--rd-green); outline-offset:5px; }
#landing [id] { scroll-margin-top:0; }
#floatingLiquidDock { transition:opacity .2s,visibility .2s; }
body.rd-reading #floatingLiquidDock,body.rd-reading #bottomFade { opacity:0; visibility:hidden; pointer-events:none; }
body.view-assets #landing { display:none; }
body:not(.view-assets) { padding-bottom:0!important; }
body.rd-reading #headerWrap header { background-color:rgba(7,8,6,.93); }
@keyframes rd-opening { from { clip-path:inset(22% 8% round 40px); opacity:.6; } to { clip-path:inset(0 0 round 40px); opacity:1; } }
@media(prefers-reduced-motion:no-preference) { body:not(.rd-intro-played) #heroCompareBox { animation:rd-opening 1.2s cubic-bezier(.16,1,.3,1) both; } }
@media(min-width:640px) { #headerWrap .font-display { font-size:14px; } }
@media(max-width:1023px) {
 #landing .rd-wrap,#landing .rd-difference,#landing .rd-video-list,#landing .rd-footer-content { width:calc(100% - 48px); }
 #landing .rd-section { padding:100px 0; }
 #landing .rd-fan { height:480px; }
 #landing .rd-difference-list { gap:24px; }
 #landing .rd-feature-inner { width:calc(100% - 64px); gap:6%; }
 #landing .rd-video-scene { min-height:660px; height:90svh; }
}
@media(max-width:639px) {
 #landing .rd-section { padding:76px 0; }
 #landing .rd-wrap,#landing .rd-difference,#landing .rd-heading,#landing .rd-about-head,#landing .rd-footer-content { width:calc(100% - 32px); padding-inline:0; }
 #landing h2 { font-size:42px; }
 #landing .rd-about h2 { font-size:clamp(34px,10.6vw,42px); }
 #landing .rd-lead { font-size:18px; margin-top:26px; }
 #landing .rd-badge { font-size:12px; margin-bottom:28px; }
 #landing .rd-chips { gap:7px; margin-top:28px; }
 #landing .rd-chips span { font-size:11px; padding:7px 10px; }
 #landing .rd-fan { height:390px; margin-top:25px; }
 #landing .rd-fan img { width:47%; height:75%; border-radius:16px; }
 #landing .rd-fan img:nth-child(1) { transform:translate(calc(-50% - var(--fan)*58%),-45%) rotate(calc(-4deg - var(--fan)*15deg)); }
 #landing .rd-fan img:nth-child(3) { transform:translate(calc(-50% + var(--fan)*58%),-45%) rotate(calc(7deg + var(--fan)*13deg)); }
 #landing .rd-fan-note { margin-top:-20px; margin-bottom:40px; }
 #landing .rd-difference > h3 { font-size:28px; }
 #landing .rd-difference-list { grid-template-columns:1fr; gap:28px; text-align:center; }
 #landing .rd-difference-list h3 { font-size:23px; }
 #landing .rd-difference-list p { font-size:16px; }
 #landing .rd-notice { width:calc(100% - 40px); flex-direction:column; gap:10px; text-align:center; margin-top:36px; }
 #landing .rd-carousel { height:480px; min-height:400px; }
 #landing .rd-example-foot { margin-top:16px; }
 #landing .rd-example-foot .rd-button { min-width:200px; font-size:14px; padding:14px 24px; }
 #landing .rd-feature-list { margin-top:44px; }
 #landing .rd-feature-inner { width:calc(100% - 40px); grid-template-columns:1fr; gap:18px; text-align:center; padding:30px 0; }
 #landing .rd-feature h3 { font-size:34px; }
 #landing .rd-feature p { font-size:16px; }
 #landing .rd-feature img { display:none; }
 #landing .rd-video-scene { min-height:620px; height:85svh; }
 #landing .rd-video h2 { font-size:64px; }
 #landing .rd-video .rd-lead { font-size:18px; }
 #landing .rd-film { clip-path:inset(calc((1 - var(--cinema))*4%) calc((1 - var(--cinema))*4%) round 24px); }
 #landing .rd-film figcaption { bottom:28px; }
 #landing .rd-prose { width:calc(100% - 40px); margin-top:44px; }
 #landing .rd-prose p { font-size:25px; margin-bottom:50px; }
 #landing .rd-prose p:nth-child(2) { font-size:31px; }
 #landing .rd-prose p:nth-child(3) { font-size:17px; }
 #landing .rd-faq-list { width:calc(100% - 40px); margin-top:44px; }
 #landing summary { font-size:20px; gap:20px; padding:25px 0; }
 #landing details p { font-size:16px; padding-right:14px; }
 #landing .rd-wordmark { font-size:11.2vw; margin-bottom:48px; }
 #landing .rd-footer-grid { grid-template-columns:1fr; gap:32px; text-align:center; }
 #landing .rd-footer-content > h2 { text-align:center; }
 #landing .rd-footer h3 { font-size:22px; }
 #landing .rd-telegram { align-items:center; }
 #landing .rd-copyright { font-size:11px; text-align:center; line-height:1.6; margin-top:40px; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 #landing *,#heroCompareBox { animation:none!important; transition:none!important; }
 #landing .rd-reveal { opacity:1!important; transform:none!important; }
 #landing .rd-fan { --fan:.65!important; }
 #landing .rd-video-scene { --cinema:1!important; }
}
/* V05: normal case, a slightly larger display scale, and one-shot word blur. */
#landing h2 { font-size:clamp(44px,7.8vw,120px); }
#landing .rd-about h2 { font-size:clamp(44px,7.2vw,112px); }
#landing .rd-interpretation h2 { font-size:clamp(42px,6.7vw,102px); }
#landing .rd-footer-content > h2 { font-size:16px; }
#heroCompareBox { animation:none !important; }
#landing .rd-blur-text.rd-reveal { opacity:1 !important; transform:none !important; transition:none !important; }
#landing .rd-blur-word { display:inline-block; transition-property:filter,transform,opacity; transition-duration:var(--blur-duration); transition-delay:var(--blur-delay); transition-timing-function:cubic-bezier(.25,.46,.45,.94); filter:none; transform:none; opacity:1; backface-visibility:hidden; }
@media(prefers-reduced-motion:no-preference) {
 #landing .rd-blur-text:not(.rd-blur-visible) .rd-blur-word { opacity:0; filter:blur(10px) brightness(.6); transform:translateY(18px) scale(var(--blur-scale)) rotateX(-12deg); will-change:filter,transform,opacity; }
}
@media(max-width:639px) {
 #landing h2 { font-size:clamp(36px,11.3vw,46px); }
 #landing .rd-about h2 { font-size:clamp(36px,10.9vw,44px); }
 #landing .rd-interpretation h2 { font-size:clamp(34px,10.5vw,43px); }
 #landing .rd-footer-content > h2 { font-size:16px; }
}
/* V07: static decorative dot pattern adapted from the supplied React component. */
.rd-page-dots { position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; fill:rgba(148,163,184,.3); mask-image:radial-gradient(ellipse 78% 80% at 50% 44%,#000 25%,transparent 100%); -webkit-mask-image:radial-gradient(ellipse 78% 80% at 50% 44%,#000 25%,transparent 100%); }
#landing { --rd-muted:#edf0e7; }
#landing p { color:#edf0e7; }
#landing .rd-lead { color:#f1f3ed; }
#landing .rd-prose p:nth-child(3) { color:#edf0e7; }
#landing .rd-small,#landing .rd-fan-note,#landing .rd-process-note { color:#c6cdbb; }
#landing .rd-example-foot { margin-top:20px; gap:28px; }
#landing .rd-example-foot .rd-button { position:relative; display:inline-flex; align-items:center; justify-content:space-between; gap:48px; width:min(100% - 64px,960px); min-height:148px; padding:28px 56px; border-radius:999px; font:500 clamp(28px,3.1vw,46px)/1.15 Geologica,Onest,sans-serif; text-align:left; transform:translateY(0); transition:transform .25s cubic-bezier(.16,1,.3,1),background .25s; }
#landing .rd-example-foot .rd-button::after { content:'↗'; font:400 1.2em/1 Onest,sans-serif; flex-shrink:0; transition:transform .3s cubic-bezier(.16,1,.3,1); }
#landing .rd-example-foot .rd-button:hover { transform:translateY(-5px); }
#landing .rd-example-foot .rd-button:hover::after { transform:translate(5px,-5px); }
#landing .rd-example-foot .rd-button:active { transform:translateY(-1px) scale(.985); }
#landing .rd-example-foot .rd-button:focus-visible { outline:3px solid #f5f7ee; outline-offset:7px; }
@media(max-width:639px) {
 .rd-page-dots { fill:rgba(148,163,184,.24); }
 #landing .rd-example-foot .rd-button { width:calc(100% - 32px); min-width:0; min-height:96px; gap:18px; padding:24px 28px; font-size:clamp(22px,6.2vw,28px); }
}
@media(prefers-reduced-motion:reduce) { #landing .rd-example-foot .rd-button,#landing .rd-example-foot .rd-button::after { transition:none;transform:none; } }
/* V08: generator-scale actions and selective mobile alignment. */
#landing .rd-example-foot .rd-button { justify-content:center; width:auto; min-width:280px; min-height:64px; padding:16px 32px; gap:18px; border-radius:999px; font:600 20px/1.25 Onest,sans-serif; }
#landing .rd-example-foot .rd-button::after { font-size:23px; }
#landing .rd-example-foot .rd-button:hover { transform:translateY(-2px); }
#landing .rd-example-foot .rd-button:hover::after { transform:translate(2px,-2px); }
#landing .rd-footer-telegram { display:flex; flex-direction:column; align-items:center; text-align:center; }
#landing .rd-footer-telegram[hidden] { display:none!important; }
#landing .rd-footer-telegram .rd-telegram { min-width:250px; min-height:60px; padding:16px 26px; font-size:17px; }
@media(max-width:639px) {
 #landing .rd-example-foot .rd-button { width:calc(100% - 32px); min-width:0; min-height:56px; padding:14px 22px; font-size:16px; gap:14px; }
 #landing .rd-example-foot .rd-button::after { font-size:20px; }
 #landing .rd-difference > h3,#landing .rd-difference-list,#landing .rd-notice { text-align:left; }
 #landing .rd-step,#landing .rd-feature-inner,#landing .rd-video-list { text-align:left; }
 #landing .rd-prose { text-align:left; }
 #landing .rd-prose p:nth-child(3) { margin-left:0; }
 #landing .rd-faq .rd-heading h2 { text-align:left; }
 #landing .rd-faq .rd-heading { width:calc(100% - 40px); }
 #landing .rd-footer-grid,#landing .rd-footer-content > h2,#landing .rd-copyright { text-align:left; }
 #landing .rd-footer-telegram { align-items:stretch; text-align:left; }
 #landing .rd-footer-telegram .rd-telegram { width:100%; min-width:0; min-height:56px; padding:14px 20px; font-size:16px; }
}

@media(min-width:1024px) {
 #landing .rd-footer-grid { grid-template-columns:minmax(0,1fr) 280px minmax(0,1fr); gap:6%; }
 #landing .rd-footer-telegram { grid-column:2; grid-row:1; }
 #landing .rd-footer-grid > article:nth-child(2) { grid-column:1; grid-row:1; }
 #landing .rd-footer-grid > article:nth-child(3) { grid-column:3; grid-row:1; }
}
@media(min-width:640px) and (max-width:1023px) {
 #landing .rd-footer-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 #landing .rd-footer-telegram { grid-column:1 / -1; }
}
/* V09: a quiet footer, one central action and two compact notes. */
#landing .rd-wordmark { margin-bottom:48px; }
#landing .rd-footer-grid { align-items:center; }
#landing .rd-footer-note { max-width:360px; }
#landing .rd-footer-label { display:block; color:#b5bda9; font:500 13px/1.5 Onest,sans-serif; margin-bottom:8px; }
#landing .rd-footer-note p { color:#dce2d2; font-size:14px; line-height:1.6; }
@media(max-width:639px) {
 #landing .rd-footer-grid { gap:26px; }
 #landing .rd-wordmark { margin-bottom:36px; }
 #landing .rd-footer-note { max-width:none; }
 #landing .rd-footer-label { margin-bottom:6px; }
}

/* V10: align headings to their copy, and give the closing wordmark its own space. */
#landing .rd-footer { padding-top:0; }
#landing .rd-footer-brand { min-height:62svh; padding:96px 24px 120px; display:grid; place-items:center; }
#landing .rd-footer-brand .rd-wordmark { width:100%; margin:0; }
#landing .rd-footer-grid { row-gap:40px; }
@media(min-width:640px) and (max-width:1023px) {
 #landing .rd-process-stage { width:calc(100% - 64px); gap:32px; }
 #landing .rd-process-pictures { height:min(600px,65svh); }
 #landing .rd-step p { font-size:18px; }
 #landing .rd-video-card { padding:40px; }
}
@media(max-width:639px) {
 #landing .rd-features .rd-heading,#landing .rd-interpretation .rd-heading { width:calc(100% - 40px); text-align:left; }
 #landing .rd-features .rd-heading h2,#landing .rd-interpretation .rd-heading h2,#landing .rd-features .rd-lead { text-align:left; }
 #landing .rd-process { margin-top:40px; --process-top:80px; }
 #landing .rd-process-stage { width:calc(100% - 32px); grid-template-columns:1fr; gap:20px; padding-bottom:32px; }
 #landing .rd-process-pictures { grid-row:1; height:360px; }
 #landing .rd-process-pictures img { border-radius:22px; }
 #landing .rd-step h3 { font-size:29px; }
 #landing .rd-step p { margin-top:14px; max-width:none; font-size:17px; }
 #landing .rd-process-note { position:static; text-align:right; font-size:11px; }
 #landing .is-scroll-driven .rd-process-stage { height:calc(100svh - 96px); grid-template-rows:minmax(0,1fr) 190px 20px 16px; gap:12px; padding-bottom:0; }
 #landing .is-scroll-driven .rd-process-pictures { height:100%; min-height:0; }
 #landing .is-scroll-driven .rd-process-copy { height:190px; }
 #landing .is-scroll-driven .rd-process-progress { position:static; width:100%; }
 #landing .rd-video-list { width:calc(100% - 32px); gap:22svh; margin-top:24px; padding-bottom:28svh; }
 #landing .rd-video-card { top:calc(88px + var(--card-index)*18px); height:clamp(280px,54svh,440px); padding:28px; border-radius:22px; gap:24px; }
 #landing .rd-video-list .rd-video-card h3 { font-size:clamp(32px,8.5vw,42px); }
 #landing .rd-video-list .rd-video-card p { font-size:20px; }
 #landing .rd-footer-brand { min-height:48svh; padding:72px 16px 96px; }
 #landing .rd-footer-grid { gap:36px; }
}
@media(prefers-reduced-motion:reduce),(max-height:539px) {
 #landing .rd-video-list { gap:24px; padding-bottom:0; }
 #landing .rd-video-card { position:relative; top:auto; height:auto; min-height:280px; transform:none; }
}
/* V11: responsive typography; the original wording and spaces stay intact. */
#landing p { text-wrap:pretty; }
#heroSub,#landing .rd-lead,#landing .rd-difference-list p,#landing .rd-step p,
#landing .rd-feature p,#landing .rd-video-card p,#landing .rd-footer-note p { text-wrap:balance; }
#landing .rd-keep { white-space:nowrap; }
#landing .rd-how .rd-lead,#landing .rd-features .rd-lead { max-width:840px; }
#landing .rd-feature p { max-width:560px; }
#landing .rd-video-list .rd-video-card p { max-width:860px; }
@media(max-width:639px) {
 #landing .rd-video-card { padding-inline:24px; }
}
/* V13: share the mobile display size with the platform section. */
.rd-hero-mobile-title { display:none; }
@media(max-width:639px) {
 :root { --rd-mobile-display:clamp(36px,10.9vw,44px); }
 .rd-hero-mobile-title { display:inline; }
 .rd-hero-desktop-title { display:none; }
 #heroCompareBox[data-mode="example"] { min-height:400px; }
 #heroTitle,#landing .rd-about h2 { font-size:var(--rd-mobile-display); }
 #heroTitle { font-family:Geologica,Onest,sans-serif!important; font-weight:500; line-height:1.01; letter-spacing:-.04em; text-wrap:balance; margin-bottom:18px; }
 #heroSub { font:400 18px/1.5 Onest,sans-serif; color:#fff; max-width:none; margin:0; }
}
@media(max-width:639px) and (max-height:540px) {
 #heroCompareBox[data-mode="example"] { min-height:350px; }
 #heroCompareBox[data-mode="example"] #heroOverlay { padding-top:112px; padding-bottom:68px; }
 #heroTrialBadge { margin-bottom:2px; }
 #heroTitle { margin-bottom:4px; }
}
/* V14: one transparent 3D scene; matching posters cover static/fallback modes. */
#landing .rd-process-models { background:transparent; }
#landing .rd-process-models .rd-model-canvas { position:absolute; inset:0; display:block; width:100%; height:100%; opacity:0; pointer-events:none; }
#landing .rd-model-posters { position:absolute; inset:0; }
#landing .rd-model-posters img { object-fit:contain; border-radius:0; }
#landing .is-scroll-driven .is-webgl .rd-model-canvas { opacity:1; }
#landing .is-scroll-driven .is-webgl .rd-model-posters { visibility:hidden; }
#landing .rd-process:not(.is-scroll-driven) .rd-process-models { min-height:0; height:auto; aspect-ratio:3 / 1; }
#landing .rd-process:not(.is-scroll-driven) .rd-model-posters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; }
#landing .rd-process:not(.is-scroll-driven) .rd-model-posters img { position:static; display:block; width:100%; height:100%; opacity:1; }
/* V16: the wordmark sits in front of the same-sized strawberry. */
#landing .rd-footer-brand { min-height:0; display:grid; place-items:center; isolation:isolate; padding:80px 24px 56px; }
#landing .rd-footer-brand .rd-wordmark { grid-area:1 / 1; position:relative; z-index:2; pointer-events:none; }
#landing .rd-footer-berry { grid-area:1 / 1; z-index:0; position:relative; width:min(100%,920px); height:min(72svh,680px); background:transparent; }
#landing .rd-footer-berry img,#landing .rd-footer-berry canvas { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; }
#landing .rd-footer-berry-poster { object-fit:contain; }
#landing .rd-footer-berry canvas { opacity:0; }
#landing .rd-footer-berry.is-webgl canvas { opacity:1; }
#landing .rd-footer-berry.is-webgl .rd-footer-berry-poster { visibility:hidden; }
@media(max-width:639px) {
 #landing .rd-footer-brand { padding:64px 16px 48px; }
 #landing .rd-footer-berry { height:clamp(320px,118vw,540px); }
}
@media(prefers-reduced-motion:reduce) {
 #landing .rd-footer-berry.is-webgl canvas { opacity:0; }
 #landing .rd-footer-berry.is-webgl .rd-footer-berry-poster { visibility:visible; }
}
/* V17: a transparent particle layer spans the pinned stage behind its copy. */
#landing .rd-process.is-scroll-driven { height:380svh; }
#landing .is-scroll-driven .rd-process-stage { display:block; width:100%; padding:0; isolation:isolate; overflow:clip; }
#landing .is-scroll-driven .rd-process-models { position:absolute; inset:0; width:100%; height:100%; min-height:0; z-index:0; pointer-events:none; }
#landing .is-scroll-driven .rd-process-copy { position:absolute; z-index:1; left:max(48px,calc((100% - 1300px)/2)); top:0; bottom:80px; width:min(42%,540px); height:auto; }
#landing .is-scroll-driven[data-step="1"] .rd-process-copy { left:auto; right:max(48px,calc((100% - 1300px)/2)); }
#landing .is-scroll-driven .rd-process-progress { z-index:1; left:max(48px,calc((100% - 1300px)/2)); width:min(40%,520px); }
#landing .is-scroll-driven .rd-process-note { z-index:1; right:max(48px,calc((100% - 1300px)/2)); }
#landing .is-scroll-driven .rd-model-posters { left:52%; width:44%; }
#landing .is-scroll-driven[data-step="1"] .rd-model-posters { left:4%; }
@media(max-width:899px) {
 #landing .is-scroll-driven .rd-process-copy,#landing .is-scroll-driven[data-step="1"] .rd-process-copy { left:16px; right:16px; top:auto; bottom:64px; height:190px; width:auto; max-width:700px; margin-inline:auto; }
 #landing .is-scroll-driven .rd-step h3 { font-size:29px; }
 #landing .is-scroll-driven .rd-step p { font-size:17px; margin-top:14px; }
 #landing .is-scroll-driven .rd-process-progress { position:absolute; left:16px; right:16px; bottom:32px; width:auto; }
 #landing .is-scroll-driven .rd-process-note { position:absolute; right:16px; bottom:8px; font-size:11px; }
 #landing .is-scroll-driven .rd-model-posters,#landing .is-scroll-driven[data-step="1"] .rd-model-posters { inset:0 16px 260px; width:auto; }
}

/* V18: preloaded art stays hidden at the heading, then assembles into view. */
#landing .rd-process-models { opacity:0; }
#landing .is-scroll-driven .rd-process-models { opacity:var(--process-art-opacity,0); }
@media(prefers-reduced-motion:reduce),(max-height:539px) {
 #landing .rd-process:not(.is-scroll-driven) .rd-process-models { opacity:1; }
}
/* Narrow mouse layouts keep the floating art in the gap between text columns. */
@media(min-width:640px) and (max-width:899px) {
 #landing .rd-feature img { left:46%; width:calc(112px*var(--feature-icon-scale,1)); }
}
@media(min-width:640px) and (max-width:899px) and (hover:hover) {
 #landing .rd-feature:hover h3 { transform:translateX(12px); }
}

/* V21: mobile feature icons stay visible in normal document flow. */
@media(max-width:639px) {
 #landing .rd-feature { display:flex; flex-direction:column; align-items:flex-start; gap:16px; padding:30px 20px; }
 #landing .rd-feature-inner { width:100%; min-height:0; margin:0; padding:0; }
 #landing .rd-feature img,#landing .rd-feature:hover img { display:block; position:static; order:-1; width:calc(112px*var(--feature-icon-scale,1)); height:auto; opacity:1; transform:none; transition:none; z-index:auto; }
}

#landing { position:relative; left:50%; transform:translateX(-50%); margin:0; }
/* Match the current “Создать свой кадр” button; keep secondary and primary distinct. */
#showMoreContainer.rd-results-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:24px; }
#showMoreContainer.hidden { display:none; }
#showMoreContainer .rd-results-button { display:inline-flex; align-items:center; justify-content:center; gap:18px; min-width:280px; min-height:64px; padding:16px 32px; border-radius:999px; font:600 20px/1.25 Onest,sans-serif; text-align:center; transition:transform .25s cubic-bezier(.16,1,.3,1),background .25s; }
#showMoreContainer .rd-more { color:#f4f4f5; background:#202124; border:1px solid #3f4044; }
#showMoreContainer .rd-more:hover { background:#2c2d31; }
#showMoreContainer .rd-results-button::after { content:'↗'; font:400 23px/1 Onest,sans-serif; flex-shrink:0; }
#showMoreContainer .rd-more::after { content:'↓'; }
#showMoreContainer .rd-more[aria-expanded="true"]::after { content:'↑'; }
#showMoreContainer .rd-results-button:hover { transform:translateY(-2px); }
#showMoreContainer .rd-results-button:active { transform:translateY(-1px) scale(.985); }
#showMoreContainer .rd-results-button:focus-visible { outline:3px solid #f5f7ee; outline-offset:7px; }
@media(max-width:639px) {
 #showMoreContainer.rd-results-actions { flex-direction:column; gap:12px; }
 #showMoreContainer .rd-results-button { width:100%; min-width:0; min-height:56px; padding:14px 22px; font-size:16px; gap:14px; }
 #showMoreContainer .rd-results-button::after { font-size:20px; }
}
@media(prefers-reduced-motion:reduce) {
 #showMoreContainer .rd-results-button { transition:none; transform:none; }
}

/* Account composition measured from Figma 4604:4023. Shared modal rules follow. */
#sheet-account .rd-account-close { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:#fff; }
#sheet-account .rd-account-content { display:flex; flex-direction:column; gap:24px; }
#sheet-account .rd-account-number-stage { height:200px; flex-shrink:0; display:flex; align-items:center; justify-content:center; width:100%; }
#accSheetCredits { color:#fff; font:900 100px/1 Onest,sans-serif; letter-spacing:-.025em; font-variant-numeric:tabular-nums; white-space:nowrap; }
#sheet-account .rd-account-summary { text-align:center; }
#sheet-account #accSheetCreditsHint { margin-top:16px; font:500 14px/20px Onest,sans-serif; color:#fff; white-space:nowrap; }
#sheet-account .rd-account-email { align-self:center; position:relative; min-width:0; max-width:100%; min-height:44px; margin:-9.5px 0; padding:9.5px 0; font:500 16px/25px Onest,sans-serif; color:#fff; overflow-wrap:anywhere; text-align:center; }
#sheet-account .rd-account-email:hover:not(:disabled) { text-decoration:underline; text-underline-offset:4px; }
#sheet-account .rd-account-email:disabled { opacity:1; cursor:default; }
#sheet-account .rd-current-email { margin-top:24px; font:500 14px/20px Onest,sans-serif; color:#fff; overflow-wrap:anywhere; text-align:center; }
#accEmailForm { margin-top:24px; }
#accLogoutTitle:focus,#accEmailTitle:focus { outline:none; }

/* Figma: solid #111013, 440/32 shell, 32 padding, 56/999 buttons and 12 gap. */
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-panel { width:100%; min-height:0; background:#111013; border:0; border-radius:32px 32px 0 0; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-panel::before { display:none; }
:is(#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-grab { position:absolute; inset:0 0 auto; height:64px; z-index:10; }
:is(#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-head { min-height:0; padding:0; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-head > button[data-sheet-close] { position:absolute; top:20px; right:22px; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-body { padding:0; min-height:0; overflow:hidden; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-step:not(.hidden) { flex:1 1 auto; min-height:0; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .rd-modal-step-content { padding:32px; min-height:0; flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-actions { display:flex; flex-direction:column; flex-shrink:0; padding:32px; margin:0; gap:12px; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-footer { background:#111013; border:0; padding:32px; border-radius:0 0 32px 32px; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-hero { padding:0; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-title { color:#fff; font:700 20px/32px Onest,sans-serif; letter-spacing:0; text-align:center; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-text { margin:16px 0 0; color:#fff; font:500 14px/20px Onest,sans-serif; max-width:100%; text-align:center; overflow-wrap:anywhere; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-section { margin-top:24px; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .rd-modal-art { width:180px; height:180px; flex-shrink:0; display:flex; align-items:center; justify-content:center; margin:0 auto 24px; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .rd-modal-art img { width:128px; height:128px; object-fit:contain; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet { width:100%; height:56px; min-height:56px; border:0; border-radius:999px; padding:8px 24px; gap:8px; color:#fff; background:transparent; box-shadow:none; font:600 16px/24px Onest,sans-serif; transform:none; transition:background .15s,opacity .15s; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet::before,:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet::after { display:none; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet.lg-lime { background:#ffbe0b; color:#0a0a0a; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet.lg-lime:hover { background:#ffadd0; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet:not(.lg-lime):hover { background:rgba(255,255,255,.04); }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet:active { opacity:.8; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet:disabled { opacity:.55; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet span { font:inherit; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .field,:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .otp-cell { height:56px; background:#1d1b21; border:0; border-radius:16px; box-shadow:none; color:#fff; outline:2px solid transparent; outline-offset:2px; font-size:16px; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .field::placeholder { color:#a9a5b1; opacity:1; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .field:focus,:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .otp-cell:focus { outline-color:#ffbe0b; box-shadow:none; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .field[aria-invalid=true] { outline-color:#ff9aaa; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal button:focus-visible { outline:2px solid #fff; outline-offset:3px; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .rd-modal-field-label { display:block; margin-bottom:8px; font:500 14px/20px Onest,sans-serif; color:#fff; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .rd-modal-error { margin-top:12px; font:500 14px/20px Onest,sans-serif; color:#ff9aaa; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .rd-modal-pending { margin-top:16px; color:#ffd7dc; font:500 14px/20px Onest,sans-serif; }
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .rd-modal-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#accLogoutTitle:focus,#saveSheetTitle:focus,#sheet-login .sheet-title:focus { outline:none; }
#sheet-login #loginBackBtn { position:absolute; left:24px; top:20px; }
#sheet-login .sheet-actions > p { color:#ddd9e4; font:500 14px/20px Onest,sans-serif; padding:0; margin:0; text-align:center; }
#sheet-login #loginMergedNote { color:#fff; border:0; background:#1d1b21; font-size:14px; }
#sheet-login #loginStep-success .sheet-section > div { background:#1d1b21; border:0; }
#sheet-login #loginStep-success .sheet-section > div > div:first-child { color:#ddd9e4; font-size:14px; }
#sheet-save #saveEmailSubmit { margin:0; }
#sheet-save #saveTelegramBtn { background:transparent; color:#fff; }
#sheet-pay.rd-modal .sheet-grab { position:relative; }
#sheet-pay.rd-modal .sheet-head { min-height:0; padding:20px 22px 0 32px; }
#sheet-pay .rd-pay-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px; width:100%; min-width:0; min-height:40px; padding-right:52px; }
#sheet-pay.rd-modal #payTitle { display:flex; align-items:center; min-height:40px; padding:0; text-align:left; white-space:nowrap; }
#sheet-pay .rd-pay-current { display:inline-flex; align-items:center; gap:2px; padding:2px 6px; border-radius:999px; background:rgba(255,255,255,.1); color:#fff; font:700 13px/20px Onest,sans-serif; white-space:nowrap; }
#sheet-pay.rd-modal .sheet-body { overflow-y:auto; padding:24px 32px 0; }
#sheet-pay .rd-pay-note { margin-top:12px; font:500 14px/20px Onest,sans-serif; color:#fff; text-align:center; }
#sheet-pay .rd-pay-balance { padding:0 0 8px; }
#sheet-pay .rd-pay-balance-intro { color:#fff; font:500 16px/24px Onest,sans-serif; }
#sheet-pay .rd-pay-balance-action { display:flex; align-items:center; gap:16px; margin-top:24px; padding:16px; border-radius:20px; background:#1d1b21; }
#sheet-pay .rd-pay-balance-action img { width:64px; height:80px; flex-shrink:0; border-radius:12px; object-fit:cover; }
#sheet-pay .rd-pay-balance-action > div { min-width:0; }
#sheet-pay #payBalanceActionTitle { color:#fff; font:700 16px/22px Onest,sans-serif; overflow-wrap:anywhere; }
#sheet-pay #payBalanceCost { margin-top:8px; color:#ffbe0b; font:600 14px/20px Onest,sans-serif; }
#sheet-pay .rd-pay-balance-remaining { margin-top:24px; color:#fff; font:500 14px/20px Onest,sans-serif; }
#sheet-pay .rd-pay-balance-toggle { margin-top:12px; }
#sheet-pay.rd-modal .sheet-footer { padding-top:20px; }
#sheet-pay #payAuthBody > [data-auth] { grid-area:1 / 1; min-width:0; }
#sheet-pay #payAuthBody > [data-auth="email"].invisible :is(#payEmailError,#payTypo) { display:none; }
#sheet-pay .rd-pay-telegram { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:56px; padding:14px 16px; border:0; border-radius:16px; background:#087bb5; color:#fff; font:600 16px/24px Onest,sans-serif; cursor:pointer; transition:background .15s; }
#sheet-pay .rd-pay-telegram:hover { background:#076a9c; }
#sheet-pay .rd-pay-telegram:active { background:#065d89; }
#sheet-pay .rd-pay-telegram-icon { display:flex; align-items:center; justify-content:center; width:20px; height:20px; flex-shrink:0; color:#fff; }
#sheet-pay .rd-pay-telegram > span:last-child { color:#fff; }
#sheet-pay .rd-pay-login { display:flex; align-items:center; justify-content:center; gap:4px; width:100%; min-height:44px; margin:0 0 12px; padding:10px 0; color:#fff; font:500 15px/24px Onest,sans-serif; }
#sheet-pay .rd-pay-login span { color:#ffbe0b; font-weight:600; }
#sheet-pay .rd-pay-login:hover span { text-decoration:underline; text-underline-offset:4px; }

/* Other scenes: uneven masonry with a persistent launch action. */
#sheet-scenes .sheet-panel,#sheet-video-scenes .sheet-panel { overflow:hidden; }
#sheet-scenes .sheet-body,#sheet-video-scenes .sheet-body { overflow-y:auto; padding-bottom:max(18px,env(safe-area-inset-bottom)); }
.other-scenes-mosaic { columns:2; column-gap:10px; padding:2px 2px 18px; }
.other-scene-card { position:relative; display:inline-block; width:100%; min-height:180px; margin:0 0 10px; overflow:hidden; break-inside:avoid; border:1px solid rgba(255,255,255,.12); border-radius:18px; background:#17171d; color:#fff; text-align:left; vertical-align:top; transition:border-color .16s,box-shadow .16s,transform .16s; }
.other-scene-card:nth-child(4n+1) { height:250px; }
.other-scene-card:nth-child(4n+2) { height:190px; }
.other-scene-card:nth-child(4n+3) { height:220px; }
.other-scene-card:nth-child(4n) { height:280px; }
.other-scene-card:active { transform:scale(.985); }
.other-scene-card.is-selected { border-color:#ffbe0b; box-shadow:0 0 0 2px rgba(255,190,11,.28); }
.other-scene-card > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.other-scene-title { position:absolute; z-index:3; inset:auto 0 0; min-height:76px; display:flex; flex-direction:column; justify-content:flex-end; padding:34px 12px 12px; background:linear-gradient(0deg,rgba(0,0,0,.96) 0%,rgba(0,0,0,.7) 52%,transparent 100%); color:#fff; font-size:14px; line-height:1.25; font-weight:800; overflow-wrap:anywhere; }
.other-scene-title small { display:block; margin-top:5px; color:#ffbe0b; font-size:11px; font-weight:800; }
.other-scene-pick { position:absolute; z-index:4; top:9px; right:9px; display:flex; width:34px; height:34px; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.35); border-radius:999px; background:rgba(0,0,0,.72); color:#fff; font-size:14px; font-weight:900; box-shadow:0 4px 14px rgba(0,0,0,.35); }
.other-scene-card.is-selected .other-scene-pick { border-color:#ffbe0b; background:#ffbe0b; color:#090909; }
.other-scenes-sticky-action { position:sticky; z-index:12; bottom:calc(-1 * max(18px,env(safe-area-inset-bottom))); margin:0 -2px; padding:18px 2px max(18px,env(safe-area-inset-bottom)); background:linear-gradient(0deg,#111115 72%,rgba(17,17,21,.92) 86%,transparent 100%); }
@media(max-width:380px){.other-scenes-mosaic{column-gap:8px}.other-scene-card{margin-bottom:8px}.other-scene-card:nth-child(4n+1){height:220px}.other-scene-card:nth-child(4n+2){height:170px}.other-scene-card:nth-child(4n+3){height:195px}.other-scene-card:nth-child(4n){height:245px}}
#sheet-pay #payOptions .pay-option { height:76px; min-height:76px; background:#1d1b21; border-color:transparent; }
#sheet-pay #payOptions .pay-option-name,#sheet-pay #payOptions .pay-option-price { font:800 15px/20px Onest,sans-serif; letter-spacing:0; }
#sheet-pay .pay-option-price { flex-shrink:0; }
#sheet-pay .pay-option-body > .pay-option-line:last-child { gap:4px; }
#sheet-pay .pay-option-heading { display:inline-flex; align-items:center; gap:6px; min-width:0; }
#sheet-pay .pay-option-badges { display:inline-flex; align-items:center; gap:4px; }
#sheet-pay .pay-option-discount { background:rgba(255,255,255,.1); color:#fff; }
#sheet-pay .pay-option-outcome { color:#ddd; font:500 11px/16px Onest,sans-serif; white-space:nowrap; }
#sheet-pay .pay-single .pay-option-body { gap:8px; }
#sheet-pay .pay-single-title { margin:0; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#sheet-pay #payOptions .pay-option.selected { background:#2b1934; border-color:#ffbe0b; }
#sheet-pay #authSeg { background:#1d1b21; box-shadow:none; }
#sheet-pay #authSeg .seg-thumb { background:#36323b; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
#sheet-pay #authSeg .seg-thumb::before,#sheet-pay #authSeg .seg-thumb::after { display:none; }
@media(min-width:640px) {
 :is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-panel { width:min(440px,calc(100vw - 32px)); border-radius:32px; }
}
@media(max-width:639px) {
 :is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-head > button[data-sheet-close] { top:28px; right:20px; }
 #sheet-login #loginBackBtn { top:28px; }
 #sheet-pay.rd-modal .sheet-head { padding-top:13px; padding-right:20px; }
 #sheet-account #accStep-main .rd-modal-step-content { padding:24px 24px 12px; }
 #sheet-account #accStep-main .rd-account-content { gap:14px; }
 #sheet-account #accStep-main .rd-account-number-stage { height:132px; }
 #sheet-account #accStep-main #accSheetCredits { font-size:76px; }
 #sheet-account #accStep-main #accSheetCreditsHint { margin-top:8px; white-space:normal; }
 #sheet-account #accStep-main .sheet-actions { padding:16px 24px max(16px,env(safe-area-inset-bottom)); gap:8px; }
 #sheet-account #accStep-main .btn-sheet { height:52px; min-height:52px; }
}
@media(max-width:359px) {
 :is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .rd-modal-step-content,:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-actions,:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-footer { padding-left:24px; padding-right:24px; }
 #sheet-pay.rd-modal .sheet-head { padding-left:24px; padding-right:24px; }
 #sheet-pay.rd-modal .sheet-body { padding-left:24px; padding-right:24px; }
 #sheet-pay.rd-modal #payTitle { font-size:18px; }
}
@media(prefers-reduced-motion:reduce) {
 :is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-step { animation:none; }
 :is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-panel,:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .sheet-backdrop { transition:none; }
}

#assetsHeading { min-height:28px; margin-bottom:16px; }
#assetsToolbar { display:flex; align-items:center; gap:12px; margin-bottom:20px; min-height:34px; }
#assetsToolbar.hidden { display:none; }
#assetsTabs { min-width:0; flex:1 1 auto; margin:0; padding:0; gap:8px; }
#assetsSelectControls { flex:0 0 104px; }
#assetsTabs .asset-filter { display:inline-flex; align-items:center; justify-content:center; transition:color .15s,background-color .15s,border-color .15s; }
#selectAllAssetsBtn { width:104px; height:34px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; padding:0 10px; border:0; border-radius:999px; color:#fff; font:600 12px/20px Onest,sans-serif; white-space:nowrap; }
#selectAllAssetsBtn:disabled { opacity:.5; cursor:default; }
#selectAllAssetsBtn:focus-visible { outline:2px solid #fff; outline-offset:3px; }
#assetsEmptyState.library-empty { position:fixed; inset:0; padding:0; display:grid; grid-template-rows:minmax(0,1fr) auto minmax(0,1fr); justify-items:center; pointer-events:none; }
#assetsEmptyState.library-empty .assets-empty-content { grid-row:2; width:min(calc(100vw - 32px),540px); }
#assetsEmptyState.library-empty #assetsEmptyAction { position:fixed; bottom:max(16px,env(safe-area-inset-bottom)); left:16px; right:16px; width:calc(100% - 32px); margin:0; pointer-events:auto; }
#assetsEmptyState.hidden { display:none; }
@media(min-width:1024px) {
  #assetsEmptyState.library-empty #assetsEmptyAction { position:static; grid-row:3; align-self:start; width:auto; margin-top:28px; }
}
@media(max-width:359px) {
  #assetsToolbar { gap:8px; }
  #assetsTabs { gap:4px; }
  #assetsTabs .asset-filter { padding-inline:7px; font-size:11px; }
}
@media(max-height:500px) {
  #assetsEmptyState.library-empty { top:calc(80px + env(safe-area-inset-top)); bottom:80px; }
  #assetsEmptyState.filtered-empty { top:calc(170px + env(safe-area-inset-top)); }
  .assets-empty-content .higgs-folder { width:52px; height:42px; margin-bottom:12px; }
  .assets-empty-content h2 { font-size:20px; }
  .assets-empty-content p { font-size:13px; }
  #assetsEmptyState.library-empty #assetsEmptyAction { position:fixed; bottom:16px; left:50%; right:auto; transform:translateX(-50%); width:min(calc(100% - 32px),360px); margin:0; }
}
#batchActionBar > [data-refract] { flex-wrap:wrap; border-radius:28px; }
#batchActionBar > [data-refract] > div:first-child,#clearAssetSelectionBtn { flex-shrink:0; }
#batchActionBar > [data-refract] > div:last-child { flex:1 0 auto; justify-content:flex-end; }

/* Own photos share one preset frame throughout comparison and generation. */
#heroCompareBox[data-preview-format] {
  /* A shorter frame cannot hold two touch actions and the badges. */
  --preview-space: max(320px, calc(100svh - 80px - env(safe-area-inset-top) - var(--studio-dock-clearance) - 48px));
  width: min(100%, calc(var(--preview-space) * var(--preview-ratio))) !important;
  height: auto !important;
  aspect-ratio: var(--preview-ratio) !important;
  margin: 0;
  box-sizing: border-box;
}
#heroCompareBox[data-preview-fit="cover"] #heroAfterImg,
#heroCompareBox[data-preview-fit="cover"] #heroBeforeImg { object-fit: cover; object-position: 50% 50%; }
#heroCompareBox[data-preview-fit="contain"] #heroAfterImg,
#heroCompareBox[data-preview-fit="contain"] #heroBeforeImg { object-fit: contain; object-position: 50% 50%; }
#heroCompareBox[data-preview-compact] #heroCtaRow {
  width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
#heroCompareBox[data-preview-compact] #heroCtaRow button { width: 100%; min-width: 0; padding: 0 6px; font-size: 12px; gap: 4px; justify-content: center; align-items: center; }
#heroCompareBox[data-preview-compact]:not([data-preview-tiny]) #heroSceneBadge { max-width:calc(100% - 168px); }
#heroCompareBox[data-preview-tiny] #heroCtaRow { grid-template-columns: minmax(0, 1fr); }
#heroCompareBox[data-preview-tiny] #heroSceneBadge {
  top: 66px !important; left: 32px; right: 32px; max-width: calc(100% - 64px);
}
#heroCompareTouch {
  display: none; position: absolute; z-index: 21; width: 44px; height: 44px;
  top: 50%; left: var(--compare-position, 46%); transform: translate(-50%, -50%);
  touch-action: pan-y; cursor: ew-resize;
}
#heroCompareBox:has(#heroSliderInput:focus-visible) .compare-handle { outline: 2px solid #ffbe0b; outline-offset: 3px; }
@media (max-width: 1023px), (pointer: coarse) {
  #heroSliderInput { pointer-events: none; }
  #heroCompareTouch:not(.hidden) { display: block; }
}
@media (max-width: 639px) {
  #studioPanelInner:has(#heroCompareBox[data-preview-format]) {
    display: flex; padding-bottom: calc(var(--studio-dock-clearance) + 16px);
  }
  #heroSection:has(#heroCompareBox[data-preview-format]) { padding: 16px 0; }
  #heroCompareBox[data-preview-format] { border-radius: 24px; }
  #heroCompareBox[data-preview-format] .hero-top { top: 16px !important; }
  #heroCompareBox[data-preview-format] #heroOverlay { padding: 16px; }
  #heroCompareBox[data-preview-compact]:not([data-preview-tiny]) #heroSceneBadge { max-width:calc(100% - 136px); }
  #heroCompareBox[data-preview-tiny] #heroSceneBadge { top: 50px !important; left: 16px; right: 16px; max-width: calc(100% - 32px); }
}

/* Gradients identify primary actions; yellow marks selection and small accents. */
:root {
  --brand-pink: #ff006e;
  --brand-purple: #8338ec;
  --brand-ink: #fff;
  --brand-accent-text: #ffbe0b;
  --accent-lime: var(--brand-accent-text);
  --rd-green: var(--brand-accent-text);
  /* The dark layer keeps white labels above 4.5:1 across the entire gradient. */
  --brand-action: linear-gradient(#00000024, #00000024), linear-gradient(115deg, var(--brand-pink), var(--brand-purple));
  --brand-action-hover: linear-gradient(#00000030, #00000030), linear-gradient(115deg, var(--brand-pink), var(--brand-purple));
}
.lg-lime { background: #ffbe0b !important; color: #211900 !important; }
button.lg-lime, .compare-handle.lg-lime,
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet.lg-lime,
#saveCoachDone, #saveEmailSubmit {
  background: var(--brand-action) !important;
  color: var(--brand-ink) !important;
}
.lg-lime {
  box-shadow: inset 0 1px 1px #ffffff4d, inset 0 -2px 5px #00000024, 0 8px 24px #00000052;
}
button.lg-lime:hover, .compare-handle.lg-lime:hover,
:is(#sheet-pay,#sheet-login,#sheet-save,#sheet-account).rd-modal .btn-sheet.lg-lime:hover,
#saveCoachDone:hover, #saveEmailSubmit:hover { background: var(--brand-action-hover) !important; filter: none; }
.lg-lime.lg-press::after { display: none; }
.scene-active-check { color:#ffbe0b; background:#17130b; box-shadow:inset 0 0 0 1px #ffbe0b; }
/* Preserve the comparison treatment approved in V37. */
#heroSliderLine { background:#ff85bb; box-shadow:0 0 16px rgba(255,0,110,.9); }
.rd-brand-logo { display:block; width:36px; height:36px; flex-shrink:0; object-fit:contain; transition:transform .25s ease; }
.rd-header-brand-copy { display:flex; min-width:0; flex-direction:column; justify-content:center; gap:2px; white-space:nowrap; }
.rd-header-wordmark { font-size:18px; line-height:1; font-weight:850; letter-spacing:-.04em; }
.rd-header-tagline { color:#a8a8b2; font-size:8px; line-height:1; font-weight:500; letter-spacing:-.01em; }
@media (max-width:639px) { .rd-header-brand-copy { display:none; } }
@media (hover:hover) { button:hover > .rd-brand-logo { transform:rotate(6deg); } }
@media (prefers-reduced-motion:reduce) { .rd-brand-logo { transition:none; } button:hover > .rd-brand-logo { transform:none; } }
#landing .rd-feature:hover { background:#181408; }
#landing .rd-process-track i.is-active { background:#66500a; }
#landing .rd-video-card:nth-child(1) { background:#ffbe0b; color:#211900; }
#landing .rd-video-card:nth-child(2) { background:#8338ec; color:#fff; }
#landing .rd-video-card:nth-child(3) { background:#3a86ff; color:#08172e; }
::selection { background:#ffbe0b; color:#211900; }

#heroSection { position:relative; }
#heroBerries { position:absolute; inset:0; pointer-events:none; z-index:0; }
#heroBerries[data-count="0"] { display:none; }
#heroBerries .rd-hero-berry {
  position:absolute; width:var(--berry-size); height:var(--berry-size);
  left:var(--berry-x); top:var(--berry-y); transform:translate(-50%,-50%);
  pointer-events:auto;
}
#heroBerries[data-count="2"] .rd-hero-berry:nth-child(even) { display:none; }
.rd-berry-turn { display:block; width:100%; height:100%; transform:rotate(var(--berry-angle)); transition:transform .3s ease-out; }
.rd-hero-berry img { width:100%; height:100%; object-fit:contain; animation:rd-berry-float var(--berry-duration) ease-in-out var(--berry-delay) infinite; }
#heroBerries.is-paused img { animation-play-state:paused; }
@keyframes rd-berry-float {
  0%,100% { transform:translate3d(-3px,5px,0) rotate(-2deg); }
  50% { transform:translate3d(3px,-5px,0) rotate(2deg); }
}
@media (hover:hover) { .rd-hero-berry:hover .rd-berry-turn { transform:rotate(calc(var(--berry-angle) + 5deg)) scale(1.07); } }
@media (prefers-reduced-motion:reduce) {
  .rd-hero-berry img { animation:none; }
  .rd-berry-turn { transition:none; }
  .rd-hero-berry:hover .rd-berry-turn { transform:rotate(var(--berry-angle)); }
}
@media (max-width:767px), (max-height:500px) and (pointer:coarse) {
  #heroBerries, #headerBrand { display:none; }
  #headerWrap header { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  #headerWrap #navSeg { justify-self:start; width:100%; max-width:260px; }
}

/* Paint the scrim below comparison controls, while copy and actions stay above them. */
#heroOverlay { z-index:auto; }
#heroIntro { position:relative; z-index:32; }
#heroCtaLine { z-index:32; }
#heroCompareBox .hero-top { z-index:33; }
#heroCompareBox { --compare-handle-y:50%; }
#heroSliderLine { z-index:31; width:3px; margin-left:-1.5px; background:#ff006e; box-shadow:0 0 0 1px #0009; }
.compare-handle.lg-lime, .compare-handle.lg-lime:hover {
  background:#ff006e !important; color:#fff !important;
  border:0; box-shadow:0 2px 10px #0009;
}
#heroSliderLine .compare-handle { top:var(--compare-handle-y) !important; width:44px; height:44px; }
.compare-handle.lg-lime::before { display:none; }
#heroCompareTouch { top:var(--compare-handle-y); }

#mobileHeroMeta, #mobileHeroControls { display:none; }
@media (max-width:767px), (max-height:500px) and (pointer:coarse) {
  #mainWrap { max-width:none; padding-inline:14px; }
  #studioPanelInner, #studioPanelInner:has(#heroCompareBox[data-preview-format]) {
    --mobile-photo-space:calc(100svh - 80px - env(safe-area-inset-top) - var(--studio-dock-clearance) - 128px);
    min-height:calc(100svh - 80px - env(safe-area-inset-top));
    display:flex; align-items:center; justify-content:center;
    padding:16px 0 calc(var(--studio-dock-clearance) + 16px);
  }
  #heroSection, #heroSection:has(#heroCompareBox[data-preview-format]) {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:12px; padding:0; width:100%; min-width:0;
  }
  #heroCompareBox, #heroCompareBox[data-preview-format] {
    max-width:100%; margin:0; border-radius:24px; border:0;
  }
  #heroCompareBox[data-mode="example"] {
    width:100% !important; height:var(--mobile-photo-space) !important;
    min-height:0; aspect-ratio:auto;
  }
  #heroCompareBox[data-preview-format] {
    width:min(100%, calc(var(--mobile-photo-space) * var(--source-ratio))) !important;
    height:auto !important; aspect-ratio:var(--source-ratio) !important;
  }
  #heroCompareBox[data-preview-format] :is(#heroAfterImg,#heroBeforeImg) { object-fit:contain; object-position:50% 50%; }
  #heroCompareBox[data-mode="example"] #heroOverlay { padding:48px 16px 24px; }
  #heroCompareBox[data-preview-format] #heroOverlay { padding:0; background:none; }
  #mobileHeroMeta { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; height:28px; min-width:0; }
  #mobileHeroMeta .hero-top { position:static; max-width:none; flex-shrink:0; }
  #mobileHeroMeta #heroSceneBadge { max-width:calc(100% - 112px); margin-left:auto; display:block; line-height:28px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  #mobileHeroMeta #heroSceneBadge.scene-name-badge { max-width:calc(100% - 96px); }
  #mobileHeroControls { display:block; width:100%; height:44px; position:relative; z-index:32; }
  #mobileHeroControls #heroCtaLine { position:static; width:100%; max-width:none; }
  #mobileHeroControls #heroCtaRow { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; }
  #mobileHeroControls #heroCtaRow button { width:100%; min-width:0; height:44px; padding:0 8px; font-size:12px; justify-content:center; }
  #headerWrap header { display:flex; gap:8px; }
  #headerBrand { display:flex; flex-shrink:0; }
  #headerBrand .font-display { display:none; }
  #headerWrap #navSeg { flex:0 1 auto; width:auto; max-width:none; min-width:0; margin-right:auto; }
  #navSeg .seg-btn { padding-inline:4px; font-size:11px; gap:3px; white-space:nowrap; }
  #navBtn-home svg { display:none; }
  #navAssetsCount { font-size:9px; padding-inline:3px; }
  #headerWrap header > .justify-self-end { flex-shrink:0; margin-left:auto; }
}
@media (max-width:379px) {
  #headerWrap header { gap:6px; }
}
@media (max-width:359px) {
  #navAssetsCount { display:none; }
}
@media (max-width:767px) and (max-height:720px) {
  #heroCompareBox[data-mode="example"] #heroOverlay { padding:16px; }
  #heroTitle { font-size:26px; line-height:1.06; margin-bottom:8px; }
  #heroSub { font-size:14px; line-height:1.4; }
  #heroTrialBadge { margin-bottom:8px; }
}
/* A phone held horizontally uses the side space for its controls. */
@media (min-width:640px) and (max-height:500px) and (pointer:coarse) {
  #studioPanelInner, #studioPanelInner:has(#heroCompareBox[data-preview-format]) { --mobile-photo-space:calc(100svh - 80px - env(safe-area-inset-top) - var(--studio-dock-clearance) - 32px); }
  #heroSection, #heroSection:has(#heroCompareBox[data-preview-format]) {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.85fr);
    grid-template-rows:28px minmax(0,1fr); height:var(--mobile-photo-space); gap:12px;
  }
  #heroCompareBox { grid-column:1; grid-row:1 / 3; justify-self:center; }
  #mobileHeroMeta { grid-column:2; grid-row:1; }
  #mobileHeroControls { grid-column:2; grid-row:2; align-self:center; }
  #heroCompareBox[data-mode="example"] #heroOverlay { padding:8px 16px; }
  #heroTitle { font-size:20px; line-height:1.05; margin-bottom:4px; }
  #heroSub { font-size:12px; line-height:1.3; }
  #heroTrialBadge { margin-bottom:4px; }
}


  
