*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
:root {
    --navy-950: #081426; --navy-900: #0b1c33; --navy-800: #15304f;
    --blue-600: #1769e0; --blue-700: #1257bb; --blue-50: #edf5ff;
    --slate-900: #172033; --slate-700: #3d4b61; --slate-500: #68768a;
    --slate-300: #cbd4df; --slate-200: #dfe5ec; --slate-100: #edf1f5;
    --slate-50: #f6f8fa; --white: #fff; --green: #16865b; --green-bg: #e9f8f1;
    --amber: #a96300; --amber-bg: #fff5dc; --red: #bd3333; --red-bg: #fff0f0;
    --shadow-sm: 0 1px 3px rgba(8,20,38,.08); --shadow-md: 0 8px 28px rgba(8,20,38,.08);
    --radius: 10px; --radius-lg: 14px;
}
[hidden] { display: none !important; }
html { font-size: 16px; overflow-x: clip; }
body { min-height: 100vh; overflow-x: clip; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--slate-900); background: var(--slate-50); line-height: 1.5; }
button, input { font: inherit; }
.app-shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 max(28px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--white); border-bottom: 1px solid var(--slate-200); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: white; border-radius: 9px; background: var(--navy-900); }
.brand-mark svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand h1 { font-size: 1rem; letter-spacing: .01em; }
.brand p { color: var(--slate-500); font-size: .72rem; }
.public-nav { display: flex; align-items: center; gap: 25px; }
.public-nav a { color: var(--slate-700); font-size: .76rem; font-weight: 600; text-decoration: none; }
.public-nav a:hover { color: var(--blue-600); }
.nav-login { color: var(--slate-700); background: none; border: 0; font-size: .76rem; font-weight: 650; cursor: pointer; }
.page-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 72px; }
.user-menu { display: flex; align-items: center; gap: 11px; }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: .84rem; font-weight: 700; color: var(--navy-900); background: var(--blue-50); border: 1px solid #cfe2fc; }
.user-details { display: grid; line-height: 1.25; }
.user-details strong { font-size: .82rem; }
.user-details span { color: var(--slate-500); font-size: .69rem; }
.eyebrow, .section-kicker { display: block; color: var(--blue-600); font-size: .67rem; font-weight: 750; letter-spacing: .12em; margin-bottom: 7px; }
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.welcome-row h2 { font-size: 1.8rem; letter-spacing: -.025em; }
.welcome-row p { margin-top: 5px; color: var(--slate-500); }
.workspace-badge { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--green); font-size: .75rem; font-weight: 650; border: 1px solid #bce7d2; border-radius: 999px; background: var(--green-bg); }
.workspace-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22,134,91,.12); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 19px 20px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-label { display: block; color: var(--slate-500); font-size: .75rem; font-weight: 600; }
.stat-card strong { display: block; margin: 7px 0 1px; font-size: 1.65rem; line-height: 1.15; letter-spacing: -.03em; }
.stat-card small { color: #8b97a8; font-size: .68rem; }
.usage-track { height: 5px; margin: 7px 0; overflow: hidden; background: var(--slate-100); border-radius: 9px; }
.usage-track i { display: block; width: 0; height: 100%; background: var(--blue-600); border-radius: inherit; transition: width .25s; }
.upload-card, .project-card, .auth-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.upload-card { padding: 26px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { font-size: 1.05rem; }
.section-heading p { margin-top: 3px; color: var(--slate-500); font-size: .78rem; }
.counter { flex: none; padding: 6px 10px; color: var(--slate-700); font-size: .7rem; font-weight: 650; background: var(--slate-100); border-radius: 999px; }
.upload-area { padding: 36px 20px; text-align: center; cursor: pointer; border: 1.5px dashed #aebdce; border-radius: var(--radius); background: #fbfcfe; transition: .2s ease; }
.upload-area:hover, .upload-area.drag-over { border-color: var(--blue-600); background: var(--blue-50); }
.upload-area.disabled { opacity: .5; cursor: not-allowed; }
.upload-area.has-file { border-style: solid; border-color: var(--green); background: var(--green-bg); }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 13px; color: var(--blue-600); border-radius: 10px; background: var(--blue-50); border: 1px solid #d4e5fc; }
.upload-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upload-text { font-size: .9rem; font-weight: 650; }
.upload-hint { margin-top: 3px; color: var(--slate-500); font-size: .77rem; }
.upload-hint span { color: var(--blue-600); font-weight: 650; }
.file-requirements { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 15px; color: #8a96a7; font-size: .65rem; }
.file-requirements i { width: 3px; height: 3px; border-radius: 50%; background: var(--slate-300); }
.file-info { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 10px 13px; font-size: .76rem; border: 1px solid var(--slate-200); border-radius: 7px; background: var(--slate-50); }
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--slate-500); }
.upload-progress { margin-top: 12px; }
.progress-bar { height: 5px; overflow: hidden; background: var(--slate-100); border-radius: 99px; }
.progress-fill { width: 0; height: 100%; background: var(--blue-600); transition: width .2s; }
.progress-text { margin-top: 5px; color: var(--slate-500); text-align: center; font-size: .68rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 0; border-radius: 7px; font-size: .78rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: .18s ease; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { color: white; background: var(--blue-600); }
.btn-primary:hover:not(:disabled) { background: var(--blue-700); }
.upload-card > .btn-primary { width: 100%; margin-top: 15px; }
.btn-ghost { color: var(--slate-700); background: var(--white); border: 1px solid var(--slate-200); }
.btn-ghost:hover { background: var(--slate-50); border-color: var(--slate-300); }
.btn-success { color: white; background: var(--green); }
.btn-ai { color: #5a35b5; background: #f2edff; border: 1px solid #ddd1ff; }
.btn-ai:hover { background: #e8dfff; }
.projects-heading { margin: 36px 0 15px; }
.projects-list { display: grid; gap: 10px; }
.project-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 18px 20px; }
.project-title { display: flex; align-items: center; gap: 10px; }
.project-title h3 { font-size: .88rem; overflow-wrap: anywhere; }
.project-date { margin-top: 5px; color: var(--slate-500); font-size: .7rem; }
.project-date span { color: var(--slate-700); font-weight: 600; }
.project-error, .form-error { margin-top: 8px; color: var(--red); font-size: .73rem; }
.project-actions { display: flex; gap: 8px; }
.status-pill { padding: 4px 8px; border-radius: 999px; font-size: .62rem; font-weight: 700; text-transform: capitalize; background: var(--slate-100); color: var(--slate-700); }
.status-pill.running, .status-pill.extracting { color: var(--amber); background: var(--amber-bg); }
.status-pill.queued { color: var(--blue-700); background: var(--blue-50); }
.status-pill.completed { color: var(--green); background: var(--green-bg); }
.status-pill.failed, .status-pill.interrupted { color: var(--red); background: var(--red-bg); }
.project-logs { grid-column: 1 / -1; max-height: 310px; overflow: auto; padding: 14px; color: #d9e5f3; background: var(--navy-950); border-radius: 7px; font: .72rem/1.55 Consolas, monospace; }
.log-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.log-line.stderr { color: #ff9999; }
.log-line.status { color: #75b5ff; }
.empty-state { padding: 45px 20px; text-align: center; color: var(--slate-500); background: var(--white); border: 1px dashed var(--slate-300); border-radius: var(--radius); }
.empty-state h3 { margin: 8px 0 3px; color: var(--slate-700); }
.empty-state p { font-size: .77rem; }
.empty-icon { color: var(--blue-600); font-size: 1.5rem; }
.auth-card { width: min(440px, 100%); margin: 30px auto; padding: 30px; box-shadow: var(--shadow-md); }
.auth-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8,20,38,.68); backdrop-filter: blur(5px); }
.auth-overlay .auth-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); overflow: auto; margin: 0; }
.close-auth { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; color: var(--slate-500); background: var(--slate-50); border: 0; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.modal-open { overflow: hidden; }
.auth-heading { margin-bottom: 22px; }
.auth-heading h2 { font-size: 1.35rem; }
.auth-heading p { margin-top: 5px; color: var(--slate-500); font-size: .78rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 22px; border-bottom: 1px solid var(--slate-200); }
.auth-tab { padding: 10px; color: var(--slate-500); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: .78rem; font-weight: 600; }
.auth-tab.active { color: var(--blue-600); border-color: var(--blue-600); }
.auth-card form { display: grid; gap: 14px; }
.auth-card label { display: grid; gap: 6px; color: var(--slate-700); font-size: .75rem; font-weight: 600; }
.auth-card input { width: 100%; padding: 10px 12px; color: var(--slate-900); background: var(--white); border: 1px solid var(--slate-300); border-radius: 7px; outline: none; }
.auth-card input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(23,105,224,.1); }

/* Project AI chat */
.chat-overlay { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8,20,38,.7); backdrop-filter: blur(5px); }
.chat-page { width: min(960px, 100%); margin: 0 auto; }
.chat-dialog { width: min(760px, 100%); height: min(760px, calc(100vh - 40px)); display: grid; grid-template-rows: auto auto 1fr auto auto; overflow: hidden; background: white; border-radius: 15px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.chat-page .chat-dialog { width: 100%; height: calc(100vh - 150px); min-height: 620px; border: 1px solid var(--slate-200); box-shadow: var(--shadow-md); }
body.chat-page-open { height: 100vh; height: 100dvh; overflow: hidden; }
body.chat-page-open .page-container { height: calc(100vh - 76px); height: calc(100dvh - 76px); padding-top: 18px; padding-bottom: 18px; }
body.chat-page-open .chat-page { height: 100%; }
body.chat-page-open .chat-page .chat-dialog { height: 100%; min-height: 0; }
.chat-header { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 58px 18px 20px; border-bottom: 1px solid var(--slate-200); }
.chat-header h2 { font-size: .95rem; }
.chat-header p { color: var(--slate-500); font-size: .68rem; }
.chat-header .section-kicker { margin-bottom: 2px; font-size: .55rem; }
.chat-back { width: 35px; height: 35px; display: grid; place-items: center; flex: none; color: var(--slate-700); background: white; border: 1px solid var(--slate-200); border-radius: 8px; cursor: pointer; font-size: 1rem; }
.chat-back:hover { background: var(--slate-50); border-color: var(--slate-300); }
.chat-ai-icon { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #1769e0, #7048c8); border-radius: 9px; font-size: .68rem; font-weight: 800; }
.chat-header .close-auth { top: 20px; }
.chat-context-banner { padding: 9px 20px; color: #52677e; background: #f3f7fc; border-bottom: 1px solid #e1e9f2; font-size: .66rem; }
.chat-context-banner span { margin-right: 5px; color: var(--green); font-weight: 800; }
.chat-messages { display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow-y: auto; padding: 24px; background: #fbfcfe; }
.chat-message { display: flex; flex-direction: column; align-items: flex-start; max-width: 84%; }
.chat-message.user { align-self: flex-end; align-items: flex-end; }
.chat-message-label { margin: 0 5px 5px; color: var(--slate-500); font-size: .6rem; font-weight: 650; }
.chat-bubble { padding: 11px 14px; color: var(--slate-700); background: white; border: 1px solid var(--slate-200); border-radius: 4px 12px 12px 12px; box-shadow: var(--shadow-sm); font-size: .78rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble p { margin: 0 0 10px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble h3, .chat-bubble h4, .chat-bubble h5, .chat-bubble h6 { margin: 15px 0 7px; color: var(--slate-900); line-height: 1.35; }
.chat-bubble h3:first-child, .chat-bubble h4:first-child { margin-top: 0; }
.chat-bubble h3 { font-size: .95rem; }
.chat-bubble h4 { font-size: .87rem; }
.chat-bubble h5, .chat-bubble h6 { font-size: .8rem; }
.chat-bubble ul, .chat-bubble ol { display: grid; gap: 5px; margin: 8px 0 12px; padding-inline-start: 22px; }
.chat-bubble li { padding-inline-start: 2px; }
.chat-bubble code { padding: 2px 5px; color: #7041b5; background: #f2edfa; border-radius: 4px; font: .72rem/1.5 Consolas, monospace; }
.chat-bubble pre { position: relative; margin: 10px 0; padding: 29px 12px 12px; overflow-x: auto; color: #dbe7f5; background: var(--navy-950); border-radius: 7px; direction: ltr; text-align: left; white-space: pre; }
.chat-bubble pre code { padding: 0; color: inherit; background: none; }
.code-language { position: absolute; inset: 7px 10px auto; color: #8497ad; font-size: .56rem; text-transform: uppercase; }
.chat-bubble blockquote { margin: 10px 0; padding: 8px 11px; color: var(--slate-500); background: var(--slate-50); border-inline-start: 3px solid var(--blue-600); }
.chat-bubble hr { margin: 13px 0; border: 0; border-top: 1px solid var(--slate-200); }
.chat-bubble a { color: var(--blue-600); text-decoration: underline; }
.md-table-wrap { max-width: 100%; margin: 10px 0 13px; overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 7px; }
.chat-bubble table { width: 100%; border-collapse: collapse; white-space: normal; font-size: .72rem; }
.chat-bubble th, .chat-bubble td { padding: 8px 10px; text-align: start; border-bottom: 1px solid var(--slate-200); border-inline-end: 1px solid var(--slate-200); }
.chat-bubble th { color: var(--slate-900); background: var(--slate-100); font-weight: 700; }
.chat-bubble tr:last-child td { border-bottom: 0; }
.chat-bubble th:last-child, .chat-bubble td:last-child { border-inline-end: 0; }
.chat-message.user .chat-bubble { color: white; background: var(--blue-600); border-color: var(--blue-600); border-radius: 12px 4px 12px 12px; }
.chat-message.pending .chat-bubble { color: var(--slate-500); animation: chatPulse 1.2s ease-in-out infinite; }
.chat-message.error .chat-bubble { color: var(--red); background: var(--red-bg); border-color: #f1cccc; }
.chat-loading { margin: auto; color: var(--slate-500); font-size: .76rem; }
.chat-composer { display: flex; align-items: end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--slate-200); }
.chat-composer textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; padding: 10px 12px; color: var(--slate-900); background: var(--slate-50); border: 1px solid var(--slate-300); border-radius: 8px; outline: none; font: .78rem/1.5 inherit; }
.chat-composer textarea:focus { background: white; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(23,105,224,.09); }
.chat-composer .btn { min-height: 42px; }
.chat-disclaimer { padding: 0 18px 12px; color: #98a3b1; text-align: center; font-size: .57rem; }
@keyframes chatPulse { 50% { opacity: .55; } }

/* Public SaaS landing page */
.landing-page { margin-top: -10px; }
.hero { min-height: 560px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; padding: 45px 0 85px; }
.hero-badge { width: fit-content; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 10px; color: var(--blue-700); background: var(--blue-50); border: 1px solid #d3e5fd; border-radius: 99px; font-size: .68rem; font-weight: 700; }
.hero-badge span { width: 7px; height: 7px; background: var(--blue-600); border-radius: 50%; box-shadow: 0 0 0 3px rgba(23,105,224,.12); }
.hero h2 { max-width: 650px; font-size: clamp(2.7rem, 5vw, 4.3rem); line-height: 1.03; letter-spacing: -.052em; }
.hero h2 em { color: var(--blue-600); font-style: normal; }
.hero-copy > p { max-width: 590px; margin-top: 22px; color: var(--slate-500); font-size: 1rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 11px; margin-top: 29px; }
.btn-large { padding: 12px 20px; font-size: .82rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 21px; color: var(--slate-500); font-size: .66rem; }
.hero-proof span::first-letter { color: var(--green); }
.hero-visual { position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: -35px; z-index: -1; background: radial-gradient(circle, rgba(23,105,224,.14), transparent 67%); }
.report-window { overflow: hidden; transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); background: white; border: 1px solid var(--slate-200); border-radius: 14px; box-shadow: 0 28px 70px rgba(8,20,38,.16); }
.window-bar { height: 39px; display: flex; align-items: center; gap: 6px; padding: 0 13px; color: var(--slate-500); background: #f8fafc; border-bottom: 1px solid var(--slate-200); font-size: .61rem; }
.window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d2d9e2; }
.window-bar span { margin-left: 7px; }
.report-content { padding: 21px; }
.report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; padding-bottom: 16px; border-bottom: 1px solid var(--slate-100); }
.report-head small { display: block; color: var(--slate-500); font-size: .54rem; letter-spacing: .09em; }
.report-head strong { font-size: 1.8rem; }
.report-head strong span { color: var(--slate-500); font-size: .7rem; font-weight: 500; }
.score-ring { width: 49px; height: 49px; display: grid; place-items: center; color: var(--green); font-size: .85rem; font-weight: 800; border: 5px solid #bdebd6; border-top-color: var(--green); border-radius: 50%; }
.finding { display: grid; grid-template-columns: 53px 1fr 20px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--slate-100); }
.finding b { width: fit-content; padding: 3px 6px; font-size: .51rem; border-radius: 4px; }
.finding div { display: grid; }
.finding strong { font-size: .69rem; }
.finding span { color: var(--slate-500); font: .53rem Consolas, monospace; }
.finding em { width: 20px; height: 20px; display: grid; place-items: center; color: var(--slate-500); background: var(--slate-100); border-radius: 50%; font-size: .57rem; font-style: normal; }
.finding.critical b { color: var(--red); background: var(--red-bg); }
.finding.high b { color: #c64b19; background: #fff1eb; }
.finding.medium b { color: var(--amber); background: var(--amber-bg); }
.scan-complete { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 10px; background: var(--green-bg); border-radius: 7px; }
.scan-complete > span { width: 24px; height: 24px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: .65rem; }
.scan-complete div { display: grid; }
.scan-complete strong { color: var(--green); font-size: .65rem; }
.scan-complete small { color: #4d7b67; font-size: .54rem; }
.trust-strip { padding: 29px 0; text-align: center; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.trust-strip > span { color: #98a3b1; font-size: .6rem; font-weight: 750; letter-spacing: .13em; }
.trust-strip div { display: flex; justify-content: space-around; gap: 25px; margin-top: 19px; color: #8996a7; font-size: .76rem; letter-spacing: .06em; }
.marketing-section { padding: 105px 0; scroll-margin-top: 80px; }
.marketing-heading { max-width: 650px; margin: 0 auto 46px; text-align: center; }
.marketing-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; }
.marketing-heading p { margin-top: 12px; color: var(--slate-500); font-size: .87rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature-grid article { min-height: 205px; padding: 24px; background: white; border: 1px solid var(--slate-200); border-radius: 11px; box-shadow: var(--shadow-sm); }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 30px; color: var(--blue-600); background: var(--blue-50); border-radius: 8px; font-weight: 800; }
.feature-grid h3, .steps-grid h3 { font-size: .88rem; }
.feature-grid p, .steps-grid p { margin-top: 8px; color: var(--slate-500); font-size: .75rem; line-height: 1.65; }
.how-section { width: 100vw; margin-left: calc(50% - 50vw); padding-inline: max(20px, calc((100vw - 1180px)/2)); background: var(--navy-950); color: white; }
.how-section .eyebrow { color: #70adff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; }
.steps-grid article { position: relative; }
.steps-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 23px; color: #8dbdff; background: rgba(23,105,224,.17); border: 1px solid rgba(112,173,255,.25); border-radius: 50%; font-size: .7rem; font-weight: 750; }
.steps-grid p { color: #98a9bd; }
.step-line { position: absolute; top: 21px; left: 58px; width: calc(100% - 20px); height: 1px; background: #28415f; }
.pricing-section { padding-bottom: 120px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 16px; }
.price-card { position: relative; min-height: 440px; padding: 27px; background: white; border: 1px solid var(--slate-200); border-radius: 12px; box-shadow: var(--shadow-sm); }
.price-card.featured { min-height: 478px; padding-top: 42px; border: 2px solid var(--blue-600); box-shadow: 0 18px 45px rgba(23,105,224,.13); }
.popular { position: absolute; top: 0; left: 0; right: 0; padding: 7px; color: white; text-align: center; background: var(--blue-600); font-size: .55rem; font-weight: 800; letter-spacing: .1em; border-radius: 9px 9px 0 0; }
.price-card h3 { font-size: 1rem; }
.price-card > p { min-height: 37px; margin-top: 6px; color: var(--slate-500); font-size: .71rem; }
.price { display: flex; align-items: baseline; gap: 5px; margin: 25px 0; }
.price strong { font-size: 2rem; letter-spacing: -.04em; }
.price span { color: var(--slate-500); font-size: .67rem; }
.price-card ul { display: grid; gap: 12px; min-height: 185px; padding: 0; list-style: none; }
.price-card li { color: var(--slate-700); font-size: .73rem; }
.price-card li::before { content: '✓'; margin-right: 9px; color: var(--green); font-weight: 800; }
.price-card .btn { width: 100%; }
.payment-card { width: min(560px, calc(100vw - 32px)); max-height: 92vh; overflow: auto; }
.payment-plans { display: grid; gap: 12px; margin-top: 22px; }
.payment-plan { padding: 18px; text-align: right; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; }
.payment-plan:hover { border-color: var(--blue-600); box-shadow: var(--shadow-sm); }
.payment-plan header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.payment-plan h3 { margin: 0; }
.payment-plan strong { color: var(--blue-700); font-size: 1.15rem; }
.payment-plan p { margin: 8px 0 14px; color: var(--slate-500); font-size: .8rem; }
.payment-plan .btn, .payment-back { width: 100%; }
.payment-back { margin: 12px 0; }
.payment-loading { padding: 32px 12px; color: var(--slate-500); text-align: center; font-size: .82rem; }
#paymentForm { min-height: 330px; width: 100%; }
#paymentForm .mysr-form { margin-inline: auto; }
.final-cta { margin: 0 0 80px; padding: 65px 30px; color: white; text-align: center; background: linear-gradient(135deg, var(--navy-950), #102d50); border-radius: 16px; }
.final-cta .eyebrow { color: #76b2ff; }
.final-cta h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.final-cta p { margin: 11px 0 25px; color: #a8b7c9; font-size: .82rem; }
.landing-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 25px; color: var(--slate-500); border-top: 1px solid var(--slate-200); font-size: .68rem; }
.landing-footer .brand-mark { width: 30px; height: 30px; }
.landing-footer .brand-mark svg { width: 18px; }
.landing-footer div:last-child { display: flex; gap: 18px; }
.landing-footer a { color: var(--slate-500); text-decoration: none; }

@media (max-width: 760px) {
    .topbar { height: auto; padding: 15px 20px; }
    .user-details { display: none; }
    .page-container { width: min(100% - 28px, 1180px); padding-top: 28px; }
    .welcome-row { align-items: flex-start; flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card { grid-template-columns: 1fr; }
    .project-actions { flex-wrap: wrap; }
    .public-nav a { display: none; }
    .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 20px; }
    .hero-copy { text-align: center; }
    .hero-badge, .hero-copy > p { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-proof { justify-content: center; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
    .step-line { display: none; }
    .price-card, .price-card.featured { min-height: auto; }
    .price-card ul { min-height: auto; margin-bottom: 28px; }
    .landing-footer { flex-direction: column; text-align: center; }
    body.chat-page-open .page-container { height: calc(100vh - 71px); height: calc(100dvh - 71px); padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 480px) {
    .brand p, .user-avatar { display: none; }
    .page-container { width: min(100% - 20px, 1180px); }
    .stats-grid { gap: 8px; }
    .stat-card, .upload-card, .auth-card { padding: 18px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .file-requirements { flex-wrap: wrap; }
    .public-nav { gap: 7px; }
    .nav-login { display: none; }
    .hero h2 { font-size: 2.45rem; }
    .hero-actions { flex-direction: column; }
    .feature-grid { grid-template-columns: 1fr; }
    .trust-strip div { flex-wrap: wrap; }
    .marketing-section { padding: 75px 0; }
    .chat-overlay { padding: 0; }
    .chat-dialog { width: 100%; height: 100%; border-radius: 0; }
    .chat-page .chat-dialog { height: 100%; min-height: 0; border-radius: 10px; }
    .chat-message { max-width: 94%; }
}
/* Admin-configurable brand images */
.brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
