
          :root {
            color-scheme: light dark;
            --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
            --font-body: "Inter", "Avenir Next", "Segoe UI", "Noto Sans", "Helvetica Neue", sans-serif;
            --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
            --accent: #0b63f6;
            --accent-strong: #0047c2;
            --accent-soft: #dde8ff;
            --accent-ghost: rgba(11, 99, 246, 0.12);
            --ok: #1a9f5a;
            --warn: #b85b00;
            --fg: #0f172a;
            --fg-muted: #475569;
            --fg-soft: #64748b;
            --bg: #f2f6fc;
            --surface: #ffffff;
            --surface-strong: #f7faff;
            --surface-weak: #edf3fd;
            --hairline: #cdd8eb;
            --hairline-strong: #a8b8d4;
            --shadow-soft: 0 2px 10px rgba(15, 23, 42, 0.06), 0 24px 50px rgba(15, 23, 42, 0.08);
            --shadow-pop: 0 16px 34px rgba(11, 99, 246, 0.2);
            --radius: 20px;
            --radius-sm: 14px;
            --ring: 0 0 0 3px rgba(11, 99, 246, 0.22);
          }

          @media (prefers-color-scheme: dark) {
            :root {
              --accent: #6ca2ff;
              --accent-strong: #4f8fff;
              --accent-soft: rgba(108, 162, 255, 0.15);
              --accent-ghost: rgba(108, 162, 255, 0.16);
              --ok: #34c77f;
              --warn: #f3b567;
              --fg: #e7ecf5;
              --fg-muted: #bcc7da;
              --fg-soft: #9daccc;
              --bg: #0b111d;
              --surface: #121c2d;
              --surface-strong: #172236;
              --surface-weak: #1b2a40;
              --hairline: #2e3f5c;
              --hairline-strong: #40557d;
              --shadow-soft: 0 3px 12px rgba(0, 0, 0, 0.5), 0 28px 48px rgba(0, 0, 0, 0.45);
              --shadow-pop: 0 16px 40px rgba(7, 17, 32, 0.65);
              --ring: 0 0 0 3px rgba(108, 162, 255, 0.26);
            }
          }

          * { box-sizing: border-box; }
          html, body { min-height: 100%; }
          body {
            margin: 0;
            font-family: var(--font-body);
            font-size: 16px;
            line-height: 1.55;
            color: var(--fg);
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
            background: var(--bg);
            position: relative;
          }
          body::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: -2;
            background-image: linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
            background-size: 44px 44px;
            mask-image: radial-gradient(circle at 50% 8%, rgba(0, 0, 0, 0.7), transparent 65%);
          }
          body::after {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: -1;
            background:
              radial-gradient(900px 500px at 5% -8%, rgba(11, 99, 246, 0.14), transparent 60%),
              radial-gradient(700px 400px at 98% -2%, rgba(108, 71, 255, 0.08), transparent 55%),
              radial-gradient(600px 350px at 50% 100%, rgba(26, 159, 90, 0.06), transparent 50%);
            animation: bg-drift 20s ease-in-out infinite alternate;
          }

          a { color: var(--accent-strong); }
          a:hover { color: var(--accent); }

          .app-header {
            position: sticky;
            top: 0;
            z-index: 20;
            padding: 12px 12px 0;
            backdrop-filter: blur(14px) saturate(1.6);
            -webkit-backdrop-filter: blur(14px) saturate(1.6);
          }
          body.has-image .app-header {
            position: static;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
          }
          .header-shell {
            max-width: 1340px;
            margin: 0 auto;
            border: 1px solid color-mix(in oklab, var(--hairline) 60%, transparent);
            border-radius: 22px;
            background: color-mix(in oklab, var(--surface) 82%, transparent);
            box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.12);
            padding: 14px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
            position: relative;
            overflow: hidden;
          }
          .header-shell::after {
            content: "";
            position: absolute;
            left: 20px;
            right: 20px;
            bottom: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            opacity: 0.25;
          }
          .brand-lockup {
            display: grid;
            gap: 2px;
            min-width: 260px;
          }
          h1 {
            margin: 0;
            font-family: var(--font-display);
            font-size: 30px;
            font-weight: 700;
            letter-spacing: -0.024em;
            display: flex;
            align-items: center;
            gap: 12px;
            line-height: 0.98;
          }
          @media (max-width: 700px) {
            h1 { font-size: 26px; }
          }
          @media (max-width: 700px) {
            main {
              width: 100% !important;
              max-width: 100%;
              padding-left: 12px;
              padding-right: 12px;
            }
            .hero-card,
            .privacy-showcase,
            .showcase-panel,
            .workflow-ribbon div,
            .step {
              max-width: 100%;
            }
            .hero-card h2,
            .showcase-head h2,
            .showcase-copy h3 {
              max-width: 100%;
              overflow-wrap: break-word;
            }
          }
          .logo-icon {
            display: inline-block;
            width: 44px;
            height: 44px;
            flex: 0 0 auto;
            filter: drop-shadow(0 10px 18px rgba(11, 99, 246, 0.35));
            animation: logo-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
          }
          @keyframes logo-enter {
            from { transform: scale(0.85) rotate(-4deg); opacity: 0; }
            to { transform: scale(1) rotate(0); opacity: 1; }
          }
          .brand-text { color: var(--fg); }
          .tagline {
            margin: 0;
            color: var(--fg-muted);
            font-size: 13px;
            letter-spacing: 0.01em;
          }
          .header-pills {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
          }
          .btn-header-cta {
            padding: 8px 18px;
            font-size: 13px;
            font-weight: 700;
            border-radius: 999px;
            box-shadow: 0 4px 12px rgba(11, 99, 246, 0.25);
          }
          .chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            border-radius: 999px;
            border: 1px solid var(--hairline);
            color: var(--fg-muted);
            background: color-mix(in oklab, var(--surface-strong) 80%, transparent);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 700;
            backdrop-filter: blur(6px);
            transition: transform .15s ease, box-shadow .2s ease;
          }
          .chip:hover { transform: translateY(-1px); }
          .chip-accent {
            border-color: transparent;
            color: #fff;
            background: linear-gradient(135deg, var(--accent), #6c47ff, var(--accent-strong));
            background-size: 200% 200%;
            animation: shimmer-chip 6s ease infinite;
            box-shadow: 0 8px 18px rgba(11, 99, 246, 0.28);
          }

          main {
            max-width: 1340px;
            margin: 18px auto 22px;
            padding: 0 16px;
          }
          main, .row, .panel { overflow-x: hidden; }
          main > * { animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
          main > *:nth-child(2) { animation-delay: 0.06s; }
          main > *:nth-child(3) { animation-delay: 0.12s; }
          main > *:nth-child(4) { animation-delay: 0.18s; }
          main > *:nth-child(5) { animation-delay: 0.24s; }
          main > *:nth-child(6) { animation-delay: 0.30s; }
          main > *:nth-child(7) { animation-delay: 0.36s; }

          .trust-marker {
            color: var(--fg-soft);
            padding: 0;
            margin-bottom: 10px;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            letter-spacing: 0.02em;
          }

          .hero-card {
            margin-bottom: 20px;
            padding: 48px 28px 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
          }
          .hero-card::after {
            content: "";
            position: absolute;
            left: 50%;
            top: -120px;
            transform: translateX(-50%);
            width: 600px;
            height: 400px;
            border-radius: 999px;
            background: radial-gradient(circle, rgba(11, 99, 246, 0.12), transparent 65%);
            animation: hero-glow 8s ease-in-out infinite alternate;
            pointer-events: none;
          }
          .eyebrow {
            margin: 0 0 12px;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 700;
            color: var(--accent-strong);
          }
          .hero-card h2 {
            margin: 0 auto 14px;
            font-family: var(--font-display);
            font-size: clamp(36px, 5.5vw, 64px);
            line-height: 1.02;
            letter-spacing: -0.035em;
            max-width: 14ch;
            background: linear-gradient(135deg, var(--fg) 0%, var(--accent-strong) 60%, #6c47ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
          }
          @media (prefers-color-scheme: dark) {
            .hero-card h2 {
              background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 60%, #a78bfa 100%);
              -webkit-background-clip: text;
              background-clip: text;
            }
          }
          .hero-card > div > p {
            margin: 0 auto 20px;
            color: var(--fg-muted);
            font-size: 17px;
            max-width: 52ch;
            line-height: 1.6;
          }
          .hero-meta {
            margin: 0 auto 0;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
          }
          .hero-meta span {
            border-radius: 999px;
            border: 1px solid var(--hairline);
            background: var(--surface-strong);
            padding: 5px 12px;
            font-size: 12px;
            color: var(--fg-soft);
            font-weight: 600;
          }
          .hero-steps {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 28px;
            text-align: left;
          }
          @media (max-width: 640px) {
            .hero-steps { grid-template-columns: 1fr; }
          }
          .step {
            display: flex;
            align-items: center;
            gap: 12px;
            border: 1px solid var(--hairline);
            border-radius: 14px;
            padding: 14px 16px;
            background: color-mix(in oklab, var(--surface) 85%, var(--surface-weak));
            transition: transform .15s ease, box-shadow .2s ease;
          }
          .step:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(11, 99, 246, 0.12);
          }
          .step strong {
            width: 30px;
            height: 30px;
            flex: 0 0 30px;
            display: grid;
            place-items: center;
            border-radius: 999px;
            color: #fff;
            background: linear-gradient(135deg, var(--accent), #6c47ff);
            font-size: 12px;
            font-weight: 800;
            box-shadow: 0 6px 14px rgba(11, 99, 246, 0.28);
          }
          .step span {
            color: var(--fg-muted);
            font-size: 14px;
          }

          .mode-switch {
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            margin: 0 0 12px 0;
          }
          .segmented {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            border: 1px solid var(--hairline);
            border-radius: 999px;
            padding: 4px;
            background: var(--surface-weak);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
          }
          .segmented button {
            appearance: none;
            border: 0;
            background: transparent;
            color: var(--fg-muted);
            padding: 7px 14px;
            border-radius: 999px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.01em;
          }
          .segmented button[aria-selected="true"] {
            background: var(--surface);
            color: var(--fg);
            box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
          }

          .row {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            grid-template-areas: "controls" "preview";
          }
          .panel-controls { grid-area: controls; }
          .panel-preview { grid-area: preview; }
          @media (min-width: 900px) {
            .row {
              grid-template-columns: 1fr;
              grid-template-areas: "controls";
            }
            body.has-image .row {
              grid-template-columns: 400px 1fr;
              grid-template-areas: "controls preview";
            }
          }
          @media (min-width: 900px) {
            body.mode-video .row {
              grid-template-columns: 1fr;
              grid-template-areas: "preview";
            }
          }
          @media (max-width: 899px) {
            body.has-image .row {
              grid-template-areas: "preview" "controls";
            }
          }
          body.mode-photo .panel-video { display: none; }
          body.mode-video .panel-controls { display: none; }

          .panel {
            position: relative;
            border: 1px solid var(--hairline);
            border-radius: var(--radius);
            padding: 16px;
            background: var(--surface);
            box-shadow: var(--shadow-soft);
          }
          .panel::before {
            content: "";
            position: absolute;
            inset: 0 0 auto 0;
            height: 3px;
            border-radius: var(--radius) var(--radius) 0 0;
            background: linear-gradient(90deg, var(--accent), #6c47ff 50%, transparent 85%);
            opacity: 0.55;
            pointer-events: none;
          }
          .panel-head { margin-bottom: 10px; }
          .panel-title {
            margin: 0;
            font-family: var(--font-display);
            font-size: 26px;
            line-height: 1;
            letter-spacing: -0.02em;
          }
          .panel-subtitle {
            margin: 6px 0 0;
            font-size: 13px;
            color: var(--fg-muted);
          }

          #dropZone, #videoDropZone {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            cursor: pointer;
            padding: 24px;
            min-height: 220px;
            border-radius: 16px;
            border: 2px dashed color-mix(in oklab, var(--accent) 35%, var(--hairline));
            outline: none;
            color: var(--fg-muted);
            position: relative;
            background:
              linear-gradient(180deg, color-mix(in oklab, var(--surface) 74%, var(--surface-weak)), color-mix(in oklab, var(--surface) 82%, transparent)),
              var(--surface);
            transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
          }
          @supports (height: 1svh) {
            #dropZone, #videoDropZone { min-height: clamp(240px, 48svh, 540px); }
          }
          #dropZone:hover, #videoDropZone:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
            box-shadow: 0 16px 32px rgba(11, 99, 246, 0.12), 0 4px 12px rgba(11, 99, 246, 0.08);
            background:
              linear-gradient(180deg, color-mix(in oklab, var(--surface) 70%, var(--accent-soft)), color-mix(in oklab, var(--surface) 85%, transparent)),
              var(--surface);
          }
          #dropZone.dragover, #videoDropZone.dragover {
            border-color: var(--accent);
            border-style: solid;
            background: color-mix(in oklab, var(--surface-weak) 50%, var(--accent-soft));
            box-shadow: inset 0 0 0 4px var(--accent-ghost), 0 0 40px rgba(11, 99, 246, 0.2);
            animation: drop-pulse 1.2s ease-in-out infinite;
            transform: scale(1.01);
          }
          .drop-content { display: grid; place-items: center; gap: 8px; max-width: 320px; }
          .drop-icon {
            width: 72px;
            height: 72px;
            border-radius: 22px;
            border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--hairline));
            background: linear-gradient(140deg, var(--accent), #6c47ff);
            color: #fff;
            display: grid;
            place-items: center;
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 700;
            letter-spacing: 0.03em;
            box-shadow: 0 16px 36px rgba(11, 99, 246, 0.3);
            animation: pulse-chip 4s ease-in-out infinite;
          }
          .drop-title {
            font-family: var(--font-display);
            font-size: 27px;
            letter-spacing: -0.02em;
            color: var(--fg);
            line-height: 1.02;
          }
          .drop-subtitle {
            color: var(--fg-muted);
            font-size: 13px;
          }
          #dropZone p, #videoDropZone p {
            margin: 6px 0 0;
            color: var(--fg-soft);
            font-size: 13px;
          }

          .controls {
            display: flex;
            gap: 9px;
            align-items: center;
            flex-wrap: wrap;
          }
          /* ---- Social proof bar ---- */
          .proof-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            margin-bottom: 14px;
            font-size: 13px;
            color: var(--fg-muted);
            flex-wrap: wrap;
          }
          .proof-stat strong {
            color: var(--fg);
            font-weight: 800;
            font-variant-numeric: tabular-nums;
          }
          .proof-sep {
            width: 4px;
            height: 4px;
            border-radius: 999px;
            background: var(--hairline-strong);
          }

          /* ---- Hero demo video ---- */
          .hero-demo {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid var(--hairline);
            box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18), 0 12px 24px rgba(11, 99, 246, 0.1);
            margin: 32px auto 0;
            max-width: 720px;
          }
          .hero-demo video {
            display: block;
            width: 100%;
            height: auto;
          }
          .hero-demo::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 20px;
            padding: 1.5px;
            background: linear-gradient(135deg, var(--accent), transparent 40%, rgba(108, 71, 255, 0.35));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            z-index: 1;
          }
          .hero-demo::after {
            content: "";
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 80px;
            border-radius: 999px;
            background: rgba(11, 99, 246, 0.12);
            filter: blur(30px);
            pointer-events: none;
          }

          /* ---- Category badges ---- */
          .category-badges {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 14px;
            flex-wrap: wrap;
          }
          .cat-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid var(--hairline);
            background: var(--surface-strong);
            font-size: 11px;
            color: var(--fg-soft);
            font-weight: 600;
          }
          .cat-badge svg {
            width: 13px;
            height: 13px;
            opacity: 0.7;
          }

          /* ---- Landing privacy showcase ---- */
          .privacy-showcase {
            margin: 34px 0 40px;
            padding: 30px;
            border: 1px solid color-mix(in oklab, var(--hairline) 74%, transparent);
            border-radius: 28px;
            background:
              linear-gradient(180deg, color-mix(in oklab, var(--surface) 88%, transparent), color-mix(in oklab, var(--surface-weak) 50%, transparent)),
              var(--surface);
            box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
            position: relative;
            overflow: hidden;
          }
          .privacy-showcase::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
              linear-gradient(to right, rgba(11, 99, 246, 0.06) 1px, transparent 1px),
              linear-gradient(to bottom, rgba(26, 159, 90, 0.05) 1px, transparent 1px);
            background-size: 38px 38px;
            mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 44%);
            pointer-events: none;
          }
          .showcase-head {
            max-width: 760px;
            margin: 0 auto 24px;
            text-align: center;
            position: relative;
            z-index: 1;
          }
          .showcase-head h2 {
            margin: 0 auto 12px;
            max-width: 13ch;
            font-family: var(--font-display);
            font-size: 44px;
            line-height: 1.03;
            letter-spacing: 0;
            color: var(--fg);
          }
          .showcase-head p:last-child {
            margin: 0 auto;
            max-width: 66ch;
            color: var(--fg-muted);
            font-size: 16px;
            line-height: 1.65;
          }
          .showcase-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
            gap: 16px;
            position: relative;
            z-index: 1;
          }
          .showcase-panel {
            margin: 0;
            min-width: 0;
            border: 1px solid var(--hairline);
            border-radius: 18px;
            overflow: hidden;
            background: color-mix(in oklab, var(--surface) 92%, var(--surface-strong));
            box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
          }
          .showcase-panel-large {
            grid-row: span 2;
          }
          .showcase-panel img {
            display: block;
            width: 100%;
            height: 260px;
            object-fit: cover;
            border-bottom: 1px solid var(--hairline);
            background: var(--surface-weak);
          }
          .showcase-panel-large img {
            height: 510px;
          }
          .showcase-copy {
            padding: 18px 20px 20px;
          }
          .showcase-kicker {
            display: inline-flex;
            align-items: center;
            margin-bottom: 10px;
            color: #0f766e;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
          }
          .showcase-copy h3 {
            margin: 0 0 8px;
            font-family: var(--font-display);
            font-size: 24px;
            line-height: 1.08;
            letter-spacing: 0;
            color: var(--fg);
          }
          .showcase-copy p {
            margin: 0;
            color: var(--fg-muted);
            font-size: 14px;
            line-height: 1.55;
          }
          .workflow-ribbon {
            margin: 18px auto 0;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            position: relative;
            z-index: 1;
          }
          .workflow-ribbon div {
            min-width: 0;
            padding: 14px 16px;
            border: 1px solid color-mix(in oklab, var(--hairline) 80%, transparent);
            border-radius: 14px;
            background: color-mix(in oklab, var(--surface) 78%, transparent);
          }
          .workflow-ribbon strong,
          .workflow-ribbon span {
            display: block;
          }
          .workflow-ribbon strong {
            color: var(--fg);
            font-size: 13px;
          }
          .workflow-ribbon span {
            margin-top: 2px;
            color: var(--fg-muted);
            font-size: 13px;
          }
          @media (max-width: 900px) {
            .privacy-showcase { padding: 22px; border-radius: 22px; }
            .showcase-head h2 { font-size: 36px; }
            .showcase-grid { grid-template-columns: 1fr; }
            .showcase-panel-large { grid-row: auto; }
            .showcase-panel img,
            .showcase-panel-large img { height: auto; aspect-ratio: 16 / 9; }
          }
          @media (max-width: 640px) {
            .privacy-showcase { margin: 24px -2px 30px; padding: 16px; }
            .showcase-head { text-align: left; }
            .showcase-head h2 { margin-left: 0; font-size: 31px; }
            .workflow-ribbon { grid-template-columns: 1fr; }
            .showcase-copy h3 { font-size: 22px; }
          }
          @media (max-width: 700px) {
            main {
              width: 100% !important;
              max-width: 100%;
              padding-left: 12px;
              padding-right: 12px;
            }
            main > .when-no-image,
            main > .row,
            .hero-card,
            .privacy-showcase,
            .showcase-panel,
            .workflow-ribbon div,
            .step {
              width: calc(100vw - 24px);
              max-width: calc(100vw - 24px);
            }
            .hero-card h2,
            .showcase-head h2,
            .showcase-copy h3 {
              max-width: 330px;
              overflow-wrap: break-word;
            }
            .hero-card h2 {
              max-width: 300px;
              font-size: 31px;
            }
            .hero-card > div > p,
            .showcase-head p:last-child,
            .showcase-copy p {
              max-width: 330px;
              overflow-wrap: break-word;
            }
            .hero-card > div > p {
              max-width: 310px;
            }
          }

          /* ---- FAQ section ---- */
          .faq-section {
            margin: 32px 0 16px;
            max-width: 680px;
            margin-left: auto;
            margin-right: auto;
          }
          .faq-heading {
            font-family: var(--font-display);
            font-size: clamp(1.25rem, 3vw, 1.75rem);
            letter-spacing: -0.02em;
            text-align: center;
            margin: 0 0 16px;
          }
          .faq-item {
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            margin-bottom: 8px;
            background: var(--surface);
            overflow: hidden;
          }
          .faq-item summary {
            cursor: pointer;
            padding: 14px 16px;
            font-weight: 700;
            font-size: 14px;
            color: var(--fg);
            list-style: none;
          }
          .faq-item summary::-webkit-details-marker { display: none; }
          .faq-item summary::before {
            content: "+";
            display: inline-block;
            width: 20px;
            font-weight: 800;
            color: var(--accent);
          }
          .faq-item[open] summary::before { content: "−"; }
          .faq-item p {
            margin: 0;
            padding: 0 16px 14px 36px;
            font-size: 14px;
            color: var(--fg-muted);
            line-height: 1.6;
          }

          .when-has-image { display: none !important; }
          body.has-image .when-has-image.block { display: block !important; }
          body.has-image .when-has-image.flex { display: flex !important; }
          .when-no-image { display: block; }
          body.has-image .when-no-image { display: none !important; }
          .panel-preview { display: none; }
          body.has-image .panel-preview { display: block; }
          @supports (height: 1svh) {
            :root { --vh-stable: 100svh; }
          }
          #canvasWrap { min-height: 40vh; }
          @supports (height: 1svh) {
            #canvasWrap { min-height: min(60svh, 560px); }
          }

          button, .btn {
            appearance: none;
            border: 1px solid transparent;
            border-radius: 12px;
            padding: 10px 14px;
            font: inherit;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.01em;
            color: #fff;
            background: linear-gradient(135deg, var(--accent), var(--accent-strong));
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px rgba(11, 99, 246, 0.24);
            cursor: pointer;
            transition: transform .14s ease, box-shadow .22s ease, opacity .2s ease, background .2s ease, color .2s ease, border-color .2s ease, filter .2s ease;
          }
          button:hover, .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 28px rgba(11, 99, 246, 0.3);
            filter: brightness(1.06);
          }
          button:active, .btn:active { transform: translateY(0) scale(0.98); }
          button[disabled], .btn[disabled] {
            background: color-mix(in oklab, var(--surface-weak) 88%, var(--hairline));
            color: var(--fg-soft);
            border-color: var(--hairline);
            box-shadow: none;
            cursor: not-allowed;
            transform: none;
          }
          button:focus-visible, .btn:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, .face-box:focus-visible, .mask-box:focus-visible, #dropZone:focus-visible, #videoDropZone:focus-visible, #sliderHandle:focus-visible {
            outline: none;
            box-shadow: var(--ring);
          }
          .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
          }
          .btn-primary {
            background: linear-gradient(120deg, var(--accent), var(--accent-strong));
            border-color: transparent;
            color: #fff;
          }
          .btn-hero {
            padding: 16px 32px;
            font-size: 16px;
            font-weight: 700;
            border-radius: 14px;
            box-shadow: 0 12px 28px rgba(11, 99, 246, 0.35), 0 4px 8px rgba(11, 99, 246, 0.2);
            letter-spacing: -0.01em;
          }
          .btn-hero:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 36px rgba(11, 99, 246, 0.4), 0 6px 12px rgba(11, 99, 246, 0.25);
          }
          .hero-cta {
            margin: 24px 0 16px;
          }
          .btn-ghost {
            background: color-mix(in oklab, var(--surface-strong) 90%, transparent);
            color: var(--fg-muted);
            border: 1px solid var(--hairline);
            box-shadow: none;
            font-weight: 600;
          }
          .btn-ghost:hover {
            color: var(--fg);
            border-color: var(--hairline-strong);
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
          }

          #shareBtn, #clearQueueBtn, #videoCancelBtn {
            background: var(--surface-strong);
            color: var(--fg);
            border-color: var(--hairline);
            box-shadow: none;
          }
          #shareBtn:hover, #clearQueueBtn:hover, #videoCancelBtn:hover {
            box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
          }
          #uploadBtn {
            padding: 12px 18px;
            font-size: 14px;
          }

          .note { font-size: 13px; color: var(--fg-muted); }
          .draw-hint { font-size: 12px; color: var(--fg-soft); }
          .settings {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px dashed var(--hairline);
          }
          #advancedSettings {
            border: 1px solid var(--hairline);
            border-radius: 12px;
            background: var(--surface-strong);
            padding: 8px 10px;
          }
          #advancedSettings > summary {
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            color: var(--fg);
          }
          #advancedSettings > summary::marker {
            color: var(--accent-strong);
          }
          .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 10px 12px;
            align-items: center;
          }
          .tuning-row {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
          }
          .warning {
            color: var(--warn);
            background: #fff8ef;
            border: 1px solid #ffd9ad;
            padding: 10px 12px;
            border-radius: 12px;
            font-size: 13px;
          }
          @media (prefers-color-scheme: dark) {
            .warning {
              background: rgba(184, 91, 0, 0.14);
              border-color: rgba(243, 181, 103, 0.35);
            }
          }

          select {
            appearance: none;
            border: 1px solid var(--hairline);
            background: var(--surface);
            border-radius: 10px;
            padding: 8px 28px 8px 10px;
            color: var(--fg);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
          }
          input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 6px;
            background: var(--surface-weak);
            border: 1px solid var(--hairline);
            border-radius: 999px;
            outline: none;
            cursor: pointer;
          }
          input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--accent), var(--accent-strong));
            border: 2px solid #fff;
            box-shadow: 0 2px 8px rgba(11, 99, 246, 0.35);
            cursor: grab;
            transition: transform 0.12s ease, box-shadow 0.15s ease;
          }
          input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 4px 14px rgba(11, 99, 246, 0.45);
          }
          input[type="range"]::-webkit-slider-thumb:active {
            cursor: grabbing;
            transform: scale(1.05);
          }
          input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--accent), var(--accent-strong));
            border: 2px solid #fff;
            box-shadow: 0 2px 8px rgba(11, 99, 246, 0.35);
            cursor: grab;
          }
          input[type="range"]::-moz-range-track {
            height: 6px;
            background: var(--surface-weak);
            border: 1px solid var(--hairline);
            border-radius: 999px;
          }
          input[type="range"]:focus-visible::-webkit-slider-thumb {
            box-shadow: var(--ring), 0 2px 8px rgba(11, 99, 246, 0.35);
          }
          input[type="range"][disabled] {
            opacity: 0.5;
            cursor: not-allowed;
          }
          input[type="range"][disabled]::-webkit-slider-thumb {
            background: var(--hairline-strong);
            box-shadow: none;
            cursor: not-allowed;
          }
          input[type="range"][disabled]::-moz-range-thumb {
            background: var(--hairline-strong);
            box-shadow: none;
            cursor: not-allowed;
          }
          .kv {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: var(--fg-muted);
          }
          .sep {
            width: 1px;
            height: 28px;
            background: var(--hairline);
            margin: 0 4px;
          }

          #canvasWrap {
            width: 100%;
            min-height: 220px;
            display: grid;
            place-items: center;
            background: var(--surface-weak);
            border: 1px solid var(--hairline);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
          }
          .compare {
            position: relative;
            display: inline-block;
            max-width: 100%;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid var(--hairline);
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(11, 99, 246, 0.06);
            background: #10131a;
          }
          .layer { position: absolute; inset: 0; overflow: hidden; }
          .layer canvas { display: block; max-width: 100%; height: auto; }
          .layer.original { z-index: 1; }
          .layer.blurred { z-index: 2; }

          .face-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
          .face-box {
            position: absolute;
            border: 2px solid rgba(11, 99, 246, 0.95);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 10px 18px rgba(11, 99, 246, 0.28);
            border-radius: 10px;
            pointer-events: auto;
            background: transparent;
          }
          .face-box.disabled {
            opacity: 0.58;
            border-color: var(--hairline-strong);
            box-shadow: none;
          }
          .face-toggle {
            position: absolute;
            top: -12px;
            left: -12px;
            width: 24px;
            height: 24px;
            border-radius: 999px;
            background: var(--accent);
            color: #fff;
            font-size: 12px;
            line-height: 22px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(11, 99, 246, 0.5);
            border: 2px solid #fff;
            cursor: pointer;
          }
          .face-box.disabled .face-toggle { background: #90a4ca; }

          .detect-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            font-size: 13px;
            color: var(--fg);
            flex-wrap: wrap;
          }
          .detect-bar .pill {
            background: var(--accent-soft);
            color: var(--accent-strong);
            border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--hairline));
            border-radius: 999px;
            padding: 4px 12px;
            font-weight: 700;
          }

          .mask-box {
            position: absolute;
            border: 2px dashed rgba(255, 176, 70, 0.96);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
            border-radius: 10px;
            pointer-events: auto;
            background: transparent;
          }
          .mask-remove {
            position: absolute;
            top: -12px;
            left: -12px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #ff7a00;
            color: #fff;
            font-size: 14px;
            line-height: 22px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            border: 2px solid #fff;
            cursor: pointer;
          }
          .toggled {
            background: linear-gradient(120deg, var(--accent), var(--accent-strong));
            color: #fff;
          }
          .draw-cursor { cursor: crosshair; }
          .rubberband {
            position: absolute;
            border: 2px dashed rgba(15, 23, 42, 0.8);
            background: rgba(15, 23, 42, 0.1);
            pointer-events: none;
          }
          #sliderHandle {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 3px;
            background: color-mix(in oklab, var(--accent) 80%, #fff);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92);
            z-index: 4;
            cursor: ew-resize;
            touch-action: none;
          }
          #sliderKnob {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: linear-gradient(140deg, var(--accent), var(--accent-strong));
            border: 2px solid #fff;
            box-shadow: 0 2px 14px rgba(11, 99, 246, 0.45);
          }

          .batch {
            margin-top: 12px;
            border: 1px solid var(--hairline);
            border-radius: 12px;
            padding: 12px;
            background: var(--surface-strong);
          }
          .batch h3 {
            margin: 0 0 8px;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--fg-muted);
          }
          .batch .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
          .batch-list {
            list-style: none;
            margin: 0;
            padding: 0;
            max-height: 186px;
            overflow: auto;
            border: 1px dashed var(--hairline-strong);
            border-radius: 10px;
            background: var(--surface);
          }
          .batch-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-bottom: 1px dashed var(--hairline);
            cursor: pointer;
          }
          .batch-item:last-child { border-bottom: none; }
          .batch-item:hover { background: var(--surface-weak); }
          .batch-item .name {
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          .batch-empty {
            padding: 12px;
            color: var(--fg-soft);
            text-align: center;
            font-size: 13px;
          }
          .badge {
            flex: 0 0 auto;
            font-size: 11px;
            padding: 2px 7px;
            border-radius: 999px;
            border: 1px solid color-mix(in oklab, var(--accent) 38%, var(--hairline));
            background: var(--accent-soft);
            color: var(--accent-strong);
            text-transform: capitalize;
            font-weight: 700;
          }
          .badge.error { background: #ffecec; color: #c62828; border-color: #ffcdd2; }
          .badge.free {
            background: #ecfdf3;
            color: #147348;
            border-color: #9fe5c2;
            text-transform: none;
          }
          .badge.hd {
            background: #e9efff;
            color: #2147b8;
            border-color: #b8c9f7;
            text-transform: none;
          }
          .badge.done { background: #e8fff2; color: #1b7f3b; border-color: #b6efc7; }

          #blurBtn { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
          #blurBtn .sub {
            display: inline-block;
            font-size: 11px;
            line-height: 1;
            padding: 2px 8px;
          }
          #blurBtn.is-free {
            background: linear-gradient(120deg, #159d58, #0f7f47);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 12px 20px rgba(15, 127, 71, 0.32);
          }
          #blurBtn.is-free[disabled] {
            background: #71d9a5;
            color: #0a4930;
            box-shadow: none;
          }

          .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(10, 18, 34, 0.54);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 50;
            backdrop-filter: blur(5px);
          }
          .modal-backdrop.show { display: flex; }
          .modal-card {
            width: min(520px, 92vw);
            background: var(--surface);
            color: var(--fg);
            border: 1px solid var(--hairline);
            border-radius: 20px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(11, 99, 246, 0.1);
            padding: 22px;
            animation: modal-rise .25s ease both;
          }
          .modal-title {
            margin: 0 0 6px;
            font-family: var(--font-display);
            font-size: 30px;
            letter-spacing: -0.02em;
            line-height: 1;
          }
          .modal-body { font-size: 14px; color: var(--fg-muted); }
          .modal-body ul { margin: 10px 0 4px 18px; padding: 0; }
          .modal-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
            margin-top: 14px;
          }

          .panel-video h2 {
            margin: 0 0 6px;
            font-family: var(--font-display);
            font-size: 30px;
            line-height: 1;
            letter-spacing: -0.02em;
          }
          .video-people-row {
            display: flex;
            gap: 0;
            align-items: flex-start;
          }
          .video-people-sidebar {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 120px;
            min-width: 120px;
            padding: 10px 10px 10px 0;
            overflow-y: auto;
            max-height: 60vh;
          }
          .video-people-sidebar h4 {
            margin: 0;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--fg-muted);
          }
          .video-people-sidebar .people-hint {
            font-size: 11px;
            color: var(--fg-soft);
            line-height: 1.3;
          }
          .face-group-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px 6px;
            border: 1px solid var(--hairline);
            border-radius: 10px;
            background: var(--surface-strong);
            cursor: pointer;
            transition: border-color 0.15s, opacity 0.15s;
          }
          .face-group-card:hover {
            border-color: color-mix(in oklab, var(--accent) 30%, var(--hairline));
          }
          .face-group-card.disabled {
            opacity: 0.5;
          }
          .face-group-thumb {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--hairline);
            background: var(--surface);
          }
          .face-group-placeholder {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: 2px solid var(--hairline);
            background: var(--surface);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: var(--fg-soft);
          }
          .face-group-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--fg);
            text-align: center;
            max-width: 90px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          .face-group-toggle {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            color: var(--fg-muted);
          }
          .face-group-toggle input { margin: 0; }
          @media (max-width: 767px) {
            .video-people-row {
              flex-direction: column;
            }
            .video-people-sidebar {
              flex-direction: row;
              width: 100%;
              min-width: 0;
              max-height: none;
              overflow-x: auto;
              overflow-y: visible;
              padding: 0 0 8px 0;
            }
          }
          .video-wrap {
            position: relative;
            flex: 1 1 0%;
            min-width: 0;
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--hairline);
            box-shadow: 0 18px 28px rgba(0, 0, 0, 0.38);
          }
          #videoPreview {
            display: block;
            width: 100%;
            height: auto;
            max-height: 60vh;
            background: #000;
          }
          #videoBlurCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
          #videoOverlay { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
          .video-actions {
            display: flex;
            gap: 8px;
            margin-top: 8px;
            align-items: center;
            flex-wrap: wrap;
          }
          .video-review-summary {
            margin-top: 10px;
            border: 1px solid var(--hairline);
            border-radius: 14px;
            background: var(--surface-strong);
            padding: 12px;
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
          }
          .video-review-summary-copy {
            display: grid;
            gap: 4px;
            min-width: 0;
            flex: 1 1 320px;
          }
          .video-review-summary-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--fg);
          }
          .video-review-summary-text {
            font-size: 13px;
            color: var(--fg-muted);
          }
          .video-review-panel {
            margin-top: 12px;
            border: 1px solid var(--hairline);
            border-radius: 14px;
            background: var(--surface-strong);
            padding: 12px;
            display: grid;
            gap: 12px;
          }
          .video-review-panel-head {
            display: grid;
            gap: 4px;
          }
          .video-review-panel-head h3 {
            margin: 0;
            font-size: 14px;
            color: var(--fg);
          }
          .video-review-panel-head p {
            margin: 0;
            font-size: 13px;
            color: var(--fg-muted);
          }
          .video-review-toolbar {
            display: grid;
            gap: 10px;
          }
          .video-review-layout {
            display: grid;
            gap: 12px;
          }
          @media (min-width: 860px) {
            .video-review-layout {
              grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
            }
          }
          .video-review-card {
            border: 1px solid var(--hairline);
            border-radius: 12px;
            background: var(--surface);
            padding: 10px;
            display: grid;
            gap: 8px;
          }
          .video-review-card h3 {
            margin: 0;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--fg-muted);
          }
          .review-list {
            display: grid;
            gap: 8px;
            max-height: 240px;
            overflow: auto;
          }
          .review-empty {
            font-size: 13px;
            color: var(--fg-soft);
            border: 1px dashed var(--hairline);
            border-radius: 10px;
            padding: 10px;
            text-align: center;
          }
          .review-row {
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border: 1px solid var(--hairline);
            border-radius: 10px;
            background: var(--surface-strong);
          }
          .review-row.selected {
            border-color: color-mix(in oklab, var(--accent) 45%, var(--hairline));
            box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 18%, transparent);
          }
          .review-row button {
            padding: 8px 10px;
            box-shadow: none;
          }
          .review-row .meta {
            min-width: 0;
          }
          .review-row .title {
            font-size: 13px;
            font-weight: 700;
            color: var(--fg);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          .review-row .sub {
            font-size: 12px;
            color: var(--fg-soft);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          .timeline-row {
            display: grid;
            gap: 8px;
          }
          .timeline-meta {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
            font-size: 12px;
            color: var(--fg-muted);
          }
          .video-review-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
          }
          .video-selection-hint {
            font-size: 13px;
            color: var(--fg-muted);
          }
          .track-box.selected,
          .mask-box.selected {
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 5px rgba(11, 99, 246, 0.28);
          }
          .video-label {
            position: absolute;
            top: -14px;
            right: -2px;
            min-width: 22px;
            padding: 2px 8px;
            border-radius: 999px;
            background: rgba(11, 99, 246, 0.92);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.5;
            border: 2px solid #fff;
            pointer-events: none;
          }
          .mask-box .video-label {
            background: rgba(255, 122, 0, 0.92);
          }
          .edit-handle {
            position: absolute;
            right: -8px;
            bottom: -8px;
            width: 16px;
            height: 16px;
            border-radius: 999px;
            background: #fff;
            border: 2px solid var(--accent-strong);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
            pointer-events: auto;
            cursor: nwse-resize;
          }
          .video-status {
            font-size: 13px;
            color: var(--fg-muted);
            font-family: var(--font-mono);
          }
          .progress {
            position: relative;
            width: 220px;
            height: 8px;
            background: var(--surface-weak);
            border: 1px solid var(--hairline);
            border-radius: 999px;
            overflow: hidden;
          }
          .progress > i {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 0%;
            background: linear-gradient(90deg, var(--accent), #6c47ff, var(--accent-strong));
            background-size: 200% 100%;
            display: block;
            border-radius: 999px;
            transition: width 0.3s ease;
            animation: progress-shimmer 2s ease infinite;
          }

          .site-footer {
            max-width: 1340px;
            margin: 18px auto 26px;
            padding: 24px 28px;
            border: 1px solid var(--hairline);
            border-radius: 18px;
            background: color-mix(in oklab, var(--surface) 82%, transparent);
            backdrop-filter: blur(10px);
            color: var(--fg-muted);
            font-size: 13px;
            display: grid;
            gap: 20px;
            box-shadow: var(--shadow-soft);
            position: relative;
            overflow: hidden;
          }
          .site-footer::before {
            content: "";
            position: absolute;
            inset: 0 22px auto 22px;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            opacity: 0.15;
            top: 0;
          }

          a.skip-link {
            position: absolute;
            left: 8px;
            top: -40px;
            padding: 8px 12px;
            background: #000;
            color: #fff;
            border-radius: 12px;
            z-index: 9999;
            text-decoration: none;
          }
          a.skip-link:focus { top: 8px; }
          .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 1px, 1px);
            white-space: nowrap;
            border: 0;
          }
          @media (prefers-contrast: more) {
            :root {
              --surface: #ffffff;
              --surface-weak: #f4f7ff;
            }
          }
          @media (prefers-contrast: more) and (prefers-color-scheme: dark) {
            :root {
              --surface: #111d31;
              --surface-weak: #1a2b44;
            }
          }
          @media (prefers-reduced-motion: reduce) {
            * {
              animation: none !important;
              transition: none !important;
              scroll-behavior: auto !important;
            }
          }

          .toast-root {
            position: fixed;
            left: 50%;
            bottom: 16px;
            transform: translateX(-50%);
            display: grid;
            gap: 8px;
            z-index: 9999;
            pointer-events: none;
          }
          .toast {
            pointer-events: auto;
            min-width: 260px;
            max-width: 92vw;
            color: #fff;
            background: rgba(17, 24, 39, 0.94);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-left: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 14px;
            padding: 14px 16px;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
            backdrop-filter: blur(14px);
            display: flex;
            align-items: center;
            gap: 12px;
            opacity: 0;
            transform: translateY(10px) scale(0.96);
            transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
          }
          .toast.show { opacity: 1; transform: translateY(0) scale(1); }
          .toast.hide { opacity: 0; transform: translateY(8px) scale(0.96); }
          .toast .msg { flex: 1 1 auto; }
          .toast .close {
            appearance: none;
            background: transparent;
            color: #fff;
            opacity: .82;
            border: none;
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 8px;
            box-shadow: none;
          }
          .toast .close:hover { opacity: 1; }
          .toast.info { background: rgba(12, 74, 110, 0.95); border-color: rgba(125, 211, 252, 0.25); border-left-color: #7dd3fc; }
          .toast.success { background: rgba(22, 101, 52, 0.95); border-color: rgba(134, 239, 172, 0.25); border-left-color: #86efac; }
          .toast.error { background: rgba(127, 29, 29, 0.95); border-color: rgba(248, 113, 113, 0.25); border-left-color: #f87171; }

          /* ---- Post-export upgrade nudge ---- */
          .post-export-nudge {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            opacity: 0;
            z-index: 9998;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
            border-radius: 16px;
            background: var(--surface);
            border: 1px solid var(--accent);
            box-shadow: 0 20px 50px rgba(11, 99, 246, 0.2), 0 8px 20px rgba(0, 0, 0, 0.12);
            transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            max-width: 92vw;
          }
          .post-export-nudge.show { opacity: 1; transform: translateX(-50%) translateY(0); }
          .nudge-text { display: grid; gap: 2px; }
          .nudge-text strong { font-size: 14px; color: var(--fg); }
          .nudge-text span { font-size: 12px; color: var(--fg-muted); }
          .nudge-btn { padding: 9px 16px; font-size: 13px; border-radius: 10px; white-space: nowrap; }
          .nudge-dismiss {
            appearance: none;
            background: transparent;
            border: none;
            color: var(--fg-soft);
            font-size: 18px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 8px;
            line-height: 1;
          }
          .nudge-dismiss:hover { color: var(--fg); }

          /* ---- Inline upgrade button ---- */
          .btn-upgrade-inline {
            padding: 6px 14px;
            font-size: 12px;
            border-radius: 999px;
            animation: pulse-upgrade 2s ease-in-out infinite;
          }
          @keyframes pulse-upgrade {
            0%, 100% { box-shadow: 0 4px 12px rgba(11, 99, 246, 0.25); }
            50% { box-shadow: 0 4px 20px rgba(11, 99, 246, 0.45); }
          }

          @keyframes modal-rise {
            from { opacity: 0; transform: translateY(12px) scale(0.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
          }
          @keyframes drop-pulse {
            0%, 100% { box-shadow: inset 0 0 0 4px var(--accent-ghost), 0 0 30px rgba(11, 99, 246, 0.15); }
            50% { box-shadow: inset 0 0 0 4px var(--accent-ghost), 0 0 40px rgba(11, 99, 246, 0.25); }
          }
          @keyframes hero-glow {
            0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
            100% { transform: translate(-20px, 20px) scale(1.15); opacity: 1; }
          }
          @keyframes shimmer-chip {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
          }
          @keyframes bg-drift {
            0% {
              background:
                radial-gradient(900px 500px at 5% -8%, rgba(11, 99, 246, 0.14), transparent 60%),
                radial-gradient(700px 400px at 98% -2%, rgba(108, 71, 255, 0.08), transparent 55%),
                radial-gradient(600px 350px at 50% 100%, rgba(26, 159, 90, 0.06), transparent 50%);
            }
            100% {
              background:
                radial-gradient(900px 500px at 12% 5%, rgba(11, 99, 246, 0.10), transparent 60%),
                radial-gradient(700px 400px at 88% 8%, rgba(108, 71, 255, 0.10), transparent 55%),
                radial-gradient(600px 350px at 40% 95%, rgba(26, 159, 90, 0.08), transparent 50%);
            }
          }
          @keyframes rise-in {
            from {
              opacity: 0;
              transform: translateY(18px) scale(0.98);
              filter: blur(4px);
            }
            to {
              opacity: 1;
              transform: translateY(0) scale(1);
              filter: blur(0);
            }
          }
          @keyframes pulse-chip {
            0%, 100% {
              transform: scale(1);
              box-shadow: var(--shadow-pop);
            }
            50% {
              transform: scale(1.03);
              box-shadow: 0 18px 34px rgba(11, 99, 246, 0.26);
            }
          }

          /* ---- Pill toggle for checkboxes ---- */
          input[type="checkbox"] {
            -webkit-appearance: none;
            appearance: none;
            width: 38px;
            height: 22px;
            flex: 0 0 38px;
            background: var(--hairline-strong);
            border-radius: 999px;
            border: none;
            position: relative;
            cursor: pointer;
            transition: background 0.2s ease;
          }
          input[type="checkbox"]::after {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 16px;
            height: 16px;
            border-radius: 999px;
            background: #fff;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
            transition: transform 0.2s ease;
          }
          input[type="checkbox"]:checked {
            background: linear-gradient(135deg, var(--accent), var(--accent-strong));
          }
          input[type="checkbox"]:checked::after {
            transform: translateX(16px);
          }
          input[type="checkbox"]:focus-visible {
            box-shadow: var(--ring);
          }
          input[type="checkbox"][disabled] {
            opacity: 0.5;
            cursor: not-allowed;
          }

          /* ---- Pricing modal ---- */
          .modal-card.pricing-card {
            width: min(960px, 95vw);
            padding: 28px;
          }
          .pricing-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
            margin-top: 16px;
          }
          @media (max-width: 900px) {
            .pricing-grid {
              grid-template-columns: repeat(2, 1fr);
            }
          }
          @media (max-width: 540px) {
            .pricing-grid {
              grid-template-columns: 1fr;
            }
          }
          .plan-card {
            position: relative;
            border: 1px solid var(--hairline);
            border-radius: 16px;
            padding: 20px 16px;
            background: var(--surface);
            display: grid;
            gap: 12px;
            transition: transform 0.15s ease, box-shadow 0.2s ease;
          }
          .plan-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(11, 99, 246, 0.12);
          }
          .plan-card.recommended {
            border-color: var(--accent);
            background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 90%, var(--accent-soft)), var(--surface));
            box-shadow: 0 0 0 2px var(--accent-ghost), var(--shadow-soft);
          }
          .plan-badge {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--accent), #6c47ff);
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            padding: 3px 12px;
            border-radius: 999px;
            white-space: nowrap;
          }
          .plan-name {
            font-family: var(--font-display);
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.01em;
          }
          .plan-price {
            font-size: 32px;
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1;
          }
          .plan-price .period {
            font-size: 14px;
            font-weight: 500;
            color: var(--fg-muted);
          }
          .plan-value {
            font-size: 12px;
            color: var(--accent-strong);
            font-weight: 600;
            margin-top: 4px;
          }
          .plan-features {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: 6px;
          }
          .plan-features li {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--fg-muted);
          }
          .plan-features li::before {
            content: "";
            display: inline-block;
            width: 18px;
            height: 18px;
            flex: 0 0 18px;
            border-radius: 999px;
            background: color-mix(in oklab, var(--ok) 15%, transparent);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%231a9f5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2.5 6 5 8.5 9.5 3.5'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
          }
          .plan-features li.disabled::before {
            background: color-mix(in oklab, var(--hairline) 40%, transparent);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='9' y2='6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
          }
          .plan-features li.disabled {
            color: var(--fg-soft);
            opacity: 0.7;
          }
          .plan-cta {
            margin-top: auto;
          }
          .pricing-footer {
            margin-top: 14px;
            font-size: 12px;
            color: var(--fg-soft);
            text-align: center;
          }

          /* ---- Onboarding steps ---- */
          .onboard-steps {
            list-style: none;
            margin: 12px 0 0;
            padding: 0;
            display: grid;
            gap: 14px;
          }
          .onboard-step {
            display: flex;
            align-items: flex-start;
            gap: 14px;
          }
          .onboard-icon {
            width: 44px;
            height: 44px;
            flex: 0 0 44px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            font-size: 20px;
            background: linear-gradient(135deg, var(--accent-soft), color-mix(in oklab, rgba(108, 71, 255, 0.1) 40%, transparent));
            border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--hairline));
          }
          .onboard-step-text {
            display: grid;
            gap: 2px;
          }
          .onboard-step-title {
            font-weight: 700;
            font-size: 14px;
            color: var(--fg);
          }
          .onboard-step-desc {
            font-size: 13px;
            color: var(--fg-muted);
          }

          /* ---- Button variants ---- */
          .btn-outline {
            background: transparent;
            color: var(--accent-strong);
            border: 1.5px solid var(--accent);
            box-shadow: none;
          }
          .btn-outline:hover {
            background: var(--accent-ghost);
            box-shadow: 0 8px 18px rgba(11, 99, 246, 0.12);
          }
          .btn-success {
            background: linear-gradient(135deg, #15803d, #16a34a);
            color: #fff;
            border-color: transparent;
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 20px rgba(22, 163, 74, 0.28);
          }
          .btn-success:hover {
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 28px rgba(22, 163, 74, 0.35);
            filter: brightness(1.06);
          }

          /* ---- Drop zone orbs ---- */
          .drop-orb {
            position: absolute;
            border-radius: 999px;
            pointer-events: none;
            filter: blur(60px);
            opacity: 0.4;
            animation: orb-float 8s ease-in-out infinite alternate;
          }
          .drop-orb-1 {
            width: 200px;
            height: 200px;
            background: rgba(11, 99, 246, 0.25);
            top: -40px;
            left: -30px;
          }
          .drop-orb-2 {
            width: 160px;
            height: 160px;
            background: rgba(108, 71, 255, 0.2);
            bottom: -30px;
            right: -20px;
            animation-delay: -3s;
          }
          @keyframes orb-float {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(15px, -10px) scale(1.1); }
          }

          /* ---- Footer columns ---- */
          .footer-top {
            display: flex;
            align-items: center;
            gap: 12px;
          }
          .footer-logo {
            width: 32px;
            height: 32px;
            flex: 0 0 32px;
          }
          .footer-brand {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 700;
            color: var(--fg);
            letter-spacing: -0.01em;
          }
          .footer-columns {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
          }
          .footer-col h4 {
            margin: 0 0 8px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 700;
            color: var(--fg-soft);
          }
          .footer-col ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 4px;
          }
          .footer-col a {
            color: inherit;
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: color 0.15s ease, border-color 0.15s ease;
          }
          .footer-col a:hover {
            color: var(--fg);
            border-bottom-color: var(--accent);
          }
          .footer-bottom {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            padding-top: 12px;
            border-top: 1px solid var(--hairline);
            font-size: 12px;
            color: var(--fg-soft);
          }

          /* ---- Progress shimmer ---- */
          @keyframes progress-shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
          }
