:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #162033;
  background: #f5f7fb;
  --navy: #162033;
  --muted: #6b7484;
  --line: #e4e8ef;
  --blue: #375dfb;
  --blue-soft: #edf1ff;
  --green: #14804a;
  --red: #c63838;
  --card: #ffffff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; padding: 24px 16px; background: var(--navy); color: #fff; }
.brand { padding: 0 12px 28px; }
.brand strong { display: block; font-size: 19px; letter-spacing: -.03em; }
.brand span { display: block; margin-top: 6px; color: #9faac0; font-size: 12px; }
.nav { display: grid; gap: 6px; }
.nav a { padding: 11px 12px; border-radius: 9px; color: #b9c2d4; font-size: 14px; }
.nav a:hover, .nav a.active { background: #29354e; color: #fff; }
.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 20px; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.content { max-width: 1180px; margin: 0 auto; padding: 28px 32px 56px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 20px rgba(22, 32, 51, .03); }
.metric-label { color: var(--muted); font-size: 13px; }
.metric-value { margin-top: 10px; font-size: 30px; font-weight: 700; }
.card h3 { margin: 0 0 14px; font-size: 16px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #4a5568; font-size: 13px; font-weight: 600; }
input, textarea, select { width: 100%; padding: 10px 11px; border: 1px solid #d6dce6; border-radius: 8px; background: #fff; color: var(--navy); }
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid #dfe5ff; border-color: var(--blue); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 15px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 650; }
.button.secondary { background: var(--blue-soft); color: #2945c8; }
.button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.button:disabled { cursor: wait; opacity: .55; }
.notice { padding: 13px 15px; border-radius: 9px; background: #fff8e7; color: #775713; font-size: 13px; }
.error { padding: 13px 15px; border-radius: 9px; background: #fff0f0; color: var(--red); font-size: 13px; }
.success { padding: 13px 15px; border-radius: 9px; background: #ecfaf2; color: var(--green); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.status { display: inline-flex; padding: 4px 8px; border-radius: 99px; background: #eef1f5; color: #5d6879; font-size: 11px; font-weight: 700; }
.status.success { background: #e5f7ed; color: var(--green); }
.status.failed { background: #ffebeb; color: var(--red); }
.status.running, .status.queued, .status.processing_result, .status.provider_running, .status.waiting_provider_result { background: #eaf0ff; color: #3153d4; }
.status.processing, .status.quality_check { background: #eaf0ff; color: #3153d4; }
.status.cancelled { background: #f1f2f4; color: #6b7484; }
.product-card { display: grid; gap: 15px; }
.product-meta { color: var(--muted); font-size: 12px; }
.asset-list { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-choice { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: #4a5568; font-size: 12px; }
.asset-choice input { width: auto; }
.template-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.template-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.template-card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.template-card input { position: absolute; opacity: 0; pointer-events: none; }
.template-card span { display: grid; gap: 8px; }
.template-card strong { font-size: 15px; }
.template-card small, .template-card em { color: var(--muted); font-size: 12px; font-style: normal; }
.asset-thumb { width: 76px; height: 60px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f6f8fb; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.media-card video { display: block; width: 100%; max-height: 290px; border-radius: 8px; background: #111827; }
.media-card img { display: block; width: 100%; max-height: 290px; object-fit: contain; border-radius: 8px; background: #f6f8fb; }
.divider { height: 1px; margin: 20px 0; background: var(--line); }
.loading { padding: 40px 0; color: var(--muted); text-align: center; }
.empty { padding: 32px 16px; color: var(--muted); text-align: center; border: 1px dashed #cfd6e2; border-radius: 10px; }
.id-code { max-width: 260px; overflow: hidden; color: #34415a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; }
.context { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.billing-detail { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.billing-detail:last-child { border-bottom: 0; }
.billing-detail strong { color: var(--navy); font-weight: 650; }
.plan-list { display: grid; gap: 10px; }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; }
.plan-row > div:first-child { display: grid; gap: 4px; }
.plan-row span, .plan-price small { color: var(--muted); font-size: 11px; }
.plan-price { display: grid; gap: 3px; text-align: right; font-weight: 700; }
.plan-row .purchase-plan { min-height: 32px; padding: 0 10px; font-size: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.plan-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(24, 38, 72, .04); }
.plan-card.current { border-color: #8ca5f3; box-shadow: 0 0 0 2px rgba(89, 113, 220, .12); }
.plan-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-card-head h3 { margin: 6px 0 0; }
.plan-current { padding: 4px 7px; border-radius: 999px; color: #3153b7; background: #edf1ff; font-size: 11px; white-space: nowrap; }
.plan-card-price { color: var(--navy); font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.plan-features { display: grid; gap: 7px; min-height: 82px; }
.plan-feature { color: #3d4b65; font-size: 12px; }
.plan-intent { width: 100%; }
.plan-section-head { margin-top: 26px; }
.quota-preview > div { flex: 1 1 300px; }
.quota-preview p { margin: 5px 0 0; }
.quota-ready { border-color: #c9e6d5; background: #f3fbf6; }
.quota-ready .button { flex: 0 0 auto; }
.upgrade-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 26px 30px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #192440, #344a92); }
.upgrade-hero h2 { margin: 8px 0; }
.upgrade-hero p { max-width: 580px; margin: 0; color: #cbd5f1; line-height: 1.6; }
.upgrade-hero .eyebrow { color: #aebcff; }
.upgrade-current { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.upgrade-current strong { color: var(--navy); }
.upgrade-request-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.upgrade-request-row strong { color: var(--navy); }

.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; margin-left: 10px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.hero-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 30px 34px; overflow: hidden; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #192440, #344a92); }
.hero-card h2 { margin: 10px 0 8px; font-size: clamp(25px, 4vw, 38px); letter-spacing: -.04em; }
.hero-card p { max-width: 510px; margin: 0 0 20px; color: #cbd5f1; line-height: 1.7; }
.hero-card .eyebrow { color: #aebcff; }
.hero-orb { display: grid; place-items: center; width: 150px; height: 150px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #d8dfff; font-size: 70px; background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,.03)); }
.metric-grid { margin-bottom: 18px; }
.metric-card { min-height: 132px; }
.section-card { margin-top: 18px; }
.section-head h3 { margin-bottom: 4px; }
.section-head p { margin: 0; }
.video-list { display: grid; gap: 8px; }
.video-row { display: flex; align-items: center; width: 100%; gap: 12px; padding: 13px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--navy); text-align: left; }
.video-row:hover { background: #f8f9fc; }
.video-row-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }
.video-row-main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.video-row-main strong { font-size: 13px; }
.video-row-main small { color: var(--muted); }
.video-row-status { flex: 0 0 auto; }
.video-row-arrow { color: #a1a9b8; font-size: 20px; }
.empty-icon { margin-bottom: 8px; color: var(--blue); font-size: 28px; }
.empty strong { display: block; color: var(--navy); }
.empty p { margin: 7px 0 15px; }
.hidden { display: none !important; }
.form-panel { margin-bottom: 18px; }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.product-card-head { display: flex; justify-content: space-between; gap: 12px; }
.product-card-head h3 { margin: 5px 0; }
.upload-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.upload-form { display: grid; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; }
.upload-label { display: flex; gap: 8px; align-items: center; }
.upload-label span:last-child { display: grid; gap: 3px; }
.upload-label small { color: var(--muted); font-size: 11px; }
.upload-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 18px; }
.upload-form input { padding: 7px; font-size: 11px; }
.upload-form .button { min-height: 32px; font-size: 12px; }
.asset-status-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); margin: 2px 0 4px; }
.asset-status-item { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: 9px; background: #f8f9fc; }
.asset-status-item span:last-child { display: grid; gap: 3px; }
.asset-status-item small { color: var(--muted); font-size: 11px; }
.asset-status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #c9ced8; }
.asset-status-dot.ready { background: var(--green); box-shadow: 0 0 0 4px #e8f7ef; }
.template-catalog { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.template-catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.template-preview { position: relative; display: grid; place-items: center; min-height: 210px; color: #cbd5ff; font-size: 70px; background: linear-gradient(145deg, #1c2746, #5067c8); }
.template-preview span { position: absolute; bottom: 16px; color: #fff; font-size: 11px; letter-spacing: .08em; }
.template-catalog-body { padding: 18px; }
.template-catalog-body h3 { margin: 0 0 7px; font-size: 18px; }
.template-catalog-body p { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.template-catalog-body .actions { justify-content: space-between; }
.template-art { display: grid; place-items: center; width: 100%; height: 70px; margin-bottom: 10px; border-radius: 9px; color: #cbd5ff; font-size: 28px; background: linear-gradient(145deg, #1c2746, #5067c8); }
.flow-steps { display: flex; gap: 7px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.flow-steps span { padding: 8px 12px; border-radius: 99px; background: #eef1f5; }
.flow-steps span.active { color: #2945c8; background: var(--blue-soft); }
.generate-card { padding: 25px; }
.generate-section { display: flex; gap: 14px; padding: 3px 0 25px; }
.generate-section + .generate-section { padding-top: 25px; border-top: 1px solid var(--line); }
.section-number { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 700; }
.section-body { flex: 1; min-width: 0; }
.section-body h3 { margin-top: 4px; }
.job-asset-check { margin-top: 12px; }
.job-asset-state { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 9px; background: #fff8e7; }
.job-asset-state.ready { background: #ecfaf2; }
.job-asset-state span:last-child { display: grid; gap: 3px; }
.job-asset-state small { color: var(--muted); }
.generate-submit { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.generate-submit p { margin: 0; }
.progress-card { margin-bottom: 18px; }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.progress-track { height: 10px; overflow: hidden; border-radius: 99px; background: #e8ebf1; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #375dfb, #7a8eff); transition: width .4s ease; }
.processing-placeholder { display: grid; place-items: center; min-height: 260px; color: var(--muted); text-align: center; }
.processing-placeholder strong { margin-top: 14px; color: var(--navy); }
.processing-placeholder p { margin: 6px 0 0; }
.video-result video { display: block; width: 100%; max-height: 580px; border-radius: 10px; background: #111827; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--blue); font-size: 13px; }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid #dfe5ff; border-top-color: var(--blue); border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
.spinner.large { width: 34px; height: 34px; margin: 0; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f6f8fb; }
.auth-card { width: min(100%, 440px); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 18px 50px rgba(22, 34, 51, 0.08); }
.auth-card h1 { margin: 28px 0 8px; }
.auth-tabs { display: flex; gap: 8px; margin: 22px 0; }
.admin-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 24px 28px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #192440, #344a92); }
.admin-banner h2 { margin: 8px 0 6px; font-size: 28px; letter-spacing: -.03em; }
.admin-banner p { margin: 0; color: #cbd5f1; font-size: 13px; }
.admin-banner .eyebrow { color: #aebcff; }
.admin-section + .admin-section { margin-top: 26px; }
.admin-section .section-head { margin-bottom: 12px; }
.admin-section .section-head h3 { margin: 0 0 4px; }
.admin-section .section-head p { margin: 0; }
.admin-section h4 { margin: 0 0 10px; font-size: 14px; }
.admin-summary-badges { display: flex; gap: 8px; color: var(--muted); font-size: 12px; }
.admin-summary-badges span { padding: 6px 9px; border-radius: 99px; background: #f1f3f7; }
.cost-trend { display: grid; gap: 12px; }
.cost-trend-row { display: grid; gap: 6px; }
.cost-trend-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.cost-trend-head strong { color: var(--navy); }
.cost-trend-track { height: 8px; overflow: hidden; border-radius: 99px; background: #edf0f5; }
.cost-trend-track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #375dfb, #7a8eff); }
.admin-cost-table { margin-top: 22px; }
.status.admin-status-succeeded, .status.admin-status-success, .status.admin-status-confirmed { background: #e5f7ed; color: var(--green); }
.status.admin-status-failed { background: #ffebeb; color: var(--red); }
.status.admin-status-estimated, .status.admin-status-queued, .status.admin-status-pending, .status.admin-status-running, .status.admin-status-processing { background: #eaf0ff; color: #3153d4; }
.status.admin-status-unknown { background: #fff8e7; color: #775713; }
.sales-metrics-grid { margin-bottom: 18px; }
.sales-metric { min-height: 108px; }
.sales-metric .metric-value { color: var(--blue); }
.table-wrap select { min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); background: #fff; }
.table-wrap td small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.account-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 26px 30px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #192440, #344a92); }
.account-hero h2 { margin: 8px 0 5px; font-size: 28px; }
.account-hero p { margin: 0; color: #cbd5f1; }
.account-hero .eyebrow { color: #aebcff; }
.metric-date { font-size: 20px; }
.quota-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #f8f9fc; font-size: 13px; }
.quota-preview strong { color: var(--navy); }
.quota-preview small { flex-basis: 100%; }
.quota-warning { display: grid; gap: 8px; margin-bottom: 18px; }
.quota-warning .button { width: max-content; }
.usage-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.usage-summary > div { display: grid; gap: 4px; padding: 13px; border-radius: 10px; background: #f8f9fc; }
.usage-summary strong { color: var(--navy); font-size: 22px; }
.usage-summary span { color: var(--muted); font-size: 12px; }
.quota-main { display: grid; gap: 3px; margin-bottom: 10px; }
.quota-main strong { color: var(--navy); font-size: 32px; letter-spacing: -.04em; }
.quota-main span { color: var(--muted); font-size: 12px; }
.account-progress { margin-bottom: 16px; }
.upgrade-placeholder { padding: 60px 20px; text-align: center; }
.upgrade-placeholder h2 { margin: 10px 0 8px; }
.upgrade-placeholder p { margin: 0 0 22px; }
.upgrade-request-state { display: grid; gap: 6px; margin-bottom: 18px; }
.commercial-pipeline-table select { min-width: 110px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy); background: #fff; font-size: 12px; }
.table-subtext { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

/* Public Buyout Kit pages */
.marketing-shell { min-height: 100vh; color: var(--navy); background: #f7f9fc; }
.marketing-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0; }
.marketing-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.marketing-brand > span:last-child { display: grid; gap: 2px; }
.marketing-brand strong { font-size: 14px; letter-spacing: .12em; }
.marketing-brand small { color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #375dfb, #8c72ff); box-shadow: 0 8px 20px rgba(55, 93, 251, .25); }
.marketing-nav nav { display: flex; gap: 28px; }
.marketing-nav nav a, .marketing-footer a { color: var(--muted); text-decoration: none; font-size: 13px; }
.marketing-nav nav a:hover, .marketing-nav nav a.active, .marketing-footer a:hover { color: var(--blue); }
.marketing-nav-actions { display: flex; align-items: center; gap: 14px; }
.marketing-nav-actions .button.compact { min-height: 36px; padding: 0 14px; }
.marketing-shell .button { text-decoration: none; }
.marketing-hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(350px, .96fr); gap: 70px; align-items: center; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 86px 0 104px; }
.marketing-hero-copy h1 { max-width: 660px; margin: 15px 0 20px; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.08; letter-spacing: -.07em; }
.marketing-hero-copy h1 em { display: block; color: var(--blue); font-style: normal; }
.marketing-lead { max-width: 600px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.marketing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.marketing-note { margin-top: 15px; color: #7b8495; font-size: 12px; }
.marketing-hero-visual { position: relative; min-height: 410px; display: grid; place-items: center; }
.visual-glow { position: absolute; width: 370px; height: 370px; border-radius: 50%; background: radial-gradient(circle, rgba(107, 126, 255, .28), rgba(224, 229, 255, 0) 68%); filter: blur(5px); }
.factory-card { position: relative; width: min(100%, 400px); overflow: hidden; padding: 18px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px; background: rgba(255, 255, 255, .88); box-shadow: 0 28px 70px rgba(46, 61, 113, .18); transform: rotate(2deg); }
.factory-card-top { display: flex; align-items: center; gap: 8px; color: #758097; font-size: 10px; letter-spacing: .12em; }
.factory-card-top .muted { margin-left: auto; font-size: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px #e3f7ed; }
.factory-preview { display: flex; align-items: center; gap: 18px; min-height: 240px; margin: 16px 0; padding: 28px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #182342, #5269ce); }
.product-shape { display: grid; place-items: center; width: 128px; height: 164px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 42% 42% 18% 18%; color: #dfe4ff; font-size: 52px; background: linear-gradient(145deg, #25345d, #7186e6); }
.factory-preview > div:last-child { display: grid; gap: 8px; }
.factory-preview small { color: #c6cef4; font-size: 11px; line-height: 1.6; }
.factory-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.factory-stats span { display: grid; gap: 3px; padding: 10px; border-radius: 9px; background: #f3f5fa; }
.factory-stats b { font-size: 12px; }.factory-stats small { color: var(--muted); font-size: 10px; }
.marketing-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 82px 0; }
.marketing-section > h2, .marketing-cta h2 { max-width: 700px; margin: 10px 0 30px; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.055em; }
.section-kicker { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.marketing-grid { display: grid; gap: 14px; }.marketing-grid-3 { grid-template-columns: repeat(3, 1fr); }
.marketing-card { padding: 24px; border: 1px solid #e6eaf2; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(30, 45, 77, .04); }
.feature-card { min-height: 170px; }.feature-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 25px; border-radius: 10px; color: var(--blue); background: #edf1ff; font-size: 18px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }.feature-card p, .demo-copy p, .marketing-cta p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.audience-section { display: flex; align-items: center; justify-content: space-between; gap: 44px; border-top: 1px solid #e7eaf1; border-bottom: 1px solid #e7eaf1; }.audience-section h2 { margin-bottom: 0; }
.audience-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; max-width: 510px; }.audience-list span { padding: 12px 16px; border: 1px solid #e2e7f0; border-radius: 99px; color: #4f5c72; background: #fff; font-size: 12px; }
.marketing-flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px; border: 1px solid #e6eaf2; border-radius: 18px; background: #fff; }.marketing-flow > div { display: grid; gap: 8px; min-width: 0; }
.marketing-flow span { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; }.marketing-flow strong { font-size: 14px; }.marketing-flow small { color: var(--muted); font-size: 11px; white-space: nowrap; }.marketing-flow i { color: #aeb8cc; font-style: normal; font-size: 20px; }
.marketing-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(1180px, calc(100% - 40px)); margin: 20px auto 90px; padding: 38px 42px; border-radius: 22px; color: #fff; background: linear-gradient(118deg, #1a2646, #4258af); box-shadow: 0 25px 60px rgba(44, 61, 131, .2); }
.marketing-cta h2 { margin: 10px 0 8px; color: #fff; font-size: 32px; }.marketing-cta p { color: #cbd3f4; }.marketing-cta .section-kicker { color: #aebcff; }
.marketing-footer { display: flex; justify-content: space-between; gap: 30px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 42px; border-top: 1px solid #e7eaf1; }.marketing-footer > div:first-child { display: grid; gap: 6px; }.marketing-footer > div:first-child span { color: var(--muted); font-size: 11px; }.marketing-footer > div:last-child { display: flex; gap: 20px; }
.marketing-page-hero { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 52px; text-align: center; }.marketing-page-hero h1 { margin: 15px 0; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.065em; }.marketing-page-hero p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.8; }.compact-page-hero { padding-bottom: 15px; }
.demo-showcase, .demo-video-section, .trial-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: center; }.screenshot-placeholder { padding: 16px; }
.placeholder-window { overflow: hidden; border-radius: 12px; background: #1b2747; }.placeholder-bar { display: flex; gap: 5px; padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }.placeholder-bar span { width: 7px; height: 7px; border-radius: 50%; background: #ffb6a8; }.placeholder-bar span:nth-child(2) { background: #f4d57a; }.placeholder-bar span:nth-child(3) { background: #91e0b0; }
.placeholder-layout { display: grid; grid-template-columns: 110px 1fr; min-height: 270px; }.placeholder-side { display: grid; align-content: start; gap: 14px; padding: 20px 14px; color: #bfc9ec; font-size: 10px; background: #15203c; }.placeholder-side b { color: #fff; font-size: 11px; }.placeholder-table { padding: 30px 22px; }.placeholder-line { width: 86%; height: 16px; margin-bottom: 18px; border-radius: 5px; background: #3c4d84; }.placeholder-line.wide { width: 96%; height: 30px; background: #667bdb; }.placeholder-line.short { width: 65%; }.placeholder-pill { display: inline-block; padding: 8px 11px; border-radius: 99px; color: #b9efce; background: #245c4a; font-size: 10px; }
.screenshot-placeholder > p { display: grid; gap: 4px; margin: 14px 2px 0; }.screenshot-placeholder small { color: var(--muted); font-size: 10px; }.demo-copy h2, .demo-video-section h2, .trial-card h2 { margin: 10px 0 14px; font-size: 32px; letter-spacing: -.05em; }.check-list { display: grid; gap: 11px; margin-top: 24px; color: #40516f; font-size: 13px; }
.large-flow { justify-content: center; gap: 18px; }.large-flow > div { padding: 16px; border-radius: 12px; background: #f7f8fc; }.flow-arrow { color: #aeb8cc; font-size: 22px; }.demo-video-placeholder { display: grid; place-items: center; min-height: 340px; border: 1px dashed #bbc5da; border-radius: 18px; color: #60708c; background: linear-gradient(145deg, #e9edf9, #f7f9fd); text-align: center; }.demo-video-placeholder strong { margin-top: 14px; color: var(--navy); }.demo-video-placeholder span, .demo-video-placeholder small { margin-top: 5px; color: var(--muted); font-size: 11px; }.play-placeholder { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 10px 25px rgba(55, 93, 251, .25); }
.package-tree { display: grid; gap: 10px; margin: 18px 0 25px; padding: 18px; border-radius: 12px; color: #596780; background: #f1f4f9; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }.package-tree span:first-child { color: var(--navy); font-weight: 700; }.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.compare-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; }.mock-label { color: #33745a; }.real-label { color: #6955c4; }
.trial-layout { align-items: start; padding-top: 36px; }.trial-card { padding: 30px; }.trial-card > p { margin-bottom: 24px; line-height: 1.7; }.marketing-form { display: grid; gap: 18px; }.marketing-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.marketing-form label { display: grid; gap: 7px; color: #40516f; font-size: 12px; font-weight: 600; }.marketing-form label small { color: var(--muted); font-size: 10px; font-weight: 400; }.marketing-form input, .marketing-form select, .marketing-form textarea { width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid #dce2ec; border-radius: 9px; outline: none; color: var(--navy); background: #fbfcfe; font: inherit; font-size: 13px; }.marketing-form input:focus, .marketing-form select:focus, .marketing-form textarea:focus { border-color: #7890ff; box-shadow: 0 0 0 3px #e9edff; }.full-field { grid-column: 1 / -1; }.consent-field { display: flex !important; align-items: start; gap: 9px !important; color: var(--muted) !important; font-weight: 400 !important; line-height: 1.5; }.consent-field input { width: auto; margin-top: 3px; }.trial-result { padding: 15px; border-radius: 10px; font-size: 12px; }.trial-result strong { color: var(--navy); }.trial-result p { margin: 5px 0 0; color: var(--muted); line-height: 1.6; }.trial-result small { display: block; margin-top: 7px; color: var(--muted); }.trial-result.success { background: #eaf8f0; }.trial-result.duplicate, .trial-result.limit { background: #fff7e4; }.trial-result.error { background: #ffeded; }
.trial-aside { position: sticky; top: 24px; padding: 30px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #202d51, #3d56ae); }.aside-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 28px; border-radius: 12px; color: #dbe1ff; background: rgba(255, 255, 255, .14); }.trial-aside h3 { margin: 0 0 15px; font-size: 24px; }.trial-aside ul { display: grid; gap: 12px; margin: 0; padding-left: 18px; color: #d6def9; font-size: 13px; line-height: 1.5; }.aside-boundary { margin-top: 30px; padding: 15px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 10px; background: rgba(0, 0, 0, .1); }.aside-boundary strong { font-size: 12px; }.aside-boundary p { margin: 6px 0 0; color: #c3cdf0; font-size: 11px; line-height: 1.6; }

@media (max-width: 820px) {
  .marketing-nav nav { display: none; }
  .marketing-nav-actions .text-button { display: none; }
  .marketing-hero, .demo-showcase, .demo-video-section, .trial-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
  .marketing-hero-copy h1 { font-size: 46px; }.marketing-hero-visual { min-height: 340px; }.marketing-grid-3, .compare-grid, .marketing-form-grid { grid-template-columns: 1fr; }.audience-section, .marketing-cta, .marketing-footer { align-items: flex-start; flex-direction: column; }.audience-list { justify-content: flex-start; }.marketing-flow { overflow-x: auto; justify-content: flex-start; }.marketing-flow > div { flex: 0 0 auto; }.marketing-footer > div:last-child { flex-wrap: wrap; }.large-flow { display: grid; grid-template-columns: 1fr; }.large-flow .flow-arrow { transform: rotate(90deg); }
}

@media (max-width: 820px) {
  .shell { display: block; }
  .sidebar { width: auto; padding: 14px 16px; }
  .brand { padding: 0 0 12px; }
  .nav { display: flex; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .topbar, .content { padding-left: 18px; padding-right: 18px; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .upload-grid, .asset-status-grid { grid-template-columns: 1fr; }
  .hero-orb { display: none; }
  .generate-submit { align-items: flex-start; flex-direction: column; }
  .admin-banner { align-items: flex-start; flex-direction: column; }
  .account-hero { align-items: flex-start; flex-direction: column; }
  .usage-summary { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
