/* Tokens — the only values the UI uses. See DESIGN.md. */
:root {
  --ground: #0b0b0d; --surface: #141417; --raised: #1c1c21; --overlay: #202027;
  --border: #ffffff12; --border-strong: #ffffff24;
  --text-1: #f5f5f7; --text-2: #c9c9d1; --text-3: #84848f; --text-4: #5d5d68;
  --accent: #58a6ff; --accent-hover: #79b8ff; --accent-text: #06111f; --accent-soft: #58a6ff1f;
  --success: #4ade80; --success-soft: #4ade801f; --warning: #fbbf24; --warning-soft: #fbbf241f;
  --danger: #ff6b6b; --danger-soft: #ff6b6b1f;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --radius-s: 6px; --radius-m: 10px; --radius-l: 16px; --radius-pill: 999px;
  --control-h: 40px; --control-h-s: 32px; --control-h-l: 44px;
  --shadow-menu: 0 8px 24px #00000080;
  /* Motion: strong ease-out for enter/feedback, ease-in-out for on-screen movement, linear for constant motion. */
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-emph: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --dur-press: 160ms; --dur-fast: 120ms; --dur: 200ms; --dur-slow: 280ms;
  --content-max: 1376px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--ground); color: var(--text-1); font: 400 15px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: 18px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.display { font-size: 34px; line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--text-3); }
.small { font-size: 13px; line-height: 1.5; }
.micro { font-size: 12px; line-height: 1.4; }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); font-size: 12px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-s); }
/* Reduced motion keeps fades (they aid comprehension) and removes movement. */
@media (prefers-reduced-motion: reduce) {
  .shell *, .shell *::before, .shell *::after { animation-duration: .01ms !important; transition-property: opacity, color, background-color, border-color !important; transition-duration: 120ms !important; transition-delay: 0ms !important; }
}

/* Shell */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s8); max-width: var(--content-max); width: 100%; margin: 0 auto; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -.03em; color: var(--text-1); text-decoration: none; margin-right: var(--s4); }
.pillnav { display: flex; gap: var(--s1); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: var(--s1); }
.pillnav a { padding: 6px 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; color: var(--text-3); text-decoration: none; transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.pillnav a:hover { color: var(--text-1); }
.pillnav a:active { transform: scale(.97); }
.pillnav a.active { background: var(--text-1); color: var(--ground); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.whoami { font-size: 13px; color: var(--text-3); }
.content { flex: 1; width: 100%; max-width: var(--content-max); margin: 0 auto; padding: var(--s6) var(--s8) var(--s12); }
@media (max-width: 900px) { .topbar, .content { padding-left: var(--s6); padding-right: var(--s6); } .pillnav { overflow-x: auto; } }

/* Page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.page-head .sub { color: var(--text-3); font-size: 14px; margin-top: var(--s1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: var(--control-h); padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid transparent; font: 600 14px/1 var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn:active:not(:disabled) { transform: scale(.97); transition-duration: var(--dur-press); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text-1); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--raised); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--raised); color: var(--text-1); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #ff6b6b33; }
.btn-s { height: var(--control-h-s); padding: 0 12px; font-size: 13px; }
.btn-l { height: var(--control-h-l); padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--control-h-s); padding: 0; }
/* Links styled as buttons keep their button colours on hover (the global a:hover must not win). */
a.btn-primary, a.btn-primary:hover, a.btn-primary:focus-visible { color: var(--accent-text); }
a.btn-secondary, a.btn-secondary:hover, a.btn-ghost:hover, a.btn-ghost:focus-visible { color: var(--text-1); }
a.btn-ghost { color: var(--text-2); }
a.btn-danger, a.btn-danger:hover { color: var(--danger); }

/* Forms */
.field { margin-bottom: var(--s4); }
.field label, .field > .label { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--text-3); }
.input, .select, .textarea { width: 100%; height: var(--control-h); background: var(--ground); border: 1px solid var(--border-strong); border-radius: var(--radius-m); color: var(--text-1); padding: 0 12px; font: 400 14px/1.4 var(--font-sans); transition: border-color var(--dur-fast) var(--ease-out); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.input.invalid, .textarea.invalid { border-color: var(--danger); }
.input-l { height: var(--control-h-l); font-size: 15px; }
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2384848f' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field-error, .validation-message { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); margin-top: var(--s3); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.hint { font-size: 13px; color: var(--text-3); }
.seg { display: inline-flex; background: var(--raised); border-radius: var(--radius-m); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--text-3); font: 600 13px var(--font-sans); padding: 6px 14px; border-radius: 8px; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.seg button:active { transform: scale(.96); }
.seg button .n { margin-left: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }
.seg button.on .n { color: var(--text-3); }
.seg button.on { background: var(--surface); color: var(--text-1); }

/* Cards, rows, tiles */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--s6); }
.card-tight { padding: var(--s4); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--s5); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s4); }
.stat b small { font-size: 16px; font-weight: 600; }
.stat b { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat span { color: var(--text-3); font-size: 13px; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--s4); min-height: 56px; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); border-radius: var(--radius-m); transition: background var(--dur-fast) var(--ease-out); }
.row:hover { background: var(--raised); }
.row .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--raised); object-fit: cover; }
.row .title { font-weight: 600; }
.row .secondary { font-size: 13px; color: var(--text-3); }
.row .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-align: right; }
.row:has(.row-remove) { grid-template-columns: 40px 1fr auto auto; }
.row .row-remove { opacity: 0; transition: opacity var(--dur-fast) ease, transform var(--dur-press) var(--ease-out); }
.row:hover .row-remove, .row:focus-within .row-remove { opacity: 1; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s3); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-l); background: linear-gradient(160deg, #1e1e25, #111114); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out); display: block; padding: 0; text-align: left; color: inherit; font: inherit; }
.tile:hover, .tile:focus-visible { border-color: var(--border-strong); }
.tile:active { transform: scale(.985); }
.tile img { transition: transform var(--dur-slow) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }
.tile.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .status { position: absolute; top: var(--s3); left: var(--s3); font: 700 11px var(--font-sans); letter-spacing: .04em; padding: 4px 8px; border-radius: var(--radius-pill); background: #000000aa; color: var(--text-1); }
.tile .status.running { color: var(--accent); }
.tile .status.done { color: var(--success); }
.tile .status.failed { color: var(--danger); }
.tile .lbl { position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3); text-shadow: 0 1px 2px #000; }
.tile .lbl b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .lbl span { font-size: 12px; color: var(--text-2); }
.tile .progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); transition: width var(--dur-slow) var(--ease-in-out); overflow: hidden; }
.tile .progress::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff80, transparent); transform: translateX(-100%); animation: sweep 1.4s linear infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
.tile .center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); font: 500 12px var(--font-mono); }
.badge { display: inline-flex; align-items: center; font: 700 11px var(--font-sans); letter-spacing: .04em; padding: 4px 8px; border-radius: var(--radius-pill); background: var(--raised); color: var(--text-2); }
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

/* States */
.skeleton { background: var(--raised); border-radius: var(--radius-m); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.empty { padding: var(--s12) var(--s6); text-align: center; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-l); }
.empty p { margin-bottom: var(--s4); }
.error-box { padding: var(--s4) var(--s5); border: 1px solid var(--danger); border-radius: var(--radius-m); color: var(--danger); background: var(--danger-soft); }
.error-line { color: var(--danger); font-size: 13px; display: flex; align-items: center; gap: var(--s3); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.progressbar { height: 6px; background: var(--raised); border-radius: 3px; overflow: hidden; }
.progressbar i { display: block; height: 100%; background: var(--accent); transition: width var(--dur-slow) linear; }

/* Dialog */
dialog.dialog { background: var(--surface); color: var(--text-1); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-menu); padding: var(--s6); width: min(560px, calc(100vw - 32px)); }
dialog.dialog.wide { width: min(960px, calc(100vw - 32px)); }
dialog.dialog[open] { position: fixed; inset: 0; margin: auto; max-height: calc(100vh - 32px); overflow: auto; z-index: 60; transform-origin: center; opacity: 1; transform: scale(1); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
@starting-style { dialog.dialog[open] { opacity: 0; transform: scale(.97); } }
.scrim { position: fixed; inset: 0; background: #000000b0; backdrop-filter: blur(4px); z-index: 50; opacity: 1; transition: opacity var(--dur) var(--ease-out); }
@starting-style { .scrim { opacity: 0; } }
dialog.dialog::backdrop { background: #000000a0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s6); }
dialog.dialog.confirm { width: min(440px, calc(100vw - 32px)); z-index: 80; }
dialog.dialog.confirm + .scrim, .scrim:has(+ dialog.confirm) { z-index: 70; }

/* Toasts */
.toasts { position: fixed; right: var(--s6); bottom: var(--s6); display: flex; flex-direction: column; gap: var(--s2); z-index: 100; }
.toast { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-m); padding: var(--s3) var(--s4); font-size: 14px; min-width: 260px; opacity: 1; transform: translateY(0); transition: opacity 320ms ease, transform 320ms ease; }
@starting-style { .toast { opacity: 0; transform: translateY(100%); } }
.toast.bad { border-color: var(--danger); }

/* Auth */
/* Sign-in: form on the left, a quiet product preview on the right. The preview is the one place
   motion may be generous: people see it once per session. */
.auth-shell { min-height: 100vh; display: block; }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 520px) 1fr; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-preview { display: none; } }
.auth-form { display: flex; flex-direction: column; padding: var(--s10) var(--s12); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-size: 18px; color: var(--text-1); text-decoration: none; }
.auth-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #79b8ff, #3d8ff0); color: #06111f; font: 800 14px/1 var(--font-sans); letter-spacing: 0; box-shadow: 0 0 0 4px var(--accent-soft); }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand .mark { width: 22px; height: 22px; font-size: 13px; box-shadow: none; }
.auth-copy { margin: auto 0; width: 100%; max-width: 400px; opacity: 1; translate: 0 0; transition: opacity 420ms var(--ease-out), translate 420ms var(--ease-out); }
@starting-style { .auth-copy { opacity: 0; translate: 0 10px; } }
.auth-title { font-size: 32px; margin-bottom: var(--s2); }
.auth-sub { color: var(--text-3); font-size: 15px; margin-bottom: var(--s8); }
.auth-form .field { margin-bottom: var(--s5); }
.auth-form .btn-block { margin-top: var(--s2); justify-content: center; gap: 10px; }
.auth-form .btn .arrow { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.auth-form .btn:hover .arrow { transform: translateX(4px); }
.auth-error { margin-bottom: var(--s4); padding: 10px 12px; border-radius: var(--radius-m); background: var(--danger-soft); }
.auth-foot { margin-top: var(--s8); font-size: 13px; color: var(--text-4); }

.auth-preview { position: relative; overflow: hidden; background: var(--surface); border-left: 1px solid var(--border); display: grid; place-items: center; padding: var(--s12); }
.auth-preview .glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.auth-preview .g1 { width: 520px; height: 520px; background: #58a6ff33; top: -160px; right: -120px; }
.auth-preview .g2 { width: 420px; height: 420px; background: #4ade8022; bottom: -160px; left: -80px; animation-delay: -7s; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 30px, 0); } }

.preview-stage { position: relative; width: min(560px, 100%); aspect-ratio: 4 / 3.4; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--s4); }
.scene > * { flex-shrink: 0; }
.scene { opacity: 0; transform: translateY(14px) scale(.985); animation: scene 15s var(--ease-in-out) infinite; }
.scene-render { animation-delay: 0s; } .scene-viral { animation-delay: 5s; } .scene-stats { animation-delay: 10s; }
@keyframes scene {
  0% { opacity: 0; transform: translateY(14px) scale(.985); }
  4%, 30% { opacity: 1; transform: translateY(0) scale(1); }
  34%, 100% { opacity: 0; transform: translateY(-10px) scale(.985); }
}
.dots { position: absolute; bottom: var(--s8); display: flex; gap: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border-strong); animation: dot 15s linear infinite; }
.dots .d2 { animation-delay: 5s; } .dots .d3 { animation-delay: 10s; }
@keyframes dot { 0%, 33% { background: var(--accent); width: 18px; } 34%, 100% { background: var(--border-strong); width: 6px; } }

.mini-bar { display: flex; align-items: center; gap: 6px; height: 40px; flex-shrink: 0; overflow: hidden; padding: 0 14px; background: var(--ground); border: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.mini-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2c2c35; }
.mini-bar b { margin-left: 8px; font-size: 13px; letter-spacing: -.02em; }
.mini-bar .nav { margin-left: auto; display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.mini-bar .nav em { font: 600 11px var(--font-sans); font-style: normal; white-space: nowrap; color: var(--text-3); padding: 4px 10px; border-radius: 999px; }
.mini-bar .nav em.on { background: var(--text-1); color: var(--ground); }
.mini-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; background: var(--ground); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; }
.mt { position: relative; aspect-ratio: 9 / 14; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--raised); }
.mt.t1 { background: linear-gradient(160deg, #3b4a6b, #151821); } .mt.t2 { background: linear-gradient(160deg, #5a3f4f, #171519); } .mt.t3 { background: linear-gradient(160deg, #2f5e55, #121816); }
.mt::before { content: ""; position: absolute; left: 50%; bottom: 28%; width: 22%; height: 40%; border-radius: 40% 40% 12% 12%; background: #ffffff18; transform: translateX(-50%); }
.mt.t1::after, .mt.t2::after, .mt.t3::after { content: ""; position: absolute; left: 50%; bottom: 66%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #ffffff2a; transform: translateX(-50%); }
.mt .st { position: absolute; top: 8px; left: 8px; font: 700 9px var(--font-sans); letter-spacing: .04em; padding: 3px 6px; border-radius: 999px; background: #000000aa; color: var(--text-2); }
.mt .st.done { color: var(--success); } .mt .st.run { color: var(--accent); }
.mt .lb { position: absolute; left: 8px; right: 8px; bottom: 8px; font: 600 11px var(--font-sans); color: var(--text-1); text-shadow: 0 1px 2px #000; }
.mt .pg { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); animation: fill 5s linear infinite; }
.mt .pg.p2 { animation-duration: 3.5s; }
@keyframes fill { from { width: 8%; } to { width: 96%; } }
.mt.t4 .lb { color: var(--text-3); }
.pic { background-size: cover; background-position: center 30%; }
.mt.pic::before, .mt.pic::after { display: none; }
.mt.pic::after { display: block; content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #000000cc); width: auto; height: auto; border-radius: 0; transform: none; }
.mt.pic.dim { filter: saturate(.4) brightness(.55); }
.mt.pic .lb, .mt.pic .st { z-index: 1; }
.vc-media.pic { background-image: none; }

.viral-card { display: grid; grid-template-columns: 200px 1fr; gap: 0; background: var(--ground); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; }
.vc-media { position: relative; aspect-ratio: 9 / 12; background: linear-gradient(160deg, #6b5a3b, #1a1712); }
.vc-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #000000cc); }
.vc-media > span { position: absolute; }
.vc-media .score { top: 10px; left: 10px; font: 800 14px var(--font-sans); background: var(--success); color: #06111f; padding: 4px 10px; border-radius: 999px; transform-origin: left top; animation: pop 5s var(--ease-out) infinite; }
@keyframes pop { 0%, 8% { transform: scale(.6); opacity: 0; } 14% { transform: scale(1.08); opacity: 1; } 18%, 100% { transform: scale(1); opacity: 1; } }
.vc-media .src { top: 10px; right: 10px; font: 700 9px var(--font-sans); letter-spacing: .06em; color: var(--text-2); background: #000000aa; padding: 3px 7px; border-radius: 999px; }
.vc-media .nums { left: 10px; bottom: 10px; font-size: 11px; color: var(--text-2); } .vc-media .nums b { font-size: 16px; color: var(--text-1); display: block; }
.vc-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.vc-body .who { width: 60%; height: 12px; border-radius: 6px; background: var(--raised); }
.vc-body .who::after { content: ""; display: block; width: 70%; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--raised); opacity: .6; }
.vc-body .chip { font: 700 10px var(--font-sans); padding: 4px 8px; border-radius: 999px; background: var(--raised); color: var(--text-2); }
.vc-body .cta { margin-top: auto; font: 700 12px var(--font-sans); background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: 999px; animation: nudge 5s var(--ease-out) infinite; }
@keyframes nudge { 0%, 60% { transform: scale(1); } 66% { transform: scale(.96); } 72%, 100% { transform: scale(1); } }

.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 14px 0; background: var(--ground); border: 1px solid var(--border); border-top: 0; }
.mini-kpis div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.mini-kpis small { display: block; font: 700 9px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.mini-kpis b { font-size: 20px; letter-spacing: -.03em; }
.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; flex: 0 0 150px; padding: 14px; background: var(--ground); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; }
.mini-chart i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--accent); opacity: .9; transform-origin: bottom; animation: grow 5s var(--ease-out) infinite; }
.mini-chart i.hi { background: var(--success); }
.mini-chart i:nth-child(2n) { animation-delay: .05s; } .mini-chart i:nth-child(3n) { animation-delay: .1s; } .mini-chart i:nth-child(5n) { animation-delay: .15s; }
@keyframes grow { 0%, 6% { transform: scaleY(.1); } 20%, 100% { transform: scaleY(1); } }

.caption { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.caption b { font-size: 17px; letter-spacing: -.02em; }
.caption span { font-size: 13.5px; color: var(--text-3); line-height: 1.45; }



/* Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.hstack { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.vstack { display: flex; flex-direction: column; gap: var(--s3); }
.spread { justify-content: space-between; }
.mt-2 { margin-top: var(--s2); } .mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); } .mt-8 { margin-top: var(--s8); }
.mb-4 { margin-bottom: var(--s4); } .mb-6 { margin-bottom: var(--s6); }
.avatar-row { display: flex; gap: var(--s2); }
.avatar-row button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ground); outline: 1px solid var(--border-strong); background: var(--raised) center/cover; padding: 0; cursor: pointer; }
.avatar-row button.on { outline: 2px solid var(--accent); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--text-3); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); }
table.table td { padding: var(--s3); border-bottom: 1px solid var(--border); vertical-align: middle; }
table.table td.hstack { white-space: nowrap; }
table.table td.num, table.table th.num { text-align: right; font-family: var(--font-mono); font-size: 12px; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--warning-soft); color: var(--warning); padding: var(--s3) var(--s6); z-index: 100; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* Job dialog */
.job-body { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: var(--s6); }
.job-media video, .job-media img { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: var(--radius-m); display: block; }
.log { background: var(--ground); border: 1px solid var(--border); border-radius: var(--radius-m); padding: var(--s3); font: 12px/1.5 var(--font-mono); color: var(--text-3); max-height: 240px; overflow: auto; white-space: pre-wrap; margin: 0; }
@media (max-width: 700px) { .job-body { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* Generate hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s4); margin-bottom: var(--s6); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--s4); }
@media (max-width: 1100px) { .hero { grid-template-columns: 1fr; } .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; } }
.section-title { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--text-3); margin: var(--s6) 0 var(--s3); }

/* Character cards */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.char-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; text-decoration: none; color: inherit; display: block; transition: border-color var(--dur-fast) var(--ease-out); }
.char-card:hover { border-color: var(--border-strong); }
.char-card .cover { aspect-ratio: 3 / 4; background: var(--raised) center/cover; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--text-4); font-weight: 700; }
.char-card .body { padding: var(--s3) var(--s4); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3); }
.image-grid .img { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-m); overflow: hidden; background: var(--raised); border: 1px solid var(--border); }
.image-grid .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-grid .img .tag { position: absolute; top: 6px; left: 6px; }
.image-grid .img .remove { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.image-grid .img:hover .remove, .image-grid .img:focus-within .remove { opacity: 1; }
.file-pick { position: relative; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); border: 1px dashed var(--border-strong); border-radius: var(--radius-l); padding: var(--s6); background: var(--surface); }
.file-pick.compact { flex-direction: row; justify-content: flex-start; padding: var(--s3) var(--s4); }
.file-pick:hover:not(.disabled), .file-pick:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.file-pick.disabled { opacity: .5; }
.file-pick input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-pick.disabled input[type=file] { cursor: not-allowed; }
.file-pick .pick-btn { display: inline-flex; align-items: center; gap: var(--s2); padding: 8px 14px; border-radius: var(--radius-pill); background: var(--raised); border: 1px solid var(--border-strong); color: var(--text-1); font: 600 13px var(--font-sans); pointer-events: none; }
.file-pick .pick-btn::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0l-4 4m4-4l4 4M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0l-4 4m4-4l4 4M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat; }
.file-pick .pick-hint { color: var(--text-3); font-size: 13px; pointer-events: none; }

/* Archive */
.archive { display: grid; grid-template-columns: 260px 1fr; gap: var(--s6); }
@media (max-width: 900px) { .archive { grid-template-columns: 1fr; } }
.tree a { display: flex; align-items: center; gap: var(--s2); padding: 6px 10px; border-radius: var(--radius-m); color: var(--text-2); text-decoration: none; font-size: 14px; cursor: pointer; }
.tree a:hover { background: var(--raised); }
.tree a.on { background: var(--raised); color: var(--text-1); font-weight: 600; }
.tree .depth-1 { padding-left: 26px; } .tree .depth-2 { padding-left: 42px; } .tree .depth-3 { padding-left: 58px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s4); }
.file { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; }
.file .preview { aspect-ratio: 4 / 5; background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 12px; }
.file .preview img, .file .preview video { width: 100%; height: 100%; object-fit: cover; }
.file .name { padding: var(--s2) var(--s3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .actions { padding: 0 var(--s2) var(--s2); display: flex; gap: var(--s1); flex-wrap: wrap; }

/* Suggestions */
.suggestion { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--s3); align-items: center; }
.suggestion .thumb { width: 96px; aspect-ratio: 9 / 16; border-radius: var(--radius-m); background: var(--raised) center/cover; }
.suggestion .score { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--accent); }
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--raised); font-size: 13px; }
.chip button { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 0; font-size: 14px; }

.row-detail td { background: var(--raised); padding: var(--s4); opacity: 1; transform: translateY(0); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
@starting-style { .row-detail td { opacity: 0; transform: translateY(-4px); } }
.row-detail table.table { font-size: 13px; }

/* Entrances: content settles in from slightly below, staggered in groups. Decorative and never blocks input. */
.enter, .card, .stat, .suggestion, .char-card, .file, .tile, .rows > .row, .expand { opacity: 1; translate: 0 0; transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out), transform var(--dur-press) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), filter var(--dur) ease; }
@starting-style { .enter, .card, .stat, .suggestion, .char-card, .file, .tile, .rows > .row, .expand { opacity: 0; translate: 0 6px; } }
.tiles > :nth-child(2), .stats > :nth-child(2), .char-grid > :nth-child(2), .file-grid > :nth-child(2), .rows > :nth-child(2), .hero-side > :nth-child(2) { transition-delay: 40ms; }
.tiles > :nth-child(3), .stats > :nth-child(3), .char-grid > :nth-child(3), .file-grid > :nth-child(3), .rows > :nth-child(3), .hero-side > :nth-child(3) { transition-delay: 80ms; }
.tiles > :nth-child(4), .stats > :nth-child(4), .char-grid > :nth-child(4), .file-grid > :nth-child(4), .rows > :nth-child(4) { transition-delay: 120ms; }
.tiles > :nth-child(5), .stats > :nth-child(5), .char-grid > :nth-child(5), .file-grid > :nth-child(5), .rows > :nth-child(5) { transition-delay: 160ms; }
.tiles > :nth-child(6), .stats > :nth-child(6), .char-grid > :nth-child(6), .file-grid > :nth-child(6), .rows > :nth-child(6) { transition-delay: 200ms; }
.tiles > :nth-child(n+7), .char-grid > :nth-child(n+7), .file-grid > :nth-child(n+7), .rows > :nth-child(n+7) { transition-delay: 240ms; }
.tile:hover, .tile:active, .card:hover, .rows > .row:hover, .char-card:hover, .char-card:active, .file:hover { transition-delay: 0ms; }

/* Pressables that are not buttons */
.char-card:active, .file:active, .tree a:active, .avatar-row button:active { transform: scale(.97); }
.tree a, .avatar-row button { transition: transform var(--dur-press) var(--ease-out), background var(--dur-fast) var(--ease-out), outline-color var(--dur-fast) var(--ease-out); }
.char-card .cover { transition: filter var(--dur) ease; }
@media (hover: hover) and (pointer: fine) { .char-card:hover .cover { filter: brightness(1.06); } }
.badge, .chip { opacity: 1; transform: scale(1); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
@starting-style { .badge, .chip { opacity: 0; transform: scale(.95); } }

/* Numbers refresh behind a soft blur instead of jumping */
.stat b { display: inline-block; transition: opacity var(--dur) ease, filter var(--dur) ease; }
.stat.updating b { opacity: .6; filter: blur(2px); }

/* Filter bar */
.filters { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.filters .sep { width: 1px; height: 24px; background: var(--border-strong); }
.filters .select { width: auto; height: var(--control-h-s); font-size: 13px; }

/* Charts (inline SVG) */
.chart { display: block; width: 100%; height: 140px; overflow: visible; }
.chart.spark { height: 28px; width: 96px; }
.chart .grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .bar { fill: var(--accent); opacity: .85; transform-box: fill-box; transform-origin: bottom; transform: scaleY(1); transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-fast) ease; }
@starting-style { .chart .bar { transform: scaleY(0); } }
.chart .bar.hi { fill: var(--success); }
@media (hover: hover) and (pointer: fine) { .chart .bar:hover { opacity: 1; } }
.chart .stroke { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 600ms var(--ease-out); }
@starting-style { .chart .stroke { stroke-dashoffset: 1; } }
.chart .area { opacity: 1; transition: opacity 600ms ease; }
@starting-style { .chart .area { opacity: 0; } }
.chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; justify-content: space-between; font: 11px var(--font-mono); color: var(--text-4); margin-top: 6px; }
.chart-empty { height: 140px; display: grid; place-items: center; color: var(--text-4); font-size: 13px; border: 1px dashed var(--border); border-radius: var(--radius-m); }
.chart-card h3 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--text-3); margin-bottom: var(--s3); display: flex; justify-content: space-between; }
.chart-card h3 b { color: var(--text-1); letter-spacing: 0; text-transform: none; font-size: 13px; }
.split-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--raised); gap: 2px; }
.split-seg { display: block; min-width: 3px; transition: flex var(--dur-slow) var(--ease-in-out); }
.split-legend { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s3); font-size: 13px; color: var(--text-2); }
.split-legend b { color: var(--text-1); font-weight: 600; margin-left: 4px; }
.split-legend em { font-style: normal; color: var(--text-4); font-family: var(--font-mono); font-size: 11px; margin-left: 4px; }
.split-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.p-instagram { background: #e1306c; } .p-tiktok { background: #69c9d0; } .p-youtube { background: #ff4d4d; }
.p-video { background: var(--accent); } .p-photo { background: var(--text-3); }

/* Statistics extras */
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s4); }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr; } }
.stats.mini .stat { padding: var(--s3) var(--s4); gap: var(--s1); }
.stats.mini .stat b { font-size: 22px; }
.rows > .row.on { background: var(--raised); }
.taglist { display: flex; flex-direction: column; gap: 6px; }
.tag { display: grid; grid-template-columns: 1fr 96px auto; align-items: center; gap: var(--s2); font-size: 13px; }
.tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.tag em { font-style: normal; color: var(--text-4); font-family: var(--font-mono); font-size: 11px; margin-left: 4px; }
.tag i { display: block; height: 6px; border-radius: 3px; background: var(--accent); transition: width var(--dur-slow) var(--ease-in-out); }
.tag b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-2); min-width: 44px; text-align: right; }
.top-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s3); }
@media (max-width: 900px) { .top-strip { grid-template-columns: repeat(3, 1fr); } }
.top { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-m); overflow: hidden; background: var(--raised); border: 1px solid var(--border); transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.top:hover { border-color: var(--border-strong); }
.top:active { transform: scale(.97); }
.top img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .top:hover img { transform: scale(1.03); } }
.top .v { position: absolute; left: 8px; bottom: 8px; font: 700 13px var(--font-sans); color: var(--text-1); text-shadow: 0 1px 2px #000; }
.top .d { position: absolute; right: 8px; top: 8px; font: 500 11px var(--font-mono); color: var(--text-2); background: #000000aa; padding: 2px 6px; border-radius: var(--radius-pill); }
table.compare td { padding: var(--s2) var(--s3); }

/* Viral */
.viral-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s4); }
.clip { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; opacity: 1; translate: 0 0; transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
@starting-style { .clip { opacity: 0; translate: 0 6px; } }
.viral-grid > :nth-child(2) { transition-delay: 40ms; } .viral-grid > :nth-child(3) { transition-delay: 80ms; } .viral-grid > :nth-child(4) { transition-delay: 120ms; } .viral-grid > :nth-child(5) { transition-delay: 160ms; } .viral-grid > :nth-child(n+6) { transition-delay: 200ms; }
.clip:hover { border-color: var(--border-strong); transition-delay: 0ms; }
.clip.hot { border-color: #58a6ff55; }
.clip .media { position: relative; display: block; aspect-ratio: 9 / 12; background: var(--raised) center / cover no-repeat; overflow: hidden; }
.clip .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #00000000 45%, #000000cc 100%); }
.clip .media > span { position: absolute; z-index: 1; }
.clip .score { top: var(--s3); left: var(--s3); font: 800 15px var(--font-sans); letter-spacing: -.02em; color: var(--accent-text); background: var(--accent); padding: 4px 10px; border-radius: var(--radius-pill); box-shadow: 0 2px 8px #0008; }
.clip.hot .score { background: var(--success); }
.clip .src { top: var(--s3); right: var(--s3); font: 600 11px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); background: #000000aa; padding: 4px 8px; border-radius: var(--radius-pill); }
.clip .nums { left: var(--s3); right: var(--s3); bottom: var(--s3); font-size: 12px; color: var(--text-2); }
.clip .nums b { color: var(--text-1); font-size: 15px; }
.clip .body { padding: var(--s3) var(--s4) var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.clip .who { display: flex; align-items: center; gap: var(--s2); }
.clip .who .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--raised); object-fit: cover; }
.clip .who b { font-size: 14px; }
.clip .reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.clip .cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip .actions { display: flex; gap: var(--s2); align-items: center; margin-top: auto; padding-top: var(--s2); }
.source-list { display: flex; flex-direction: column; gap: var(--s1); }
.source { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: var(--s3); padding: var(--s2); border-radius: var(--radius-m); transition: background var(--dur-fast) var(--ease-out); }
.source:hover { background: var(--raised); }
.source .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--raised); object-fit: cover; }
.source b { font-size: 14px; }
.niche-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.btn .spinner { width: 14px; height: 14px; border-width: 2px; }

/* Viral: favourites + selection */
.clip .fav { position: absolute; z-index: 2; right: var(--s3); top: 44px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #000000aa; color: var(--text-2); font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: transform var(--dur-press) var(--ease-out), color var(--dur-fast) ease, background var(--dur-fast) ease; }
.clip .fav:active { transform: scale(.9); }
.clip .fav.on { color: var(--warning); background: var(--warning-soft); }
.clip .pick { position: absolute; z-index: 2; left: var(--s3); top: 48px; width: 22px; height: 22px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.clip.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.chips.pickers .chip { cursor: pointer; border: 1px solid transparent; user-select: none; transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out); }
.chips.pickers .chip:active { transform: scale(.96); }
.chips.pickers .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text-1); }
.chips.pickers .chip.off { opacity: .5; cursor: not-allowed; }
.selbar { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-m); margin-bottom: var(--s4); }

/* Notification bell */
.bell-wrap { position: relative; }
.bell { position: relative; color: var(--text-2); }
.bell.has { color: var(--text-1); }
.bell .count { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font: 700 10px/16px var(--font-sans); text-align: center; }
.scrim.clear { background: transparent; backdrop-filter: none; z-index: 40; }
.popover { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-menu); z-index: 45; transform-origin: top right; opacity: 1; transform: scale(1); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
@starting-style { .popover { opacity: 0; transform: scale(.96); } }
.popover-list { max-height: 420px; overflow: auto; border-top: 1px solid var(--border); }
.note { display: grid; grid-template-columns: 10px 1fr auto; gap: var(--s3); align-items: start; padding: var(--s3) var(--s4); color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--border); transition: background var(--dur-fast) ease; }
.note:hover { background: var(--raised); color: var(--text-1); }
.note.unread { color: var(--text-1); }
.note.unread b { color: var(--text-1); }
.note b { font-weight: 600; font-size: 14px; }
.note .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--text-4); }
.note.unread .dot.ok { background: var(--success); } .note.unread .dot.bad { background: var(--danger); } .note.unread .dot.accent { background: var(--accent); }
.note .when { white-space: nowrap; }
.push-ask { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--border); background: var(--accent-soft); color: var(--accent); padding: var(--s2) var(--s4); font: 600 13px var(--font-sans); cursor: pointer; }
.kit-row { display: flex; flex-direction: column; gap: 6px; }

/* Language switch */
.lang { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; }
.lang a { font: 700 11px var(--font-sans); letter-spacing: .04em; color: var(--text-3); text-decoration: none; padding: 4px 8px; border-radius: var(--radius-pill); transition: color var(--dur-fast) ease, background var(--dur-fast) ease; }
.lang a:hover { color: var(--text-1); }
.lang a.on { background: var(--text-1); color: var(--ground); }

/* Landing page: the product's own surfaces, generous air, motion only on entrance. */
.landing { min-height: 100vh; }
.l-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); max-width: 1200px; margin: 0 auto; padding: var(--s6) var(--s8); }
.l-top-right { display: flex; align-items: center; gap: var(--s3); }
.l-hero { position: relative; max-width: 1200px; margin: 0 auto; padding: var(--s12) var(--s8) var(--s10); display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s12); align-items: center; }
.l-h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.0; letter-spacing: -.04em; font-weight: 800; margin-top: var(--s5); }
.l-h1 .w { display: block; opacity: 1; translate: 0 0; filter: blur(0); transition: opacity 600ms var(--ease-out), translate 600ms var(--ease-out), filter 600ms var(--ease-out); }
.l-h1 .w2 { transition-delay: 90ms; } .l-h1 .w3 { transition-delay: 180ms; }
@starting-style { .l-h1 .w { opacity: 0; translate: 0 18px; filter: blur(6px); } }
.l-h1 .accent { color: var(--accent); }
.l-lead { font-size: 19px; color: var(--text-2); line-height: 1.5; margin-top: var(--s6); max-width: 560px; font-weight: 500; }
.l-actions { display: flex; gap: var(--s3); margin-top: var(--s8); flex-wrap: wrap; }
.l-actions .arrow, .l-cta .arrow { display: inline-block; margin-left: 6px; transition: transform var(--dur) var(--ease-out); }
.l-actions .btn:hover .arrow, .l-cta .btn:hover .arrow { transform: translateX(4px); }
.l-note { margin-top: var(--s5); font-size: 13px; color: var(--text-4); }
.l-hero-preview .auth-preview.in-hero { border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--s8); min-height: 520px; background: var(--surface); }
.auth-preview.in-hero .preview-stage { width: 100%; }
.l-section { max-width: 1200px; margin: 0 auto; padding: var(--s12) var(--s8); border-top: 1px solid var(--border); }
.l-h2 { font-size: 30px; letter-spacing: -.03em; font-weight: 800; }
.l-sub { color: var(--text-3); font-size: 15px; margin-top: var(--s2); }
.l-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s8); }
.l-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--s6); }
.l-step .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.l-step b { display: block; font-size: 20px; letter-spacing: -.02em; margin: var(--s3) 0 var(--s2); }
.l-step p { color: var(--text-3); font-size: 14.5px; line-height: 1.5; }
.l-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8) var(--s10); margin-top: var(--s8); }
.l-feat i { display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: var(--s4); }
.l-feat b { display: block; font-size: 18px; letter-spacing: -.02em; margin-bottom: var(--s2); }
.l-feat p { color: var(--text-3); font-size: 14.5px; line-height: 1.5; }
.l-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s8); }
.l-plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--s6); transition: border-color var(--dur-fast) ease, translate var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .l-plan:hover { border-color: var(--border-strong); translate: 0 -2px; } }
.l-plan.hi { border-color: var(--accent); background: linear-gradient(180deg, #58a6ff14, var(--surface)); }
.l-plan em { position: absolute; top: var(--s4); right: var(--s4); font: 700 10px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-style: normal; }
.l-plan b { display: block; font-size: 16px; }
.l-plan .p { font-size: 34px; font-weight: 800; letter-spacing: -.035em; margin: var(--s2) 0; }
.l-plan .p small { font-size: 13px; color: var(--text-3); font-weight: 600; }
.l-plan span { font-size: 13.5px; color: var(--text-3); }
.l-cta { max-width: 1200px; margin: var(--s6) auto 0; padding: var(--s8); display: flex; align-items: center; justify-content: space-between; gap: var(--s6); background: var(--accent); color: var(--accent-text); border-radius: var(--radius-l); flex-wrap: wrap; }
.l-cta b { display: block; font-size: 26px; letter-spacing: -.03em; }
.l-cta span { font-size: 15px; font-weight: 600; opacity: .85; }
.l-cta .btn-primary { background: #06111f; color: #fff; }
.l-foot { max-width: 1200px; margin: 0 auto; padding: var(--s8); display: flex; justify-content: space-between; font-size: 13px; color: var(--text-4); }
.l-foot a { color: var(--text-3); text-decoration: none; }

/* Scroll reveal: opacity + 12px lift, ease-out, staggered by class */
.reveal { opacity: 0; translate: 0 12px; transition: opacity 520ms var(--ease-out), translate 520ms var(--ease-out); }
.reveal.in { opacity: 1; translate: 0 0; }
.reveal.delay-1 { transition-delay: 70ms; } .reveal.delay-2 { transition-delay: 140ms; } .reveal.delay-3 { transition-delay: 210ms; }

@media (max-width: 1000px) {
  .l-hero { grid-template-columns: 1fr; padding-top: var(--s8); }
  .l-steps, .l-feats { grid-template-columns: 1fr; }
  .l-plans { grid-template-columns: 1fr 1fr; }
  .l-top-right .btn-primary { display: none; }
}
@media (max-width: 600px) { .l-plans { grid-template-columns: 1fr; } .l-top, .l-hero, .l-section, .l-foot { padding-left: var(--s4); padding-right: var(--s4); } .lang a:not(.on) { display: none; } }

/* Language dropdown */
.lang-select { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.lang-select .select { width: auto; height: var(--control-h-s); font-size: 13px; padding: 0 28px 0 10px; background-color: var(--surface); border-color: var(--border); }
.lang-select .select:hover { border-color: var(--border-strong); color: var(--text-1); }

/* Landing showcases: one per dashboard area, each mock loops on CSS alone */
.show { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--s10); align-items: center; padding: var(--s10) 0; border-bottom: 1px solid var(--border); }
.show:last-child { border-bottom: 0; }
.show.flip { grid-template-columns: 1.25fr 1fr; }
.show.flip .show-copy { order: 2; }
.show-copy .eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.show-copy h3 { font-size: 28px; letter-spacing: -.03em; font-weight: 800; margin: var(--s3) 0 var(--s3); }
.show-copy p { color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 440px; }
.show-mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 30px 80px #00000066; }
.show-mock .mini-bar { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); height: 44px; }
.show-mock .mock-body { padding: var(--s5); background: var(--ground); display: flex; flex-direction: column; gap: var(--s4); }
@media (max-width: 1000px) { .show, .show.flip { grid-template-columns: 1fr; } .show.flip .show-copy { order: 0; } }

/* 01 characters */
.mock-chars .photos { display: flex; gap: 8px; }
.mock-chars .photos span { flex: 1; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--raised) center / cover; border: 1px solid var(--border); opacity: 0; transform: translateY(8px); animation: photo-in 9s var(--ease-out) infinite; }
.mock-chars .photos span:nth-child(2) { animation-delay: .25s; } .mock-chars .photos span:nth-child(3) { animation-delay: .5s; } .mock-chars .photos span:nth-child(4) { animation-delay: .75s; } .mock-chars .photos span:nth-child(5) { animation-delay: 1s; }
.mock-chars .photos .drop { display: grid; place-items: center; border-style: dashed; color: var(--text-3); font-size: 22px; animation-delay: 1.2s; }
@keyframes photo-in { 0% { opacity: 0; transform: translateY(8px); } 6%, 92% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(8px); } }
.mock-chars .train-row { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); }
.mock-chars .bar { height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.mock-chars .bar i { display: block; height: 100%; width: 0; background: var(--accent); animation: train 9s var(--ease-in-out) infinite; }
@keyframes train { 0%, 18% { width: 0; background: var(--accent); } 70% { width: 100%; background: var(--accent); } 76%, 100% { width: 100%; background: var(--success); } }
.mock-chars .pct { font-family: var(--font-mono); text-align: right; }
.mock-chars .pct::after { content: "0%"; animation: pct 9s steps(1) infinite; }
@keyframes pct { 0%, 18% { content: "0%"; } 30% { content: "22%"; } 42% { content: "48%"; } 55% { content: "71%"; } 68% { content: "94%"; } 76%, 100% { content: "100%"; } }
.mock-chars .ready-row { display: flex; align-items: center; gap: 10px; opacity: 0; animation: ready 9s var(--ease-out) infinite; }
@keyframes ready { 0%, 76% { opacity: 0; transform: translateY(4px); } 82%, 100% { opacity: 1; transform: translateY(0); } }

/* 02 generate */
.mock-gen .mode { display: inline-flex; background: var(--raised); border-radius: 10px; padding: 3px; gap: 2px; align-self: flex-start; }
.mock-gen .mode span { font: 600 12px var(--font-sans); padding: 5px 12px; border-radius: 8px; color: var(--text-3); }
.mock-gen .mode span.on { background: var(--surface); color: var(--text-1); }
.mock-gen .link-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-m); padding: 8px 8px 8px 12px; background: var(--ground); }
.mock-gen .typed { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; border-right: 2px solid var(--accent); width: 0; animation: typing 8s steps(44) infinite; }
@keyframes typing { 0%, 5% { width: 0; } 45%, 100% { width: 100%; } }
.mock-gen .go { font: 700 12px var(--font-sans); background: var(--accent); color: var(--accent-text); padding: 7px 12px; border-radius: 999px; animation: go 8s var(--ease-out) infinite; }
@keyframes go { 0%, 46% { transform: scale(1); } 50% { transform: scale(.94); } 54%, 100% { transform: scale(1); } }
.mock-gen .gen-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-gen .gt { position: relative; aspect-ratio: 9 / 13; border-radius: 10px; background: var(--raised) center 30% / cover; border: 1px solid var(--border); overflow: hidden; opacity: 0; transform: translateY(8px); animation: tile-in 8s var(--ease-out) infinite; filter: saturate(.5) brightness(.6); }
.mock-gen .gt:nth-child(2) { animation-delay: .15s; } .mock-gen .gt:nth-child(3) { animation-delay: .3s; } .mock-gen .gt:nth-child(4) { animation-delay: .45s; }
@keyframes tile-in { 0%, 52% { opacity: 0; transform: translateY(8px); filter: saturate(.5) brightness(.6); } 58% { opacity: 1; transform: translateY(0); filter: saturate(.5) brightness(.6); } 90%, 96% { opacity: 1; filter: saturate(1) brightness(1); } 100% { opacity: 0; } }
.mock-gen .gt .st { position: absolute; top: 8px; left: 8px; font: 700 9px var(--font-sans); letter-spacing: .04em; padding: 3px 6px; border-radius: 999px; background: #000000aa; color: var(--accent); }
.mock-gen .gt .st::after { content: ""; }
.mock-gen .gt.img .st { color: var(--warning); }
.mock-gen .gt .pg { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); animation: gen-pg 8s linear infinite; }
@keyframes gen-pg { 0%, 58% { width: 0; } 90%, 100% { width: 100%; } }

/* 03 viral */
.mock-viral .vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-viral .vc { position: relative; aspect-ratio: 9 / 11; border-radius: 10px; background: var(--raised) center 30% / cover; border: 1px solid var(--border); overflow: hidden; }
.mock-viral .vc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #000000cc); }
.mock-viral .vc .score { position: absolute; top: 8px; left: 8px; font: 800 13px var(--font-sans); padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #06111f; transform: scale(.6); opacity: 0; animation: score-pop 7s var(--ease-out) infinite; }
.mock-viral .vc .score.s1 { background: var(--success); animation-delay: .3s; } .mock-viral .vc .score.s2 { animation-delay: .9s; } .mock-viral .vc .score.s3 { animation-delay: 1.5s; }
@keyframes score-pop { 0%, 10% { transform: scale(.6); opacity: 0; } 16% { transform: scale(1.1); opacity: 1; } 20%, 90% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
.mock-viral .vc .v { position: absolute; left: 8px; bottom: 8px; font-size: 10px; color: var(--text-2); } .mock-viral .vc .v b { display: block; font-size: 14px; color: var(--text-1); }
.mock-viral .scan { display: flex; align-items: center; gap: 8px; }

/* 04 stats */
.mock-stats .spark { display: block; width: 100%; height: 110px; overflow: visible; }
.mock-stats .spark .line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 6s var(--ease-out) infinite; }
.mock-stats .spark .area { opacity: 0; animation: area 6s ease infinite; }
@keyframes draw { 0%, 8% { stroke-dashoffset: 1; } 45%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes area { 0%, 30% { opacity: 0; } 55%, 92% { opacity: 1; } 100% { opacity: 0; } }
.mock-stats .mini-chart { border: 0; border-radius: 0; padding: 0; height: 80px; flex: 0 0 80px; }
.mock-stats .mini-chart i { animation-duration: 6s; }
.mock-stats .mini-kpis { border: 0; padding: 0; }

/* 05 publish kit */
.mock-kit .kit-grid { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); }
.mock-kit .kit-thumb { aspect-ratio: 9 / 16; border-radius: 10px; background: var(--raised) center / cover; border: 1px solid var(--border); }
.mock-kit .kit-lines { display: flex; flex-direction: column; gap: 10px; }
.mock-kit .kl small { display: block; font: 700 9px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.mock-kit .kl span { display: block; font-size: 12.5px; color: var(--text-1); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-height: 34px; }
.mock-kit .kl .type { white-space: nowrap; overflow: hidden; text-overflow: clip; width: 0; animation: kit-type 8s steps(50) infinite; }
.mock-kit .kl .type.t2 { animation-delay: 1.6s; }
@keyframes kit-type { 0%, 14% { width: 0; } 44%, 100% { width: 100%; } }
.mock-kit .kl-actions { display: flex; align-items: center; gap: 8px; }
.mock-kit .kl-actions .copy { animation: copy-press 8s var(--ease-out) infinite; }
@keyframes copy-press { 0%, 62% { transform: scale(1); } 65% { transform: scale(.94); } 68%, 100% { transform: scale(1); } }
.mock-kit .copied { font-size: 12px; color: var(--success); font-weight: 700; opacity: 0; animation: copied 8s ease infinite; }
@keyframes copied { 0%, 66% { opacity: 0; transform: translateY(3px); } 70%, 90% { opacity: 1; transform: translateY(0); } 95%, 100% { opacity: 0; } }

/* 06 notifications */
.mock-notes .bellwrap { position: relative; margin-left: 10px; color: var(--text-2); display: inline-flex; animation: bell-ring 7s var(--ease-out) infinite; transform-origin: top center; }
@keyframes bell-ring { 0%, 20% { transform: rotate(0); } 22% { transform: rotate(14deg); } 24% { transform: rotate(-12deg); } 26% { transform: rotate(8deg); } 28% { transform: rotate(-4deg); } 30%, 100% { transform: rotate(0); } }
.mock-notes .cnt { position: absolute; top: -8px; right: -9px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #06111f; font: 800 10px/16px var(--font-sans); text-align: center; font-style: normal; transform: scale(0); animation: cnt 7s var(--ease-out) infinite; }
@keyframes cnt { 0%, 20% { transform: scale(0); } 26% { transform: scale(1.15); } 30%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
.mock-notes .notes { gap: 8px; }
.mock-notes .nt { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; opacity: 0; transform: translateX(16px); animation: note-in 7s var(--ease-out) infinite; }
.mock-notes .nt.n2 { animation-delay: .5s; } .mock-notes .nt.n3 { animation-delay: 1s; }
@keyframes note-in { 0%, 28% { opacity: 0; transform: translateX(16px); } 34%, 92% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; } }
.mock-notes .nt b { display: block; font-size: 13px; } .mock-notes .nt small { color: var(--text-3); font-size: 11.5px; }
.mock-notes .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--text-4); }
.mock-notes .dot.ok { background: var(--success); } .mock-notes .dot.accent { background: var(--accent); }

/* Legal pages and footer links */
.legal-links { display: flex; gap: var(--s4); flex-wrap: wrap; }
.legal-links a { color: var(--text-3); text-decoration: none; font-size: 13px; }
.legal-links a:hover { color: var(--text-1); }
.auth-form .legal-links { margin-top: var(--s4); }
.app-foot { order: 99; max-width: var(--content-max); width: 100%; margin: 0 auto; padding: var(--s4) var(--s8) var(--s6); display: flex; justify-content: space-between; align-items: center; gap: var(--s4); font-size: 12px; color: var(--text-4); }
.shell { display: flex; flex-direction: column; }
.shell > main { flex: 1; }
.legal-body { max-width: 1200px; margin: 0 auto; padding: var(--s8); display: grid; grid-template-columns: 220px 1fr; gap: var(--s10); align-items: start; }
@media (max-width: 800px) { .legal-body { grid-template-columns: 1fr; } }
.legal-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: var(--s6); }
.legal-nav a { padding: 8px 12px; border-radius: var(--radius-m); color: var(--text-3); text-decoration: none; font-size: 14px; font-weight: 600; }
.legal-nav a:hover { background: var(--raised); color: var(--text-1); }
.legal-nav a.on { background: var(--surface); color: var(--text-1); border: 1px solid var(--border); }
.legal-text { max-width: 760px; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.legal-text h1 { font-size: 34px; color: var(--text-1); margin-bottom: var(--s6); }
.legal-text h2 { font-size: 20px; color: var(--text-1); margin: var(--s8) 0 var(--s3); }
.legal-text h3 { font-size: 16px; color: var(--text-1); margin: var(--s5) 0 var(--s2); }
.legal-text p { margin-bottom: var(--s3); }
.legal-text ul { margin: 0 0 var(--s3) 20px; }
.legal-text li { margin-bottom: 6px; }
.legal-text strong { color: var(--text-1); }

/* Mobile: public pages */
.landing, .auth-split { overflow-x: hidden; }
.landing *, .auth-split * { min-width: 0; }
.show-mock, .screen, .auth-preview { overflow: hidden; }
.l-h1 { outline: none; }
@media (max-width: 700px) {
  .l-top { padding: var(--s4); }
  .l-top-right { gap: var(--s2); }
  .l-top-right .btn-ghost { display: none; }
  .lang-select .select { padding-right: 24px; }
  .l-hero { padding: var(--s6) var(--s4) var(--s8); gap: var(--s6); }
  .l-h1 { font-size: 40px; }
  .l-lead { font-size: 16px; }
  .l-actions .btn { width: 100%; }
  .l-hero-preview .auth-preview.in-hero { padding: var(--s4); min-height: 0; }
  .preview-stage { aspect-ratio: 4 / 4.2; }
  .caption b { font-size: 15px; } .caption span { font-size: 12.5px; }
  .mini-bar .nav { display: none; }
  .l-section { padding: var(--s8) var(--s4); }
  .l-h2 { font-size: 24px; }
  .show { gap: var(--s5); padding: var(--s6) 0; }
  .show-copy h3 { font-size: 22px; } .show-copy p { font-size: 15px; }
  .show-mock .mock-body { padding: var(--s3); }
  .mock-gen .gen-tiles { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .mock-gen .gt .st { font-size: 8px; }
  .mock-viral .vgrid { gap: 6px; }
  .mock-kit .kit-grid { grid-template-columns: 90px 1fr; gap: var(--s3); }
  .mock-chars .photos span { border-radius: 8px; }
  .l-plans { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .l-plan { padding: var(--s4); } .l-plan .p { font-size: 26px; }
  .l-cta { margin: var(--s4) var(--s4) 0; padding: var(--s5); border-radius: var(--radius-l); }
  .l-cta b { font-size: 20px; }
  .l-cta .btn { width: 100%; justify-content: center; }
  .l-foot { flex-direction: column; gap: var(--s3); padding: var(--s6) var(--s4); }
  .auth-form { padding: var(--s6) var(--s4); }
  .auth-title { font-size: 26px; }
  .legal-body { padding: var(--s4); }
  .legal-text h1 { font-size: 26px; }
}
@media (max-width: 420px) { .l-plans { grid-template-columns: 1fr; } .l-h1 { font-size: 36px; } }
