/* Vera. Light, airy studio look: floating pill nav, centered display
   headline, vertical video reel, big soft white cards. Coral-to-tangerine
   gradient is the brand color. Deliberately single (light) theme; every
   color is set explicitly so it renders the same on any host. */
:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f2f2f4;
  --border: #e6e6ea;
  --text: #111114;
  --muted: #62626c;
  --primary: #e8364f;
  --primary-hover: #d42a43;
  --primary-soft: #fff0f1;
  --grad: linear-gradient(135deg, #ff4d6d 0%, #ff7a45 55%, #ff9a3c 100%);
  --grad-soft: linear-gradient(135deg, #ffe3e8 0%, #ffeedd 100%);
  --ok: #138a4f;
  --warn: #a76100;
  --bad: #d12c3f;
  --shadow-sm: 0 1px 2px rgb(17 17 20 / 0.05), 0 1px 1px rgb(17 17 20 / 0.03);
  --shadow: 0 10px 30px rgb(17 17 20 / 0.07), 0 2px 6px rgb(17 17 20 / 0.04);
  --shadow-lg: 0 24px 60px rgb(17 17 20 / 0.12);

  --display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-variant-numeric: tabular-nums; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--google { stroke: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text);
  font: 600 15px/1 var(--display); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, transform .1s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--soft { background: #e9e9ec; }
.btn--soft:hover { background: #dedee2; }
.btn--white { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--white:hover { border-color: #cfcfd6; }
.btn--gradient { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgb(255 90 80 / .28); }
.btn--gradient:hover { filter: brightness(1.05); }
.btn--lg { min-height: 50px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn__cost { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1 var(--body); padding: 5px 9px; border-radius: 999px; background: rgb(255 255 255 / .22); }
.link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }

.chip-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font: 500 14px/1.2 var(--body); color: var(--text);
}

/* ---------- landing ---------- */
.landing { position: relative; overflow-x: clip; padding-inline: var(--gutter); }
.glow {
  position: absolute; top: -220px; right: -180px; width: 640px; height: 640px; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 105 120 / .35), rgb(255 160 80 / .18) 55%, transparent);
  filter: blur(30px);
}
.landing > :not(.glow):not(.nav-wrap) { position: relative; z-index: 1; }

.nav-wrap { position: sticky; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 30; max-width: 1280px; margin: 14px auto 0; }
.nav {
  display: flex; align-items: center; gap: 22px; padding: 14px 16px 14px 26px;
  background: rgb(255 255 255 / .86); backdrop-filter: blur(14px);
  border: 1px solid transparent; border-radius: 22px;
  background-image: linear-gradient(rgb(255 255 255 / .9), rgb(255 255 255 / .9)), linear-gradient(90deg, #ffb0bd, #ffd2b0, #ffb0bd);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; }
.brand__word { font: 800 22px/1 var(--display); letter-spacing: -0.03em; }
.brand--small .brand__mark { width: 24px; height: 24px; }
.brand--small .brand__word { font-size: 18px; }
.nav__divider { width: 1px; height: 22px; background: var(--border); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font: 500 16px/1 var(--body); color: #2c2c33; }
.nav__links a:hover { color: var(--primary); }
.nav__actions { margin-left: auto; display: flex; gap: 8px; }

.hero { display: grid; justify-items: center; gap: 22px; text-align: center; max-width: 1000px; margin: 0 auto; padding-block: clamp(56px, 8vw, 96px) 40px; }
.hero__title { font: 800 clamp(2.6rem, 1.3rem + 5.2vw, 5rem)/1 var(--display); letter-spacing: -0.045em; }
.hero__lede { font-size: 18px; color: #3a3a42; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* reel of vertical "videos" */
.reel { margin-inline: calc(var(--gutter) * -1); overflow: hidden; padding-block: 8px 24px; }
.reel__track { display: flex; justify-content: center; gap: 14px; }
.vcard {
  position: relative; flex: none; width: clamp(180px, 19vw, 280px); aspect-ratio: 9 / 16;
  border-radius: 20px; overflow: hidden; background: #1a1418; isolation: isolate;
  box-shadow: var(--shadow);
}
.vcard--active { outline: 3px solid transparent; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ff7a5c, var(--shadow-lg); }
.vcard__scene { position: absolute; inset: -15%; animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-3%, -2%) scale(1); } to { transform: translate(3%, 2%) scale(1.07); } }
.vcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .25), transparent 30%, transparent 55%, rgb(0 0 0 / .55)); }
.vcard__tag {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--text);
  font: 600 12px/1 var(--body);
}
.vcard__tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.vcard__cap {
  position: absolute; left: 10%; right: 10%; bottom: 16%;
  font: 800 clamp(16px, 1.6vw, 22px)/1.1 var(--display); text-align: center; text-transform: uppercase; color: #fff;
  -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000;
}
.vcard__cap mark { background: none; color: #ffd84a; }
.vcard__meta { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; color: #fff; font: 500 12px/1 var(--body); opacity: .9; }
.vcard__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: #fff; animation: progress 6s linear infinite; }
@keyframes progress { from { width: 0; } to { width: 100%; } }

.section { max-width: 1280px; margin: 0 auto; padding-block: clamp(56px, 8vw, 104px); display: grid; justify-items: center; text-align: center; gap: 18px; }
.h2 { font: 800 clamp(2rem, 1.2rem + 3vw, 3.5rem)/1.02 var(--display); letter-spacing: -0.04em; }
.section__lede { color: var(--muted); font-size: 17px; max-width: 58ch; }

.features { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; text-align: left; }
.feature {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature__art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.feature__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); }
.feature__icon .i { width: 26px; height: 26px; }
.feature__body { display: grid; gap: 6px; padding: 18px 20px 22px; align-content: start; }
.feature__name { font: 700 19px/1.2 var(--display); letter-spacing: -0.01em; }
.feature__tag { color: var(--muted); font-size: 14px; }
.feature__price { margin-top: 6px; font: 600 13px/1 var(--body); color: var(--primary); }

.panel { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ratecard-wrap { overflow-x: auto; margin-top: 20px; text-align: left; }
.ratecard { width: 100%; border-collapse: collapse; min-width: 600px; font-variant-numeric: tabular-nums; }
.ratecard th, .ratecard td { padding: 14px 22px; border-bottom: 1px solid var(--border); text-align: left; }
.ratecard tr:last-child td { border-bottom: 0; }
.ratecard thead th { font: 600 13px/1 var(--body); color: var(--muted); }
.ratecard .num { text-align: right; font-weight: 600; }
.ratecard .group td { background: var(--surface-2); font: 700 13px/1 var(--display); color: var(--muted); }
.ratecard .muted { color: var(--muted); font-size: 14px; }

.toggle, .cycle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.toggle__opt, .cycle__opt { padding: 8px 18px; border: 0; border-radius: 999px; background: none; font: 600 14px/1 var(--body); color: var(--muted); cursor: pointer; }
.toggle__opt[aria-pressed="true"], .cycle__opt[aria-pressed="true"] { background: var(--primary); color: #fff; }

.plans { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; text-align: left; }
.plan {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; padding: 30px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.plan--featured {
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: var(--shadow);
}
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 800 36px/1 var(--display); letter-spacing: -0.04em; }
.plan__badge { font: 600 12px/1 var(--body); letter-spacing: 0; color: #fff; background: var(--grad); padding: 6px 10px; border-radius: 999px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font: 700 26px/1 var(--display); }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__blurb { color: var(--muted); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; font-size: 14px; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.plan__list li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8364f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; margin-top: 1px; }
.plan .btn { min-height: 46px; }
.plan .btn:not(.btn--primary) { background: var(--text); color: #fff; }
.plan .btn:not(.btn--primary):hover { background: #2b2b31; }
.plan .btn[disabled] { background: var(--surface-2); color: var(--muted); }
.packs-line { color: var(--muted); font-size: 15px; }
.packs-line b { color: var(--text); }

.faq__list { width: 100%; display: grid; gap: 10px; text-align: left; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 600 17px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }

.cta-band {
  max-width: 1280px; margin: 0 auto 40px; padding: clamp(40px, 6vw, 72px) 24px;
  display: grid; justify-items: center; gap: 14px; text-align: center;
  border-radius: 28px; background: var(--grad); color: #fff;
}
.cta-band__title { font: 800 clamp(2rem, 1.2rem + 3vw, 3.25rem)/1 var(--display); letter-spacing: -0.04em; }
.cta-band p { font-size: 18px; opacity: .92; }
.cta-band .btn { margin-top: 8px; border: 0; }


/* ---------- studio shell ---------- */
.studio { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100%; }
.side { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--border); }
.side__brand { padding: 2px 8px 6px; }
.side__create { min-height: 44px; }
.side__nav { display: grid; gap: 2px; overflow-y: auto; align-content: start; flex: 1; }
.rail__group { margin: 14px 10px 6px; font: 600 12px/1 var(--body); color: #9a9aa4; }
.rail__item {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  color: #3a3a42; text-decoration: none; font: 500 14.5px/1.2 var(--body);
}
.rail__item:hover { background: var(--surface-2); }
.rail__item[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.rail__item .i { width: 19px; height: 19px; }
.rail__item .lock { margin-left: auto; }
.lock { display: inline-flex; font: 600 11px/1 var(--body); padding: 4px 7px; border-radius: 6px; background: var(--grad-soft); color: #b5372a; }
.side__foot { position: relative; padding-top: 10px; border-top: 1px solid var(--border); }

.account { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; }
.account:hover { background: var(--surface-2); }
.account__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 15px/1 var(--display); flex: none; }
.account__text { display: grid; line-height: 1.3; font-weight: 600; min-width: 0; flex: 1; }
.account__text > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__plan { font: 500 12px/1.2 var(--body); color: var(--muted); }
.account__chev { color: var(--muted); }
.menu {
  position: absolute; bottom: 60px; left: 0; right: 0; z-index: 10; display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.menu a, .menu button { padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; text-decoration: none; cursor: pointer; font-weight: 500; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu__email { padding: 6px 10px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; overflow-wrap: anywhere; }

.studio__main { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--border); }
.top__spacer { flex: 1; }
.credits { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); text-decoration: none; font: 600 14px/1 var(--body); }
.credits .i { width: 16px; height: 16px; color: #ff7a45; fill: #ff9a3c; stroke: #ff7a45; }
.credits .is-tick { color: var(--primary); }

.stage { min-width: 0; overflow-y: auto; padding: clamp(20px, 3vw, 36px) var(--gutter) 64px; }
.stage__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.stage__title { font: 800 clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem)/1.05 var(--display); letter-spacing: -0.035em; }
.stage__sub { color: var(--muted); margin-top: 6px; }

/* ---------- tool workspace ---------- */
.workbench { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
.inspector, .monitor { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
.inspector { display: grid; gap: 20px; padding: 22px; }
.inspector__foot { display: grid; gap: 10px; }
.inspector__note { font-size: 13px; color: var(--muted); }

.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field__label { font: 600 14px/1.2 var(--body); color: var(--text); }
.field__hint { font-size: 13px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(232 54 79 / .12); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; background: var(--surface-2); border-color: transparent; }
.textarea:focus { background: var(--surface); }
.count { font-size: 12px; color: var(--muted); text-align: right; margin-top: -4px; }
.count.is-over { color: var(--bad); }
.form-error { color: var(--bad); font-size: 14px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__opt {
  display: grid; gap: 3px; padding: 9px 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  font: 500 14px/1.2 var(--body);
}
.seg__opt:hover { border-color: #cfcfd6; }
.seg__opt[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.seg__opt[data-locked="true"] .seg__name { color: var(--muted); }
.seg__name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.seg__sub { font-size: 12px; color: var(--muted); }
.seg--models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg--models .seg__opt { padding: 12px 14px; }

.drop {
  position: relative; display: grid; place-items: center; gap: 6px; padding: 22px 16px;
  border: 1.5px dashed #d8d8de; border-radius: 14px; background: var(--surface-2);
  text-align: center; cursor: pointer; color: var(--muted); font-size: 14px;
}
.drop:hover, .drop.is-over { border-color: var(--primary); background: var(--primary-soft); }
.drop strong { color: var(--text); font-weight: 600; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__thumb { max-height: 130px; border-radius: 10px; }

.monitor { position: sticky; top: 0; display: grid; gap: 14px; padding: 18px; min-height: 460px; align-content: start; }
.monitor__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 14px/1 var(--body); color: var(--muted); }
.screen { display: grid; place-items: center; min-height: 380px; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.screen video, .screen img { max-height: 68vh; width: auto; border-radius: 10px; }
.screen audio { width: min(100%, 440px); }
.screen__empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 28px; color: var(--muted); max-width: 40ch; }
.screen__empty svg { width: 48px; height: 48px; opacity: .9; }
.screen--doc { place-items: stretch; padding: 24px; background: var(--surface-2); }

.render { display: grid; gap: 12px; justify-items: center; padding: 28px; text-align: center; }
.render__bar { width: min(300px, 80%); height: 6px; border-radius: 6px; background: #e4e4e9; overflow: hidden; }
.render__bar span { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 6px; animation: scan 1.4s ease-in-out infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.render__stage { font: 700 18px/1.2 var(--display); }
.render__tc { font-size: 13px; color: var(--muted); }

.demo-frame {
  position: relative; width: min(250px, 60%); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: radial-gradient(50% 40% at 35% 30%, hsl(var(--h) 90% 72%), transparent 70%), radial-gradient(60% 50% at 70% 75%, hsl(calc(var(--h) + 40) 75% 45%), transparent 70%), #1a1418;
  display: grid; place-items: end center; padding: 16px; color: #fff; text-align: center;
}
.demo-frame--wide { width: min(440px, 90%); aspect-ratio: 16 / 9; }
.demo-frame span { font: 600 12px/1.4 var(--body); background: rgb(0 0 0 / .5); padding: 5px 10px; border-radius: 999px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-actions .btn { background: var(--surface); border-color: var(--border); }
.result-actions .btn:hover { border-color: #cfcfd6; }

.scriptdoc { display: grid; gap: 22px; text-align: left; }
.scriptdoc h3 { font: 700 13px/1 var(--body); color: var(--muted); margin-bottom: 10px; }
.hooks { display: grid; gap: 8px; }
.hook { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.hook__style { grid-column: 1; font: 600 12px/1 var(--body); color: var(--primary); }
.hook__line { grid-column: 1; font: 600 17px/1.35 var(--display); }
.hook .icon-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.beats { display: grid; gap: 8px; }
.beat { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.beat__say { font-weight: 600; }
.beat__show { color: var(--muted); font-size: 13px; }
.beat__show::before { content: "On screen · "; font-weight: 600; }
.scriptdoc__cta { padding: 14px; border-radius: 12px; background: var(--grad-soft); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 500 13px/1 var(--body); padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.icon-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 12px; font: 600 13px/1 var(--body); cursor: pointer; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- tiles: recent renders & library ---------- */
.bin { margin-top: 32px; }
.bin__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.bin__title { font: 700 18px/1.2 var(--display); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-align: left; padding: 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: box-shadow .15s, transform .15s;
}
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tile[aria-current="true"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.tile__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.tile__media img, .tile__media video { width: 100%; height: 100%; object-fit: cover; }
.tile__glyph { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.tile__glyph .i { width: 22px; height: 22px; }
.tile__body { display: grid; gap: 8px; padding: 12px 14px 14px; }
.tile__title { font-weight: 600; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/1 var(--body); padding: 5px 8px; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--done { color: var(--ok); background: #e7f6ee; }
.pill--running, .pill--queued { color: var(--warn); background: #fff4e0; }
.pill--running::before { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.pill--failed { color: var(--bad); background: #fde9eb; }
.pill--example { color: var(--muted); background: var(--surface-2); }
.pill--example::before { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: 600 14px/1 var(--body); cursor: pointer; color: #3a3a42; }
.chip:hover { border-color: #cfcfd6; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.empty { padding: 44px 20px; border: 1.5px dashed #d8d8de; border-radius: 16px; text-align: center; color: var(--muted); background: var(--surface); }

/* ---------- home, billing ---------- */
.launch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.launch__item {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; transition: box-shadow .2s, transform .2s;
}
.launch__item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.launch__art { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.launch__body { display: grid; gap: 4px; padding: 14px 16px 16px; align-content: start; }
.launch__name { display: flex; align-items: center; gap: 8px; font: 700 16px/1.2 var(--display); }
.launch__tag { color: var(--muted); font-size: 13px; }
.launch__price { font: 600 12px/1 var(--body); color: var(--primary); margin-top: 4px; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 30px; }
.summary__item { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; display: grid; gap: 8px; }
.summary__item:first-child { background: var(--grad); color: #fff; border: 0; }
.summary__item:first-child .summary__label { color: rgb(255 255 255 / .85); }
.summary__label { font: 600 13px/1 var(--body); color: var(--muted); }
.summary__value { font: 800 30px/1 var(--display); letter-spacing: -0.03em; }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pack { display: grid; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.pack__credits { font: 800 30px/1 var(--display); letter-spacing: -0.03em; }
.pack__price { color: var(--muted); }
.pack .btn { background: var(--text); color: #fff; }
.h3 { font: 800 24px/1.1 var(--display); letter-spacing: -0.03em; margin: 34px 0 14px; }

/* ---------- dialog, toast, banner ---------- */
.dialog {
  width: min(420px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgb(17 17 20 / .4); backdrop-filter: blur(4px); }
.dialog__mark { width: 44px; height: 44px; margin: 0 auto 14px; display: block; }
.dialog__title { font: 800 26px/1.1 var(--display); letter-spacing: -0.03em; text-align: center; margin-bottom: 22px; }
.dialog__close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.dialog__x { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.dialog__switch { text-align: center; font-size: 14px; color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  max-width: min(480px, calc(100% - 32px)); padding: 12px 18px; border-radius: 12px;
  background: var(--text); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg);
}
.toast--error { background: var(--bad); }
.banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 13px; font-weight: 600;
  background: var(--text); color: #fff;
}
.banner code { color: #ffb38a; }


/* ---------- landing: HeyGen-style sections ---------- */
.dd { position: relative; }
.dd__btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 16px/1 var(--body); color: #2c2c33; }
.dd__btn:hover, .dd__btn[aria-expanded="true"] { color: var(--primary); }
.dd__btn .i { width: 16px; height: 16px; transition: transform .15s; }
.dd__btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.dd__panel {
  position: absolute; top: calc(100% + 22px); left: -20px; z-index: 40; width: 320px;
  display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.dd__panel--wide { width: 620px; grid-template-columns: 1fr 1fr; }
.dd__panel a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.dd__panel a:hover { background: var(--surface-2); }
.dd__panel a > b { font: 600 15px/1.2 var(--display); grid-column: 2; }
.dd__panel a > span { font-size: 13px; color: var(--muted); grid-column: 2; }
.dd__panel a > .dd__ic { grid-column: 1; grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
#ddUse a { grid-template-columns: 1fr; }
#ddUse a > b, #ddUse a > span { grid-column: 1; }

.announce {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 11px 16px;
  border-radius: 14px; background: var(--grad); color: #fff; text-decoration: none; font: 600 14px/1.2 var(--body);
}
.announce:hover { filter: brightness(1.04); }
.announce .i { width: 16px; height: 16px; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: 600 14px/1 var(--body); color: #3a3a42; cursor: pointer; }
.tab:hover { border-color: #cfcfd6; }
.tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: #fff; }

.reel__track { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.vcard { transition: box-shadow .3s, transform .3s, opacity .3s; }
.vcard:not(.vcard--active) { opacity: .82; transform: scale(.96); }

.stats { max-width: 1280px; margin: 8px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { display: grid; gap: 4px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.stat b { font: 800 40px/1 var(--display); letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

.block { max-width: 1280px; margin: 0 auto; padding-block: clamp(64px, 9vw, 120px) 0; display: grid; gap: 28px; }
.block__head { display: grid; justify-items: center; text-align: center; gap: 16px; }
.chip-label .dot { width: 8px; height: 8px; border-radius: 50%; }
.showcase {
  padding: clamp(16px, 3vw, 40px); border-radius: 28px;
  background: radial-gradient(60% 80% at 20% 0%, #ffe3e8, transparent 60%), radial-gradient(60% 80% at 100% 100%, #ffeedd, transparent 60%), var(--surface);
  border: 1px solid var(--border);
}
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.mock__label { display: block; font: 600 12px/1 var(--body); color: var(--muted); margin-bottom: 8px; }
.mock__pill { display: inline-flex; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); font: 600 13px/1 var(--body); background: var(--surface); }
.mock__pill.is-on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.mock__go { margin-left: auto; padding: 9px 16px; border-radius: 10px; background: var(--primary); color: #fff; font: 600 14px/1 var(--display); }
.mock__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.mock--video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.mock__prompt p { padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: 15px; }
.mock__frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mframe {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: radial-gradient(45% 35% at 35% 30%, var(--a), transparent 70%), radial-gradient(60% 50% at 70% 75%, var(--b), transparent 70%), #160f12;
}
.mframe span { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgb(255 255 255 / .9); font: 600 11px/1 var(--body); }
.mframe--hl { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ff7a5c; }
.mframe--sm { width: 110px; margin: 10px 0; }
.mock--presenter { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.mock__face { position: relative; aspect-ratio: 9 / 16; max-height: 460px; justify-self: center; width: 100%; max-width: 260px; border-radius: 18px; overflow: hidden; background: #2a1a16; }
.mock__portrait {
  position: absolute; inset: 0;
  background:
    radial-gradient(22% 16% at 50% 36%, #f0b58e 0 60%, transparent 62%),
    radial-gradient(34% 26% at 50% 30%, #3b2219 0 60%, transparent 62%),
    radial-gradient(48% 40% at 50% 92%, #c8553d 0 70%, transparent 72%),
    radial-gradient(60% 50% at 70% 20%, #ffcfb0, transparent 70%), #4a2b20;
}
.mock__cap { position: absolute; left: 8%; right: 8%; bottom: 14%; text-align: center; font: 800 20px/1.1 var(--display); text-transform: uppercase; color: #fff; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000; }
.mock__cap mark { background: none; color: #ffd84a; }
.mock__side { display: grid; gap: 8px; }
.mock__side p { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.mock__voices { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mock__wave { width: 100%; height: 56px; color: var(--primary); }
.mock--remix { display: flex; align-items: stretch; gap: 14px; }
.step { flex: 1; display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface-2); }
.step__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 13px/1 var(--display); }
.step b { font: 700 17px/1.2 var(--display); }
.step p { color: var(--muted); font-size: 14px; }
.step__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.step__list li { padding: 10px 12px; border-radius: 10px; background: var(--surface); }
.step__list em { display: block; font: 600 11px/1.4 var(--body); font-style: normal; color: var(--primary); }
.step__arrow { width: 24px; flex: none; align-self: center; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; text-align: left; }
.card3 { display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.card3 h3 { font: 700 19px/1.25 var(--display); letter-spacing: -0.01em; }
.card3 p { color: var(--muted); font-size: 15px; }
.card3__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 6px; }
.cards3--left { margin-top: 18px; }

.news { justify-items: stretch; text-align: left; }
.news__head { display: flex; justify-content: space-between; align-items: end; }
.news__head .h2 { margin-top: 12px; }
.news__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.post { display: grid; gap: 8px; align-content: start; text-decoration: none; padding-bottom: 6px; }
.post__art { aspect-ratio: 16 / 10; border-radius: 18px; background: radial-gradient(50% 50% at 30% 30%, var(--a), transparent 70%), radial-gradient(60% 60% at 75% 75%, var(--b), transparent 70%), #fbf6f6; border: 1px solid var(--border); transition: transform .2s; }
.post:hover .post__art { transform: translateY(-3px); }
.post__tag { font: 600 12px/1 var(--body); color: var(--primary); margin-top: 6px; }
.post b { font: 700 17px/1.3 var(--display); }
.post > span:last-child { color: var(--muted); font-size: 14px; }

.faq__grid { width: 100%; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; text-align: left; }
.faq__intro { display: grid; gap: 14px; align-content: start; }

.footer { max-width: 1280px; margin: 0 auto; padding-block: 48px 40px; display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--border); }
.footer__brand { display: grid; gap: 10px; align-content: start; }
.footer__brand p { color: var(--muted); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h3 { font: 700 15px/1.2 var(--display); margin-bottom: 4px; }
.footer__col a { color: var(--muted); text-decoration: none; font-size: 14px; }
#footTools { display: grid; gap: 10px; }
.footer__col a:hover { color: var(--primary); }
.footer__fine { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding-top: 20px; border-top: 1px solid var(--border); }

@media (max-width: 1180px) {
  .news__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock--video, .mock--presenter { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards3, .faq__grid { grid-template-columns: 1fr; }
  .mock--remix { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); }
  .footer { grid-template-columns: 1fr 1fr; }
  .announce { font-size: 13px; }
}
@media (max-width: 560px) {
  .news__row { grid-template-columns: 1fr; }
  .mock__frames { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

.is-demo .studio { height: calc(100% - 38px); }
.is-demo .landing { padding-bottom: 38px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .features, .launch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench { grid-template-columns: 1fr; }
  .monitor { position: static; }
}
@media (max-width: 900px) {
  .nav__links, .nav__divider { display: none; }
  .plans, .packs { grid-template-columns: 1fr; }
  .reel__track { justify-content: flex-start; padding-inline: 16px; overflow-x: auto; }
  .studio { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side__create { display: none; }
  .side__nav { order: 3; flex-basis: 100%; display: flex; overflow-x: auto; gap: 4px; }
  .rail__group { display: none; }
  .rail__item { white-space: nowrap; }
  .side__foot { margin-left: auto; border-top: 0; padding-top: 0; }
  .account__text, .account__chev { display: none; }
  .menu { bottom: auto; top: 46px; left: auto; right: 0; width: 230px; }
}
@media (max-width: 560px) {
  .features, .launch { grid-template-columns: 1fr; }
  .nav { padding: 10px 10px 10px 16px; }
  .nav__actions .btn--soft { display: none; }
  .seg--models { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* =====================================================================
   Studio, laid out like the Viewmax studio: grey sidebar, greeting bar,
   3-up tool cards with "Try now", and a centred prompt-card workspace.
   ===================================================================== */
.vs { display: grid; grid-template-columns: 210px minmax(0, 1fr); height: 100%; background: var(--surface); }
.vs-side { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; padding: 18px 16px; background: #fafafa; border-right: 1px solid #ececef; }
.vs-brand { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; text-decoration: none; font: 700 17px/1 var(--display); letter-spacing: -0.02em; }
.vs-brand .brand__mark { width: 26px; height: 26px; }
.vs-brand small { font: 500 17px/1 var(--display); color: var(--muted); letter-spacing: -0.01em; }
.vs-create { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin-bottom: 14px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: 600 15px/1 var(--display); text-decoration: none; cursor: pointer; }
.vs-create:hover { background: var(--primary-hover); }
.vs-new { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; margin-bottom: 8px; border: 1px solid #e3e3e8; border-radius: 10px; background: #fff; font: 600 14px/1 var(--display); text-decoration: none; cursor: pointer; }
.vs-new:hover { border-color: #cfcfd6; }
.vs-nav { display: grid; gap: 2px; }
.vs-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: #3a3a42; font: 500 14.5px/1.2 var(--body); }
.vs-nav a:hover { background: #f0f0f3; }
.vs-nav a[aria-current="page"] { background: #ededf0; color: var(--text); font-weight: 600; }
.vs-nav .i { width: 18px; height: 18px; }
.vs-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--muted); }
.vs-search input { border: 0; background: none; outline: none; width: 100%; font-size: 14px; }
.vs-group { margin: 16px 10px 6px; font: 600 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #9a9aa4; }
.vs-sub a { padding: 7px 10px; font-size: 14px; }
.vs-sub a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-sub .pill { margin-left: auto; padding: 3px 6px; font-size: 10px; }

.vs-main { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; }
.vs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px; background: #fff; border-bottom: 1px solid #f0f0f3; }
.vs-main.is-tool .vs-top { background: transparent; border-bottom: 0; position: absolute; left: 210px; right: 0; z-index: 5; }
.vs-greet { font: 500 15px/1 var(--body); }
.vs-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #e6e6ea; border-radius: 999px; background: rgb(255 255 255 / .7); font: 600 14px/1 var(--display); text-decoration: none; cursor: pointer; }
.vs-back:hover { background: #fff; }
.vs-top__right { display: flex; align-items: center; gap: 14px; }
.vs-upgrade { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 600 14px/1 var(--display); cursor: pointer; box-shadow: 0 6px 16px rgb(255 90 80 / .25); }
.vs-upgrade .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.vs-upgrade:hover { filter: brightness(1.05); }
.vs-acct { position: relative; }
.vs-acct__btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; border: 0; border-radius: 999px; background: none; font: 500 14px/1 var(--body); cursor: pointer; }
.vs-acct__btn .i { width: 16px; height: 16px; color: var(--muted); }
.vs-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 11px/1 var(--display); }
.vs-avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.vs-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 290px; padding: 8px; background: #fff; border: 1px solid #ececef; border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; gap: 4px; }
.vs-menu__head { display: flex; gap: 10px; align-items: center; padding: 8px; }
.vs-menu__head div { display: grid; gap: 2px; min-width: 0; }
.vs-menu__head span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.vs-menu__plan { color: var(--primary) !important; font-weight: 700; text-transform: capitalize; }
.vs-menu__credits { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-radius: 10px; background: #f6f6f8; font-size: 14px; }
.vs-menu__upgrade { display: flex; align-items: center; gap: 8px; padding: 10px; border: 0; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font: 600 14px/1 var(--display); cursor: pointer; text-align: left; }
.vs-menu__upgrade .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.vs-menu__item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: none; text-decoration: none; font: 500 14px/1 var(--body); cursor: pointer; text-align: left; }
.vs-menu__item:hover { background: #f6f6f8; }
.vs-menu__item .i { width: 16px; height: 16px; color: var(--muted); }

.vs-stage { min-width: 0; overflow-y: auto; padding: 32px 32px 64px; background: #f6f6f8; }
.vs-main.is-tool .vs-stage { background: linear-gradient(180deg, #fff1ee 0, #fff 320px); padding-top: 96px; }
.vs-h1 { font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; }
.vs-lede { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }

/* tool cards (home + tools) */
.vs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vs-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: #fff; border: 1px solid #ececef; border-radius: 16px; }
.vs-card__media { position: relative; aspect-ratio: 16 / 9; background: #f1f1f4; overflow: hidden; display: grid; place-items: center; }
.vs-card__body { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 16px; }
.vs-card__title { display: flex; align-items: center; gap: 8px; font: 700 15px/1.2 var(--display); }
.vs-card__desc { color: var(--muted); font-size: 13.5px; }
.vs-badge { padding: 3px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font: 700 11px/1 var(--body); }
.vs-try { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; margin-top: 8px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: 600 14px/1 var(--display); text-decoration: none; cursor: pointer; }
.vs-try:hover { background: var(--primary-hover); }
.vs-try .i { width: 15px; height: 15px; }
.vs-try--locked { background: #f1f1f4; color: var(--text); }
.vs-try--locked:hover { background: #e7e7eb; }

/* card illustrations */
.art { position: absolute; inset: 0; display: grid; place-items: center; }
.art__title { position: absolute; z-index: 3; font: 700 clamp(20px, 2vw, 28px)/1 var(--display); color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / .45); letter-spacing: -0.02em; text-align: center; padding: 0 10px; }
.art__collage { position: absolute; inset: 8% 6%; }
.art__collage span { position: absolute; border-radius: 6px; box-shadow: 0 6px 16px rgb(0 0 0 / .18); background: radial-gradient(60% 50% at 35% 30%, var(--a), transparent 70%), radial-gradient(60% 60% at 70% 75%, var(--b), transparent 70%), #1d1418; }
.art__flow { position: relative; z-index: 2; display: flex; align-items: center; gap: 0; }
.art__node { display: grid; gap: 6px; justify-items: center; font: 600 11px/1 var(--body); color: var(--muted); }
.art__box { width: 92px; aspect-ratio: 1; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgb(0 0 0 / .08); display: grid; place-items: center; overflow: hidden; }
.art__box--tall { width: 78px; aspect-ratio: 9 / 16; }
.art__box--hot { background: var(--grad); color: #fff; }
.art__line { width: 46px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffc3cb, #ff7a5c); margin-top: 16px; }
.art__frame { width: 100%; height: 100%; background: radial-gradient(60% 50% at 35% 30%, var(--a), transparent 70%), radial-gradient(60% 60% at 70% 75%, var(--b), transparent 70%), #1d1418; }
.art__wave { display: flex; align-items: center; gap: 2px; height: 30px; }
.art__wave i { width: 3px; border-radius: 3px; background: currentColor; }
.art__gen { position: relative; z-index: 2; display: grid; gap: 10px; width: 70%; }
.art__paper { height: 64px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px rgb(0 0 0 / .06); padding: 10px; display: grid; gap: 6px; align-content: start; }
.art__paper i { height: 6px; border-radius: 6px; background: #ececf0; }
.art__input { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px rgb(0 0 0 / .06); font: 500 16px/1 var(--body); color: #555; }
.art__input b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.art__cap { position: absolute; bottom: 22%; left: 0; right: 0; text-align: center; font: 800 15px/1 var(--display); color: #fff; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-transform: uppercase; }
.art__cap mark { background: none; color: #ffd84a; }

/* workspace */
.ws { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; }
.ws__title { font: 800 34px/1.1 var(--display); letter-spacing: -0.03em; text-align: center; }
.ws__sub { color: var(--muted); margin: 8px 0 26px; text-align: center; }
.ws-card { width: min(100%, 560px); display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid #ececef; border-radius: 18px; box-shadow: 0 12px 30px rgb(17 17 20 / .06); }
.ws-prompt { width: 100%; min-height: 168px; border: 0; resize: vertical; outline: none; font: 400 15px/1.55 var(--body); padding: 2px; }
.ws-prompt::placeholder { color: #9a9aa4; }
.ws-input { width: 100%; padding: 9px 12px; border: 1px solid #ececef; border-radius: 10px; outline: none; font-size: 14px; }
.ws-input:focus { border-color: var(--primary); }
.ws-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #f0f0f3; }
.ws-select {
  appearance: none; -webkit-appearance: none; max-width: 100%;
  padding: 8px 30px 8px 12px; border: 0; border-radius: 9px; background: #f2f2f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 9px center / 13px no-repeat;
  font: 600 13.5px/1.2 var(--body); cursor: pointer;
}
.ws-select:hover { background-color: #e9e9ee; }
.ws-count { margin-left: auto; font-size: 12px; color: #9a9aa4; }
.ws-gen { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: 700 15px/1 var(--display); cursor: pointer; }
.ws-gen:hover { background: var(--primary-hover); }
.ws-gen[disabled] { background: #ececef; color: #a3a3ac; cursor: not-allowed; }
.ws-gen .ws-gen__cost { display: inline-flex; align-items: center; gap: 3px; opacity: .9; }
.ws-gen--lock { background: var(--text); }
.ws-count + .ws-gen { margin-left: 0; }
.ws-drop { display: grid; place-items: center; gap: 6px; min-height: 168px; border: 1.5px dashed #dcdce2; border-radius: 12px; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; position: relative; }
.ws-drop:hover, .ws-drop.is-over { border-color: var(--primary); background: var(--primary-soft); }
.ws-drop strong { color: var(--text); }
.ws-drop .i { width: 26px; height: 26px; color: #a3a3ac; }
.ws-drop img { max-height: 120px; border-radius: 8px; }
.ws-frames { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.ws-frame { position: relative; width: 84px; height: 84px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 6px; border: 1.5px dashed #dcdce2; border-radius: 10px; background: #fff; font: 500 11px/1.2 var(--body); color: var(--muted); text-align: center; cursor: pointer; overflow: hidden; }
.ws-frame:hover, .ws-frame.is-over { border-color: var(--primary); }
.ws-frame .i { width: 16px; height: 16px; }
.ws-frame.has-file { border-style: solid; border-color: var(--primary); padding: 0; }
.ws-frame img { width: 100%; height: 100%; object-fit: cover; }
.ws-frame.has-file span { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 2px; border-radius: 4px; background: rgb(255 255 255 / .9); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-frame--wide { width: 180px; }
.ws-frame__x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; z-index: 2; }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ws-hint { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; max-width: 52ch; }
.ws-hint .link { font-size: 13px; }

.ws-out { width: min(100%, 520px); margin-top: 30px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.ws-out .screen { width: 100%; min-height: 0; background: none; }
.ws-out .screen video, .ws-out .screen img { max-height: 70vh; border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .15); }
.ws-out .screen--doc { background: #fff; border: 1px solid #ececef; border-radius: 16px; padding: 22px; text-align: left; }
.ws-out .render { padding: 10px; }
.ws-out .result-actions { justify-content: center; }
.ws-meta { font-size: 13px; color: var(--muted); }
.ws-err { color: var(--bad); font-size: 14px; }
.ws-recent { width: 100%; margin-top: 40px; }
.ws-recent h2 { font: 700 16px/1.2 var(--display); margin-bottom: 12px; }

/* pricing modal */
.pm { width: min(900px, calc(100% - 32px)); max-height: calc(100% - 40px); padding: 32px; border: 0; border-radius: 22px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
.pm::backdrop { background: rgb(17 17 20 / .45); }
.pm__tabs { display: flex; width: max-content; margin: 0 auto 18px; padding: 4px; border-radius: 999px; background: #f2f2f5; }
.pm__tab { padding: 9px 16px; border: 0; border-radius: 999px; background: none; font: 600 14px/1 var(--display); cursor: pointer; color: #3a3a42; }
.pm__tab[aria-selected="true"] { background: var(--text); color: #fff; }
.pm__title { font: 700 24px/1.2 var(--display); text-align: center; letter-spacing: -0.02em; }
.pm__sub { color: var(--muted); text-align: center; margin: 8px 0 18px; font-size: 14px; }
.pm__cycle { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; font: 500 14px/1 var(--body); color: var(--muted); }
.pm__cycle b { color: var(--text); }
.pm__save { color: var(--ok); font-weight: 700; }
.switch { position: relative; width: 40px; height: 22px; border: 0; border-radius: 999px; background: #d6d6dc; cursor: pointer; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.pm__plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pmc { position: relative; display: grid; gap: 10px; padding: 20px; border: 1px solid #e6e6ea; border-radius: 16px; }
.pmc--pop { border: 2px solid var(--primary); padding-top: 34px; }
.pmc__flag { position: absolute; top: 0; left: 0; right: 0; padding: 6px; border-radius: 13px 13px 0 0; background: var(--primary); color: #fff; font: 700 12px/1 var(--body); text-align: center; }
.pmc__name { font: 700 18px/1.2 var(--display); }
.pmc__price { font-size: 13px; color: var(--muted); }
.pmc__price b { font: 800 28px/1 var(--display); color: var(--text); letter-spacing: -0.02em; }
.pmc__desc { font-size: 13px; color: var(--muted); min-height: 34px; }
.pmc__btn { min-height: 40px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: 600 14px/1 var(--display); cursor: pointer; }
.pmc__btn:hover { background: var(--primary-hover); }
.pmc__btn[disabled] { background: #ffc3cb; cursor: default; }
.pmc__note { font-size: 11.5px; color: var(--muted); text-align: center; }
.pmc__credits { display: flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--body); padding-top: 6px; }
.pmc__credits .i { width: 16px; height: 16px; }
.pmc__feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.pmc__feats li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.pmc__feats li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.pmc__feats li.no { color: #b0b0b8; }
.pmc__feats li.no::before { content: "✕"; color: #c0c0c8; font-weight: 400; }
.pm__packs { display: grid; gap: 10px; }
.pmp { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid #e6e6ea; border-radius: 14px; }
.pmp--pop { border: 2px solid var(--primary); }
.pmp b { font: 700 18px/1.2 var(--display); }
.pmp small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pmp__price { font: 700 18px/1 var(--display); }
.pm__foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) { .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .vs { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .vs-side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid #ececef; }
  .vs-brand { padding: 0; }
  .vs-create, .vs-new, .vs-search, .vs-group, .vs-sub { display: none; }
  .vs-nav { display: flex; gap: 2px; margin-left: auto; }
  .vs-main.is-tool .vs-top { position: static; background: #fff; }
  .vs-main.is-tool .vs-stage { padding-top: 28px; }
  .vs-top, .vs-stage { padding-inline: 16px; }
  .vs-grid, .pm__plans { grid-template-columns: 1fr; }
  #accountName { display: none; }
}

.is-demo .vs { height: calc(100% - 38px); }
.vs-sub a { overflow: hidden; }
.vs-sub a span:first-child { min-width: 0; flex: 1; }

/* ---------- Everygen-style home + sidebar ---------- */
.vs { grid-template-columns: 248px minmax(0, 1fr); }
.vs-main.is-tool .vs-top { left: 248px; }
.vs-search { margin-bottom: 4px; border-radius: 9px; }
.vs-search:focus-within { background: #f0f0f3; color: var(--text); }
.vs-grp__btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; color: #3a3a42; font: 500 14.5px/1.2 var(--body); }
.vs-grp__btn:hover { background: #f0f0f3; }
.vs-grp__btn .i { width: 18px; height: 18px; }
.vs-chev { margin-left: auto; width: 15px !important; height: 15px !important; color: #9a9aa4; transition: transform .15s; }
.vs-grp.is-open .vs-chev { transform: rotate(90deg); }
.vs-grp__list { display: grid; gap: 1px; margin: 2px 0 6px 19px; padding-left: 10px; border-left: 1px solid #e6e6ea; }
.vs-grp__list a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: #3a3a42; font-size: 14px; }
.vs-grp__list a:hover { background: #f0f0f3; }
.vs-grp__list a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.vs-grp__list .lock { margin-left: auto; }
.vs-side__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #ececef; }
.vs-top__left { display: flex; align-items: center; gap: 8px; }

.eg-sec { margin-bottom: 40px; }
.eg-sec > .vs-h1 { margin-bottom: 16px; }
.eg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.eg-head .vs-h1 { margin-right: auto; }
.eg-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: #ececf0; }
.eg-tab { padding: 6px 11px; border: 0; border-radius: 8px; background: none; font: 500 13.5px/1 var(--body); color: #62626c; cursor: pointer; }
.eg-tab:hover { color: var(--text); }
.eg-tab[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.eg-arrows { display: flex; gap: 6px; }
.eg-arrow { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e3e3e8; border-radius: 50%; background: #fff; cursor: pointer; }
.eg-arrow:hover { border-color: #cfcfd6; }
.eg-arrow .i { width: 16px; height: 16px; }
.eg-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 32px) / 3)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.eg-row::-webkit-scrollbar { display: none; }
.eg-row .vs-card { scroll-snap-align: start; }

.eg-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.eg-qt { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; background: #fff; border: 1px solid #ececef; border-radius: 12px; text-decoration: none; font: 600 14px/1.2 var(--body); transition: border-color .15s, box-shadow .15s; }
.eg-qt:hover { border-color: #d6d6dc; box-shadow: var(--shadow-sm); }
.eg-qt__ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; }
.eg-qt__ic .i { width: 17px; height: 17px; }

.eg-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eg-model { display: grid; gap: 6px; align-content: start; padding: 16px 18px 18px; text-align: left; background: #fff; border: 1px solid #ececef; border-radius: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.eg-model:hover { border-color: #ffb3bd; box-shadow: 0 0 0 3px rgb(232 54 79 / .08); }
.eg-model__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.eg-model__ic .i { width: 24px; height: 24px; }
.eg-tags { display: flex; gap: 4px; }
.eg-tag { padding: 4px 7px; border-radius: 6px; background: #f2f2f5; font: 500 11px/1 var(--body); color: #62626c; }
.eg-tag--new { background: var(--primary-soft); color: var(--primary); }
.eg-tag--lock { background: var(--grad-soft); color: #b5372a; }
.eg-model__name { font: 700 16px/1.25 var(--display); }
.eg-model__name span { font: 500 13px/1 var(--body); color: var(--muted); }
.eg-model__desc { font-size: 13.5px; color: var(--muted); }
.eg-model__cost { font: 600 12px/1 var(--body); color: var(--primary); margin-top: 4px; }

@media (max-width: 1180px) { .eg-quick, .eg-models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .vs { grid-template-columns: 1fr; }
  .vs-main.is-tool .vs-top { left: 0; }
  .vs-side #sideNav, .vs-side .vs-side__foot { display: none; }
  .eg-row { grid-auto-columns: 82%; }
  .eg-arrows { display: none; }
}
@media (max-width: 520px) { .eg-quick, .eg-models { grid-template-columns: 1fr; } }

/* ---------- studio: showcase wall, quotes, features, FAQ, Claude demo ---------- */
.vs-soon { margin-left: auto; padding: 3px 6px; border-radius: 6px; background: #f2f2f5; font: 600 10px/1 var(--body); color: var(--muted); }
.vs-nav a span:first-of-type { flex: 1; min-width: 0; }
.vs-grp__btn span { flex: 1; }
.eg-head .eg-tabs { margin-left: auto; }
.eg-head > .vs-back { margin-left: auto; }
.eg-more { display: flex; justify-content: center; margin-top: 16px; }

.wall { columns: 4 220px; column-gap: 12px; }
.sw { position: relative; break-inside: avoid; margin: 0 0 12px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #1a1418; isolation: isolate; }
.sw--tall { aspect-ratio: 9 / 14; }
.sw--wide { aspect-ratio: 16 / 10; }
.sw video, .sw img { width: 100%; height: 100%; object-fit: cover; }
.sw__scene { position: absolute; inset: -15%; background: radial-gradient(45% 35% at 32% 30%, var(--a), transparent 70%), radial-gradient(60% 50% at 70% 72%, var(--b), transparent 70%), #160f12; animation: drift 12s ease-in-out infinite alternate; }
.vs-card__media .sw__scene { inset: 0; }
.sw__cap { position: absolute; left: 8%; right: 8%; bottom: 18%; z-index: 1; text-align: center; font: 800 18px/1.1 var(--display); text-transform: uppercase; color: #fff; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000; }
.sw__cap mark { background: none; color: #ffd84a; }
.sw__tag { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgb(255 255 255 / .92); font: 600 11.5px/1 var(--body); }
.sw__tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.sw__over { position: absolute; inset: 0; z-index: 3; display: grid; align-content: end; gap: 6px; padding: 14px; color: #fff; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / .78)); opacity: 0; transition: opacity .2s; }
.sw:hover .sw__over, .sw:focus-within .sw__over { opacity: 1; }
.sw__over b { font: 700 15px/1.2 var(--display); }
.sw__over span { font-size: 12.5px; line-height: 1.4; opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sw__use { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 12px; border: 0; border-radius: 9px; background: #fff; color: var(--text); font: 600 13px/1 var(--display); cursor: pointer; }
.sw__use .i { width: 14px; height: 14px; }
@media (hover: none) { .sw__over { opacity: 1; } }

.mcp { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 20px; background: #f1f1f4; border: 1px solid #ececef; }
.mcp__chat, .mcp__result { background: #fff; border-radius: 14px; padding: 24px; }
.mcp__chat { display: grid; gap: 14px; align-content: start; font-size: 15px; }
.mcp__who { display: flex; align-items: center; gap: 8px; font-weight: 600; justify-self: center; }
.mcp__dot { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #d97757 35%, transparent 37%), conic-gradient(from 0deg, #d97757 0 10%, transparent 10% 20%, #d97757 20% 30%, transparent 30% 40%, #d97757 40% 50%, transparent 50% 60%, #d97757 60% 70%, transparent 70% 80%, #d97757 80% 90%, transparent 90%); }
.mcp__user { justify-self: end; max-width: 85%; padding: 12px 16px; border-radius: 14px; background: #f2f2f5; }
.mcp__call { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #ececef; border-radius: 12px; }
.mcp__call .brand__mark { width: 28px; height: 28px; }
.mcp__call div { display: grid; gap: 2px; }
.mcp__call span { font-size: 12.5px; color: var(--muted); }
.mcp__result { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; overflow: hidden; }
.mcp__result p { font-weight: 600; }
.mcp__result .sw__scene { position: relative; inset: auto; display: block; width: 62%; aspect-ratio: 9 / 16; border-radius: 12px; animation: none; }
.mcp__soon { position: absolute; top: 14px; right: 14px; padding: 5px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font: 700 11px/1 var(--body); }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quote { margin: 0; display: grid; gap: 16px; align-content: space-between; padding: 22px; background: #fff; border: 1px solid #ececef; border-radius: 16px; }
.quote blockquote { margin: 0; font: 500 16px/1.5 var(--display); }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.quote figcaption span:nth-child(2) { display: grid; flex: 1; }
.quote figcaption b { color: var(--text); font-size: 14px; }

.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feat { display: grid; gap: 8px; align-content: start; padding: 20px; background: #fff; border: 1px solid #ececef; border-radius: 16px; }
.feat__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }
.feat b { font: 700 16px/1.25 var(--display); }
.feat p { font-size: 13.5px; color: var(--muted); }

.sfaq { display: grid; gap: 8px; max-width: 860px; }
.sfaq details { background: #fff; border: 1px solid #ececef; border-radius: 12px; padding: 14px 18px; }
.sfaq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font: 600 15px/1.3 var(--display); }
.sfaq summary::-webkit-details-marker { display: none; }
.sfaq summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
.sfaq details[open] summary::after { content: "–"; }
.sfaq details p { margin-top: 8px; color: var(--muted); font-size: 14px; }

.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide { display: grid; gap: 12px; align-content: start; padding: 22px; background: #fff; border: 1px solid #ececef; border-radius: 16px; }
.guide__top { display: flex; justify-content: space-between; align-items: center; }
.guide h2 { font: 700 18px/1.25 var(--display); }
.guide ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #3a3a42; font-size: 14px; }
.guide .vs-try { width: max-content; padding: 0 18px; }
.bigcard { display: grid; gap: 12px; justify-items: start; max-width: 640px; margin: 24px 0; padding: 28px; background: #fff; border: 1px solid #ececef; border-radius: 20px; }
.bigcard p { color: var(--muted); }

@media (max-width: 1100px) { .quotes, .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mcp { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .quotes, .feats, .guides { grid-template-columns: 1fr; } }

.vcard__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* real-media card art */
.art--real, .art--grid, .art--pair { background: #111; }
.art__media { width: 100%; height: 100%; object-fit: cover; display: block; }
.art__media--lowres { image-rendering: pixelated; }
.art--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.art__cell { position: relative; overflow: hidden; }
.art--pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.art__half { position: relative; overflow: hidden; }
.art__arrow { display: grid; place-items: center; width: 34px; background: #111; color: #fff; }
.art__arrow .i { width: 18px; height: 18px; }
.art__label { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--text); font: 600 11px/1 var(--body); font-style: normal; }
.art__chip { position: absolute; left: 10px; bottom: 10px; right: 10px; width: max-content; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 999px; background: rgb(255 255 255 / .92); font: 600 12px/1.2 var(--body); color: var(--text); }
.art__cap--live { position: absolute; bottom: 18%; z-index: 2; font-size: 22px; }
.feature__art--real { background: #111; }
.feature__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__icon--badge { position: absolute; left: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 12px; }
.feature__icon--badge .i { width: 22px; height: 22px; }
.art.art--grid, .art.art--pair { place-items: stretch; grid-template-rows: 100%; }
.art__cell, .art__half { height: 100%; min-height: 0; }

.captcha { display: flex; justify-content: center; min-height: 0; }
.captcha:empty { display: none; }

/* =====================================================================
   Editor (timeline). Dark workspace like a real editor; panels on a
   charcoal base so the video is the brightest thing on screen.
   ===================================================================== */
.vs-main.is-editor .vs-stage { padding: 0; background: #16161a; overflow: hidden; display: flex; }
.ed { --ed-bg: #16161a; --ed-panel: #1f1f25; --ed-line: #2e2e36; --ed-text: #ececf1; --ed-muted: #9b9ba8;
  flex: 1; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; color: var(--ed-text); background: var(--ed-bg); }
.ed .ws-select { background-color: #2a2a32; color: var(--ed-text); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); }
.ed .vs-back { background: #2a2a32; border-color: #3a3a44; color: var(--ed-text); }
.ed .vs-back:hover { background: #33333c; }
.ed .eg-tabs { background: #2a2a32; }
.ed .eg-tab { color: var(--ed-muted); }
.ed .eg-tab[aria-selected="true"] { background: #3a3a44; color: #fff; box-shadow: none; }
.ed-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--ed-line); background: var(--ed-panel); }
.ed-name { width: 220px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #fff; font: 700 16px/1 var(--display); }
.ed-name:hover, .ed-name:focus { border-color: #3a3a44; background: #2a2a32; outline: none; }
.ed-top__spacer { flex: 1; }
.ed-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ed-muted); cursor: pointer; }
.ed-toggle input { accent-color: var(--primary); }
.ed-toggle--block { display: flex; margin: 8px 0; color: var(--ed-text); }
.ed .ws-gen { margin-left: 0; }

.ed-main { display: grid; grid-template-columns: 280px minmax(0, 1fr) 290px; min-height: 0; }
.ed-panel { min-height: 0; overflow-y: auto; padding: 14px; background: var(--ed-panel); }
.ed-media { border-right: 1px solid var(--ed-line); display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.ed-inspector { border-left: 1px solid var(--ed-line); }
.ed-inspector h3 { font: 700 16px/1.2 var(--display); margin-bottom: 12px; }
.ed-sub { margin: 14px 0 8px; font: 600 12px/1 var(--body); color: var(--ed-muted); text-transform: uppercase; letter-spacing: .06em; }
.ed-note { font-size: 13px; color: var(--ed-muted); line-height: 1.5; }
.ed-field { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; color: var(--ed-muted); }
.ed-field b { color: #fff; font-weight: 600; margin-left: 4px; }
.ed-field input[type="range"] { width: 100%; accent-color: var(--primary); }
.ed-textarea { width: 100%; min-height: 70px; padding: 10px; border: 1px solid #3a3a44; border-radius: 10px; background: #2a2a32; color: #fff; font: 500 15px/1.4 var(--body); resize: vertical; }
.ed-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-chip { padding: 7px 11px; border: 1px solid #3a3a44; border-radius: 999px; background: #2a2a32; color: var(--ed-text); font: 600 12.5px/1 var(--body); cursor: pointer; }
.ed-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.ed-actions .vs-back { padding: 7px 11px; font-size: 13px; }
.ed-danger { color: #ff8a95 !important; }
.ed-danger .i { width: 15px; height: 15px; }
.ed-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.ed-stats div { padding: 10px; border-radius: 10px; background: #2a2a32; }
.ed-stats dt { font-size: 11px; color: var(--ed-muted); }
.ed-stats dd { margin: 4px 0 0; font: 700 16px/1 var(--display); }
.ed-steps { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ed-muted); }
.ed-steps b { color: var(--ed-text); }

/* text style picker: each tile previews the look */
.ed-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-style { display: grid; gap: 4px; justify-items: center; padding: 10px 4px 8px; border: 1px solid #3a3a44; border-radius: 10px; background: #2a2a32; color: var(--ed-muted); font: 600 11px/1 var(--body); cursor: pointer; }
.ed-style span { font: 400 22px/1 "Anton", var(--display); color: #fff; -webkit-text-stroke: 1.2px #000; paint-order: stroke fill; }
.ed-style.is-on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); color: #fff; }
.ed-style--bold span { color: #ffd84a; }
.ed-style--boxed span { background: #fff; color: #111; -webkit-text-stroke: 0; padding: 0 6px; border-radius: 4px; }
.ed-style--neon span { color: #fff; -webkit-text-stroke: 1.2px #ff00ff; text-shadow: 0 0 8px #0ff; }
.ed-style--outline span { -webkit-text-stroke: .8px #000; font-size: 20px; }
.ed-style--karaoke span { color: #ffd84a; }
.ed-style--clean span { -webkit-text-stroke: .9px #000; text-shadow: 0 2px 4px rgb(0 0 0 / .6); }

/* media library */
.ed-media__body { min-height: 0; }
.ed-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ed-tile { overflow: hidden; border-radius: 10px; background: #2a2a32; border: 1px solid #33333c; }
.ed-tile__media { aspect-ratio: 1; background: #111; display: grid; place-items: center; }
.ed-tile__media video, .ed-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.ed-audio-ico { font-size: 30px; color: #8f8fa0; }
.ed-tile__body { display: grid; gap: 6px; padding: 7px; }
.ed-tile__name { font-size: 11.5px; color: var(--ed-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.ed-tile__btns { display: flex; gap: 4px; }
.ed-add { flex: 1; padding: 6px 4px; border: 0; border-radius: 7px; background: var(--primary); color: #fff; font: 600 11.5px/1 var(--body); cursor: pointer; }
.ed-add:hover { background: var(--primary-hover); }
.ed .ws-drop { min-height: 110px; background: #2a2a32; border-color: #444450; color: var(--ed-muted); }
.ed .ws-drop strong { color: #fff; }

/* preview */
.ed-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding: 16px; place-items: center; }
.ed-frame { position: relative; height: 100%; max-height: 100%; max-width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 40px rgb(0 0 0 / .5); container-type: inline-size; }
.ed-frame--wide { height: auto; width: 100%; }
.ed-frame video, .ed-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #777; font-size: 14px; }
.ed-texts { position: absolute; inset: 0; pointer-events: none; }
.ed-ovl { position: absolute; left: 6%; right: 6%; display: flex; justify-content: center; text-align: center; }
.ed-ovl--top { top: 12%; }
.ed-ovl--center { top: 50%; transform: translateY(-50%); }
.ed-ovl--bottom { bottom: 22%; }
.ed-ovl span { font: 400 clamp(14px, 9.5cqw, 64px)/1.1 "Anton", var(--display); color: #fff; -webkit-text-stroke: .08em #000; paint-order: stroke fill; }
.ed-txt--bold span, .ed-txt--neon span, .ed-txt--boxed span, .ed-txt--karaoke span { text-transform: uppercase; }
.ed-txt--bold span { text-shadow: 0 .05em 0 #000; }
.ed-txt--clean span { font-size: clamp(12px, 7cqw, 48px); -webkit-text-stroke: .05em #000; text-shadow: 0 .06em .12em rgb(0 0 0 / .6); }
.ed-txt--boxed span { color: #111; -webkit-text-stroke: 0; background: #fff; padding: .05em .3em; border-radius: .12em; }
.ed-txt--neon span { -webkit-text-stroke: .07em #ff00ff; text-shadow: 0 0 .25em #0ff; }
.ed-txt--outline span { font-size: clamp(12px, 7.5cqw, 52px); -webkit-text-stroke: .035em #000; }
.ed-txt--karaoke span { color: #ffd84a; }
.ed-ovl--hint span { opacity: .55; }
.ed-controls { display: flex; align-items: center; gap: 12px; }
.ed-play { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #111; cursor: pointer; }
.ed-play .i { width: 18px; height: 18px; }
.ed-time { font-size: 13px; color: var(--ed-muted); }

/* timeline */
.ed-timeline { border-top: 1px solid var(--ed-line); background: var(--ed-panel); }
.ed-tl-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--ed-line); }
.ed-tl-bar .vs-back { padding: 6px 12px; font-size: 13px; }
.ed-tl-hint { font-size: 12px; color: var(--ed-muted); }
.ed-zoom { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ed-muted); }
.ed-zoom input { accent-color: var(--primary); width: 110px; }
.ed-tl-scroll { overflow-x: auto; overflow-y: hidden; }
.ed-tl-inner { position: relative; min-width: 100%; padding: 0 0 10px; }
.ed-ruler { position: relative; height: 24px; margin-left: 80px; cursor: pointer; border-bottom: 1px solid var(--ed-line); }
.ed-tick { position: absolute; top: 6px; font: 500 10.5px/1 var(--body); color: var(--ed-muted); transform: translateX(-2px); }
.ed-tick::before { content: ""; position: absolute; left: 0; top: 12px; width: 1px; height: 6px; background: #444; }
.ed-track { display: grid; grid-template-columns: 80px 1fr; align-items: center; height: 54px; border-bottom: 1px solid #26262d; }
.ed-track__label { padding-left: 14px; font: 600 11px/1 var(--body); color: var(--ed-muted); text-transform: uppercase; letter-spacing: .05em; }
.ed-lane { position: relative; height: 44px; }
.ed-lane__empty { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #6f6f7d; white-space: nowrap; }
.ed-clip, .ed-item { position: absolute; top: 2px; bottom: 2px; overflow: hidden; border-radius: 7px; cursor: grab; user-select: none; }
.ed-clip { background: #333; border: 2px solid #5a4bd6; }
.ed-clip img, .ed-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; pointer-events: none; }
.ed-clip__label { position: absolute; left: 12px; bottom: 3px; padding: 2px 5px; border-radius: 4px; background: rgb(0 0 0 / .6); font: 600 10.5px/1.2 var(--body); color: #fff; }
.ed-clip.is-sel, .ed-item.is-sel { border-color: #fff; box-shadow: 0 0 0 2px var(--primary); }
.ed-clip.is-drag { opacity: .4; }
.ed-item { display: flex; align-items: center; padding: 0 12px 0 10px; border: 2px solid transparent; font: 600 12px/1 var(--body); color: #fff; white-space: nowrap; }
.ed-item span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ed-item--text { background: #e8364f; cursor: move; }
.ed-item--voice { background: #0ca678; cursor: pointer; }
.ed-item--music { background: #1c7ed6; cursor: pointer; }
.ed-handle { position: absolute; top: 0; bottom: 0; width: 9px; z-index: 2; cursor: ew-resize; background: rgb(255 255 255 / .25); }
.ed-handle:hover { background: rgb(255 255 255 / .6); }
.ed-handle--l { left: 0; }
.ed-handle--r { right: 0; }
.ed-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff4d6d; pointer-events: none; z-index: 5; }
.ed-playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #ff4d6d; }
.ed-result video { display: block; width: auto; }

@media (max-width: 1100px) { .ed-main { grid-template-columns: 220px minmax(0, 1fr) 240px; } }
@media (max-width: 820px) {
  .vs-main.is-editor .vs-stage { overflow: auto; }
  .ed { height: auto; }
  .ed-main { grid-template-columns: 1fr; }
  .ed-frame { height: 56vh; }
  .ed-media, .ed-inspector { border: 0; border-top: 1px solid var(--ed-line); }
}
.result-actions .btn.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.result-actions .btn.btn--primary:hover { background: var(--primary-hover); }

/* ===== tool settings: visual option panels (prices live only on Generate) ===== */
.ws-form { width: min(100%, 640px); display: grid; gap: 14px; justify-items: stretch; }
.ws-form .ws-card { width: 100%; }
.ws-form .ws-frames { margin-top: 0; justify-content: flex-start; }
.ws-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #f0f0f3; }
.ws-card__foot .ws-count { margin-left: 0; }
.ws-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 16px; background: #fff; border: 1px solid #ececef; border-radius: 18px; }
.opt-grp { display: grid; gap: 8px; align-content: start; min-width: 0; }
.opt-grp--wide { grid-column: 1 / -1; }
.opt-lbl { font: 700 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #8a8a94; }
.opt-select { width: 100%; padding-top: 10px; padding-bottom: 10px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1.5px solid #ececef; border-radius: 10px; background: #fff; font: 500 13.5px/1.2 var(--body); color: var(--text); cursor: pointer; text-align: left; }
.opt-chip b { font-weight: 600; }
.opt-chip small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.opt-chip:hover { border-color: #d4d4db; }
.opt-chip.is-on { border-color: var(--primary); background: var(--primary-soft); }
.opt-shape { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; opacity: .6; flex: none; }
.opt-chip.is-on .opt-shape { color: var(--primary); opacity: 1; }
.opt__lock, .opt__tag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; font: 600 10.5px/1.3 var(--body); vertical-align: middle; }
.opt__lock { background: #111114; color: #fff; }
.opt__tag { background: #f1f1f4; color: #55555f; }
.opt-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.opt-model { display: grid; gap: 4px; padding: 10px 12px; border: 1.5px solid #ececef; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.opt-model:hover { border-color: #d4d4db; }
.opt-model.is-on { border-color: var(--primary); background: var(--primary-soft); }
.opt-model__top { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.opt-model__top b { font: 700 14px/1.2 var(--display); margin-right: auto; }
.opt-model small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt-card { display: grid; gap: 0; padding: 0; border: 1.5px solid #ececef; border-radius: 14px; background: #fff; overflow: hidden; text-align: left; cursor: pointer; }
.opt-card:hover { border-color: #d4d4db; }
.opt-card.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.opt-card__media { display: block; aspect-ratio: 4 / 3; background: #111; overflow: hidden; }
.opt-card__media video, .opt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt-card__txt { display: grid; gap: 3px; padding: 10px 12px; }
.opt-card__txt b { font: 700 14px/1.2 var(--display); }
.opt-card__txt small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.opt-cards--swatch .opt-card { grid-template-columns: auto 1fr; align-items: center; padding-left: 12px; }
.opt-swatch { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #dcdce2; }
.opt-swatch--clear { background: repeating-conic-gradient(#e4e4e7 0 25%, #fff 0 50%) 0 0 / 10px 10px !important; }
.opt-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt-cap { display: grid; gap: 3px; padding: 8px 8px 10px; border: 1.5px solid #ececef; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }
.opt-cap:hover { border-color: #d4d4db; }
.opt-cap.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.opt-cap b { font: 700 13.5px/1.2 var(--display); padding: 4px 2px 0; }
.opt-cap small { font-size: 11.5px; color: var(--muted); padding: 0 2px; }
.opt-cap__screen { display: grid; place-items: end center; height: 74px; padding-bottom: 12px; border-radius: 9px; background: linear-gradient(160deg, #6b5a52, #2a211d 70%); overflow: hidden; }
.capv { max-width: 92%; text-align: center; }
.capv--bold { font: 900 17px/1 var(--display); color: #fff; text-transform: uppercase; -webkit-text-stroke: 1.2px #000; paint-order: stroke fill; letter-spacing: .01em; }
.capv--bold mark { background: none; color: #ffd84a; }
.capv--clean { padding: 3px 7px; border-radius: 4px; background: rgb(0 0 0 / .55); color: #fff; font: 600 11.5px/1.25 var(--body); }
.capv--none { color: rgb(255 255 255 / .45); font: 500 11px/1 var(--body); align-self: center; }
.ws-foot { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; background: #fff; border: 1px solid #ececef; border-radius: 16px; position: sticky; bottom: 12px; box-shadow: 0 10px 30px rgb(17 17 20 / .08); z-index: 3; }
.ws-foot .ws-hint { margin: 0; text-align: left; font-size: 12.5px; flex: 1; }
.ws-foot .ws-gen { min-height: 44px; padding: 0 22px; font-size: 16px; flex: none; }
@media (max-width: 640px) {
  .ws-opts { grid-template-columns: 1fr; }
  .opt-caps { grid-template-columns: 1fr 1fr; }
  .ws-foot { flex-direction: column; align-items: stretch; }
}

/* card art: wipe labels and an editor timeline */
.art__side { position: absolute; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgb(0 0 0 / .62); color: #fff; font: 600 11px/1 var(--body); font-style: normal; z-index: 2; }
.art__side--l { left: 8px; }
.art__side--r { right: 8px; background: rgb(255 255 255 / .94); color: var(--text); }
.art__tl { position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; gap: 3px; padding: 6px; border-radius: 8px; background: rgb(17 17 20 / .78); backdrop-filter: blur(4px); z-index: 2; }
.art__tl-row { display: flex; gap: 2px; height: 6px; }
.art__tl-row i { display: block; height: 100%; border-radius: 2px; }

/* claude demo result */
.mcp__video { width: 62%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }

/* prompt library + presets */
.eg-tabs--scroll { width: max-content; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.eg-tab__n { margin-left: 2px; font-size: 11.5px; color: #9a9aa4; }
.pz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pz { position: relative; aspect-ratio: 9 / 14; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #111; cursor: pointer; text-align: left; isolation: isolate; }
.pz__media, .pz__media video, .pz__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pz__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .82)); }
.pz__tool { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgb(255 255 255 / .92); font: 600 11.5px/1 var(--body); color: var(--text); }
.pz__body { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; color: #fff; }
.pz__body b { font: 800 19px/1.1 var(--display); }
.pz__body > span { font-size: 12.5px; line-height: 1.35; color: rgb(255 255 255 / .85); }
.pz__go { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 6px; width: max-content; padding: 7px 11px; border-radius: 9px; background: var(--primary); color: #fff !important; font: 600 12.5px/1 var(--display) !important; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.pz__go .i { width: 13px; height: 13px; }
.pz:hover .pz__go, .pz:focus-visible .pz__go { opacity: 1; transform: none; }
@media (hover: none) { .pz__go { opacity: 1; transform: none; } }

/* learn */
.learn-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px; border-radius: 22px; background: var(--grad-soft); margin-bottom: 26px; }
.learn-kicker { font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.learn-hero__txt > p { color: #4a4a54; margin: 8px 0 18px; max-width: 46ch; }
.learn-path { display: grid; gap: 6px; }
.learn-step { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: rgb(255 255 255 / .75); color: var(--text); text-decoration: none; }
.learn-step:hover { background: #fff; }
.learn-step__n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: #fff; font: 700 12.5px/1 var(--display); }
.learn-step b { display: block; font: 600 14px/1.25 var(--display); }
.learn-step small { font-size: 12px; color: var(--muted); }
.learn-hero__media { position: relative; aspect-ratio: 4 / 5; max-height: 460px; border-radius: 18px; overflow: hidden; background: #111; justify-self: center; width: min(100%, 360px); box-shadow: var(--shadow-lg); }
.learn-hero__video { width: 100%; height: 100%; object-fit: cover; }
.learn-hero__tag { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgb(255 255 255 / .94); font: 600 12px/1 var(--body); }
.lguides { display: grid; gap: 18px; }
.lguide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding: 16px; background: #fff; border: 1px solid #ececef; border-radius: 20px; scroll-margin-top: 20px; }
.lguide__media { position: relative; border-radius: 14px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; align-self: start; }
.lguide__media video, .lguide__media img { width: 100%; height: 100%; object-fit: cover; }
.lguide__level { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgb(255 255 255 / .94); font: 600 11.5px/1 var(--body); }
.lguide__body { display: grid; gap: 10px; align-content: start; padding: 4px 4px 4px 0; }
.lguide__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lguide__meta .eg-qt__ic { width: 26px; height: 26px; border-radius: 8px; }
.lguide__meta .eg-qt__ic .i { width: 14px; height: 14px; }
.lguide h2 { font: 800 22px/1.15 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.lguide__intro { color: #4a4a54; }
.lguide__steps { display: grid; gap: 8px; padding: 0; margin: 4px 0; list-style: none; counter-reset: s; }
.lguide__steps li { position: relative; padding-left: 34px; counter-increment: s; }
.lguide__steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #f2f2f5; font: 700 12px/1 var(--display); }
.lguide__tip { display: grid; gap: 3px; padding: 11px 14px; border-radius: 12px; background: #fff7e6; color: #5c4400; font-size: 14px; }
.lguide__tip b { font: 700 11.5px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #a76100; }
.lguide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lguide__actions .vs-try { margin: 0; padding: 0 16px; }
.lguide__ex { font-size: 13px; color: var(--muted); font-style: italic; max-width: 50ch; }
@media (max-width: 760px) {
  .learn-hero, .lguide { grid-template-columns: 1fr; }
  .lguide__media { aspect-ratio: 16 / 10; }
}

/* community */
.comm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid #ececef; }
.comm__media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comm__tile { aspect-ratio: 9 / 13; border-radius: 14px; overflow: hidden; background: #111; }
.comm__tile:nth-child(2) { transform: translateY(24px); }
.comm__tile:nth-child(4) { transform: translateY(24px); }
.comm__tile video { width: 100%; height: 100%; object-fit: cover; }
.comm__body { display: grid; gap: 12px; align-content: start; }
.comm__body > p { color: #4a4a54; max-width: 46ch; }
.comm__soon { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 7px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font: 700 13px/1 var(--display); letter-spacing: .02em; }
.comm__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgb(232 54 79 / .5); animation: commPulse 1.8s infinite; }
@keyframes commPulse { 70% { box-shadow: 0 0 0 9px rgb(232 54 79 / 0); } 100% { box-shadow: 0 0 0 0 rgb(232 54 79 / 0); } }
@media (prefers-reduced-motion: reduce) { .comm__pulse { animation: none; } }
.comm__perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; margin: 6px 0; list-style: none; }
.comm__perks li { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; background: #f7f7f9; }
.comm__perks b { font: 700 14px/1.2 var(--display); }
.comm__perks span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.comm__cta { width: max-content; padding: 0 22px; min-height: 44px; }
.comm__cta[disabled] { background: #ececef; color: #8a8a94; cursor: default; }
.comm__note { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .comm { grid-template-columns: 1fr; } .comm__perks { grid-template-columns: 1fr; } }

/* my profile */
.prof { display: grid; gap: 14px; max-width: 760px; }
.prof-card { display: grid; gap: 12px; padding: 20px; background: #fff; border: 1px solid #ececef; border-radius: 18px; }
.prof-card h2 { font: 700 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #8a8a94; }
.prof-id { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.prof-id b { display: block; font: 800 22px/1.2 var(--display); }
.prof-id span { color: var(--muted); }
.prof-avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font: 800 20px/1 var(--display); }
.prof-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.prof-plan > div:first-child { display: grid; gap: 4px; }
.prof-big { font: 800 28px/1.1 var(--display); letter-spacing: -.02em; }
.prof-muted { color: var(--muted); font-size: 13.5px; }
.prof-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prof-actions .vs-try, .prof-actions .btn { margin: 0; padding: 0 16px; min-height: 40px; }
.prof-sub { font: 700 14px/1 var(--display); margin-top: 6px; }
.prof-ledger { max-height: 320px; overflow: auto; }
.prof-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.prof-table td { padding: 9px 6px; border-top: 1px solid #f0f0f3; }
.prof-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prof-table .pos { color: var(--ok); }
.prof-table .neg { color: var(--text); }
.prof-rows { display: grid; gap: 0; }
.prof-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #f0f0f3; }
.prof-rows span { color: var(--muted); }
.prof-confirm { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: #fff4f5; border: 1px solid #ffd3d9; }
.prof-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.prof-danger:hover { background: #b8243a; }
